-- +goose Up
-- +goose StatementBegin
CREATE TABLE goods (
    id VARCHAR NOT NULL PRIMARY KEY,
    name VARCHAR NOT NULL DEFAULT '',
    id_c INTEGER NOT NULL,
    id_r INTEGER NOT NULL,
    goodlink VARCHAR NOT NULL DEFAULT '',
    seller VARCHAR NOT NULL DEFAULT '',
    sellerlink VARCHAR NOT NULL DEFAULT '',
    sellerrating INTEGER NOT NULL DEFAULT 0,
    sold INTEGER NOT NULL DEFAULT 0,
    price DECIMAL(15, 2) NOT NULL DEFAULT 0,
    created_at TIMESTAMPTZ NOT NULL DEFAULT NOW()
);
-- +goose StatementEnd

-- +goose Down
-- +goose StatementBegin
DROP TABLE goods;
-- +goose StatementEnd
