bitque/migrations/2020-03-25-150008_create_issues/up.sql

18 lines
645 B
MySQL
Raw Normal View History

2020-04-02 16:14:07 +02:00
CREATE TABLE issues (
id serial primary key not null,
title text not null,
issue_type "IssueTypeType" NOT NULL DEFAULT 'task',
status "IssueStatusType" NOT NULL DEFAULT 'backlog',
priority "IssuePriorityType" NOT NULL DEFAULT 'low',
list_position double precision not null default 0,
description text,
description_text text,
estimate integer,
time_spent integer,
time_remaining integer,
reporter_id integer not null references users (id),
project_id integer not null references projects (id),
created_at timestamp not null default now(),
updated_at timestamp not null default now()
);