2020-04-02 16:14:07 +02:00
|
|
|
CREATE TABLE issues (
|
|
|
|
id serial primary key not null,
|
|
|
|
title text not null,
|
2023-04-01 22:31:57 +02:00
|
|
|
issue_type "IssueTypeMapping" NOT NULL DEFAULT 'task',
|
|
|
|
status "IssueStatusMapping" NOT NULL DEFAULT 'backlog',
|
|
|
|
priority "IssuePriorityMapping" NOT NULL DEFAULT 'low',
|
2020-04-02 16:14:07 +02:00
|
|
|
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()
|
|
|
|
);
|