|
@ -25,7 +25,7 @@ drop table if exists sec_user;
|
25
|
25
|
/*==============================================================*/
|
26
|
26
|
create table sec_menu
|
27
|
27
|
(
|
28
|
|
MENU_ID bigint(20) not null auto_increment comment '菜单标识',
|
|
28
|
MENU_ID bigint(20) not null comment '菜单标识',
|
29
|
29
|
PARENT_MENU_ID bigint(20) default NULL comment '上级菜单标识',
|
30
|
30
|
SUB_COUNT int(5) default NULL comment '子菜单数目',
|
31
|
31
|
MENU_TYPE varchar(3),
|
|
@ -55,14 +55,14 @@ create table sec_menu
|
55
|
55
|
TENANT_CODE varchar(32),
|
56
|
56
|
primary key (MENU_ID)
|
57
|
57
|
)
|
58
|
|
ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
|
|
58
|
ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
|
59
|
59
|
|
60
|
60
|
/*==============================================================*/
|
61
|
61
|
/* Table: sec_org_user_rel */
|
62
|
62
|
/*==============================================================*/
|
63
|
63
|
create table sec_org_user_rel
|
64
|
64
|
(
|
65
|
|
ORG_USER_REL_ID bigint(20) not null auto_increment comment '用户组织关系标识',
|
|
65
|
ORG_USER_REL_ID bigint(20) not null comment '用户组织关系标识',
|
66
|
66
|
ORGANIZE_ID bigint(20) default NULL comment '组织标识',
|
67
|
67
|
USER_ID bigint(20) default NULL comment '用户标识',
|
68
|
68
|
VALID_DATE datetime default NULL comment '生效日期',
|
|
@ -81,14 +81,14 @@ create table sec_org_user_rel
|
81
|
81
|
TENANT_CODE varchar(32),
|
82
|
82
|
primary key (ORG_USER_REL_ID)
|
83
|
83
|
)
|
84
|
|
ENGINE=InnoDB AUTO_INCREMENT=101 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
|
|
84
|
ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
|
85
|
85
|
|
86
|
86
|
/*==============================================================*/
|
87
|
87
|
/* Table: sec_organize */
|
88
|
88
|
/*==============================================================*/
|
89
|
89
|
create table sec_organize
|
90
|
90
|
(
|
91
|
|
ORGANIZE_ID bigint(20) not null auto_increment comment '组织标识',
|
|
91
|
ORGANIZE_ID bigint(20) not null comment '组织标识',
|
92
|
92
|
ORGANIZE_TYPE varchar(3),
|
93
|
93
|
PARTY_ID bigint(20) default NULL comment '参与人标识',
|
94
|
94
|
ORGANIZE_NAME varchar(200),
|
|
@ -139,14 +139,14 @@ create table sec_organize
|
139
|
139
|
TENANT_CODE varchar(32),
|
140
|
140
|
primary key (ORGANIZE_ID)
|
141
|
141
|
)
|
142
|
|
ENGINE=InnoDB AUTO_INCREMENT=33 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
|
|
142
|
ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
|
143
|
143
|
|
144
|
144
|
/*==============================================================*/
|
145
|
145
|
/* Table: sec_priv_entity */
|
146
|
146
|
/*==============================================================*/
|
147
|
147
|
create table sec_priv_entity
|
148
|
148
|
(
|
149
|
|
PRIV_ENT_ID bigint(20) not null auto_increment comment '权限实体标识',
|
|
149
|
PRIV_ENT_ID bigint(20) not null comment '权限实体标识',
|
150
|
150
|
PRIV_ENT_NAME varchar(255),
|
151
|
151
|
PRIV_ENT_CODE varchar(255),
|
152
|
152
|
APP_ID bigint(20) default NULL comment '使用系统标识',
|
|
@ -171,14 +171,14 @@ create table sec_priv_entity
|
171
|
171
|
TENANT_CODE varchar(32),
|
172
|
172
|
primary key (PRIV_ENT_ID)
|
173
|
173
|
)
|
174
|
|
ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
|
|
174
|
ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
|
175
|
175
|
|
176
|
176
|
/*==============================================================*/
|
177
|
177
|
/* Table: sec_role */
|
178
|
178
|
/*==============================================================*/
|
179
|
179
|
create table sec_role
|
180
|
180
|
(
|
181
|
|
ROLE_ID bigint(20) not null auto_increment comment '角色标识',
|
|
181
|
ROLE_ID bigint(20) not null comment '角色标识',
|
182
|
182
|
JOB_ID bigint(20) default NULL comment '岗位标识',
|
183
|
183
|
ROLE_NAME varchar(256),
|
184
|
184
|
ROLE_TYPE varchar(3),
|
|
@ -200,14 +200,14 @@ create table sec_role
|
200
|
200
|
TENANT_CODE varchar(32),
|
201
|
201
|
primary key (ROLE_ID)
|
202
|
202
|
)
|
203
|
|
ENGINE=InnoDB AUTO_INCREMENT=1001 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
|
|
203
|
ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
|
204
|
204
|
|
205
|
205
|
/*==============================================================*/
|
206
|
206
|
/* Table: sec_role_grant */
|
207
|
207
|
/*==============================================================*/
|
208
|
208
|
create table sec_role_grant
|
209
|
209
|
(
|
210
|
|
ROLE_GRANT_ID bigint(20) not null auto_increment comment '角色授权标识',
|
|
210
|
ROLE_GRANT_ID bigint(20) not null comment '角色授权标识',
|
211
|
211
|
ROLE_ID bigint(20) default NULL comment '角色标识',
|
212
|
212
|
PRIV_ENT_ID bigint(20) default NULL comment '实体标识',
|
213
|
213
|
REMARK varchar(100),
|
|
@ -227,14 +227,14 @@ create table sec_role_grant
|
227
|
227
|
TENANT_CODE varchar(32),
|
228
|
228
|
primary key (ROLE_GRANT_ID)
|
229
|
229
|
)
|
230
|
|
ENGINE=InnoDB AUTO_INCREMENT=1002 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
|
|
230
|
ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
|
231
|
231
|
|
232
|
232
|
/*==============================================================*/
|
233
|
233
|
/* Table: sec_role_user_rel */
|
234
|
234
|
/*==============================================================*/
|
235
|
235
|
create table sec_role_user_rel
|
236
|
236
|
(
|
237
|
|
ROLE_USER_REL_ID bigint(20) not null auto_increment comment '角色关联用户标识',
|
|
237
|
ROLE_USER_REL_ID bigint(20) not null comment '角色关联用户标识',
|
238
|
238
|
USER_ID bigint(20) not null comment '用户标识',
|
239
|
239
|
ROLE_ID bigint(20) not null comment '角色标识',
|
240
|
240
|
VALID_DATE datetime default NULL comment '生效日期',
|
|
@ -253,14 +253,14 @@ create table sec_role_user_rel
|
253
|
253
|
TENANT_CODE varchar(32),
|
254
|
254
|
primary key (ROLE_USER_REL_ID)
|
255
|
255
|
)
|
256
|
|
ENGINE=InnoDB AUTO_INCREMENT=101 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
|
|
256
|
ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
|
257
|
257
|
|
258
|
258
|
/*==============================================================*/
|
259
|
259
|
/* Table: sec_user */
|
260
|
260
|
/*==============================================================*/
|
261
|
261
|
create table sec_user
|
262
|
262
|
(
|
263
|
|
USER_ID bigint(20) not null auto_increment comment '用户标识',
|
|
263
|
USER_ID bigint(20) not null comment '用户标识',
|
264
|
264
|
NICK_NAME varchar(256),
|
265
|
265
|
USER_ACCOUNT varchar(500),
|
266
|
266
|
GENDER varchar(2),
|
|
@ -290,5 +290,5 @@ create table sec_user
|
290
|
290
|
SURNAME varchar(500),
|
291
|
291
|
primary key (USER_ID)
|
292
|
292
|
)
|
293
|
|
ENGINE=InnoDB AUTO_INCREMENT=1482980362203303937 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
|
|
293
|
ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
|
294
|
294
|
|