-- +goose Up
-- +goose StatementBegin
CREATE TABLE digi_goods (
    id VARCHAR NOT NULL PRIMARY KEY,
    id_goods INTEGER NOT NULL,
    name VARCHAR NOT NULL DEFAULT '',
    id_section INTEGER NOT NULL,
    seller_id INTEGER NOT NULL DEFAULT 0,
    sellerrating DECIMAL(15, 2) NOT NULL DEFAULT 0,
    sold INTEGER NOT NULL DEFAULT 0,
    returned INTEGER NOT NULL DEFAULT 0,
    price DECIMAL(15, 2) NOT NULL DEFAULT 0,
    sumpay DECIMAL(15, 2) NOT NULL DEFAULT 0,
    created_at TIMESTAMPTZ NOT NULL DEFAULT NOW()
);
-- +goose StatementEnd

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