|
|
|
@ -468,35 +468,35 @@ COMMIT;
|
|
|
|
|
-- ---------------------------- |
|
|
|
|
DROP TABLE IF EXISTS `blade_user`; |
|
|
|
|
CREATE TABLE `blade_user` ( |
|
|
|
|
`id` bigint(64) NOT NULL COMMENT '主键', |
|
|
|
|
`tenant_id` varchar(12) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '000000' COMMENT '租户ID', |
|
|
|
|
`account` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '账号', |
|
|
|
|
`password` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '密码', |
|
|
|
|
`name` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '昵称', |
|
|
|
|
`real_name` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '真名', |
|
|
|
|
`email` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '邮箱', |
|
|
|
|
`phone` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '手机', |
|
|
|
|
`birthday` datetime(0) NULL DEFAULT NULL COMMENT '生日', |
|
|
|
|
`sex` smallint(6) NULL DEFAULT NULL COMMENT '性别', |
|
|
|
|
`role_id` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '角色id', |
|
|
|
|
`dept_id` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '部门id', |
|
|
|
|
`create_user` bigint(64) NULL DEFAULT NULL COMMENT '创建人', |
|
|
|
|
`create_dept` bigint(64) NULL DEFAULT NULL COMMENT '创建部门', |
|
|
|
|
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', |
|
|
|
|
`update_user` bigint(64) NULL DEFAULT NULL COMMENT '修改人', |
|
|
|
|
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '修改时间', |
|
|
|
|
`status` int(2) NULL DEFAULT NULL COMMENT '状态', |
|
|
|
|
`is_deleted` int(2) NULL DEFAULT 0 COMMENT '是否已删除', |
|
|
|
|
PRIMARY KEY (`id`) USING BTREE |
|
|
|
|
`id` bigint(64) NOT NULL COMMENT '主键', |
|
|
|
|
`tenant_id` varchar(12) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '000000' COMMENT '租户ID', |
|
|
|
|
`account` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '账号', |
|
|
|
|
`password` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '密码', |
|
|
|
|
`name` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '昵称', |
|
|
|
|
`real_name` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '真名', |
|
|
|
|
`avatar` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '头像', |
|
|
|
|
`email` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '邮箱', |
|
|
|
|
`phone` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '手机', |
|
|
|
|
`birthday` datetime(0) NULL DEFAULT NULL COMMENT '生日', |
|
|
|
|
`sex` smallint(6) NULL DEFAULT NULL COMMENT '性别', |
|
|
|
|
`role_id` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '角色id', |
|
|
|
|
`dept_id` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '部门id', |
|
|
|
|
`create_user` bigint(64) NULL DEFAULT NULL COMMENT '创建人', |
|
|
|
|
`create_dept` bigint(64) NULL DEFAULT NULL COMMENT '创建部门', |
|
|
|
|
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', |
|
|
|
|
`update_user` bigint(64) NULL DEFAULT NULL COMMENT '修改人', |
|
|
|
|
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '修改时间', |
|
|
|
|
`status` int(2) NULL DEFAULT NULL COMMENT '状态', |
|
|
|
|
`is_deleted` int(2) NULL DEFAULT 0 COMMENT '是否已删除', |
|
|
|
|
PRIMARY KEY (`id`) USING BTREE |
|
|
|
|
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户表'; |
|
|
|
|
|
|
|
|
|
-- ---------------------------- |
|
|
|
|
-- Records of blade_user |
|
|
|
|
-- ---------------------------- |
|
|
|
|
BEGIN; |
|
|
|
|
INSERT INTO `blade_user` VALUES (1123598821738675201, '000000', 'admin', '90b9aa7e25f80cf4f64e990b78a9fc5ebd6cecad', '管理员', '管理员', 'admin@bladex.vip', '123333333333', '2018-08-08 00:00:00', 1, '1123598816738675201', '1123598813738675201', 1123598821738675201, 1123598813738675201, '2018-08-08 00:00:00', 1123598821738675201, '2018-08-08 00:00:00', 1, 0), (1123598821738675202, '000000', 'hr', '5e79b90f7bba52d54115f086e48f539016a27ec6', '人事', '人事', 'hr@bladex.vip', '123333333333', '2018-08-08 00:00:00', 1, '1123598816738675203', '1123598813738675201', 1123598821738675201, 1123598813738675201, '2019-04-27 17:03:10', 1123598821738675201, '2019-04-27 17:03:10', 1, 0), (1123598821738675203, '000000', 'manager', 'dfbaa3b61caa3a319f463cc165085aa8c822d2ce', '经理', '经理', 'manager@bladex.vip', '123333333333', '2018-08-08 00:00:00', 1, '1123598816738675204', '1123598813738675201', 1123598821738675201, 1123598813738675201, '2019-04-27 17:03:38', 1123598821738675201, '2019-04-27 17:03:38', 1, 0), (1123598821738675204, '000000', 'boss', 'abe57d23e18f7ad8ea99c86e430c90a05119a9d3', '老板', '老板', 'boss@bladex.vip', '123333333333', '2018-08-08 00:00:00', 1, '1123598816738675205', '1123598813738675201', 1123598821738675201, 1123598813738675201, '2019-04-27 17:03:55', 1123598821738675201, '2019-04-27 17:03:55', 1, 0); |
|
|
|
|
INSERT INTO `blade_user` VALUES (1123598821738675201, '000000', 'admin', '90b9aa7e25f80cf4f64e990b78a9fc5ebd6cecad', '管理员', '管理员', '', 'admin@bladex.vip', '123333333333', '2018-08-08 00:00:00', 1, '1123598816738675201', '1123598813738675201', 1123598821738675201, 1123598813738675201, '2018-08-08 00:00:00', 1123598821738675201, '2018-08-08 00:00:00', 1, 0), (1123598821738675202, '000000', 'hr', '5e79b90f7bba52d54115f086e48f539016a27ec6', '人事', '人事', '', 'hr@bladex.vip', '123333333333', '2018-08-08 00:00:00', 1, '1123598816738675203', '1123598813738675201', 1123598821738675201, 1123598813738675201, '2019-04-27 17:03:10', 1123598821738675201, '2019-04-27 17:03:10', 1, 0), (1123598821738675203, '000000', 'manager', 'dfbaa3b61caa3a319f463cc165085aa8c822d2ce', '经理', '经理', '', 'manager@bladex.vip', '123333333333', '2018-08-08 00:00:00', 1, '1123598816738675204', '1123598813738675201', 1123598821738675201, 1123598813738675201, '2019-04-27 17:03:38', 1123598821738675201, '2019-04-27 17:03:38', 1, 0), (1123598821738675204, '000000', 'boss', 'abe57d23e18f7ad8ea99c86e430c90a05119a9d3', '老板', '老板', '', 'boss@bladex.vip', '123333333333', '2018-08-08 00:00:00', 1, '1123598816738675205', '1123598813738675201', 1123598821738675201, 1123598813738675201, '2019-04-27 17:03:55', 1123598821738675201, '2019-04-27 17:03:55', 1, 0); |
|
|
|
|
COMMIT; |
|
|
|
|
|
|
|
|
|
-- ---------------------------- |
|
|
|
|
-- Table structure for blade_top_menu |
|
|
|
|
-- ---------------------------- |
|
|
|
|