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 );