Files
qhmes/jeecg-boot/db/mes-xsl-equipment-type.sql
2026-05-15 10:35:54 +08:00

22 lines
1.3 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
-- 仅建表MES 设备类型 mes_xsl_equipment_type
-- 完整初始化菜单租户授权请执行 mes-xsl-equipment-type-menu-permission.sql
SET NAMES utf8mb4;
CREATE TABLE IF NOT EXISTS `mes_xsl_equipment_type` (
`id` varchar(32) NOT NULL COMMENT '主键',
`type_name` varchar(128) NOT NULL COMMENT '设备类型名称',
`process_operation_id` varchar(32) NOT NULL COMMENT '所属工序主键 mes_process_operation.id',
`process_operation_name` varchar(128) DEFAULT NULL COMMENT '工序名称冗余展示',
`equipment_category_id` varchar(32) NOT NULL COMMENT '所属设备类别主键 mes_xsl_equipment_category.id',
`equipment_category_name` varchar(128) DEFAULT NULL COMMENT '设备类别名称冗余展示',
`tenant_id` int DEFAULT NULL COMMENT '租户',
`sys_org_code` varchar(64) DEFAULT NULL COMMENT '部门',
`create_by` varchar(32) DEFAULT NULL COMMENT '创建人',
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
`update_by` varchar(32) DEFAULT NULL COMMENT '更新人',
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
`del_flag` int DEFAULT '0' COMMENT '删除标记0正常1删除',
PRIMARY KEY (`id`),
KEY `idx_met_tenant_typename` (`tenant_id`, `type_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='MES设备类型';