Commit 251d0c5c authored by 赵啸非's avatar 赵啸非

添加部门信息表

parent b9189241
-- ----------------------------
-- 部门信息表
-- ----------------------------
DROP TABLE IF EXISTS `mortals_xhx_dept`;
CREATE TABLE `mortals_xhx_dept` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID,主键,自增长',
`parentId` bigint(20) DEFAULT NULL COMMENT '父id',
`ancestors` varchar(256) NOT NULL COMMENT '祖级列表',
`deptName` varchar(256) NOT NULL COMMENT '部门名称',
`deptStatus` tinyint(2) NOT NULL DEFAULT '1' COMMENT '部门状态(0.停用,1.启用)',
`orderNum` int(4) NOT NULL DEFAULT '0' COMMENT '顺序',
`remark` varchar(256) DEFAULT NULL COMMENT '备注',
`createUserId` bigint(20) NOT NULL COMMENT '创建用户',
`createTime` datetime NOT NULL COMMENT '创建时间',
`updateUserId` bigint(20) DEFAULT NULL COMMENT '更新用户',
`updateTime` datetime DEFAULT NULL COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE,
KEY `deptStatus` (`deptStatus`) USING BTREE,
KEY `orderNum` (`orderNum`) USING BTREE,
KEY `createUserId` (`createUserId`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8 COMMENT='部门信息';
-- ---------------------------- -- ----------------------------
-- 员工基本信息表 -- 员工基本信息表
-- ---------------------------- -- ----------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment