fix: update sys_dept&post&user

This commit is contained in:
2023-11-07 10:56:59 +08:00
parent 413838ffea
commit 56cff767a6
3 changed files with 3 additions and 6 deletions

View File

@@ -1,7 +1,6 @@
SET FOREIGN_KEY_CHECKS=0;
DROP TABLE IF EXISTS `omc_db`.`sys_dept`;
CREATE TABLE `omc_db`.`sys_dept` (
CREATE TABLE IF NOT EXISTS `omc_db`.`sys_dept` (
`dept_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '部门id',
`parent_id` bigint(20) NULL DEFAULT 0 COMMENT '父部门id 默认0',
`ancestors` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '祖级列表',

View File

@@ -1,7 +1,6 @@
SET FOREIGN_KEY_CHECKS=0;
DROP TABLE IF EXISTS `omc_db`.`sys_post`;
CREATE TABLE `omc_db`.`sys_post` (
CREATE TABLE IF NOT EXISTS `omc_db`.`sys_post` (
`post_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '岗位ID',
`post_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '岗位编码',
`post_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '岗位名称',

View File

@@ -1,7 +1,6 @@
SET FOREIGN_KEY_CHECKS=0;
DROP TABLE IF EXISTS `omc_db`.`sys_user`;
CREATE TABLE `omc_db`.`sys_user` (
CREATE TABLE IF NOT EXISTS `omc_db`.`sys_user` (
`user_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '用户ID',
`dept_id` bigint(20) NULL DEFAULT NULL COMMENT '部门ID',
`user_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '用户账号',