| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- /*
- Navicat Premium Dump SQL
- Source Server : 47.99.164.66 hn02le.34lkdLKD
- Source Server Type : MySQL
- Source Server Version : 50736 (5.7.36)
- Source Host : 47.99.164.66:3306
- Source Schema : hzdyjs_xg
- Target Server Type : MySQL
- Target Server Version : 50736 (5.7.36)
- File Encoding : 65001
- Date: 22/12/2025 16:50:49
- */
- SET NAMES utf8mb4;
- SET FOREIGN_KEY_CHECKS = 0;
- -- ----------------------------
- -- Table structure for sys_dept
- -- ----------------------------
- DROP TABLE IF EXISTS `sys_dept`;
- CREATE TABLE `sys_dept` (
- `dept_id` bigint(20) NOT NULL COMMENT '部门id',
- `tenant_id` varchar(20) DEFAULT '000000' COMMENT '租户编号',
- `parent_id` bigint(20) DEFAULT '0' COMMENT '父部门id',
- `ancestors` varchar(500) DEFAULT '' COMMENT '祖级列表',
- `dept_name` varchar(30) DEFAULT '' COMMENT '部门名称',
- `dept_category` varchar(100) DEFAULT NULL COMMENT '部门类别编码',
- `order_num` int(4) DEFAULT '0' COMMENT '显示顺序',
- `leader` bigint(20) DEFAULT NULL COMMENT '负责人',
- `phone` varchar(11) DEFAULT NULL COMMENT '联系电话',
- `email` varchar(50) DEFAULT NULL COMMENT '邮箱',
- `status` char(1) DEFAULT '0' COMMENT '部门状态(0正常 1停用)',
- `del_flag` char(1) DEFAULT '0' COMMENT '删除标志(0代表存在 1代表删除)',
- `create_dept` bigint(20) DEFAULT NULL COMMENT '创建部门',
- `create_by` bigint(20) DEFAULT NULL COMMENT '创建者',
- `create_time` datetime DEFAULT NULL COMMENT '创建时间',
- `update_by` bigint(20) DEFAULT NULL COMMENT '更新者',
- `update_time` datetime DEFAULT NULL COMMENT '更新时间',
- PRIMARY KEY (`dept_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='部门表';
- SET FOREIGN_KEY_CHECKS = 1;
|