add issue item stuff.
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user