add issue tasks.

This commit is contained in:
2020-05-10 20:50:18 +02:00
parent 3039dc1879
commit 47d8a027da
21 changed files with 598 additions and 15 deletions
@@ -2,7 +2,7 @@
-- +goose StatementBegin
CREATE TABLE project_status (
project_id CHAR(16) NOT NULL,
name VARCHAR(255) NOT NULL,
name CHAR(32) NOT NULL,
stage INT NOT NULL,
description VARCHAR(255) NOT NULL,
@@ -0,0 +1,26 @@
-- +goose Up
-- +goose StatementBegin
CREATE TABLE issue_task (
issue_task_id CHAR(48) PRIMARY KEY,
issue_id CHAR(32) NOT NULL,
activity_id CHAR(16) NOT NULL,
created_time TIMESTAMP NOT NULL,
updated_time TIMESTAMP NOT NULL,
due_time TIMESTAMP,
status_stage INT NOT NULL,
status_name CHAR(32) NOT NULL,
name VARCHAR(255) NOT NULL,
description TEXT NOT NULL,
estimated_time BIGINT NOT NULL,
estimated_units INT NOT NULL,
points_multiplier FLOAT NOT NULL,
INDEX (issue_id),
INDEX (activity_id)
);
-- +goose StatementEnd
-- +goose Down
-- +goose StatementBegin
DROP TABLE issue_task;
-- +goose StatementEnd