This commit is contained in:
2026-09-03 15:35:26 +08:00
parent 6eff5a4b9b
commit 36d35276b7
10 changed files with 307 additions and 123 deletions
@@ -301,6 +301,7 @@ CREATE TABLE IF NOT EXISTS fl_loading_plan_item (
KEY idx_loading_item_plan (loading_plan_id, deleted, load_sequence, id),
KEY idx_loading_item_account (account_id, created_at, id),
KEY idx_loading_item_inbound (account_id, inbound_id, deleted),
KEY idx_loading_item_candidate (account_id, inbound_id, inbound_detail_id, deleted),
KEY idx_loading_item_order (account_id, order_id, deleted),
CONSTRAINT fk_loading_item_plan FOREIGN KEY (loading_plan_id) REFERENCES fl_loading_plan (id),
CONSTRAINT chk_loading_item_account CHECK (account_id > 0),