maven
11 小时以前 5eec9b5a9d8bf9e49663d5a51cab7490fef5b204
main-business/src/main/resources/db/migration/postgresql/V20250604104500__create_table_pending_inventory.sql
@@ -3,7 +3,6 @@
(
    id                        BIGSERIAL PRIMARY KEY,                  -- 主键ID
    supplier_name             VARCHAR(255)   NOT NULL,                -- 供货商名称
    coal                      VARCHAR(50)    NOT NULL,                -- 煤种
    unit                      VARCHAR(50)    NOT NULL,                -- 单位
    inventory_quantity        NUMERIC(10, 2) NOT NULL,                -- 库存数量
    price_including_tax       NUMERIC(10, 2) NOT NULL,                -- 单价(含税)
@@ -19,6 +18,7 @@
    master_id                 BIGINT,                                 -- 生产加工id
    purchase_id               BIGINT,                                 -- 采购id
    coal_plan_id               BIGINT,                                 -- 煤质方案id
    type               BIGINT,                                 -- 煤料类型 1-成品 2-原料
    deleted                   INTEGER      DEFAULT 0,                 -- 软删除标志,0=未删除,1=已删除
    create_by                 VARCHAR(255),                           -- 创建该记录的用户
@@ -33,12 +33,12 @@
-- 字段注释
COMMENT ON COLUMN pending_inventory.id IS '主键ID';
COMMENT ON COLUMN pending_inventory.supplier_name IS '供货商名称';
COMMENT ON COLUMN pending_inventory.coal IS '煤种';
COMMENT ON COLUMN pending_inventory.unit IS '单位';
COMMENT ON COLUMN pending_inventory.inventory_quantity IS '库存数量';
COMMENT ON COLUMN pending_inventory.price_including_tax IS '单价(含税)';
COMMENT ON COLUMN pending_inventory.total_price_including_tax IS '总价(含税)';
COMMENT ON COLUMN pending_inventory.registrant IS '登记人';
COMMENT ON COLUMN pending_inventory.type IS '煤料类型 1-成品 2-原料';
COMMENT ON COLUMN pending_inventory.registration_time IS '登记时间';
COMMENT ON COLUMN pending_inventory.price_excluding_tax IS '单价(不含税)';
COMMENT ON COLUMN pending_inventory.total_price_excluding_tax IS '总价(不含税)';