Files
qhmes/jeecg-boot/db/mes-xsl-downtime-main-type.sql
jiangxh a22a573c0d feat(xslmes): 停机分类与设备/工序基础资料菜单及权限完善
新增停机大类、停机类型 CRUD(含 Flyway 与独立 db 脚本);调整工序/设备分类/设备类型菜单归属与权限;同步厂家信息菜单脚本。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-18 14:02:37 +08:00

23 lines
1.4 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_xsl_downtime_main_type完整初始化请执行 mes-xsl-downtime-main-type-menu-permission.sql
SET NAMES utf8mb4;
CREATE TABLE IF NOT EXISTS `mes_xsl_downtime_main_type` (
`id` varchar(32) NOT NULL COMMENT '主键',
`process_operation_id` varchar(32) NOT NULL COMMENT '所属工序 mes_xsl_process_operation.id',
`process_operation_name` varchar(500) DEFAULT NULL COMMENT '工序名称冗余',
`downtime_type` varchar(500) NOT NULL COMMENT '停机类型同租户未删除数据中唯一',
`display_order` int NOT NULL DEFAULT '0' COMMENT '显示顺序升序',
`distinguish_color` varchar(500) DEFAULT NULL COMMENT '区分颜色十六进制色值#1890ff',
`status` varchar(1) NOT NULL DEFAULT '0' COMMENT '是否启用字典xslmes_downtime_main_type_status0启用1停用',
`tenant_id` int DEFAULT NULL COMMENT '租户',
`sys_org_code` varchar(500) DEFAULT NULL COMMENT '部门',
`create_by` varchar(500) DEFAULT NULL COMMENT '创建人',
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
`update_by` varchar(500) DEFAULT NULL COMMENT '更新人',
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
`del_flag` int DEFAULT '0' COMMENT '删除标记0正常1删除',
PRIMARY KEY (`id`),
KEY `idx_mdmt_tenant_type` (`tenant_id`, `downtime_type`),
KEY `idx_mdmt_process` (`process_operation_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='MES停机主类型';