From bb5bf872de5e67d7b406e3a305c9dfcbd0f218a6 Mon Sep 17 00:00:00 2001 From: liding <756868258@qq.com> Date: 星期四, 26 六月 2025 18:03:55 +0800 Subject: [PATCH] 采购,正式库优化 --- main-business/src/main/resources/db/migration/postgresql/V20250604104500__create_table_pending_inventory.sql | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/main-business/src/main/resources/db/migration/postgresql/V20250604104500__create_table_pending_inventory.sql b/main-business/src/main/resources/db/migration/postgresql/V20250604104500__create_table_pending_inventory.sql index f686498..83e436d 100644 --- a/main-business/src/main/resources/db/migration/postgresql/V20250604104500__create_table_pending_inventory.sql +++ b/main-business/src/main/resources/db/migration/postgresql/V20250604104500__create_table_pending_inventory.sql @@ -12,11 +12,13 @@ registration_time TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP, -- 鐧昏鏃堕棿 price_excluding_tax VARCHAR(255), -- 鍗曚环锛堜笉鍚◣锛� total_price_excluding_tax VARCHAR(255), -- 鎬讳环锛堜笉鍚◣锛� - registrant_id VARCHAR(32), -- 鐧昏浜篒D + registrant_id BIGINT, -- 鐧昏浜篒D registration_date DATE, -- 鐧昏鏃ユ湡 supplier_id BIGINT, -- 渚涜揣鍟咺D coal_id BIGINT, -- 鐓ょID master_id BIGINT, -- 鐢熶骇鍔犲伐id + purchase_id BIGINT, -- 閲囪喘id + coal_plan_id BIGINT, -- 鐓よ川鏂规id deleted INTEGER DEFAULT 0, -- 杞垹闄ゆ爣蹇楋紝0=鏈垹闄わ紝1=宸插垹闄� create_by VARCHAR(255), -- 鍒涘缓璇ヨ褰曠殑鐢ㄦ埛 @@ -45,6 +47,8 @@ COMMENT ON COLUMN pending_inventory.supplier_id IS '渚涜揣鍟咺D'; COMMENT ON COLUMN pending_inventory.coal_id IS '鐓ょID'; COMMENT ON COLUMN pending_inventory.master_id IS '鐢熶骇鍔犲伐id'; +COMMENT ON COLUMN pending_inventory.purchase_id IS '閲囪喘id'; +COMMENT ON COLUMN pending_inventory.coal_plan_id IS '鐓よ川鏂规id'; COMMENT ON COLUMN pending_inventory.deleted IS '杞垹闄ゆ爣蹇楋紝0=鏈垹闄わ紝1=宸插垹闄�'; COMMENT ON COLUMN pending_inventory.create_by IS '鍒涘缓璇ヨ褰曠殑鐢ㄦ埛'; -- Gitblit v1.9.3