mirror of https://gitee.com/stylefeng/guns
【8.0】统一表名前缀
parent
f29df37cde
commit
d441d74691
|
@ -1,4 +1,4 @@
|
|||
CREATE TABLE `click_count` (
|
||||
CREATE TABLE `sys_click_count` (
|
||||
`click_count_id` bigint NOT NULL COMMENT '主键id',
|
||||
`business_type` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '业务的分类标识',
|
||||
`business_key_id` bigint NULL DEFAULT NULL COMMENT '业务的主键id',
|
||||
|
@ -11,7 +11,7 @@ CREATE TABLE `click_count` (
|
|||
PRIMARY KEY (`click_count_id`) USING BTREE
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户点击数量统计' ROW_FORMAT = Dynamic;
|
||||
|
||||
CREATE TABLE `click_status` (
|
||||
CREATE TABLE `sys_click_status` (
|
||||
`click_status_id` bigint NOT NULL COMMENT '主键id',
|
||||
`user_id` bigint NULL DEFAULT NULL COMMENT '用户id',
|
||||
`business_key_id` bigint NULL DEFAULT NULL COMMENT '业务的主键id',
|
||||
|
@ -24,7 +24,7 @@ CREATE TABLE `click_status` (
|
|||
PRIMARY KEY (`click_status_id`) USING BTREE
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户点击状态' ROW_FORMAT = Dynamic;
|
||||
|
||||
CREATE TABLE `hr_org_approver` (
|
||||
CREATE TABLE `sys_hr_org_approver` (
|
||||
`org_approver_id` bigint NOT NULL COMMENT '主键id',
|
||||
`org_approver_type` tinyint NULL DEFAULT NULL COMMENT '组织审批类型:1-负责人,2-部长,3-体系负责人,4-部门助理,5-资产助理(专员),6-考勤专员,7-HRBP,8-门禁员,9-办公账号员,10-转岗须知员',
|
||||
`org_id` bigint NULL DEFAULT NULL COMMENT '组织机构id',
|
||||
|
@ -37,7 +37,7 @@ CREATE TABLE `hr_org_approver` (
|
|||
PRIMARY KEY (`org_approver_id`) USING BTREE
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '组织机构审批人' ROW_FORMAT = Dynamic;
|
||||
|
||||
CREATE TABLE `hr_organization` (
|
||||
CREATE TABLE `sys_hr_organization` (
|
||||
`org_id` bigint NOT NULL COMMENT '主键',
|
||||
`org_parent_id` bigint NOT NULL COMMENT '父id,一级节点父id是-1',
|
||||
`org_pids` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '父ids',
|
||||
|
@ -63,17 +63,16 @@ CREATE TABLE `hr_organization` (
|
|||
PRIMARY KEY (`org_id`) USING BTREE
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '组织机构信息' ROW_FORMAT = Dynamic;
|
||||
|
||||
INSERT INTO `hr_organization` VALUES (1671418869810540546, -1, '[-1],', '北京公司', '总公司', '10000000', 10.00, 1, 1, NULL, NULL, NULL, '', NULL, NULL, 1, 'N', '2023-06-21 15:35:09', -1, '2023-06-28 21:51:04', 1339550467939639299, NULL);
|
||||
INSERT INTO `hr_organization` VALUES (1671419146928205826, 1671418869810540546, '[-1],[1671418869810540546],', '信息中心', '信息中心', '10010000', 101.00, 1, 2, NULL, NULL, NULL, NULL, NULL, NULL, 3, 'N', '2023-06-21 15:35:09', -1, '2023-06-28 23:18:55', 1339550467939639299, NULL);
|
||||
INSERT INTO `hr_organization` VALUES (1671419297969287170, 1671418869810540546, '[-1],[1671418869810540546],', '发展规划部', '发展规划部', '10020000', 102.00, 1, 2, NULL, NULL, NULL, NULL, NULL, NULL, 1, 'N', '2023-06-21 15:35:09', -1, '2023-07-11 13:55:14', 1339550467939639299, NULL);
|
||||
INSERT INTO `hr_organization` VALUES (1671419436767195137, 1671418869810540546, '[-1],[1671418869810540546],', '法律部', '法律部', '10030000', 103.00, 1, 2, NULL, NULL, NULL, NULL, NULL, NULL, 1, 'N', '2023-06-21 15:35:09', -1, '2023-07-11 13:55:19', 1339550467939639299, NULL);
|
||||
INSERT INTO `hr_organization` VALUES (1671419890196623362, 1671418869810540546, '[-1],[1671418869810540546],', '北京西城区公司', '北京西城区能源管理公司', '10040000', 104.00, 1, 1, NULL, NULL, NULL, NULL, NULL, NULL, 2, 'N', '2023-06-21 15:35:09', -1, '2023-06-29 11:44:26', 1339550467939639299, NULL);
|
||||
INSERT INTO `hr_organization` VALUES (1671420255612776449, 1671419890196623362, '[-1],[1671418869810540546],[1671419890196623362],', '能源管理部', '能源部', '10040001', 1040.00, 2, 2, NULL, '', NULL, NULL, NULL, NULL, 2, 'N', '2023-06-21 15:35:09', -1, '2023-06-29 11:44:26', 1339550467939639299, NULL);
|
||||
INSERT INTO `hr_organization` VALUES (1674672546647220226, -1, '[-1],', '南京公司', NULL, '20000000', 20.00, 1, 1, NULL, NULL, NULL, NULL, NULL, NULL, 1, 'N', '2023-06-30 14:53:44', 1339550467939639299, '2023-07-11 14:03:25', 1339550467939639299, NULL);
|
||||
INSERT INTO `hr_organization` VALUES (1674675494710255617, 1674672546647220226, '[-1],[1674672546647220226],', '综合管理部', NULL, '20000001', 201.00, 1, 2, NULL, NULL, NULL, NULL, NULL, NULL, 1, 'N', '2023-06-30 15:05:27', 1339550467939639299, '2023-07-11 13:55:54', 1339550467939639299, NULL);
|
||||
INSERT INTO `sys_hr_organization` VALUES (1671418869810540546, -1, '[-1],', '北京公司', '总公司', '10000000', 10.00, 1, 1, NULL, NULL, NULL, '', NULL, NULL, 1, 'N', '2023-06-21 15:35:09', -1, '2023-06-28 21:51:04', 1339550467939639299, NULL);
|
||||
INSERT INTO `sys_hr_organization` VALUES (1671419146928205826, 1671418869810540546, '[-1],[1671418869810540546],', '信息中心', '信息中心', '10010000', 101.00, 1, 2, NULL, NULL, NULL, NULL, NULL, NULL, 3, 'N', '2023-06-21 15:35:09', -1, '2023-06-28 23:18:55', 1339550467939639299, NULL);
|
||||
INSERT INTO `sys_hr_organization` VALUES (1671419297969287170, 1671418869810540546, '[-1],[1671418869810540546],', '发展规划部', '发展规划部', '10020000', 102.00, 1, 2, NULL, NULL, NULL, NULL, NULL, NULL, 1, 'N', '2023-06-21 15:35:09', -1, '2023-07-11 13:55:14', 1339550467939639299, NULL);
|
||||
INSERT INTO `sys_hr_organization` VALUES (1671419436767195137, 1671418869810540546, '[-1],[1671418869810540546],', '法律部', '法律部', '10030000', 103.00, 1, 2, NULL, NULL, NULL, NULL, NULL, NULL, 1, 'N', '2023-06-21 15:35:09', -1, '2023-07-11 13:55:19', 1339550467939639299, NULL);
|
||||
INSERT INTO `sys_hr_organization` VALUES (1671419890196623362, 1671418869810540546, '[-1],[1671418869810540546],', '北京西城区公司', '北京西城区能源管理公司', '10040000', 104.00, 1, 1, NULL, NULL, NULL, NULL, NULL, NULL, 2, 'N', '2023-06-21 15:35:09', -1, '2023-06-29 11:44:26', 1339550467939639299, NULL);
|
||||
INSERT INTO `sys_hr_organization` VALUES (1671420255612776449, 1671419890196623362, '[-1],[1671418869810540546],[1671419890196623362],', '能源管理部', '能源部', '10040001', 1040.00, 2, 2, NULL, '', NULL, NULL, NULL, NULL, 2, 'N', '2023-06-21 15:35:09', -1, '2023-06-29 11:44:26', 1339550467939639299, NULL);
|
||||
INSERT INTO `sys_hr_organization` VALUES (1674672546647220226, -1, '[-1],', '南京公司', NULL, '20000000', 20.00, 1, 1, NULL, NULL, NULL, NULL, NULL, NULL, 1, 'N', '2023-06-30 14:53:44', 1339550467939639299, '2023-07-11 14:03:25', 1339550467939639299, NULL);
|
||||
INSERT INTO `sys_hr_organization` VALUES (1674675494710255617, 1674672546647220226, '[-1],[1674672546647220226],', '综合管理部', NULL, '20000001', 201.00, 1, 2, NULL, NULL, NULL, NULL, NULL, NULL, 1, 'N', '2023-06-30 15:05:27', 1339550467939639299, '2023-07-11 13:55:54', 1339550467939639299, NULL);
|
||||
|
||||
DROP TABLE IF EXISTS `hr_position`;
|
||||
CREATE TABLE `hr_position` (
|
||||
CREATE TABLE `sys_hr_position` (
|
||||
`position_id` bigint NOT NULL COMMENT '主键',
|
||||
`position_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '职位名称',
|
||||
`position_code` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '职位编码',
|
||||
|
@ -91,12 +90,12 @@ CREATE TABLE `hr_position` (
|
|||
PRIMARY KEY (`position_id`) USING BTREE
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '职位信息' ROW_FORMAT = Dynamic;
|
||||
|
||||
INSERT INTO `hr_position` VALUES (1671418731163627522, '员工', 'yg', 1000.00, 1, NULL, NULL, 1, 'N', '2023-06-21 15:28:21', -1, NULL, NULL, NULL);
|
||||
INSERT INTO `hr_position` VALUES (1671418794157879297, '部门负责人', 'bmfzr', 200.00, 1, NULL, NULL, 1, 'N', '2023-06-29 10:20:54', NULL, '2023-06-29 10:21:19', 1673708058896797697, NULL);
|
||||
INSERT INTO `hr_position` VALUES (1671418831935975426, '总经理', 'zjl', 100.00, 1, '', NULL, 1, 'N', '2023-06-21 15:28:21', -1, '2023-06-29 10:21:10', 1673708058896797697, NULL);
|
||||
INSERT INTO `sys_hr_position` VALUES (1671418731163627522, '员工', 'yg', 1000.00, 1, NULL, NULL, 1, 'N', '2023-06-21 15:28:21', -1, NULL, NULL, NULL);
|
||||
INSERT INTO `sys_hr_position` VALUES (1671418794157879297, '部门负责人', 'bmfzr', 200.00, 1, NULL, NULL, 1, 'N', '2023-06-29 10:20:54', NULL, '2023-06-29 10:21:19', 1673708058896797697, NULL);
|
||||
INSERT INTO `sys_hr_position` VALUES (1671418831935975426, '总经理', 'zjl', 100.00, 1, '', NULL, 1, 'N', '2023-06-21 15:28:21', -1, '2023-06-29 10:21:10', 1673708058896797697, NULL);
|
||||
|
||||
|
||||
CREATE TABLE `portal_user_app` (
|
||||
CREATE TABLE `sys_portal_user_app` (
|
||||
`app_link_id` bigint NOT NULL COMMENT '主键id',
|
||||
`user_id` bigint NULL DEFAULT NULL COMMENT '所属用户id',
|
||||
`app_id` bigint NULL DEFAULT NULL COMMENT '冗余字段,菜单所属的应用id',
|
||||
|
@ -109,13 +108,13 @@ CREATE TABLE `portal_user_app` (
|
|||
PRIMARY KEY (`app_link_id`) USING BTREE
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户常用功能' ROW_FORMAT = Dynamic;
|
||||
|
||||
INSERT INTO `portal_user_app` VALUES (1678674927629168641, 1339550467939639299, 1671406669800796161, 1671407186899759106, '2023-07-11 15:57:46', 1339550467939639299, NULL, NULL, NULL);
|
||||
INSERT INTO `portal_user_app` VALUES (1678674927629168642, 1339550467939639299, 1671406745336016898, 1671407539607171073, '2023-07-11 15:57:46', 1339550467939639299, NULL, NULL, NULL);
|
||||
INSERT INTO `portal_user_app` VALUES (1678674927629168643, 1339550467939639299, 1671406745336016898, 1671408081100206081, '2023-07-11 15:57:46', 1339550467939639299, NULL, NULL, NULL);
|
||||
INSERT INTO `portal_user_app` VALUES (1678674927629168644, 1339550467939639299, 1671406745336016898, 1671408144094457858, '2023-07-11 15:57:46', 1339550467939639299, NULL, NULL, NULL);
|
||||
INSERT INTO `portal_user_app` VALUES (1678674927629168645, 1339550467939639299, 1671406745336016898, 1673524865274245121, '2023-07-11 15:57:46', 1339550467939639299, NULL, NULL, NULL);
|
||||
INSERT INTO `portal_user_app` VALUES (1678674927629168646, 1339550467939639299, 1671406745336016898, 1671407615163363330, '2023-07-11 15:57:46', 1339550467939639299, NULL, NULL, NULL);
|
||||
INSERT INTO `portal_user_app` VALUES (1678716885718315009, 1678652551806959618, 1671406669800796161, 1671407186899759106, '2023-07-11 18:44:29', 1678652551806959618, NULL, NULL, NULL);
|
||||
INSERT INTO `sys_portal_user_app` VALUES (1678674927629168641, 1339550467939639299, 1671406669800796161, 1671407186899759106, '2023-07-11 15:57:46', 1339550467939639299, NULL, NULL, NULL);
|
||||
INSERT INTO `sys_portal_user_app` VALUES (1678674927629168642, 1339550467939639299, 1671406745336016898, 1671407539607171073, '2023-07-11 15:57:46', 1339550467939639299, NULL, NULL, NULL);
|
||||
INSERT INTO `sys_portal_user_app` VALUES (1678674927629168643, 1339550467939639299, 1671406745336016898, 1671408081100206081, '2023-07-11 15:57:46', 1339550467939639299, NULL, NULL, NULL);
|
||||
INSERT INTO `sys_portal_user_app` VALUES (1678674927629168644, 1339550467939639299, 1671406745336016898, 1671408144094457858, '2023-07-11 15:57:46', 1339550467939639299, NULL, NULL, NULL);
|
||||
INSERT INTO `sys_portal_user_app` VALUES (1678674927629168645, 1339550467939639299, 1671406745336016898, 1673524865274245121, '2023-07-11 15:57:46', 1339550467939639299, NULL, NULL, NULL);
|
||||
INSERT INTO `sys_portal_user_app` VALUES (1678674927629168646, 1339550467939639299, 1671406745336016898, 1671407615163363330, '2023-07-11 15:57:46', 1339550467939639299, NULL, NULL, NULL);
|
||||
INSERT INTO `sys_portal_user_app` VALUES (1678716885718315009, 1678652551806959618, 1671406669800796161, 1671407186899759106, '2023-07-11 18:44:29', 1678652551806959618, NULL, NULL, NULL);
|
||||
|
||||
CREATE TABLE `sys_app` (
|
||||
`app_id` bigint NOT NULL COMMENT '主键id',
|
||||
|
@ -967,7 +966,7 @@ CREATE TABLE `sys_user_role` (
|
|||
INSERT INTO `sys_user_role` VALUES (1673899829178261505, 1339550467939639299, 1671420545250439170, '2023-06-28 11:43:13', 1339550467939639299, NULL, NULL, NULL);
|
||||
INSERT INTO `sys_user_role` VALUES (1678716759805308929, 1678652551806959618, 1671420608181776386, '2023-07-11 18:43:59', 1339550467939639299, NULL, NULL, NULL);
|
||||
|
||||
CREATE TABLE `toc_customer` (
|
||||
CREATE TABLE `sys_toc_customer` (
|
||||
`customer_id` bigint NOT NULL COMMENT '主键id',
|
||||
`account` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '账号',
|
||||
`password` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '密码,BCrypt',
|
||||
|
|
Loading…
Reference in New Issue