add parsing sumpays
All checks were successful
Build and push image / deploy (push) Successful in 1m44s

This commit is contained in:
2023-12-27 00:15:55 +03:00
parent c60045c47b
commit 3bbc6a0baa
9 changed files with 308 additions and 42 deletions

View File

@ -0,0 +1,21 @@
-- +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