Files
expenses/server/migrations/20260918000001_create_account_members.sql
T

5 lines
248 B
SQL

CREATE TABLE account_members (
account_id UUID NOT NULL CONSTRAINT fk_account_members_account REFERENCES accounts (id),
user_id UUID NOT NULL CONSTRAINT fk_account_members_user REFERENCES users (id),
PRIMARY KEY (account_id, user_id)
);