-- +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
