
CREATE TABLE `sys_dept_user` (
   `id` int NOT NULL AUTO_INCREMENT,
   `deptId` bigint NOT NULL COMMENT '部门ID',
   `deptName` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '部门名称',
   `userId` bigint NOT NULL COMMENT '部门负责人用户ID',
   `tenantId` bigint NOT NULL DEFAULT '0' COMMENT '租户ID',
   `creator` bigint NOT NULL DEFAULT '0' COMMENT '创建者ID',
   `createTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
   PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='部门负责人表';