-- user_id+account_id primary key -> separate id column for audit
ALTER TABLE medreport.accounts_memberships DROP CONSTRAINT accounts_memberships_pkey;
ALTER TABLE medreport.accounts_memberships ADD COLUMN id UUID DEFAULT gen_random_uuid();
ALTER TABLE medreport.accounts_memberships ADD CONSTRAINT accounts_memberships_pkey PRIMARY KEY (id);
ALTER TABLE medreport.accounts_memberships ADD CONSTRAINT unique_user_account UNIQUE (user_id, account_id);
