You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
793 B
30 lines
793 B
-- +goose Up
|
|
-- +goose StatementBegin
|
|
CREATE TABLE issue (
|
|
issue_id CHAR(32) NOT NULL PRIMARY KEY,
|
|
project_id CHAR(16) NOT NULL,
|
|
owner_id CHAR(32) NOT NULL,
|
|
assignee_id CHAR(32) NOT NULL,
|
|
status_stage INTEGER NOT NULL,
|
|
status_name CHAR(32) NOT NULL,
|
|
created_time TIMESTAMP NOT NULL,
|
|
updated_time TIMESTAMP NOT NULL,
|
|
due_time TIMESTAMP NOT NULL,
|
|
name VARCHAR(255) NOT NULL,
|
|
title VARCHAR(255) NOT NULL,
|
|
description TEXT NOT NULL,
|
|
|
|
FULLTEXT(name, title, description),
|
|
INDEX(owner_id),
|
|
INDEX(assignee_id),
|
|
INDEX(project_id, status_stage, status_name),
|
|
INDEX(project_id),
|
|
INDEX(created_time),
|
|
INDEX(updated_time)
|
|
);
|
|
-- +goose StatementEnd
|
|
|
|
-- +goose Down
|
|
-- +goose StatementBegin
|
|
DROP TABLE issue;
|
|
-- +goose StatementEnd
|