yys
maven
9 天以前 ee31e1c8f823d3d6cb8692689fa69bf457f3a99a
main-business/src/main/resources/db/migration/postgresql/V20250604111200__create_table_official_inventory.sql
@@ -12,10 +12,11 @@
    total_price_excluding_tax DECIMAL(10, 2) NOT NULL,           -- 不含税总价
    pending_replenishment     DECIMAL(10, 0),                    -- 待补库
    registrant_id             BIGINT         NOT NULL,           -- 登记人id
    type                      VARCHAR(50),                       -- 类型       1 采购/ 2 正式   入库
    type                      BIGINT,                            -- 煤料类型       1 成品/ 2 原料
    pending_id                BIGINT,                            -- 待入库id
    coal_plan_id               BIGINT,                                 -- 煤质方案id
    merge_id                  VARCHAR(255),                      -- 合并id
    code                  VARCHAR(255),                      -- 编号
    registration_date         TIMESTAMP WITHOUT TIME ZONE,
    deleted                   INT            NOT NULL DEFAULT 0, -- 软删除标志:0=未删除,1=已删除
@@ -34,9 +35,11 @@
COMMENT ON COLUMN official_inventory.coal_id IS '煤种id';
COMMENT ON COLUMN official_inventory.unit IS '单位';
COMMENT ON COLUMN official_inventory.inventory_quantity IS '库存数量';
COMMENT ON COLUMN official_inventory.code IS '编号';
COMMENT ON COLUMN official_inventory.price_including_tax IS '单价(含税)';
COMMENT ON COLUMN official_inventory.total_price_including_tax IS '总价(含税)';
COMMENT ON COLUMN official_inventory.pending_replenishment IS '待补库';
COMMENT ON COLUMN official_inventory.type IS '煤料类型       1 成品/ 2 原料';
COMMENT ON COLUMN official_inventory.registrant_id IS '登记人id';
COMMENT ON COLUMN official_inventory.registration_date IS '登记日期';
COMMENT ON COLUMN official_inventory.merge_id IS '合并id';