|
@@ -0,0 +1,496 @@
|
|
1
|
+/*
|
|
2
|
+ * Copyright 2019-2029 geekidea(https://github.com/geekidea)
|
|
3
|
+ *
|
|
4
|
+ * Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+ * you may not use this file except in compliance with the License.
|
|
6
|
+ * You may obtain a copy of the License at
|
|
7
|
+ *
|
|
8
|
+ * http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+ *
|
|
10
|
+ * Unless required by applicable law or agreed to in writing, software
|
|
11
|
+ * distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+ * See the License for the specific language governing permissions and
|
|
14
|
+ * limitations under the License.
|
|
15
|
+*/
|
|
16
|
+
|
|
17
|
+create table foo_bar
|
|
18
|
+(
|
|
19
|
+ id bigint identity
|
|
20
|
+ constraint foo_bar_pk
|
|
21
|
+ primary key nonclustered,
|
|
22
|
+ name varchar(20) not null,
|
|
23
|
+ foo varchar(20),
|
|
24
|
+ bar varchar(20) not null,
|
|
25
|
+ remark varchar(200),
|
|
26
|
+ state int default 1 not null,
|
|
27
|
+ version int default 0 not null,
|
|
28
|
+ create_time datetime default getdate() not null,
|
|
29
|
+ update_time datetime
|
|
30
|
+) go
|
|
31
|
+
|
|
32
|
+exec sp_addextendedproperty 'MS_Description', 'FooBar', 'SCHEMA', 'dbo', 'TABLE', 'foo_bar'
|
|
33
|
+go
|
|
34
|
+
|
|
35
|
+exec sp_addextendedproperty 'MS_Description', '主键', 'SCHEMA', 'dbo', 'TABLE', 'foo_bar', 'COLUMN', 'id'
|
|
36
|
+go
|
|
37
|
+
|
|
38
|
+exec sp_addextendedproperty 'MS_Description', '名称', 'SCHEMA', 'dbo', 'TABLE', 'foo_bar', 'COLUMN', 'name'
|
|
39
|
+go
|
|
40
|
+
|
|
41
|
+exec sp_addextendedproperty 'MS_Description', 'Foo', 'SCHEMA', 'dbo', 'TABLE', 'foo_bar', 'COLUMN', 'foo'
|
|
42
|
+go
|
|
43
|
+
|
|
44
|
+exec sp_addextendedproperty 'MS_Description', 'Bar', 'SCHEMA', 'dbo', 'TABLE', 'foo_bar', 'COLUMN', 'bar'
|
|
45
|
+go
|
|
46
|
+
|
|
47
|
+exec sp_addextendedproperty 'MS_Description', '备注', 'SCHEMA', 'dbo', 'TABLE', 'foo_bar', 'COLUMN', 'remark'
|
|
48
|
+go
|
|
49
|
+
|
|
50
|
+exec sp_addextendedproperty 'MS_Description', '状态,0:禁用,1:启用', 'SCHEMA', 'dbo', 'TABLE', 'foo_bar', 'COLUMN', 'state'
|
|
51
|
+go
|
|
52
|
+
|
|
53
|
+exec sp_addextendedproperty 'MS_Description', '版本', 'SCHEMA', 'dbo', 'TABLE', 'foo_bar', 'COLUMN', 'version'
|
|
54
|
+go
|
|
55
|
+
|
|
56
|
+exec sp_addextendedproperty 'MS_Description', '创建时间', 'SCHEMA', 'dbo', 'TABLE', 'foo_bar', 'COLUMN', 'create_time'
|
|
57
|
+go
|
|
58
|
+
|
|
59
|
+exec sp_addextendedproperty 'MS_Description', '修改时间', 'SCHEMA', 'dbo', 'TABLE', 'foo_bar', 'COLUMN', 'update_time'
|
|
60
|
+go
|
|
61
|
+
|
|
62
|
+create table ip
|
|
63
|
+(
|
|
64
|
+ id bigint identity
|
|
65
|
+ constraint ip_pk
|
|
66
|
+ primary key nonclustered,
|
|
67
|
+ ip_start varchar(15) not null,
|
|
68
|
+ ip_end varchar(15) not null,
|
|
69
|
+ area varchar(100) not null,
|
|
70
|
+ operator varchar(200) not null,
|
|
71
|
+ ip_start_num bigint not null,
|
|
72
|
+ ip_end_num bigint not null,
|
|
73
|
+ create_time datetime default getdate() not null
|
|
74
|
+) go
|
|
75
|
+
|
|
76
|
+exec sp_addextendedproperty 'MS_Description', 'IP', 'SCHEMA', 'dbo', 'TABLE', 'ip'
|
|
77
|
+go
|
|
78
|
+
|
|
79
|
+exec sp_addextendedproperty 'MS_Description', '主键', 'SCHEMA', 'dbo', 'TABLE', 'ip', 'COLUMN', 'id'
|
|
80
|
+go
|
|
81
|
+
|
|
82
|
+exec sp_addextendedproperty 'MS_Description', '创建时间', 'SCHEMA', 'dbo', 'TABLE', 'ip', 'COLUMN', 'create_time'
|
|
83
|
+go
|
|
84
|
+
|
|
85
|
+create table sys_department
|
|
86
|
+(
|
|
87
|
+ id bigint identity
|
|
88
|
+ constraint sys_department_pk
|
|
89
|
+ primary key nonclustered,
|
|
90
|
+ name varchar(32) not null,
|
|
91
|
+ parent_id bigint,
|
|
92
|
+ level int,
|
|
93
|
+ state int default 1 not null,
|
|
94
|
+ sort int default 0 not null,
|
|
95
|
+ remark varchar(200),
|
|
96
|
+ version int default 0 not null,
|
|
97
|
+ create_time datetime default getdate() not null,
|
|
98
|
+ update_time datetime
|
|
99
|
+) go
|
|
100
|
+
|
|
101
|
+exec sp_addextendedproperty 'MS_Description', '部门', 'SCHEMA', 'dbo', 'TABLE', 'sys_department'
|
|
102
|
+go
|
|
103
|
+
|
|
104
|
+exec sp_addextendedproperty 'MS_Description', '主键', 'SCHEMA', 'dbo', 'TABLE', 'sys_department', 'COLUMN', 'id'
|
|
105
|
+go
|
|
106
|
+
|
|
107
|
+exec sp_addextendedproperty 'MS_Description', '部门名称', 'SCHEMA', 'dbo', 'TABLE', 'sys_department', 'COLUMN', 'name'
|
|
108
|
+go
|
|
109
|
+
|
|
110
|
+exec sp_addextendedproperty 'MS_Description', '父id', 'SCHEMA', 'dbo', 'TABLE', 'sys_department', 'COLUMN', 'parent_id'
|
|
111
|
+go
|
|
112
|
+
|
|
113
|
+exec sp_addextendedproperty 'MS_Description', '部门层级', 'SCHEMA', 'dbo', 'TABLE', 'sys_department', 'COLUMN', 'level'
|
|
114
|
+go
|
|
115
|
+
|
|
116
|
+exec sp_addextendedproperty 'MS_Description', '状态,0:禁用,1:启用', 'SCHEMA', 'dbo', 'TABLE', 'sys_department', 'COLUMN', 'state'
|
|
117
|
+go
|
|
118
|
+
|
|
119
|
+exec sp_addextendedproperty 'MS_Description', '排序', 'SCHEMA', 'dbo', 'TABLE', 'sys_department', 'COLUMN', 'sort'
|
|
120
|
+go
|
|
121
|
+
|
|
122
|
+exec sp_addextendedproperty 'MS_Description', '备注', 'SCHEMA', 'dbo', 'TABLE', 'sys_department', 'COLUMN', 'remark'
|
|
123
|
+go
|
|
124
|
+
|
|
125
|
+exec sp_addextendedproperty 'MS_Description', '版本', 'SCHEMA', 'dbo', 'TABLE', 'sys_department', 'COLUMN', 'version'
|
|
126
|
+go
|
|
127
|
+
|
|
128
|
+exec sp_addextendedproperty 'MS_Description', '创建时间', 'SCHEMA', 'dbo', 'TABLE', 'sys_department', 'COLUMN', 'create_time'
|
|
129
|
+go
|
|
130
|
+
|
|
131
|
+exec sp_addextendedproperty 'MS_Description', '修改时间', 'SCHEMA', 'dbo', 'TABLE', 'sys_department', 'COLUMN', 'update_time'
|
|
132
|
+go
|
|
133
|
+
|
|
134
|
+create table sys_log
|
|
135
|
+(
|
|
136
|
+ log_id bigint identity
|
|
137
|
+ constraint sys_log_pk
|
|
138
|
+ primary key nonclustered,
|
|
139
|
+ type smallint,
|
|
140
|
+ content varchar(255),
|
|
141
|
+ create_id bigint,
|
|
142
|
+ create_time datetime default getdate() not null
|
|
143
|
+) go
|
|
144
|
+
|
|
145
|
+exec sp_addextendedproperty 'MS_Description', '系统日志', 'SCHEMA', 'dbo', 'TABLE', 'sys_log'
|
|
146
|
+go
|
|
147
|
+
|
|
148
|
+exec sp_addextendedproperty 'MS_Description', '主键', 'SCHEMA', 'dbo', 'TABLE', 'sys_log', 'COLUMN', 'log_id'
|
|
149
|
+go
|
|
150
|
+
|
|
151
|
+exec sp_addextendedproperty 'MS_Description', '类型', 'SCHEMA', 'dbo', 'TABLE', 'sys_log', 'COLUMN', 'type'
|
|
152
|
+go
|
|
153
|
+
|
|
154
|
+exec sp_addextendedproperty 'MS_Description', '内容', 'SCHEMA', 'dbo', 'TABLE', 'sys_log', 'COLUMN', 'content'
|
|
155
|
+go
|
|
156
|
+
|
|
157
|
+exec sp_addextendedproperty 'MS_Description', '创建人ID', 'SCHEMA', 'dbo', 'TABLE', 'sys_log', 'COLUMN', 'create_id'
|
|
158
|
+go
|
|
159
|
+
|
|
160
|
+exec sp_addextendedproperty 'MS_Description', '创建时间', 'SCHEMA', 'dbo', 'TABLE', 'sys_log', 'COLUMN', 'create_time'
|
|
161
|
+go
|
|
162
|
+
|
|
163
|
+create table sys_permission
|
|
164
|
+(
|
|
165
|
+ id bigint identity
|
|
166
|
+ constraint sys_permission_pk
|
|
167
|
+ primary key nonclustered,
|
|
168
|
+ name varchar(32),
|
|
169
|
+ parent_id bigint,
|
|
170
|
+ url varchar(200),
|
|
171
|
+ code varchar(100) not null,
|
|
172
|
+ icon varchar(100),
|
|
173
|
+ type int not null,
|
|
174
|
+ level int not null,
|
|
175
|
+ state int default 1 not null,
|
|
176
|
+ sort int default 0 not null,
|
|
177
|
+ remark varchar(200),
|
|
178
|
+ version int default 0 not null,
|
|
179
|
+ create_time datetime default getdate() not null,
|
|
180
|
+ update_time datetime
|
|
181
|
+) go
|
|
182
|
+
|
|
183
|
+exec sp_addextendedproperty 'MS_Description', '系统权限', 'SCHEMA', 'dbo', 'TABLE', 'sys_permission'
|
|
184
|
+go
|
|
185
|
+
|
|
186
|
+exec sp_addextendedproperty 'MS_Description', '主键', 'SCHEMA', 'dbo', 'TABLE', 'sys_permission', 'COLUMN', 'id'
|
|
187
|
+go
|
|
188
|
+
|
|
189
|
+exec sp_addextendedproperty 'MS_Description', '权限名称', 'SCHEMA', 'dbo', 'TABLE', 'sys_permission', 'COLUMN', 'name'
|
|
190
|
+go
|
|
191
|
+
|
|
192
|
+exec sp_addextendedproperty 'MS_Description', '父id', 'SCHEMA', 'dbo', 'TABLE', 'sys_permission', 'COLUMN', 'parent_id'
|
|
193
|
+go
|
|
194
|
+
|
|
195
|
+exec sp_addextendedproperty 'MS_Description', '路径', 'SCHEMA', 'dbo', 'TABLE', 'sys_permission', 'COLUMN', 'url'
|
|
196
|
+go
|
|
197
|
+
|
|
198
|
+exec sp_addextendedproperty 'MS_Description', '唯一编码', 'SCHEMA', 'dbo', 'TABLE', 'sys_permission', 'COLUMN', 'code'
|
|
199
|
+go
|
|
200
|
+
|
|
201
|
+exec sp_addextendedproperty 'MS_Description', '图标', 'SCHEMA', 'dbo', 'TABLE', 'sys_permission', 'COLUMN', 'icon'
|
|
202
|
+go
|
|
203
|
+
|
|
204
|
+exec sp_addextendedproperty 'MS_Description', '类型,1:菜单,2:按钮', 'SCHEMA', 'dbo', 'TABLE', 'sys_permission', 'COLUMN', 'type'
|
|
205
|
+go
|
|
206
|
+
|
|
207
|
+exec sp_addextendedproperty 'MS_Description', '层级,1:第一级,2:第二级,N:第N级', 'SCHEMA', 'dbo', 'TABLE', 'sys_permission', 'COLUMN', 'level'
|
|
208
|
+go
|
|
209
|
+
|
|
210
|
+exec sp_addextendedproperty 'MS_Description', '状态,0:禁用,1:启用', 'SCHEMA', 'dbo', 'TABLE', 'sys_permission', 'COLUMN', 'state'
|
|
211
|
+go
|
|
212
|
+
|
|
213
|
+exec sp_addextendedproperty 'MS_Description', '排序', 'SCHEMA', 'dbo', 'TABLE', 'sys_permission', 'COLUMN', 'sort'
|
|
214
|
+go
|
|
215
|
+
|
|
216
|
+exec sp_addextendedproperty 'MS_Description', '备注', 'SCHEMA', 'dbo', 'TABLE', 'sys_permission', 'COLUMN', 'remark'
|
|
217
|
+go
|
|
218
|
+
|
|
219
|
+exec sp_addextendedproperty 'MS_Description', '版本', 'SCHEMA', 'dbo', 'TABLE', 'sys_permission', 'COLUMN', 'version'
|
|
220
|
+go
|
|
221
|
+
|
|
222
|
+exec sp_addextendedproperty 'MS_Description', '创建时间', 'SCHEMA', 'dbo', 'TABLE', 'sys_permission', 'COLUMN', 'create_time'
|
|
223
|
+go
|
|
224
|
+
|
|
225
|
+exec sp_addextendedproperty 'MS_Description', '修改时间', 'SCHEMA', 'dbo', 'TABLE', 'sys_permission', 'COLUMN', 'update_time'
|
|
226
|
+go
|
|
227
|
+
|
|
228
|
+create table sys_role
|
|
229
|
+(
|
|
230
|
+ id bigint identity
|
|
231
|
+ constraint sys_role_pk
|
|
232
|
+ primary key nonclustered,
|
|
233
|
+ name varchar(32) not null,
|
|
234
|
+ code varchar(100),
|
|
235
|
+ type int,
|
|
236
|
+ state int default 1 not null,
|
|
237
|
+ remark varchar(200),
|
|
238
|
+ version int default 0 not null,
|
|
239
|
+ create_time datetime default getdate() not null,
|
|
240
|
+ update_time datetime
|
|
241
|
+) go
|
|
242
|
+
|
|
243
|
+exec sp_addextendedproperty 'MS_Description', '系统角色', 'SCHEMA', 'dbo', 'TABLE', 'sys_role'
|
|
244
|
+go
|
|
245
|
+
|
|
246
|
+exec sp_addextendedproperty 'MS_Description', '主键', 'SCHEMA', 'dbo', 'TABLE', 'sys_role', 'COLUMN', 'id'
|
|
247
|
+go
|
|
248
|
+
|
|
249
|
+exec sp_addextendedproperty 'MS_Description', '角色名称', 'SCHEMA', 'dbo', 'TABLE', 'sys_role', 'COLUMN', 'name'
|
|
250
|
+go
|
|
251
|
+
|
|
252
|
+exec sp_addextendedproperty 'MS_Description', '角色唯一编码', 'SCHEMA', 'dbo', 'TABLE', 'sys_role', 'COLUMN', 'code'
|
|
253
|
+go
|
|
254
|
+
|
|
255
|
+exec sp_addextendedproperty 'MS_Description', '角色类型', 'SCHEMA', 'dbo', 'TABLE', 'sys_role', 'COLUMN', 'type'
|
|
256
|
+go
|
|
257
|
+
|
|
258
|
+exec sp_addextendedproperty 'MS_Description', '角色状态,0:禁用,1:启用', 'SCHEMA', 'dbo', 'TABLE', 'sys_role', 'COLUMN', 'state'
|
|
259
|
+go
|
|
260
|
+
|
|
261
|
+exec sp_addextendedproperty 'MS_Description', '备注', 'SCHEMA', 'dbo', 'TABLE', 'sys_role', 'COLUMN', 'remark'
|
|
262
|
+go
|
|
263
|
+
|
|
264
|
+exec sp_addextendedproperty 'MS_Description', '版本', 'SCHEMA', 'dbo', 'TABLE', 'sys_role', 'COLUMN', 'version'
|
|
265
|
+go
|
|
266
|
+
|
|
267
|
+exec sp_addextendedproperty 'MS_Description', '创建时间', 'SCHEMA', 'dbo', 'TABLE', 'sys_role', 'COLUMN', 'create_time'
|
|
268
|
+go
|
|
269
|
+
|
|
270
|
+exec sp_addextendedproperty 'MS_Description', '修改时间', 'SCHEMA', 'dbo', 'TABLE', 'sys_role', 'COLUMN', 'update_time'
|
|
271
|
+go
|
|
272
|
+
|
|
273
|
+create table sys_role_permission
|
|
274
|
+(
|
|
275
|
+ id bigint identity
|
|
276
|
+ constraint sys_role_permission_pk
|
|
277
|
+ primary key nonclustered,
|
|
278
|
+ role_id bigint not null,
|
|
279
|
+ permission_id bigint not null,
|
|
280
|
+ state int default 1 not null,
|
|
281
|
+ remark varchar(200),
|
|
282
|
+ version int default 0 not null,
|
|
283
|
+ create_time datetime default getdate() not null,
|
|
284
|
+ update_time datetime
|
|
285
|
+) go
|
|
286
|
+
|
|
287
|
+exec sp_addextendedproperty 'MS_Description', '角色权限', 'SCHEMA', 'dbo', 'TABLE', 'sys_role_permission'
|
|
288
|
+go
|
|
289
|
+
|
|
290
|
+exec sp_addextendedproperty 'MS_Description', '主键', 'SCHEMA', 'dbo', 'TABLE', 'sys_role_permission', 'COLUMN', 'id'
|
|
291
|
+go
|
|
292
|
+
|
|
293
|
+exec sp_addextendedproperty 'MS_Description', '角色id', 'SCHEMA', 'dbo', 'TABLE', 'sys_role_permission', 'COLUMN', 'role_id'
|
|
294
|
+go
|
|
295
|
+
|
|
296
|
+exec sp_addextendedproperty 'MS_Description', '权限id', 'SCHEMA', 'dbo', 'TABLE', 'sys_role_permission', 'COLUMN', 'permission_id'
|
|
297
|
+go
|
|
298
|
+
|
|
299
|
+exec sp_addextendedproperty 'MS_Description', '状态,0:禁用,1:启用', 'SCHEMA', 'dbo', 'TABLE', 'sys_role_permission', 'COLUMN', 'state'
|
|
300
|
+go
|
|
301
|
+
|
|
302
|
+exec sp_addextendedproperty 'MS_Description', '备注', 'SCHEMA', 'dbo', 'TABLE', 'sys_role_permission', 'COLUMN', 'remark'
|
|
303
|
+go
|
|
304
|
+
|
|
305
|
+exec sp_addextendedproperty 'MS_Description', '版本', 'SCHEMA', 'dbo', 'TABLE', 'sys_role_permission', 'COLUMN', 'version'
|
|
306
|
+go
|
|
307
|
+
|
|
308
|
+exec sp_addextendedproperty 'MS_Description', '创建时间', 'SCHEMA', 'dbo', 'TABLE', 'sys_role_permission', 'COLUMN', 'create_time'
|
|
309
|
+go
|
|
310
|
+
|
|
311
|
+exec sp_addextendedproperty 'MS_Description', '修改时间', 'SCHEMA', 'dbo', 'TABLE', 'sys_role_permission', 'COLUMN', 'update_time'
|
|
312
|
+go
|
|
313
|
+
|
|
314
|
+create table sys_user
|
|
315
|
+(
|
|
316
|
+ id bigint identity
|
|
317
|
+ constraint sys_user_pk
|
|
318
|
+ primary key nonclustered,
|
|
319
|
+ username varchar(20) not null,
|
|
320
|
+ nickname varchar(20),
|
|
321
|
+ password varchar(64) not null,
|
|
322
|
+ salt varchar(32),
|
|
323
|
+ phone varchar(20) not null,
|
|
324
|
+ gender int default 1 not null,
|
|
325
|
+ head varchar(200),
|
|
326
|
+ remark varchar(200),
|
|
327
|
+ state int default 1 not null,
|
|
328
|
+ department_id bigint not null,
|
|
329
|
+ role_id bigint not null,
|
|
330
|
+ deleted int default 0 not null,
|
|
331
|
+ version int default 0 not null,
|
|
332
|
+ create_time datetime default getdate() not null,
|
|
333
|
+ update_time datetime
|
|
334
|
+) go
|
|
335
|
+
|
|
336
|
+exec sp_addextendedproperty 'MS_Description', '系统用户', 'SCHEMA', 'dbo', 'TABLE', 'sys_user'
|
|
337
|
+go
|
|
338
|
+
|
|
339
|
+exec sp_addextendedproperty 'MS_Description', '主键', 'SCHEMA', 'dbo', 'TABLE', 'sys_user', 'COLUMN', 'id'
|
|
340
|
+go
|
|
341
|
+
|
|
342
|
+exec sp_addextendedproperty 'MS_Description', '用户名', 'SCHEMA', 'dbo', 'TABLE', 'sys_user', 'COLUMN', 'username'
|
|
343
|
+go
|
|
344
|
+
|
|
345
|
+exec sp_addextendedproperty 'MS_Description', '昵称', 'SCHEMA', 'dbo', 'TABLE', 'sys_user', 'COLUMN', 'nickname'
|
|
346
|
+go
|
|
347
|
+
|
|
348
|
+exec sp_addextendedproperty 'MS_Description', '密码', 'SCHEMA', 'dbo', 'TABLE', 'sys_user', 'COLUMN', 'password'
|
|
349
|
+go
|
|
350
|
+
|
|
351
|
+exec sp_addextendedproperty 'MS_Description', '盐值', 'SCHEMA', 'dbo', 'TABLE', 'sys_user', 'COLUMN', 'salt'
|
|
352
|
+go
|
|
353
|
+
|
|
354
|
+exec sp_addextendedproperty 'MS_Description', '手机号码', 'SCHEMA', 'dbo', 'TABLE', 'sys_user', 'COLUMN', 'phone'
|
|
355
|
+go
|
|
356
|
+
|
|
357
|
+exec sp_addextendedproperty 'MS_Description', '性别,0:女,1:男,默认1', 'SCHEMA', 'dbo', 'TABLE', 'sys_user', 'COLUMN', 'gender'
|
|
358
|
+go
|
|
359
|
+
|
|
360
|
+exec sp_addextendedproperty 'MS_Description', '头像', 'SCHEMA', 'dbo', 'TABLE', 'sys_user', 'COLUMN', 'head'
|
|
361
|
+go
|
|
362
|
+
|
|
363
|
+exec sp_addextendedproperty 'MS_Description', '备注', 'SCHEMA', 'dbo', 'TABLE', 'sys_user', 'COLUMN', 'remark'
|
|
364
|
+go
|
|
365
|
+
|
|
366
|
+exec sp_addextendedproperty 'MS_Description', '状态,0:禁用,1:启用,2:锁定', 'SCHEMA', 'dbo', 'TABLE', 'sys_user', 'COLUMN', 'state'
|
|
367
|
+go
|
|
368
|
+
|
|
369
|
+exec sp_addextendedproperty 'MS_Description', '部门id', 'SCHEMA', 'dbo', 'TABLE', 'sys_user', 'COLUMN', 'department_id'
|
|
370
|
+go
|
|
371
|
+
|
|
372
|
+exec sp_addextendedproperty 'MS_Description', '角色id', 'SCHEMA', 'dbo', 'TABLE', 'sys_user', 'COLUMN', 'role_id'
|
|
373
|
+go
|
|
374
|
+
|
|
375
|
+exec sp_addextendedproperty 'MS_Description', '逻辑删除,0:未删除,1:已删除', 'SCHEMA', 'dbo', 'TABLE', 'sys_user', 'COLUMN', 'deleted'
|
|
376
|
+go
|
|
377
|
+
|
|
378
|
+exec sp_addextendedproperty 'MS_Description', '版本', 'SCHEMA', 'dbo', 'TABLE', 'sys_user', 'COLUMN', 'version'
|
|
379
|
+go
|
|
380
|
+
|
|
381
|
+exec sp_addextendedproperty 'MS_Description', '创建时间', 'SCHEMA', 'dbo', 'TABLE', 'sys_user', 'COLUMN', 'create_time'
|
|
382
|
+go
|
|
383
|
+
|
|
384
|
+exec sp_addextendedproperty 'MS_Description', '修改时间', 'SCHEMA', 'dbo', 'TABLE', 'sys_user', 'COLUMN', 'update_time'
|
|
385
|
+go
|
|
386
|
+
|
|
387
|
+
|
|
388
|
+
|
|
389
|
+set identity_insert spring_boot_plus.dbo.foo_bar on
|
|
390
|
+INSERT INTO spring_boot_plus.dbo.foo_bar (id, name, foo, bar, remark, state, version, create_time, update_time) VALUES (1, 'FooBar', 'foo', 'bar', 'remark...', 1, 0, '2019-11-01 14:05:14.000', null);
|
|
391
|
+INSERT INTO spring_boot_plus.dbo.foo_bar (id, name, foo, bar, remark, state, version, create_time, update_time) VALUES (2, 'HelloWorld', 'hello', 'world', null, 1, 0, '2019-11-01 14:05:14.000', null);
|
|
392
|
+set identity_insert spring_boot_plus.dbo.foo_bar off
|
|
393
|
+
|
|
394
|
+
|
|
395
|
+set identity_insert spring_boot_plus.dbo.sys_department on
|
|
396
|
+INSERT INTO spring_boot_plus.dbo.sys_department (id, name, parent_id, level, state, sort, remark, version, create_time, update_time) VALUES (1, '管理部', null, 1, 1, 0, null, 0, '2019-10-25 09:46:49.000', null);
|
|
397
|
+INSERT INTO spring_boot_plus.dbo.sys_department (id, name, parent_id, level, state, sort, remark, version, create_time, update_time) VALUES (2, '技术部', null, 1, 1, 0, null, 0, '2019-11-01 20:45:43.000', null);
|
|
398
|
+INSERT INTO spring_boot_plus.dbo.sys_department (id, name, parent_id, level, state, sort, remark, version, create_time, update_time) VALUES (20, '前端开发部', 2, 2, 1, 0, null, 0, '2019-11-01 20:48:38.000', null);
|
|
399
|
+INSERT INTO spring_boot_plus.dbo.sys_department (id, name, parent_id, level, state, sort, remark, version, create_time, update_time) VALUES (21, '后台开发部', 2, 2, 1, 0, null, 0, '2019-11-01 20:48:38.000', null);
|
|
400
|
+INSERT INTO spring_boot_plus.dbo.sys_department (id, name, parent_id, level, state, sort, remark, version, create_time, update_time) VALUES (22, '测试部', 2, 2, 1, 0, null, 0, '2019-11-01 20:48:38.000', null);
|
|
401
|
+INSERT INTO spring_boot_plus.dbo.sys_department (id, name, parent_id, level, state, sort, remark, version, create_time, update_time) VALUES (201, '前端一组', 20, 3, 1, 0, null, 0, '2019-11-01 20:48:38.000', null);
|
|
402
|
+INSERT INTO spring_boot_plus.dbo.sys_department (id, name, parent_id, level, state, sort, remark, version, create_time, update_time) VALUES (202, '前端二组', 20, 3, 1, 0, null, 0, '2019-11-01 20:48:38.000', null);
|
|
403
|
+INSERT INTO spring_boot_plus.dbo.sys_department (id, name, parent_id, level, state, sort, remark, version, create_time, update_time) VALUES (203, '后台一组', 21, 3, 1, 0, null, 0, '2019-11-01 20:48:38.000', null);
|
|
404
|
+INSERT INTO spring_boot_plus.dbo.sys_department (id, name, parent_id, level, state, sort, remark, version, create_time, update_time) VALUES (204, '后台二组', 21, 3, 1, 0, null, 0, '2019-11-01 20:48:38.000', null);
|
|
405
|
+INSERT INTO spring_boot_plus.dbo.sys_department (id, name, parent_id, level, state, sort, remark, version, create_time, update_time) VALUES (205, '测试一组', 22, 3, 1, 0, null, 0, '2019-11-01 20:48:38.000', null);
|
|
406
|
+set identity_insert spring_boot_plus.dbo.sys_department off
|
|
407
|
+
|
|
408
|
+
|
|
409
|
+set identity_insert spring_boot_plus.dbo.sys_permission on
|
|
410
|
+INSERT INTO spring_boot_plus.dbo.sys_permission (id, name, parent_id, url, code, icon, type, level, state, sort, remark, version, create_time, update_time) VALUES (1, '系统管理', null, null, 'system:management', null, 1, 1, 1, 0, null, 0, '2019-10-26 11:12:40.000', null);
|
|
411
|
+INSERT INTO spring_boot_plus.dbo.sys_permission (id, name, parent_id, url, code, icon, type, level, state, sort, remark, version, create_time, update_time) VALUES (100, '用户管理', 1, null, 'sys:user:management', null, 1, 2, 1, 0, null, 0, '2019-10-26 11:15:48.000', null);
|
|
412
|
+INSERT INTO spring_boot_plus.dbo.sys_permission (id, name, parent_id, url, code, icon, type, level, state, sort, remark, version, create_time, update_time) VALUES (200, '角色管理', 1, null, 'sys:role:management', null, 1, 2, 1, 0, null, 0, '2019-10-26 11:15:48.000', null);
|
|
413
|
+INSERT INTO spring_boot_plus.dbo.sys_permission (id, name, parent_id, url, code, icon, type, level, state, sort, remark, version, create_time, update_time) VALUES (300, '权限管理', 1, null, 'sys:permission:management', null, 1, 2, 1, 0, null, 0, '2019-10-26 11:15:48.000', null);
|
|
414
|
+INSERT INTO spring_boot_plus.dbo.sys_permission (id, name, parent_id, url, code, icon, type, level, state, sort, remark, version, create_time, update_time) VALUES (400, '部门管理', 1, null, 'sys:department:management', null, 1, 2, 1, 0, null, 0, '2019-10-26 11:15:48.000', null);
|
|
415
|
+INSERT INTO spring_boot_plus.dbo.sys_permission (id, name, parent_id, url, code, icon, type, level, state, sort, remark, version, create_time, update_time) VALUES (1000, '用户新增', 100, null, 'sys:user:add', null, 2, 3, 1, 0, null, 0, '2019-10-26 11:18:40.000', null);
|
|
416
|
+INSERT INTO spring_boot_plus.dbo.sys_permission (id, name, parent_id, url, code, icon, type, level, state, sort, remark, version, create_time, update_time) VALUES (1001, '用户修改', 100, null, 'sys:user:update', null, 2, 3, 1, 0, null, 0, '2019-10-26 11:18:40.000', null);
|
|
417
|
+INSERT INTO spring_boot_plus.dbo.sys_permission (id, name, parent_id, url, code, icon, type, level, state, sort, remark, version, create_time, update_time) VALUES (1002, '用户删除', 100, null, 'sys:user:delete', null, 2, 3, 1, 0, null, 0, '2019-10-26 11:18:40.000', null);
|
|
418
|
+INSERT INTO spring_boot_plus.dbo.sys_permission (id, name, parent_id, url, code, icon, type, level, state, sort, remark, version, create_time, update_time) VALUES (1003, '用户详情', 100, null, 'sys:user:info', null, 2, 3, 1, 0, null, 0, '2019-10-26 11:18:40.000', null);
|
|
419
|
+INSERT INTO spring_boot_plus.dbo.sys_permission (id, name, parent_id, url, code, icon, type, level, state, sort, remark, version, create_time, update_time) VALUES (1004, '用户分页列表', 100, null, 'sys:user:page', null, 2, 3, 1, 0, null, 0, '2019-10-26 11:18:40.000', null);
|
|
420
|
+INSERT INTO spring_boot_plus.dbo.sys_permission (id, name, parent_id, url, code, icon, type, level, state, sort, remark, version, create_time, update_time) VALUES (1005, '用户修改密码', 100, null, 'sys:user:update:password', null, 2, 3, 1, 0, null, 0, '2019-10-26 11:18:40.000', null);
|
|
421
|
+INSERT INTO spring_boot_plus.dbo.sys_permission (id, name, parent_id, url, code, icon, type, level, state, sort, remark, version, create_time, update_time) VALUES (1006, '用户修改头像', 100, null, 'sys:user:update:head', null, 2, 3, 1, 0, null, 0, '2019-10-26 11:18:40.000', null);
|
|
422
|
+INSERT INTO spring_boot_plus.dbo.sys_permission (id, name, parent_id, url, code, icon, type, level, state, sort, remark, version, create_time, update_time) VALUES (2000, '角色新增', 200, null, 'sys:role:add', null, 2, 3, 1, 0, null, 0, '2019-10-26 11:18:40.000', null);
|
|
423
|
+INSERT INTO spring_boot_plus.dbo.sys_permission (id, name, parent_id, url, code, icon, type, level, state, sort, remark, version, create_time, update_time) VALUES (2001, '角色修改', 200, null, 'sys:role:update', null, 2, 3, 1, 0, null, 0, '2019-10-26 11:18:40.000', null);
|
|
424
|
+INSERT INTO spring_boot_plus.dbo.sys_permission (id, name, parent_id, url, code, icon, type, level, state, sort, remark, version, create_time, update_time) VALUES (2002, '角色删除', 200, null, 'sys:role:delete', null, 2, 3, 1, 0, null, 0, '2019-10-26 11:18:40.000', null);
|
|
425
|
+INSERT INTO spring_boot_plus.dbo.sys_permission (id, name, parent_id, url, code, icon, type, level, state, sort, remark, version, create_time, update_time) VALUES (2003, '角色详情', 200, null, 'sys:role:info', null, 2, 3, 1, 0, null, 0, '2019-10-26 11:18:40.000', null);
|
|
426
|
+INSERT INTO spring_boot_plus.dbo.sys_permission (id, name, parent_id, url, code, icon, type, level, state, sort, remark, version, create_time, update_time) VALUES (2004, '角色分页列表', 200, null, 'sys:role:page', null, 2, 3, 1, 0, null, 0, '2019-10-26 11:18:40.000', null);
|
|
427
|
+INSERT INTO spring_boot_plus.dbo.sys_permission (id, name, parent_id, url, code, icon, type, level, state, sort, remark, version, create_time, update_time) VALUES (3000, '权限新增', 300, null, 'sys:permission:add', null, 2, 3, 1, 0, null, 0, '2019-10-26 11:18:40.000', null);
|
|
428
|
+INSERT INTO spring_boot_plus.dbo.sys_permission (id, name, parent_id, url, code, icon, type, level, state, sort, remark, version, create_time, update_time) VALUES (3001, '权限修改', 300, null, 'sys:permission:update', null, 2, 3, 1, 0, null, 0, '2019-10-26 11:18:40.000', null);
|
|
429
|
+INSERT INTO spring_boot_plus.dbo.sys_permission (id, name, parent_id, url, code, icon, type, level, state, sort, remark, version, create_time, update_time) VALUES (3002, '权限删除', 300, null, 'sys:permission:delete', null, 2, 3, 1, 0, null, 0, '2019-10-26 11:18:40.000', null);
|
|
430
|
+INSERT INTO spring_boot_plus.dbo.sys_permission (id, name, parent_id, url, code, icon, type, level, state, sort, remark, version, create_time, update_time) VALUES (3003, '权限详情', 300, null, 'sys:permission:info', null, 2, 3, 1, 0, null, 0, '2019-10-26 11:18:40.000', null);
|
|
431
|
+INSERT INTO spring_boot_plus.dbo.sys_permission (id, name, parent_id, url, code, icon, type, level, state, sort, remark, version, create_time, update_time) VALUES (3004, '权限分页列表', 300, null, 'sys:permission:page', null, 2, 3, 1, 0, null, 0, '2019-10-26 11:18:40.000', null);
|
|
432
|
+INSERT INTO spring_boot_plus.dbo.sys_permission (id, name, parent_id, url, code, icon, type, level, state, sort, remark, version, create_time, update_time) VALUES (3005, '权限所有列表', 300, null, 'sys:permission:all:menu:list', null, 2, 3, 1, 0, null, 0, '2019-10-26 11:18:40.000', null);
|
|
433
|
+INSERT INTO spring_boot_plus.dbo.sys_permission (id, name, parent_id, url, code, icon, type, level, state, sort, remark, version, create_time, update_time) VALUES (3006, '权限所有树形列表', 300, null, 'sys:permission:all:menu:tree', null, 2, 3, 1, 0, null, 0, '2019-10-26 11:18:40.000', null);
|
|
434
|
+INSERT INTO spring_boot_plus.dbo.sys_permission (id, name, parent_id, url, code, icon, type, level, state, sort, remark, version, create_time, update_time) VALUES (3007, '权限用户列表', 300, null, 'sys:permission:menu:list', null, 2, 3, 1, 0, null, 0, '2019-10-26 11:18:40.000', null);
|
|
435
|
+INSERT INTO spring_boot_plus.dbo.sys_permission (id, name, parent_id, url, code, icon, type, level, state, sort, remark, version, create_time, update_time) VALUES (3008, '权限用户树形列表', 300, null, 'sys:permission:menu:tree', null, 2, 3, 1, 0, null, 0, '2019-10-26 11:18:40.000', null);
|
|
436
|
+INSERT INTO spring_boot_plus.dbo.sys_permission (id, name, parent_id, url, code, icon, type, level, state, sort, remark, version, create_time, update_time) VALUES (3009, '权限用户代码列表', 300, null, 'sys:permission:codes', null, 2, 3, 1, 0, null, 0, '2019-10-26 11:18:40.000', null);
|
|
437
|
+INSERT INTO spring_boot_plus.dbo.sys_permission (id, name, parent_id, url, code, icon, type, level, state, sort, remark, version, create_time, update_time) VALUES (4000, '部门新增', 400, null, 'sys:department:add', null, 2, 3, 1, 0, null, 0, '2019-10-26 11:18:40.000', null);
|
|
438
|
+INSERT INTO spring_boot_plus.dbo.sys_permission (id, name, parent_id, url, code, icon, type, level, state, sort, remark, version, create_time, update_time) VALUES (4001, '部门修改', 400, null, 'sys:department:update', null, 2, 3, 1, 0, null, 0, '2019-10-26 11:18:40.000', null);
|
|
439
|
+INSERT INTO spring_boot_plus.dbo.sys_permission (id, name, parent_id, url, code, icon, type, level, state, sort, remark, version, create_time, update_time) VALUES (4002, '部门删除', 400, null, 'sys:department:delete', null, 2, 3, 1, 0, null, 0, '2019-10-26 11:18:40.000', null);
|
|
440
|
+INSERT INTO spring_boot_plus.dbo.sys_permission (id, name, parent_id, url, code, icon, type, level, state, sort, remark, version, create_time, update_time) VALUES (4003, '部门详情', 400, null, 'sys:department:info', null, 2, 3, 1, 0, null, 0, '2019-10-26 11:18:40.000', null);
|
|
441
|
+INSERT INTO spring_boot_plus.dbo.sys_permission (id, name, parent_id, url, code, icon, type, level, state, sort, remark, version, create_time, update_time) VALUES (4004, '部门分页列表', 400, null, 'sys:department:page', null, 2, 3, 1, 0, null, 0, '2019-10-26 11:18:40.000', null);
|
|
442
|
+set identity_insert spring_boot_plus.dbo.sys_permission off
|
|
443
|
+
|
|
444
|
+
|
|
445
|
+set identity_insert spring_boot_plus.dbo.sys_role on
|
|
446
|
+INSERT INTO spring_boot_plus.dbo.sys_role (id, name, code, type, state, remark, version, create_time, update_time) VALUES (1, '管理员', 'admin', null, 1, null, 0, '2019-10-25 09:47:21.000', null);
|
|
447
|
+INSERT INTO spring_boot_plus.dbo.sys_role (id, name, code, type, state, remark, version, create_time, update_time) VALUES (2, 'test', 'test', null, 1, null, 0, '2019-10-25 09:48:02.000', null);
|
|
448
|
+set identity_insert spring_boot_plus.dbo.sys_role off
|
|
449
|
+
|
|
450
|
+
|
|
451
|
+set identity_insert spring_boot_plus.dbo.sys_role_permission on
|
|
452
|
+INSERT INTO spring_boot_plus.dbo.sys_role_permission (id, role_id, permission_id, state, remark, version, create_time, update_time) VALUES (1, 1, 1, 1, null, 0, '2019-10-26 22:16:19.000', null);
|
|
453
|
+INSERT INTO spring_boot_plus.dbo.sys_role_permission (id, role_id, permission_id, state, remark, version, create_time, update_time) VALUES (2, 1, 100, 1, null, 0, '2019-10-26 22:16:19.000', null);
|
|
454
|
+INSERT INTO spring_boot_plus.dbo.sys_role_permission (id, role_id, permission_id, state, remark, version, create_time, update_time) VALUES (3, 1, 200, 1, null, 0, '2019-10-26 22:16:19.000', null);
|
|
455
|
+INSERT INTO spring_boot_plus.dbo.sys_role_permission (id, role_id, permission_id, state, remark, version, create_time, update_time) VALUES (4, 1, 300, 1, null, 0, '2019-10-26 22:16:19.000', null);
|
|
456
|
+INSERT INTO spring_boot_plus.dbo.sys_role_permission (id, role_id, permission_id, state, remark, version, create_time, update_time) VALUES (5, 1, 400, 1, null, 0, '2019-10-26 22:16:19.000', null);
|
|
457
|
+INSERT INTO spring_boot_plus.dbo.sys_role_permission (id, role_id, permission_id, state, remark, version, create_time, update_time) VALUES (6, 1, 1000, 1, null, 0, '2019-10-26 22:16:19.000', null);
|
|
458
|
+INSERT INTO spring_boot_plus.dbo.sys_role_permission (id, role_id, permission_id, state, remark, version, create_time, update_time) VALUES (7, 1, 1001, 1, null, 0, '2019-10-26 22:16:19.000', null);
|
|
459
|
+INSERT INTO spring_boot_plus.dbo.sys_role_permission (id, role_id, permission_id, state, remark, version, create_time, update_time) VALUES (8, 1, 1002, 1, null, 0, '2019-10-26 22:16:19.000', null);
|
|
460
|
+INSERT INTO spring_boot_plus.dbo.sys_role_permission (id, role_id, permission_id, state, remark, version, create_time, update_time) VALUES (9, 1, 1003, 1, null, 0, '2019-10-26 22:16:19.000', null);
|
|
461
|
+INSERT INTO spring_boot_plus.dbo.sys_role_permission (id, role_id, permission_id, state, remark, version, create_time, update_time) VALUES (10, 1, 1004, 1, null, 0, '2019-10-26 22:16:19.000', null);
|
|
462
|
+INSERT INTO spring_boot_plus.dbo.sys_role_permission (id, role_id, permission_id, state, remark, version, create_time, update_time) VALUES (11, 1, 1005, 1, null, 0, '2019-10-26 22:16:19.000', null);
|
|
463
|
+INSERT INTO spring_boot_plus.dbo.sys_role_permission (id, role_id, permission_id, state, remark, version, create_time, update_time) VALUES (12, 1, 1006, 1, null, 0, '2019-10-26 22:16:19.000', null);
|
|
464
|
+INSERT INTO spring_boot_plus.dbo.sys_role_permission (id, role_id, permission_id, state, remark, version, create_time, update_time) VALUES (13, 1, 2000, 1, null, 0, '2019-10-26 22:16:19.000', null);
|
|
465
|
+INSERT INTO spring_boot_plus.dbo.sys_role_permission (id, role_id, permission_id, state, remark, version, create_time, update_time) VALUES (14, 1, 2001, 1, null, 0, '2019-10-26 22:16:19.000', null);
|
|
466
|
+INSERT INTO spring_boot_plus.dbo.sys_role_permission (id, role_id, permission_id, state, remark, version, create_time, update_time) VALUES (15, 1, 2002, 1, null, 0, '2019-10-26 22:16:19.000', null);
|
|
467
|
+INSERT INTO spring_boot_plus.dbo.sys_role_permission (id, role_id, permission_id, state, remark, version, create_time, update_time) VALUES (16, 1, 2003, 1, null, 0, '2019-10-26 22:16:19.000', null);
|
|
468
|
+INSERT INTO spring_boot_plus.dbo.sys_role_permission (id, role_id, permission_id, state, remark, version, create_time, update_time) VALUES (17, 1, 2004, 1, null, 0, '2019-10-26 22:16:19.000', null);
|
|
469
|
+INSERT INTO spring_boot_plus.dbo.sys_role_permission (id, role_id, permission_id, state, remark, version, create_time, update_time) VALUES (18, 1, 3000, 1, null, 0, '2019-10-26 22:16:19.000', null);
|
|
470
|
+INSERT INTO spring_boot_plus.dbo.sys_role_permission (id, role_id, permission_id, state, remark, version, create_time, update_time) VALUES (19, 1, 3001, 1, null, 0, '2019-10-26 22:16:19.000', null);
|
|
471
|
+INSERT INTO spring_boot_plus.dbo.sys_role_permission (id, role_id, permission_id, state, remark, version, create_time, update_time) VALUES (20, 1, 3002, 1, null, 0, '2019-10-26 22:16:19.000', null);
|
|
472
|
+INSERT INTO spring_boot_plus.dbo.sys_role_permission (id, role_id, permission_id, state, remark, version, create_time, update_time) VALUES (21, 1, 3003, 1, null, 0, '2019-10-26 22:16:19.000', null);
|
|
473
|
+INSERT INTO spring_boot_plus.dbo.sys_role_permission (id, role_id, permission_id, state, remark, version, create_time, update_time) VALUES (22, 1, 3004, 1, null, 0, '2019-10-26 22:16:19.000', null);
|
|
474
|
+INSERT INTO spring_boot_plus.dbo.sys_role_permission (id, role_id, permission_id, state, remark, version, create_time, update_time) VALUES (23, 1, 3005, 1, null, 0, '2019-10-26 22:16:19.000', null);
|
|
475
|
+INSERT INTO spring_boot_plus.dbo.sys_role_permission (id, role_id, permission_id, state, remark, version, create_time, update_time) VALUES (24, 1, 3006, 1, null, 0, '2019-10-26 22:16:19.000', null);
|
|
476
|
+INSERT INTO spring_boot_plus.dbo.sys_role_permission (id, role_id, permission_id, state, remark, version, create_time, update_time) VALUES (25, 1, 3007, 1, null, 0, '2019-10-26 22:16:19.000', null);
|
|
477
|
+INSERT INTO spring_boot_plus.dbo.sys_role_permission (id, role_id, permission_id, state, remark, version, create_time, update_time) VALUES (26, 1, 3008, 1, null, 0, '2019-10-26 22:16:19.000', null);
|
|
478
|
+INSERT INTO spring_boot_plus.dbo.sys_role_permission (id, role_id, permission_id, state, remark, version, create_time, update_time) VALUES (27, 1, 3009, 1, null, 0, '2019-10-26 22:16:19.000', null);
|
|
479
|
+INSERT INTO spring_boot_plus.dbo.sys_role_permission (id, role_id, permission_id, state, remark, version, create_time, update_time) VALUES (28, 1, 4001, 1, null, 0, '2019-10-26 22:16:19.000', null);
|
|
480
|
+INSERT INTO spring_boot_plus.dbo.sys_role_permission (id, role_id, permission_id, state, remark, version, create_time, update_time) VALUES (29, 1, 4002, 1, null, 0, '2019-10-26 22:16:19.000', null);
|
|
481
|
+INSERT INTO spring_boot_plus.dbo.sys_role_permission (id, role_id, permission_id, state, remark, version, create_time, update_time) VALUES (30, 1, 4003, 1, null, 0, '2019-10-26 22:16:19.000', null);
|
|
482
|
+INSERT INTO spring_boot_plus.dbo.sys_role_permission (id, role_id, permission_id, state, remark, version, create_time, update_time) VALUES (31, 1, 4004, 1, null, 0, '2019-10-26 22:16:19.000', null);
|
|
483
|
+INSERT INTO spring_boot_plus.dbo.sys_role_permission (id, role_id, permission_id, state, remark, version, create_time, update_time) VALUES (100, 1, 1, 1, null, 0, '2019-10-26 22:16:19.000', null);
|
|
484
|
+INSERT INTO spring_boot_plus.dbo.sys_role_permission (id, role_id, permission_id, state, remark, version, create_time, update_time) VALUES (101, 1, 100, 1, null, 0, '2019-10-26 22:16:19.000', null);
|
|
485
|
+INSERT INTO spring_boot_plus.dbo.sys_role_permission (id, role_id, permission_id, state, remark, version, create_time, update_time) VALUES (102, 1, 1000, 1, null, 0, '2019-10-26 22:16:19.000', null);
|
|
486
|
+INSERT INTO spring_boot_plus.dbo.sys_role_permission (id, role_id, permission_id, state, remark, version, create_time, update_time) VALUES (103, 1, 1001, 1, null, 0, '2019-10-26 22:16:19.000', null);
|
|
487
|
+INSERT INTO spring_boot_plus.dbo.sys_role_permission (id, role_id, permission_id, state, remark, version, create_time, update_time) VALUES (104, 1, 1002, 1, null, 0, '2019-10-26 22:16:19.000', null);
|
|
488
|
+INSERT INTO spring_boot_plus.dbo.sys_role_permission (id, role_id, permission_id, state, remark, version, create_time, update_time) VALUES (105, 1, 1003, 1, null, 0, '2019-10-26 22:16:19.000', null);
|
|
489
|
+INSERT INTO spring_boot_plus.dbo.sys_role_permission (id, role_id, permission_id, state, remark, version, create_time, update_time) VALUES (106, 1, 1004, 1, null, 0, '2019-10-26 22:16:19.000', null);
|
|
490
|
+set identity_insert spring_boot_plus.dbo.sys_role_permission off
|
|
491
|
+
|
|
492
|
+
|
|
493
|
+set identity_insert spring_boot_plus.dbo.sys_user on
|
|
494
|
+INSERT INTO spring_boot_plus.dbo.sys_user (id, username, nickname, password, salt, phone, gender, head, remark, state, department_id, role_id, deleted, version, create_time, update_time) VALUES (1, 'admin', '管理员', '11a254dab80d52bc4a347e030e54d861a9d2cdb2af2185a9ca4a7318e830d04d', '666', '', 1, 'http://localhost:8888//resource/201910281559227.jpg', 'Administrator Account', 1, 1, 1, 0, 1, '2019-08-26 00:52:01.000', '2019-10-27 23:32:29.000');
|
|
495
|
+INSERT INTO spring_boot_plus.dbo.sys_user (id, username, nickname, password, salt, phone, gender, head, remark, state, department_id, role_id, deleted, version, create_time, update_time) VALUES (2, 'test', '测试人员', '34783fb724b259beb71a1279f7cd93bdcfd92a273d566f926419a37825c500df', '087c2e9857f35f1e243367f3b89b81c1', '', 1, null, 'Tester Account', 1, 1, 2, 0, 0, '2019-10-05 14:04:27.000', null);
|
|
496
|
+set identity_insert spring_boot_plus.dbo.sys_user off
|