taskcafe/migrations/0037_add-project_member-table.up.sql

7 lines
283 B
MySQL
Raw Normal View History

CREATE TABLE project_member (
project_member_id uuid PRIMARY KEY DEFAULT uuid_generate_v4(),
project_id uuid NOT NULL REFERENCES project(project_id) ON DELETE CASCADE,
user_id uuid NOT NULL REFERENCES user_account(user_id) ON DELETE CASCADE,
added_at timestamptz NOT NULL
);