feature: add ability to assign tasks
This commit is contained in:
@ -1,7 +1,8 @@
|
||||
CREATE TABLE user_account (
|
||||
user_id uuid PRIMARY KEY DEFAULT uuid_generate_v4(),
|
||||
created_at timestamptz NOT NULL,
|
||||
display_name text NOT NULL,
|
||||
first_name text NOT NULL,
|
||||
last_name text NOT NULL,
|
||||
email text NOT NULL UNIQUE,
|
||||
username text NOT NULL UNIQUE,
|
||||
password_hash text NOT NULL
|
6
api/migrations/0009_add-task-assigned-table.up.sql
Normal file
6
api/migrations/0009_add-task-assigned-table.up.sql
Normal file
@ -0,0 +1,6 @@
|
||||
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
|
||||
);
|
1
api/migrations/0010_add-description-to-task-table.up.sql
Normal file
1
api/migrations/0010_add-description-to-task-table.up.sql
Normal file
@ -0,0 +1 @@
|
||||
ALTER TABLE task ADD COLUMN description text;
|
5
api/migrations/0011_add-label-color-table.up.sql
Normal file
5
api/migrations/0011_add-label-color-table.up.sql
Normal file
@ -0,0 +1,5 @@
|
||||
CREATE TABLE label_color (
|
||||
label_color_id uuid PRIMARY KEY DEFAULT uuid_generate_v4(),
|
||||
color_hex TEXT NOT NULL,
|
||||
position FLOAT NOT NULL
|
||||
);
|
6
api/migrations/0012-add-task-label-table.up.sql
Normal file
6
api/migrations/0012-add-task-label-table.up.sql
Normal file
@ -0,0 +1,6 @@
|
||||
CREATE TABLE task_label (
|
||||
task_label_id uuid PRIMARY KEY DEFAULT uuid_generate_v4(),
|
||||
task_id uuid NOT NULL REFERENCES task(task_id),
|
||||
label_color_id uuid NOT NULL REFERENCES label_color(label_color_id),
|
||||
assigned_date timestamptz NOT NULL
|
||||
);
|
1
api/migrations/0013_add-due-date-to-task-table.up.sql
Normal file
1
api/migrations/0013_add-due-date-to-task-table.up.sql
Normal file
@ -0,0 +1 @@
|
||||
ALTER TABLE task ADD COLUMN due_date timestamptz;
|
@ -0,0 +1 @@
|
||||
ALTER TABLE project ADD COLUMN owner uuid NOT NULL;
|
Reference in New Issue
Block a user