add issue item stuff.

This commit is contained in:
2020-05-17 22:49:07 +02:00
parent 51582210ca
commit e2c3b53d50
16 changed files with 477 additions and 9 deletions
@@ -0,0 +1,19 @@
-- +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