taskcafe/migrations/0029_add-task_checklist.up.sql

8 lines
249 B
MySQL
Raw Permalink Normal View History

2020-06-19 01:12:15 +02:00
CREATE TABLE task_checklist (
task_checklist_id uuid PRIMARY KEY DEFAULT uuid_generate_v4(),
task_id uuid NOT NULL REFERENCES task(task_id) ON DELETE CASCADE,
created_at timestamptz NOT NULL,
name text NOT NULL,
position float NOT NULL
);