{ "mdm_item": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "物料编号" }, { "Field": "code", "Type": "varchar(50)", "Collation": "utf8mb4_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "物料编码" }, { "Field": "name", "Type": "varchar(200)", "Collation": "utf8mb4_unicode_ci", "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "物料名称" }, { "Field": "bar_code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "物料条码" }, { "Field": "specification", "Type": "varchar(200)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "规格型号" }, { "Field": "category_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "物料分类编号" }, { "Field": "unit_measure_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "计量单位编号" }, { "Field": "unit_measure_id2", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "辅单位1编号" }, { "Field": "unit_measure_rate1", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "辅单位1换算比率" }, { "Field": "unit_measure_id3", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "辅单位2编号" }, { "Field": "unit_measure_rate2", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "辅单位2换算比率" }, { "Field": "warehouse_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "默认仓库编号" }, { "Field": "warehouse_code", "Type": "varchar(50)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "默认仓库编码" }, { "Field": "brand_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "品牌编号" }, { "Field": "item_type", "Type": "tinyint", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "物料类型(1:物料 2:产品 3:半成品)" }, { "Field": "status", "Type": "tinyint", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "状态(0正常 1停用)" }, { "Field": "purchase_price", "Type": "decimal(24,2)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "采购价" }, { "Field": "sales_price", "Type": "decimal(24,2)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "销售价" }, { "Field": "cost_price", "Type": "decimal(24,2)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "成本价" }, { "Field": "min_price", "Type": "decimal(24,2)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "最低价" }, { "Field": "safety_stock", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "安全库存" }, { "Field": "min_stock", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "最低库存量" }, { "Field": "max_stock", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "最高库存量" }, { "Field": "min_order_qty", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "最小订货量" }, { "Field": "lead_time", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "采购提前期(天)" }, { "Field": "is_batch_managed", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否批次管理" }, { "Field": "is_serial_managed", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否序列号管理" }, { "Field": "barcode_rule_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "条码规则ID" }, { "Field": "expiry_day", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "保质期天数" }, { "Field": "high_value", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否高值物料" }, { "Field": "weight", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "重量(kg)" }, { "Field": "remark", "Type": "varchar(500)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "mdm_unit_measure": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "单位编号" }, { "Field": "code", "Type": "varchar(50)", "Collation": "utf8mb4_unicode_ci", "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "单位编码" }, { "Field": "name", "Type": "varchar(50)", "Collation": "utf8mb4_unicode_ci", "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "单位名称" }, { "Field": "primary_flag", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否主单位" }, { "Field": "primary_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "主单位编号" }, { "Field": "change_rate", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": "1.000000", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "与主单位换算比例" }, { "Field": "status", "Type": "tinyint", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "状态(0正常 1停用)" }, { "Field": "remark", "Type": "varchar(500)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "mes_md_item": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "mdm_item_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "MDM 物料 ID" }, { "Field": "code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "物料编码" }, { "Field": "name", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "物料名称" }, { "Field": "specification", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "规格型号" }, { "Field": "unit_measure_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "计量单位编号" }, { "Field": "item_type_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "物料分类编号" }, { "Field": "status", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "状态" }, { "Field": "safe_stock_flag", "Type": "bit(1)", "Collation": null, "Null": "YES", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否启用安全库存" }, { "Field": "min_stock", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "最低库存量" }, { "Field": "max_stock", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "最高库存量" }, { "Field": "high_value", "Type": "bit(1)", "Collation": null, "Null": "YES", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否高值物料" }, { "Field": "batch_flag", "Type": "bit(1)", "Collation": null, "Null": "YES", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否启用批次管理" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "mes_md_unit_measure": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "单位编码" }, { "Field": "name", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "单位名称" }, { "Field": "primary_flag", "Type": "bit(1)", "Collation": null, "Null": "YES", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否主单位" }, { "Field": "primary_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "主单位编号" }, { "Field": "change_rate", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "与主单位换算比例" }, { "Field": "status", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "状态" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "mes_pro_route": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工艺路线编码" }, { "Field": "name", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工艺路线名称" }, { "Field": "description", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工艺路线说明" }, { "Field": "status", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "状态" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "mes_pro_route_product": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "route_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工艺路线编号" }, { "Field": "item_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "产品物料编号" }, { "Field": "quantity", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "生产数量" }, { "Field": "production_time", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "生产用时" }, { "Field": "time_unit_type", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "时间单位" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "mes_pro_route_process": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "route_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工艺路线编号" }, { "Field": "process_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工序编号" }, { "Field": "param_template_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工艺参数模板编号" }, { "Field": "yield_rate", "Type": "decimal(10,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工序收率(产出/投入,0~1)" }, { "Field": "sort", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "序号" }, { "Field": "next_process_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "下一道工序编号" }, { "Field": "link_type", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "与下一道工序关系" }, { "Field": "prepare_time", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "准备时间(分钟)" }, { "Field": "wait_time", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "等待时间(分钟)" }, { "Field": "color_code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "甘特图显示颜色" }, { "Field": "key_flag", "Type": "bit(1)", "Collation": null, "Null": "YES", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否关键工序" }, { "Field": "check_flag", "Type": "bit(1)", "Collation": null, "Null": "YES", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否质检工序" }, { "Field": "backflush_flag", "Type": "bit(1)", "Collation": null, "Null": "YES", "Key": "", "Default": "b'1'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否倒冲" }, { "Field": "output_item_id", "Type": "varchar(500)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "产出产品物料编号,多个用逗号分隔" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "mes_md_product_bom": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "item_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "物料产品编号" }, { "Field": "bom_item_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "BOM物料编号" }, { "Field": "quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "物料使用比例" }, { "Field": "status", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否启用" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "mes_pro_route_product_bom": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "route_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工艺路线编号" }, { "Field": "process_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工序编号" }, { "Field": "product_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "产品物料编号" }, { "Field": "item_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "BOM 物料编号" }, { "Field": "quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "用料比例" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "mes_md_workstation": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工作站编码" }, { "Field": "name", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工作站名称" }, { "Field": "address", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工作站地点" }, { "Field": "workshop_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "所在车间编号" }, { "Field": "process_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工序编号" }, { "Field": "warehouse_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "线边库编号" }, { "Field": "location_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "库区编号" }, { "Field": "area_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "库位编号" }, { "Field": "status", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "状态" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "mes_md_workstation_machine": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "workstation_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工作站编号" }, { "Field": "machinery_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "设备编号" }, { "Field": "quantity", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "数量" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "mes_dv_machinery": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "设备编码" }, { "Field": "name", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "设备名称" }, { "Field": "brand", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "品牌" }, { "Field": "specification", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "规格型号" }, { "Field": "machinery_type_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "设备类型编号" }, { "Field": "workshop_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "所属车间编号" }, { "Field": "status", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "设备状态" }, { "Field": "last_mainten_time", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "最近保养时间" }, { "Field": "last_check_time", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "最近点检时间" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" }, { "Field": "production_efficiency", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "生产效率(每分钟)" }, { "Field": "conveyor_belt", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "传送履带(2=双倍效率)" }, { "Field": "workstation_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工作站编号" } ], "mes_pd_process_param_template": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "template_code", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "模板编码" }, { "Field": "template_name", "Type": "varchar(255)", "Collation": "utf8mb4_0900_ai_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "模板名称" }, { "Field": "template_type", "Type": "tinyint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "模板类型(字典 mes_pd_process_param_template_type)" }, { "Field": "remark", "Type": "varchar(500)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" }, { "Field": "tenant_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "租户编号" } ], "mes_pd_process_param_template_detail": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "template_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "模板ID(关联 mes_pd_process_param_template)" }, { "Field": "process_param_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工艺参数ID(仅作溯源,不影响快照值)" }, { "Field": "param_code", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "参数编码(快照)" }, { "Field": "param_name", "Type": "varchar(255)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "参数名称(快照)" }, { "Field": "param_type", "Type": "tinyint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "参数类型(快照)" }, { "Field": "unit_measure_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "计量单位ID(快照)" }, { "Field": "required", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否必填(快照)" }, { "Field": "remark", "Type": "varchar(500)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注(快照)" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" }, { "Field": "tenant_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "租户编号" } ], "mes_cal_holiday": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "day", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "日期" }, { "Field": "type", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "日期类型" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "crm_customer": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "name", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "客户名称" }, { "Field": "follow_up_status", "Type": "tinyint(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "跟进状态" }, { "Field": "contact_last_time", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "最后跟进时间" }, { "Field": "contact_last_content", "Type": "varchar(500)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "最后跟进内容" }, { "Field": "contact_next_time", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "下次联系时间" }, { "Field": "owner_user_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "负责人的用户编号" }, { "Field": "owner_time", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "成为负责人的时间" }, { "Field": "lock_status", "Type": "tinyint(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "锁定状态" }, { "Field": "deal_status", "Type": "tinyint(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "成交状态" }, { "Field": "auto_pool_enabled", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'1'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否流入公海:关闭后禁止自动流入并取消公海可见度" }, { "Field": "mobile", "Type": "varchar(20)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "手机" }, { "Field": "telephone", "Type": "varchar(20)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "电话" }, { "Field": "qq", "Type": "varchar(20)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "QQ" }, { "Field": "wechat", "Type": "varchar(50)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "微信" }, { "Field": "email", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "邮箱" }, { "Field": "area_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "所在地" }, { "Field": "detail_address", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "详细地址" }, { "Field": "industry_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "所属行业" }, { "Field": "level", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "客户等级" }, { "Field": "source", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "客户来源" }, { "Field": "remark", "Type": "varchar(500)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "最后更新时间" }, { "Field": "deleted", "Type": "tinyint(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "crm_business": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "name", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "商机名称" }, { "Field": "customer_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "客户编号" }, { "Field": "follow_up_status", "Type": "tinyint(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "跟进状态" }, { "Field": "contact_last_time", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "最后跟进时间" }, { "Field": "contact_next_time", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "下次联系时间" }, { "Field": "owner_user_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "负责人的用户编号" }, { "Field": "status_type_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "商机状态组编号" }, { "Field": "status_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "商机状态编号" }, { "Field": "end_status", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "结束状态" }, { "Field": "end_remark", "Type": "varchar(500)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "结束时的备注" }, { "Field": "deal_time", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "预计成交日期" }, { "Field": "total_product_price", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "产品总金额,单位:元" }, { "Field": "discount_percent", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "整单折扣,百分比" }, { "Field": "total_price", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "商机总金额,单位:元" }, { "Field": "order_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "关联 ERP 销售订单编号" }, { "Field": "order_no", "Type": "varchar(32)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "ERP 销售订单单号" }, { "Field": "remark", "Type": "varchar(500)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "最后更新时间" }, { "Field": "deleted", "Type": "tinyint(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "crm_sale_quotation": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "no", "Type": "varchar(32)", "Collation": "utf8mb4_0900_ai_ci", "Null": "NO", "Key": "UNI", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "报价单号" }, { "Field": "name", "Type": "varchar(128)", "Collation": "utf8mb4_0900_ai_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "报价单名称" }, { "Field": "customer_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "客户编号" }, { "Field": "business_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "商机编号" }, { "Field": "contact_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "联系人编号" }, { "Field": "owner_user_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "负责人编号" }, { "Field": "status", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "状态(0草稿 10审批中 20已通过 30已拒绝 40已取消 50已转合同)" }, { "Field": "process_instance_id", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工作流编号" }, { "Field": "quotation_time", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "报价日期" }, { "Field": "valid_until", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "有效期至" }, { "Field": "total_product_price", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "产品总金额" }, { "Field": "discount_percent", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.00", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "整单折扣(%)" }, { "Field": "discount_price", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.000000", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "优惠金额" }, { "Field": "total_price", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "报价总金额" }, { "Field": "tax_rate", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "税率(%)" }, { "Field": "tax_price", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "税额" }, { "Field": "contract_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "关联合同编号" }, { "Field": "contract_no", "Type": "varchar(32)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "关联合同单号" }, { "Field": "remark", "Type": "varchar(1024)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" }, { "Field": "tenant_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "租户编号" } ], "crm_sale_quotation_product": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "quotation_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "报价单编号" }, { "Field": "item_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "MDM物料编号" }, { "Field": "item_unit_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "计量单位编号" }, { "Field": "item_price", "Type": "decimal(24,6)", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "物料原价(冗余)" }, { "Field": "quotation_price", "Type": "decimal(24,6)", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "报价单价" }, { "Field": "count", "Type": "decimal(24,6)", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "数量" }, { "Field": "total_price", "Type": "decimal(24,6)", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "小计金额" }, { "Field": "tax_percent", "Type": "decimal(10,2)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "税率(%)" }, { "Field": "tax_price", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "税额" }, { "Field": "remark", "Type": "varchar(256)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" }, { "Field": "tenant_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "租户编号" } ], "crm_contract": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "合同编号" }, { "Field": "name", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "合同名称" }, { "Field": "no", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "合同编号" }, { "Field": "customer_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "客户编号" }, { "Field": "business_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "商机编号" }, { "Field": "contact_last_time", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "最后跟进时间" }, { "Field": "owner_user_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "负责人的用户编号" }, { "Field": "process_instance_id", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工作流编号" }, { "Field": "audit_status", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "审批状态" }, { "Field": "order_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "下单日期" }, { "Field": "start_time", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "开始时间" }, { "Field": "end_time", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "结束时间" }, { "Field": "total_product_price", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "产品总金额,单位:元" }, { "Field": "discount_percent", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "整单折扣" }, { "Field": "total_price", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "合同总金额,单位:分" }, { "Field": "deposit_price", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "定金金额,单位:元" }, { "Field": "order_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "关联 ERP 销售订单编号" }, { "Field": "order_no", "Type": "varchar(32)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "ERP 销售订单单号" }, { "Field": "sign_contact_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "客户签约人" }, { "Field": "sign_user_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "公司签约人" }, { "Field": "remark", "Type": "varchar(500)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "最后更新时间" }, { "Field": "deleted", "Type": "tinyint(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "crm_contract_product": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "主键" }, { "Field": "contract_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "合同编号" }, { "Field": "item_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "MDM物料编号" }, { "Field": "item_unit_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "计量单位编号" }, { "Field": "item_price", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "物料原价(冗余)" }, { "Field": "contract_price", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "合同价格,单位:元" }, { "Field": "count", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "数量" }, { "Field": "total_price", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "总计价格,单位:元" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "最后更新时间" }, { "Field": "deleted", "Type": "tinyint(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "crm_receivable_plan": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "period", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "期数" }, { "Field": "customer_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "客户编号" }, { "Field": "contract_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "合同编号" }, { "Field": "owner_user_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "负责人编号" }, { "Field": "return_time", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "计划回款日期" }, { "Field": "return_type", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "计划回款类型" }, { "Field": "price", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "计划回款金额,单位:元" }, { "Field": "receivable_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "回款编号" }, { "Field": "remind_days", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "提前几天提醒" }, { "Field": "remind_time", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "提醒日期" }, { "Field": "remark", "Type": "varchar(500)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "最后更新时间" }, { "Field": "deleted", "Type": "tinyint(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "crm_receivable": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "ID" }, { "Field": "no", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "回款编号" }, { "Field": "plan_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "回款计划编号" }, { "Field": "customer_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "客户编号" }, { "Field": "contract_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "合同编号" }, { "Field": "invoice_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "关联的开票编号,关联 crm_invoice.id" }, { "Field": "owner_user_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "负责人编号" }, { "Field": "return_time", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "回款日期" }, { "Field": "return_type", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "回款方式" }, { "Field": "price", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "计划回款金额,单位:元" }, { "Field": "remark", "Type": "varchar(500)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "process_instance_id", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工作流编号" }, { "Field": "audit_status", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "审批状态" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "最后更新时间" }, { "Field": "deleted", "Type": "tinyint(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "crm_permission": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号,主键自增" }, { "Field": "biz_type", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "数据类型" }, { "Field": "biz_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "数据编号" }, { "Field": "user_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "用户编号" }, { "Field": "level", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "权限级别" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "最后更新时间" }, { "Field": "deleted", "Type": "tinyint(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "erp_sale_order": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "no", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "销售订单号" }, { "Field": "status", "Type": "int", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "销售状态" }, { "Field": "customer_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "客户编号" }, { "Field": "contract_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "关联 CRM 合同编号" }, { "Field": "contract_no", "Type": "varchar(32)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "CRM 合同单号" }, { "Field": "account_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "结算账户编号" }, { "Field": "sale_user_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "销售员编号" }, { "Field": "order_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "下单时间" }, { "Field": "total_count", "Type": "decimal(24,6)", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "合计数量" }, { "Field": "total_price", "Type": "decimal(24,6)", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "最终合计价格,单位:元" }, { "Field": "total_product_price", "Type": "decimal(24,6)", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "合计产品价格,单位:元" }, { "Field": "total_tax_price", "Type": "decimal(24,6)", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "合计税额,单位:元" }, { "Field": "discount_percent", "Type": "decimal(24,6)", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "优惠率,百分比" }, { "Field": "discount_price", "Type": "decimal(24,6)", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "优惠金额,单位:元" }, { "Field": "deposit_price", "Type": "decimal(24,6)", "Collation": null, "Null": "NO", "Key": "", "Default": "0.000000", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "定金金额,单位:元" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "process_instance_id", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "BPM 流程实例编号" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" }, { "Field": "out_count", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.000000", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "销售出库数量" }, { "Field": "out_status", "Type": "tinyint", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "出库状态(0:未出库 1:部分出库 2:全部入库)" }, { "Field": "production_status", "Type": "tinyint", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "生产状态:0-未完成,1-已完成" }, { "Field": "production_finish_time", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "生产完成时间" } ], "erp_sale_order_items": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "order_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "销售订单编号" }, { "Field": "product_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "产品编号" }, { "Field": "product_unit_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "产品单位编号" }, { "Field": "product_price", "Type": "decimal(24,6)", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "产品单位单价,单位:元" }, { "Field": "count", "Type": "decimal(24,6)", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "数量" }, { "Field": "total_price", "Type": "decimal(24,6)", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "总价,单位:元" }, { "Field": "tax_percent", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "税率,百分比" }, { "Field": "tax_price", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "税额,单位:元" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" }, { "Field": "out_count", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.000000", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "销售出库数量" }, { "Field": "need_production", "Type": "tinyint", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否需要生产(0=否 1=是)" }, { "Field": "mps_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "关联的MPS编号" } ], "mes_pro_mps": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "code", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "MPS 编码" }, { "Field": "status", "Type": "tinyint", "Collation": null, "Null": "NO", "Key": "MUL", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "状态(0=草稿 1=已下发 2=已完成 3=已取消)" }, { "Field": "sale_order_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "销售订单ID" }, { "Field": "sale_order_no", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "销售订单号" }, { "Field": "sale_order_item_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "销售订单明细ID" }, { "Field": "product_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "产品编号" }, { "Field": "quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "计划生产数量" }, { "Field": "quantity_produced", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": "0.000000", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "已生产数量" }, { "Field": "unit_measure_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "计量单位ID" }, { "Field": "client_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "客户编号" }, { "Field": "request_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "需求日期" }, { "Field": "issue_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "下发日期" }, { "Field": "finish_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "完成日期" }, { "Field": "work_order_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "生产工单ID" }, { "Field": "work_order_code", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "生产工单编码" }, { "Field": "merge_flag", "Type": "tinyint", "Collation": null, "Null": "YES", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否合并下发(0=否 1=是)" }, { "Field": "merge_batch_no", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "合并批次号" }, { "Field": "remark", "Type": "varchar(500)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" }, { "Field": "tenant_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "", "Default": "0", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "租户编号" } ], "mes_pro_work_order": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工单编码" }, { "Field": "name", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工单名称" }, { "Field": "type", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工单类型" }, { "Field": "order_source_type", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "来源类型" }, { "Field": "order_source_code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "来源单据编号" }, { "Field": "product_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "产品编号" }, { "Field": "quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "生产数量" }, { "Field": "quantity_produced", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "已生产数量" }, { "Field": "quantity_changed", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "调整数量" }, { "Field": "quantity_scheduled", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "已排产数量" }, { "Field": "client_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "客户编号" }, { "Field": "vendor_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "供应商编号" }, { "Field": "batch_code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "批次号" }, { "Field": "route_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工艺路线编号" }, { "Field": "auto_finish_flag", "Type": "tinyint(1)", "Collation": null, "Null": "YES", "Key": "", "Default": "1", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否自动完成" }, { "Field": "request_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "需求日期" }, { "Field": "parent_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "父工单编号" }, { "Field": "finish_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "完成时间" }, { "Field": "cancel_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "取消时间" }, { "Field": "status", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工单状态" }, { "Field": "process_instance_id", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "BPM 流程实例编号" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" }, { "Field": "is_feedback_approve", "Type": "tinyint(1)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否开启报工审批 (1: 开启, 0/NULL: 关闭)" }, { "Field": "process_definition_key", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "BPM 流程定义 Key" }, { "Field": "feedback_role", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "报工角色 (多个角色以逗号分隔)" } ], "mes_pro_work_order_process": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "work_order_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "生产工单编号" }, { "Field": "process_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工序编号" }, { "Field": "param_template_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工艺参数模板编号" }, { "Field": "yield_rate", "Type": "decimal(10,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工序收率(产出/投入,0~1)" }, { "Field": "sort", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "序号" }, { "Field": "next_process_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "下一道工序编号" }, { "Field": "link_type", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "与下一道工序关系" }, { "Field": "prepare_time", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "准备时间(分钟)" }, { "Field": "wait_time", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "等待时间(分钟)" }, { "Field": "color_code", "Type": "varchar(255)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "甘特图显示颜色" }, { "Field": "key_flag", "Type": "bit(1)", "Collation": null, "Null": "YES", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否关键工序" }, { "Field": "check_flag", "Type": "bit(1)", "Collation": null, "Null": "YES", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否质检工序" }, { "Field": "backflush_flag", "Type": "bit(1)", "Collation": null, "Null": "YES", "Key": "", "Default": "b'1'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否倒冲" }, { "Field": "output_item_id", "Type": "varchar(500)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "产出产品物料编号,多个用逗号分隔" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "mes_pro_work_order_bom": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "work_order_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "生产工单编号" }, { "Field": "process_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工序编号" }, { "Field": "item_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "BOM 物料编号" }, { "Field": "quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "预计使用量" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "mes_pro_task": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "任务编码" }, { "Field": "name", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "任务名称" }, { "Field": "work_order_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "生产工单编号" }, { "Field": "workstation_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工作站编号" }, { "Field": "route_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工艺路线编号" }, { "Field": "process_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工序编号" }, { "Field": "param_template_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工艺参数模板编号" }, { "Field": "item_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "产品物料编号" }, { "Field": "quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "排产数量" }, { "Field": "produced_quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "已生产数量" }, { "Field": "qualify_quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "合格品数量" }, { "Field": "unqualify_quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "不良品数量" }, { "Field": "changed_quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "调整数量" }, { "Field": "client_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "客户编号" }, { "Field": "start_time", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "开始生产时间" }, { "Field": "duration", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "生产时长" }, { "Field": "end_time", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "结束生产时间" }, { "Field": "color_code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "甘特图显示颜色" }, { "Field": "finish_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "完成日期" }, { "Field": "cancel_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "取消日期" }, { "Field": "first_feedback_time", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "首次报工时间" }, { "Field": "last_feedback_time", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "最近报工时间" }, { "Field": "status", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "任务状态" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "mes_pro_feedback": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "报工单编号" }, { "Field": "type", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "报工类型" }, { "Field": "channel", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "报工途径" }, { "Field": "feedback_time", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "报工时间" }, { "Field": "workstation_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工作站编号" }, { "Field": "route_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工艺路线编号" }, { "Field": "process_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工序编号" }, { "Field": "work_order_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "生产工单编号" }, { "Field": "task_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "生产任务编号" }, { "Field": "item_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "产品物料编号" }, { "Field": "expire_date", "Type": "datetime", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "过期日期" }, { "Field": "lot_number", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "生产批号" }, { "Field": "scheduled_quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "排产数量" }, { "Field": "feedback_quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "本次报工数量" }, { "Field": "qualified_quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "合格品数量" }, { "Field": "unqualified_quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "不良品数量" }, { "Field": "uncheck_quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "待检测数量" }, { "Field": "labor_scrap_quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "工废数量" }, { "Field": "material_scrap_quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "料废数量" }, { "Field": "other_scrap_quantity", "Type": "decimal(24,6)", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "其他废品数量" }, { "Field": "feedback_user_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "报工用户编号" }, { "Field": "approve_user_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "审核用户编号" }, { "Field": "status", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "状态" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" }, { "Field": "process_instance_id", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "BPM 流程实例编号" }, { "Field": "process_definition_key", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "BPM 流程定义 Key" } ], "mes_pro_work_order_param_record": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "work_order_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "生产工单编号" }, { "Field": "template_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "参数模板编号(工序绑定参数生成时为空)" }, { "Field": "template_code", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "模板编码(快照)" }, { "Field": "template_name", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "模板名称(快照)" }, { "Field": "record_no", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "记录序号/批次号" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" }, { "Field": "task_id", "Type": "int", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" } ], "mes_pro_work_order_param_record_detail": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "record_id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "参数记录编号" }, { "Field": "template_detail_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "模板明细编号(溯源用)" }, { "Field": "param_code", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "参数编码(快照)" }, { "Field": "param_name", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "NO", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "参数名称(快照)" }, { "Field": "param_type", "Type": "tinyint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "参数类型(快照)" }, { "Field": "required", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否必填(快照)" }, { "Field": "unit_measure_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "计量单位编号(快照)" }, { "Field": "param_value", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "参数值" }, { "Field": "remark", "Type": "varchar(500)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注(参数快照)" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "mes_md_auto_code_rule": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "code", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "规则编码" }, { "Field": "name", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "规则名称" }, { "Field": "description", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "描述" }, { "Field": "max_length", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "最大长度" }, { "Field": "padded", "Type": "bit(1)", "Collation": null, "Null": "YES", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否补齐" }, { "Field": "padded_char", "Type": "varchar(10)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "补齐字符" }, { "Field": "padded_method", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "补齐方式" }, { "Field": "status", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "状态" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "mes_md_auto_code_part": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "rule_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "规则编号" }, { "Field": "sort", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "分段序号" }, { "Field": "type", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "分段类型" }, { "Field": "length", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "分段长度" }, { "Field": "date_format", "Type": "varchar(100)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "日期格式" }, { "Field": "fix_character", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "固定字符" }, { "Field": "serial_start_no", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "流水号起始值" }, { "Field": "serial_step", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "流水号步长" }, { "Field": "cycle_flag", "Type": "bit(1)", "Collation": null, "Null": "YES", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "流水号是否循环" }, { "Field": "cycle_method", "Type": "int", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "循环方式" }, { "Field": "remark", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "备注" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "mes_md_auto_code_record": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "rule_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "规则编号" }, { "Field": "result", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "生成的编码" }, { "Field": "serial_no", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "生成的流水号" }, { "Field": "input_char", "Type": "varchar(255)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "传入的参数" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_unicode_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ], "mes_pro_task_assignee": [ { "Field": "id", "Type": "bigint", "Collation": null, "Null": "NO", "Key": "PRI", "Default": null, "Extra": "auto_increment", "Privileges": "select,insert,update,references", "Comment": "编号" }, { "Field": "task_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "生产任务 ID" }, { "Field": "user_id", "Type": "bigint", "Collation": null, "Null": "YES", "Key": "", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", "Comment": "系统用户 ID (指定报工人员)" }, { "Field": "creator", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "创建者" }, { "Field": "create_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED", "Privileges": "select,insert,update,references", "Comment": "创建时间" }, { "Field": "updater", "Type": "varchar(64)", "Collation": "utf8mb4_0900_ai_ci", "Null": "YES", "Key": "", "Default": "", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "更新者" }, { "Field": "update_time", "Type": "datetime", "Collation": null, "Null": "NO", "Key": "", "Default": "CURRENT_TIMESTAMP", "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", "Privileges": "select,insert,update,references", "Comment": "更新时间" }, { "Field": "deleted", "Type": "bit(1)", "Collation": null, "Null": "NO", "Key": "", "Default": "b'0'", "Extra": "", "Privileges": "select,insert,update,references", "Comment": "是否删除" } ] }