-- auto-generated definition create table lms_sub_package_relation ( id bigint not null comment '子卷包装标识' primary key, package_box_sn varchar(50) null comment '木箱唯一码', quality_in_box decimal(5) null comment '箱内子卷数量', box_weight decimal(18, 6) null comment '木箱自身重量', quality_guaran_period varchar(20) null comment '保质期', sale_order_name varchar(20) not null comment '销售订单及行号', customer_name varchar(50) not null comment '客户编号', customer_description varchar(50) not null comment '客户名称', product_name varchar(20) not null comment '产品编码', product_description varchar(50) not null comment '产品描述', date_of_FG_inbound char(10) null comment '入库日期', container_name varchar(30) not null comment '子卷号', width varchar(20) not null comment '产品规格(幅宽)', thickness varchar(20) null comment '产品厚度', mass_per_unit_area decimal(18, 6) null comment '单位面积质量', net_weight decimal(18, 6) not null comment '净重', length decimal(18, 6) not null comment '长度', date_of_production char(10) null comment '制造完成日期', is_un_plan_production char default '0' not null comment '计划外分切的子卷', un_plan_product_property1 varchar(2000) null comment '子卷的物性值1', un_plan_product_property2 varchar(2000) null comment '子卷的物性值2', un_plan_product_property3 varchar(2000) null comment '子卷的物性值3', remark varchar(1000) null comment '备注', status varchar(2) default '0' not null comment '状态', is_reprint_box_label tinyint null comment '是否需要重打外包装标签', is_unpack_box tinyint null comment '是否需要拆包重打子卷标签', box_type varchar(50) null comment '木箱料号', sap_pcsn varchar(20) not null comment 'SAP批次', vbeln varchar(50) null comment '交货单号', posnr varchar(50) null comment '交货单行号', box_length varchar(50) null comment '木箱长度', box_width varchar(50) null comment '木箱宽度', box_high varchar(50) null comment '木箱高度', sale_order_description varchar(1000) null comment '销售订单描述', width_standard varchar(20) null comment '客户要求规格幅宽', thickness_request varchar(20) null comment '物料标准厚度', real_weight decimal(18, 6) null comment '实际木箱自身重量', sub_type char null comment '包装关系类型', demand_limit varchar(50) null comment '客户需求抗拉下限', standard_limit varchar(50) null comment '内控标准抗拉下限', actual_value varchar(50) null comment '生产实际抗拉值', need_delete char(2) null comment '解绑删除标识', ext_code varchar(10) default 'AC01' not null comment '储存地点', box_group varchar(20) default '0' null comment '木箱组', material_type varchar(10) null comment '物料类型', joint_type bigint unsigned default '0' null comment '接头数', is_pass tinyint default 1 not null comment '是否放行', creator varchar(64) default '' null comment '创建者', create_time datetime default CURRENT_TIMESTAMP not null comment '创建时间', updater varchar(64) default '' null comment '更新者', update_time datetime default CURRENT_TIMESTAMP not null on update CURRENT_TIMESTAMP comment '更新时间' ) comment '子卷包装关系表' collate = utf8_bin; create index boxType on lms_sub_package_relation (box_type); create index containerName on lms_sub_package_relation (container_name); create index customer_name on lms_sub_package_relation (customer_name); create index packageSn on lms_sub_package_relation (package_box_sn); create index sapPcsn on lms_sub_package_relation (sap_pcsn);