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.
19 lines
416 B
19 lines
416 B
-- +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
|