liding
3 天以前 f6f57ba70679a0b050031f3cdf81b5bf5d4cbd60
main-business/src/main/resources/db/migration/postgresql/V20250611160300__create_table_sales_record.sql
@@ -5,7 +5,7 @@
    sale_date           DATE           NOT NULL,          -- 销售日期
    customer_id         BIGINT,                           -- 客户id
    customer            VARCHAR(255)   NOT NULL,          -- 客户
    coal_id             VARCHAR(255)   NOT NULL,          -- 煤种 id
    coal_id             BIGINT   NOT NULL,          -- 煤种 id
    price_including_tax DECIMAL(10, 2) NOT NULL,          -- 单价(含税)
    inventory_quantity  DECIMAL(10, 0) NOT NULL,          -- 库存数量
    unit                VARCHAR(100)   NOT NULL,          -- 单位
@@ -18,8 +18,8 @@
    gross_profit        DECIMAL(10, 2),                   -- 毛利润
    net_profit          DECIMAL(10, 2),                   -- 净利润
    registrant_id       BIGINT,                           -- 登记人id
    registrant          VARCHAR(255)   NOT NULL,          -- 登记人
    registration_date   DATE           NOT NULL,          -- 登记日期
    registrant          VARCHAR(255)   ,          -- 登记人
    registration_date   DATE           ,          -- 登记日期
    create_time         TIMESTAMP WITHOUT TIME ZONE,          -- 上传时间,默认当前时间
    update_time         TIMESTAMP WITHOUT TIME ZONE,          -- 最后更新时间,默认当前时间