add parsing sumpays
All checks were successful
Build and push image / deploy (push) Successful in 1m44s
All checks were successful
Build and push image / deploy (push) Successful in 1m44s
This commit is contained in:
21
migrations/20231226235948_digiseller_goods.sql
Normal file
21
migrations/20231226235948_digiseller_goods.sql
Normal 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
|
Reference in New Issue
Block a user