| | |
| | | add assigned_quantity DECIMAL(10, 4) default 0 not null COMMENT '涓嬪彂鏁伴噺'; |
| | | |
| | | alter table product_order |
| | | add plan_complete_time datetime(0) NULL DEFAULT NULL COMMENT '璁″垝瀹屾垚鏃堕棿', |
| | | add combine_production_plan_ids varchar(500) default '' not null; |
| | | add plan_complete_time datetime(0) NULL DEFAULT NULL COMMENT '璁″垝瀹屾垚鏃堕棿'; |
| | | |
| | | # 鐢熶骇璁㈠崟涓庣敓浜ц鍒掑叧鑱旇〃 |
| | | drop table if exists product_order_plan; |
| | | create table product_order_plan |
| | | ( |
| | | id bigint auto_increment primary key, |
| | | product_order_id bigint not null default 0 comment '鐢熶骇璁㈠崟id', |
| | | production_plan_id bigint not null default 0 comment '鐢熶骇璁″垝id', |
| | | create_time datetime null comment '褰曞叆鏃堕棿', |
| | | update_time datetime null comment '鏇存柊鏃堕棿', |
| | | index idx_product_order_id (product_order_id), |
| | | index idx_production_plan_id (production_plan_id), |
| | | unique idx_product_order_production_plan (product_order_id, production_plan_id) |
| | | ); |