taskcafe/migrations/0009_add-task-assigned-table.up.sql

7 lines
241 B
MySQL
Raw Normal View History

2020-04-20 05:02:55 +02:00
CREATE TABLE task_assigned (
task_assigned_id uuid PRIMARY KEY DEFAULT uuid_generate_v4(),
task_id uuid NOT NULL REFERENCES task(task_id),
user_id uuid NOT NULL REFERENCES user_account(user_id),
assigned_date timestamptz NOT NULL
);