Files
server/migrations/mysql/20200517111706_create_table_issue_item.sql
T
2020-05-24 16:30:25 +02:00

20 lines
416 B
SQL

-- +goose Up
-- +goose StatementBegin
CREATE TABLE issue_item (
issue_item_id CHAR(48) NOT NULL PRIMARY KEY,
issue_id CHAR(32) NOT NULL,
item_id CHAR(32) NOT NULL,
quantity INTEGER NOT NULL,
acquired BOOLEAN NOT NULL,
INDEX (acquired),
INDEX (issue_id),
INDEX (item_id)
);
-- +goose StatementEnd
-- +goose Down
-- +goose StatementBegin
DROP TABLE issue_item;
-- +goose StatementEnd