Commit 0cbced1cef902afbb56e99257670a4d3a3d7944f

Authored by YunaiV
1 parent ab8e68d3

fix:pgsql 有点问题

Showing 1 changed file with 1257 additions and 1335 deletions
sql/postgresql/ruoyi-vue-pro.sql
@@ -5,7 +5,7 @@ @@ -5,7 +5,7 @@
5 5
6 Target Server Type : PostgreSQL 6 Target Server Type : PostgreSQL
7 7
8 - Date: 2025-05-22 21:03:59 8 + Date: 2025-12-27 19:04:22
9 */ 9 */
10 10
11 11
@@ -27,45 +27,39 @@ COMMENT ON TABLE dual IS '数据库连接的表'; @@ -27,45 +27,39 @@ COMMENT ON TABLE dual IS '数据库连接的表';
27 INSERT INTO dual VALUES (1); 27 INSERT INTO dual VALUES (1);
28 -- @formatter:on 28 -- @formatter:on
29 29
30 -DROP SEQUENCE IF EXISTS infra_api_access_log_seq;  
31 -CREATE SEQUENCE infra_api_access_log_seq  
32 - START 1;  
33 -  
34 -- ---------------------------- 30 -- ----------------------------
35 -- Table structure for infra_api_access_log 31 -- Table structure for infra_api_access_log
36 -- ---------------------------- 32 -- ----------------------------
37 DROP TABLE IF EXISTS infra_api_access_log; 33 DROP TABLE IF EXISTS infra_api_access_log;
38 -CREATE TABLE infra_api_access_log  
39 -(  
40 - id int8 NOT NULL DEFAULT NEXTVAL('infra_api_access_log_seq'),  
41 - trace_id varchar(64) NOT NULL DEFAULT '',  
42 - user_id int8 NOT NULL DEFAULT 0,  
43 - user_type int2 NOT NULL DEFAULT 0,  
44 - application_name varchar(50) NOT NULL,  
45 - request_method varchar(16) NOT NULL DEFAULT '',  
46 - request_url varchar(255) NOT NULL DEFAULT '',  
47 - request_params text NULL,  
48 - response_body text NULL,  
49 - user_ip varchar(50) NOT NULL,  
50 - user_agent varchar(512) NOT NULL,  
51 - operate_module varchar(50) NULL DEFAULT NULL,  
52 - operate_name varchar(50) NULL DEFAULT NULL,  
53 - operate_type int2 NULL DEFAULT 0,  
54 - begin_time timestamp NOT NULL,  
55 - end_time timestamp NOT NULL,  
56 - duration int4 NOT NULL,  
57 - result_code int4 NOT NULL DEFAULT 0,  
58 - result_msg varchar(512) NULL DEFAULT '',  
59 - creator varchar(64) NULL DEFAULT '',  
60 - create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
61 - updater varchar(64) NULL DEFAULT '',  
62 - update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
63 - deleted int2 NOT NULL DEFAULT 0,  
64 - tenant_id int8 NOT NULL DEFAULT 0 34 +CREATE TABLE infra_api_access_log (
  35 + id int8 NOT NULL,
  36 + trace_id varchar(64) NOT NULL DEFAULT '',
  37 + user_id int8 NOT NULL DEFAULT 0,
  38 + user_type int2 NOT NULL DEFAULT 0,
  39 + application_name varchar(50) NOT NULL,
  40 + request_method varchar(16) NOT NULL DEFAULT '',
  41 + request_url varchar(255) NOT NULL DEFAULT '',
  42 + request_params text NULL,
  43 + response_body text NULL,
  44 + user_ip varchar(50) NOT NULL,
  45 + user_agent varchar(512) NOT NULL,
  46 + operate_module varchar(50) NULL DEFAULT NULL,
  47 + operate_name varchar(50) NULL DEFAULT NULL,
  48 + operate_type int2 NULL DEFAULT 0,
  49 + begin_time timestamp NOT NULL,
  50 + end_time timestamp NOT NULL,
  51 + duration int4 NOT NULL,
  52 + result_code int4 NOT NULL DEFAULT 0,
  53 + result_msg varchar(512) NULL DEFAULT '',
  54 + creator varchar(64) NULL DEFAULT '',
  55 + create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  56 + updater varchar(64) NULL DEFAULT '',
  57 + update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  58 + deleted int2 NOT NULL DEFAULT 0,
  59 + tenant_id int8 NOT NULL DEFAULT 0
65 ); 60 );
66 61
67 -ALTER TABLE infra_api_access_log  
68 - ADD CONSTRAINT pk_infra_api_access_log PRIMARY KEY (id); 62 +ALTER TABLE infra_api_access_log ADD CONSTRAINT pk_infra_api_access_log PRIMARY KEY (id);
69 63
70 CREATE INDEX idx_infra_api_access_log_01 ON infra_api_access_log (create_time); 64 CREATE INDEX idx_infra_api_access_log_01 ON infra_api_access_log (create_time);
71 65
@@ -96,48 +90,46 @@ COMMENT ON COLUMN infra_api_access_log.deleted IS '是否删除'; @@ -96,48 +90,46 @@ COMMENT ON COLUMN infra_api_access_log.deleted IS '是否删除';
96 COMMENT ON COLUMN infra_api_access_log.tenant_id IS '租户编号'; 90 COMMENT ON COLUMN infra_api_access_log.tenant_id IS '租户编号';
97 COMMENT ON TABLE infra_api_access_log IS 'API 访问日志表'; 91 COMMENT ON TABLE infra_api_access_log IS 'API 访问日志表';
98 92
99 -DROP SEQUENCE IF EXISTS infra_api_error_log_seq;  
100 -CREATE SEQUENCE infra_api_error_log_seq 93 +DROP SEQUENCE IF EXISTS infra_api_access_log_seq;
  94 +CREATE SEQUENCE infra_api_access_log_seq
101 START 1; 95 START 1;
102 96
103 -- ---------------------------- 97 -- ----------------------------
104 -- Table structure for infra_api_error_log 98 -- Table structure for infra_api_error_log
105 -- ---------------------------- 99 -- ----------------------------
106 DROP TABLE IF EXISTS infra_api_error_log; 100 DROP TABLE IF EXISTS infra_api_error_log;
107 -CREATE TABLE infra_api_error_log  
108 -(  
109 - id int8 NOT NULL DEFAULT NEXTVAL('infra_api_error_log_seq'),  
110 - trace_id varchar(64) NOT NULL,  
111 - user_id int8 NOT NULL DEFAULT 0,  
112 - user_type int2 NOT NULL DEFAULT 0,  
113 - application_name varchar(50) NOT NULL,  
114 - request_method varchar(16) NOT NULL,  
115 - request_url varchar(255) NOT NULL,  
116 - request_params varchar(8000) NOT NULL,  
117 - user_ip varchar(50) NOT NULL,  
118 - user_agent varchar(512) NOT NULL,  
119 - exception_time timestamp NOT NULL,  
120 - exception_name varchar(128) NOT NULL DEFAULT '',  
121 - exception_message text NOT NULL,  
122 - exception_root_cause_message text NOT NULL,  
123 - exception_stack_trace text NOT NULL,  
124 - exception_class_name varchar(512) NOT NULL,  
125 - exception_file_name varchar(512) NOT NULL,  
126 - exception_method_name varchar(512) NOT NULL,  
127 - exception_line_number int4 NOT NULL,  
128 - process_status int2 NOT NULL,  
129 - process_time timestamp NULL DEFAULT NULL,  
130 - process_user_id int4 NULL DEFAULT 0,  
131 - creator varchar(64) NULL DEFAULT '',  
132 - create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
133 - updater varchar(64) NULL DEFAULT '',  
134 - update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
135 - deleted int2 NOT NULL DEFAULT 0,  
136 - tenant_id int8 NOT NULL DEFAULT 0 101 +CREATE TABLE infra_api_error_log (
  102 + id int8 NOT NULL,
  103 + trace_id varchar(64) NOT NULL,
  104 + user_id int8 NOT NULL DEFAULT 0,
  105 + user_type int2 NOT NULL DEFAULT 0,
  106 + application_name varchar(50) NOT NULL,
  107 + request_method varchar(16) NOT NULL,
  108 + request_url varchar(255) NOT NULL,
  109 + request_params varchar(8000) NOT NULL,
  110 + user_ip varchar(50) NOT NULL,
  111 + user_agent varchar(512) NOT NULL,
  112 + exception_time timestamp NOT NULL,
  113 + exception_name varchar(128) NOT NULL DEFAULT '',
  114 + exception_message text NOT NULL,
  115 + exception_root_cause_message text NOT NULL,
  116 + exception_stack_trace text NOT NULL,
  117 + exception_class_name varchar(512) NOT NULL,
  118 + exception_file_name varchar(512) NOT NULL,
  119 + exception_method_name varchar(512) NOT NULL,
  120 + exception_line_number int4 NOT NULL,
  121 + process_status int2 NOT NULL,
  122 + process_time timestamp NULL DEFAULT NULL,
  123 + process_user_id int4 NULL DEFAULT 0,
  124 + creator varchar(64) NULL DEFAULT '',
  125 + create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  126 + updater varchar(64) NULL DEFAULT '',
  127 + update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  128 + deleted int2 NOT NULL DEFAULT 0,
  129 + tenant_id int8 NOT NULL DEFAULT 0
137 ); 130 );
138 131
139 -ALTER TABLE infra_api_error_log  
140 - ADD CONSTRAINT pk_infra_api_error_log PRIMARY KEY (id); 132 +ALTER TABLE infra_api_error_log ADD CONSTRAINT pk_infra_api_error_log PRIMARY KEY (id);
141 133
142 COMMENT ON COLUMN infra_api_error_log.id IS '编号'; 134 COMMENT ON COLUMN infra_api_error_log.id IS '编号';
143 COMMENT ON COLUMN infra_api_error_log.trace_id IS '链路追踪编号'; 135 COMMENT ON COLUMN infra_api_error_log.trace_id IS '链路追踪编号';
@@ -169,43 +161,41 @@ COMMENT ON COLUMN infra_api_error_log.deleted IS '是否删除'; @@ -169,43 +161,41 @@ COMMENT ON COLUMN infra_api_error_log.deleted IS '是否删除';
169 COMMENT ON COLUMN infra_api_error_log.tenant_id IS '租户编号'; 161 COMMENT ON COLUMN infra_api_error_log.tenant_id IS '租户编号';
170 COMMENT ON TABLE infra_api_error_log IS '系统异常日志'; 162 COMMENT ON TABLE infra_api_error_log IS '系统异常日志';
171 163
172 -DROP SEQUENCE IF EXISTS infra_codegen_column_seq;  
173 -CREATE SEQUENCE infra_codegen_column_seq 164 +DROP SEQUENCE IF EXISTS infra_api_error_log_seq;
  165 +CREATE SEQUENCE infra_api_error_log_seq
174 START 1; 166 START 1;
175 167
176 -- ---------------------------- 168 -- ----------------------------
177 -- Table structure for infra_codegen_column 169 -- Table structure for infra_codegen_column
178 -- ---------------------------- 170 -- ----------------------------
179 DROP TABLE IF EXISTS infra_codegen_column; 171 DROP TABLE IF EXISTS infra_codegen_column;
180 -CREATE TABLE infra_codegen_column  
181 -(  
182 - id int8 NOT NULL default nextval('infra_codegen_column_seq'),  
183 - table_id int8 NOT NULL,  
184 - column_name varchar(200) NOT NULL,  
185 - data_type varchar(100) NOT NULL,  
186 - column_comment varchar(500) NOT NULL,  
187 - nullable bool NOT NULL,  
188 - primary_key bool NOT NULL,  
189 - ordinal_position int4 NOT NULL,  
190 - java_type varchar(32) NOT NULL,  
191 - java_field varchar(64) NOT NULL,  
192 - dict_type varchar(200) NULL DEFAULT '',  
193 - example varchar(64) NULL DEFAULT NULL,  
194 - create_operation bool NOT NULL,  
195 - update_operation bool NOT NULL,  
196 - list_operation bool NOT NULL,  
197 - list_operation_condition varchar(32) NOT NULL DEFAULT '=',  
198 - list_operation_result bool NOT NULL,  
199 - html_type varchar(32) NOT NULL,  
200 - creator varchar(64) NULL DEFAULT '',  
201 - create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
202 - updater varchar(64) NULL DEFAULT '',  
203 - update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
204 - deleted int2 NOT NULL DEFAULT 0 172 +CREATE TABLE infra_codegen_column (
  173 + id int8 NOT NULL,
  174 + table_id int8 NOT NULL,
  175 + column_name varchar(200) NOT NULL,
  176 + data_type varchar(100) NOT NULL,
  177 + column_comment varchar(500) NOT NULL,
  178 + nullable bool NOT NULL,
  179 + primary_key bool NOT NULL,
  180 + ordinal_position int4 NOT NULL,
  181 + java_type varchar(32) NOT NULL,
  182 + java_field varchar(64) NOT NULL,
  183 + dict_type varchar(200) NULL DEFAULT '',
  184 + example varchar(64) NULL DEFAULT NULL,
  185 + create_operation bool NOT NULL,
  186 + update_operation bool NOT NULL,
  187 + list_operation bool NOT NULL,
  188 + list_operation_condition varchar(32) NOT NULL DEFAULT '=',
  189 + list_operation_result bool NOT NULL,
  190 + html_type varchar(32) NOT NULL,
  191 + creator varchar(64) NULL DEFAULT '',
  192 + create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  193 + updater varchar(64) NULL DEFAULT '',
  194 + update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  195 + deleted int2 NOT NULL DEFAULT 0
205 ); 196 );
206 197
207 -ALTER TABLE infra_codegen_column  
208 - ADD CONSTRAINT pk_infra_codegen_column PRIMARY KEY (id); 198 +ALTER TABLE infra_codegen_column ADD CONSTRAINT pk_infra_codegen_column PRIMARY KEY (id);
209 199
210 COMMENT ON COLUMN infra_codegen_column.id IS '编号'; 200 COMMENT ON COLUMN infra_codegen_column.id IS '编号';
211 COMMENT ON COLUMN infra_codegen_column.table_id IS '表编号'; 201 COMMENT ON COLUMN infra_codegen_column.table_id IS '表编号';
@@ -232,44 +222,42 @@ COMMENT ON COLUMN infra_codegen_column.update_time IS '更新时间'; @@ -232,44 +222,42 @@ COMMENT ON COLUMN infra_codegen_column.update_time IS '更新时间';
232 COMMENT ON COLUMN infra_codegen_column.deleted IS '是否删除'; 222 COMMENT ON COLUMN infra_codegen_column.deleted IS '是否删除';
233 COMMENT ON TABLE infra_codegen_column IS '代码生成表字段定义'; 223 COMMENT ON TABLE infra_codegen_column IS '代码生成表字段定义';
234 224
235 -DROP SEQUENCE IF EXISTS infra_codegen_table_seq;  
236 -CREATE SEQUENCE infra_codegen_table_seq 225 +DROP SEQUENCE IF EXISTS infra_codegen_column_seq;
  226 +CREATE SEQUENCE infra_codegen_column_seq
237 START 1; 227 START 1;
238 228
239 -- ---------------------------- 229 -- ----------------------------
240 -- Table structure for infra_codegen_table 230 -- Table structure for infra_codegen_table
241 -- ---------------------------- 231 -- ----------------------------
242 DROP TABLE IF EXISTS infra_codegen_table; 232 DROP TABLE IF EXISTS infra_codegen_table;
243 -CREATE TABLE infra_codegen_table  
244 -(  
245 - id int8 NOT NULL default nextval('infra_codegen_table_seq'),  
246 - data_source_config_id int8 NOT NULL,  
247 - scene int2 NOT NULL DEFAULT 1,  
248 - table_name varchar(200) NOT NULL DEFAULT '',  
249 - table_comment varchar(500) NOT NULL DEFAULT '',  
250 - remark varchar(500) NULL DEFAULT NULL,  
251 - module_name varchar(30) NOT NULL,  
252 - business_name varchar(30) NOT NULL,  
253 - class_name varchar(100) NOT NULL DEFAULT '',  
254 - class_comment varchar(50) NOT NULL,  
255 - author varchar(50) NOT NULL,  
256 - template_type int2 NOT NULL DEFAULT 1,  
257 - front_type int2 NOT NULL,  
258 - parent_menu_id int8 NULL DEFAULT NULL,  
259 - master_table_id int8 NULL DEFAULT NULL,  
260 - sub_join_column_id int8 NULL DEFAULT NULL,  
261 - sub_join_many bool NULL DEFAULT NULL,  
262 - tree_parent_column_id int8 NULL DEFAULT NULL,  
263 - tree_name_column_id int8 NULL DEFAULT NULL,  
264 - creator varchar(64) NULL DEFAULT '',  
265 - create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
266 - updater varchar(64) NULL DEFAULT '',  
267 - update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
268 - deleted int2 NOT NULL DEFAULT 0 233 +CREATE TABLE infra_codegen_table (
  234 + id int8 NOT NULL,
  235 + data_source_config_id int8 NOT NULL,
  236 + scene int2 NOT NULL DEFAULT 1,
  237 + table_name varchar(200) NOT NULL DEFAULT '',
  238 + table_comment varchar(500) NOT NULL DEFAULT '',
  239 + remark varchar(500) NULL DEFAULT NULL,
  240 + module_name varchar(30) NOT NULL,
  241 + business_name varchar(30) NOT NULL,
  242 + class_name varchar(100) NOT NULL DEFAULT '',
  243 + class_comment varchar(50) NOT NULL,
  244 + author varchar(50) NOT NULL,
  245 + template_type int2 NOT NULL DEFAULT 1,
  246 + front_type int2 NOT NULL,
  247 + parent_menu_id int8 NULL DEFAULT NULL,
  248 + master_table_id int8 NULL DEFAULT NULL,
  249 + sub_join_column_id int8 NULL DEFAULT NULL,
  250 + sub_join_many bool NULL DEFAULT NULL,
  251 + tree_parent_column_id int8 NULL DEFAULT NULL,
  252 + tree_name_column_id int8 NULL DEFAULT NULL,
  253 + creator varchar(64) NULL DEFAULT '',
  254 + create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  255 + updater varchar(64) NULL DEFAULT '',
  256 + update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  257 + deleted int2 NOT NULL DEFAULT 0
269 ); 258 );
270 259
271 -ALTER TABLE infra_codegen_table  
272 - ADD CONSTRAINT pk_infra_codegen_table PRIMARY KEY (id); 260 +ALTER TABLE infra_codegen_table ADD CONSTRAINT pk_infra_codegen_table PRIMARY KEY (id);
273 261
274 COMMENT ON COLUMN infra_codegen_table.id IS '编号'; 262 COMMENT ON COLUMN infra_codegen_table.id IS '编号';
275 COMMENT ON COLUMN infra_codegen_table.data_source_config_id IS '数据源配置的编号'; 263 COMMENT ON COLUMN infra_codegen_table.data_source_config_id IS '数据源配置的编号';
@@ -297,34 +285,31 @@ COMMENT ON COLUMN infra_codegen_table.update_time IS '更新时间'; @@ -297,34 +285,31 @@ COMMENT ON COLUMN infra_codegen_table.update_time IS '更新时间';
297 COMMENT ON COLUMN infra_codegen_table.deleted IS '是否删除'; 285 COMMENT ON COLUMN infra_codegen_table.deleted IS '是否删除';
298 COMMENT ON TABLE infra_codegen_table IS '代码生成表定义'; 286 COMMENT ON TABLE infra_codegen_table IS '代码生成表定义';
299 287
300 -  
301 -DROP SEQUENCE IF EXISTS infra_config_seq;  
302 -CREATE SEQUENCE infra_config_seq 288 +DROP SEQUENCE IF EXISTS infra_codegen_table_seq;
  289 +CREATE SEQUENCE infra_codegen_table_seq
303 START 1; 290 START 1;
304 291
305 -- ---------------------------- 292 -- ----------------------------
306 -- Table structure for infra_config 293 -- Table structure for infra_config
307 -- ---------------------------- 294 -- ----------------------------
308 DROP TABLE IF EXISTS infra_config; 295 DROP TABLE IF EXISTS infra_config;
309 -CREATE TABLE infra_config  
310 -(  
311 - id int8 NOT NULL default nextval('infra_config_seq'),  
312 - category varchar(50) NOT NULL,  
313 - type int2 NOT NULL,  
314 - name varchar(100) NOT NULL DEFAULT '',  
315 - config_key varchar(100) NOT NULL DEFAULT '',  
316 - value varchar(500) NOT NULL DEFAULT '',  
317 - visible bool NOT NULL,  
318 - remark varchar(500) NULL DEFAULT NULL,  
319 - creator varchar(64) NULL DEFAULT '',  
320 - create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
321 - updater varchar(64) NULL DEFAULT '',  
322 - update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
323 - deleted int2 NOT NULL DEFAULT 0 296 +CREATE TABLE infra_config (
  297 + id int8 NOT NULL,
  298 + category varchar(50) NOT NULL,
  299 + type int2 NOT NULL,
  300 + name varchar(100) NOT NULL DEFAULT '',
  301 + config_key varchar(100) NOT NULL DEFAULT '',
  302 + value varchar(500) NOT NULL DEFAULT '',
  303 + visible bool NOT NULL,
  304 + remark varchar(500) NULL DEFAULT NULL,
  305 + creator varchar(64) NULL DEFAULT '',
  306 + create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  307 + updater varchar(64) NULL DEFAULT '',
  308 + update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  309 + deleted int2 NOT NULL DEFAULT 0
324 ); 310 );
325 311
326 -ALTER TABLE infra_config  
327 - ADD CONSTRAINT pk_infra_config PRIMARY KEY (id); 312 +ALTER TABLE infra_config ADD CONSTRAINT pk_infra_config PRIMARY KEY (id);
328 313
329 COMMENT ON COLUMN infra_config.id IS '参数主键'; 314 COMMENT ON COLUMN infra_config.id IS '参数主键';
330 COMMENT ON COLUMN infra_config.category IS '参数分组'; 315 COMMENT ON COLUMN infra_config.category IS '参数分组';
@@ -357,30 +342,28 @@ INSERT INTO infra_config (id, category, type, name, config_key, value, visible, @@ -357,30 +342,28 @@ INSERT INTO infra_config (id, category, type, name, config_key, value, visible,
357 COMMIT; 342 COMMIT;
358 -- @formatter:on 343 -- @formatter:on
359 344
360 -DROP SEQUENCE IF EXISTS infra_data_source_config_seq;  
361 -CREATE SEQUENCE infra_data_source_config_seq  
362 - START 1; 345 +DROP SEQUENCE IF EXISTS infra_config_seq;
  346 +CREATE SEQUENCE infra_config_seq
  347 + START 14;
363 348
364 -- ---------------------------- 349 -- ----------------------------
365 -- Table structure for infra_data_source_config 350 -- Table structure for infra_data_source_config
366 -- ---------------------------- 351 -- ----------------------------
367 DROP TABLE IF EXISTS infra_data_source_config; 352 DROP TABLE IF EXISTS infra_data_source_config;
368 -CREATE TABLE infra_data_source_config  
369 -(  
370 - id int8 NOT NULL default nextval('infra_data_source_config_seq'),  
371 - name varchar(100) NOT NULL DEFAULT '',  
372 - url varchar(1024) NOT NULL,  
373 - username varchar(255) NOT NULL,  
374 - password varchar(255) NOT NULL DEFAULT '',  
375 - creator varchar(64) NULL DEFAULT '',  
376 - create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
377 - updater varchar(64) NULL DEFAULT '',  
378 - update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
379 - deleted int2 NOT NULL DEFAULT 0 353 +CREATE TABLE infra_data_source_config (
  354 + id int8 NOT NULL,
  355 + name varchar(100) NOT NULL DEFAULT '',
  356 + url varchar(1024) NOT NULL,
  357 + username varchar(255) NOT NULL,
  358 + password varchar(255) NOT NULL DEFAULT '',
  359 + creator varchar(64) NULL DEFAULT '',
  360 + create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  361 + updater varchar(64) NULL DEFAULT '',
  362 + update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  363 + deleted int2 NOT NULL DEFAULT 0
380 ); 364 );
381 365
382 -ALTER TABLE infra_data_source_config  
383 - ADD CONSTRAINT pk_infra_data_source_config PRIMARY KEY (id); 366 +ALTER TABLE infra_data_source_config ADD CONSTRAINT pk_infra_data_source_config PRIMARY KEY (id);
384 367
385 COMMENT ON COLUMN infra_data_source_config.id IS '主键编号'; 368 COMMENT ON COLUMN infra_data_source_config.id IS '主键编号';
386 COMMENT ON COLUMN infra_data_source_config.name IS '参数名称'; 369 COMMENT ON COLUMN infra_data_source_config.name IS '参数名称';
@@ -394,32 +377,30 @@ COMMENT ON COLUMN infra_data_source_config.update_time IS '更新时间'; @@ -394,32 +377,30 @@ COMMENT ON COLUMN infra_data_source_config.update_time IS '更新时间';
394 COMMENT ON COLUMN infra_data_source_config.deleted IS '是否删除'; 377 COMMENT ON COLUMN infra_data_source_config.deleted IS '是否删除';
395 COMMENT ON TABLE infra_data_source_config IS '数据源配置表'; 378 COMMENT ON TABLE infra_data_source_config IS '数据源配置表';
396 379
397 -DROP SEQUENCE IF EXISTS infra_file_seq;  
398 -CREATE SEQUENCE infra_file_seq 380 +DROP SEQUENCE IF EXISTS infra_data_source_config_seq;
  381 +CREATE SEQUENCE infra_data_source_config_seq
399 START 1; 382 START 1;
400 383
401 -- ---------------------------- 384 -- ----------------------------
402 -- Table structure for infra_file 385 -- Table structure for infra_file
403 -- ---------------------------- 386 -- ----------------------------
404 DROP TABLE IF EXISTS infra_file; 387 DROP TABLE IF EXISTS infra_file;
405 -CREATE TABLE infra_file  
406 -(  
407 - id int8 NOT NULL default nextval('infra_file_seq'),  
408 - config_id int8 NULL DEFAULT NULL,  
409 - name varchar(256) NULL DEFAULT NULL,  
410 - path varchar(512) NOT NULL,  
411 - url varchar(1024) NOT NULL,  
412 - type varchar(128) NULL DEFAULT NULL,  
413 - size int4 NOT NULL,  
414 - creator varchar(64) NULL DEFAULT '',  
415 - create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
416 - updater varchar(64) NULL DEFAULT '',  
417 - update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
418 - deleted int2 NOT NULL DEFAULT 0 388 +CREATE TABLE infra_file (
  389 + id int8 NOT NULL,
  390 + config_id int8 NULL DEFAULT NULL,
  391 + name varchar(256) NULL DEFAULT NULL,
  392 + path varchar(512) NOT NULL,
  393 + url varchar(1024) NOT NULL,
  394 + type varchar(128) NULL DEFAULT NULL,
  395 + size int4 NOT NULL,
  396 + creator varchar(64) NULL DEFAULT '',
  397 + create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  398 + updater varchar(64) NULL DEFAULT '',
  399 + update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  400 + deleted int2 NOT NULL DEFAULT 0
419 ); 401 );
420 402
421 -ALTER TABLE infra_file  
422 - ADD CONSTRAINT pk_infra_file PRIMARY KEY (id); 403 +ALTER TABLE infra_file ADD CONSTRAINT pk_infra_file PRIMARY KEY (id);
423 404
424 COMMENT ON COLUMN infra_file.id IS '文件编号'; 405 COMMENT ON COLUMN infra_file.id IS '文件编号';
425 COMMENT ON COLUMN infra_file.config_id IS '配置编号'; 406 COMMENT ON COLUMN infra_file.config_id IS '配置编号';
@@ -435,31 +416,29 @@ COMMENT ON COLUMN infra_file.update_time IS '更新时间'; @@ -435,31 +416,29 @@ COMMENT ON COLUMN infra_file.update_time IS '更新时间';
435 COMMENT ON COLUMN infra_file.deleted IS '是否删除'; 416 COMMENT ON COLUMN infra_file.deleted IS '是否删除';
436 COMMENT ON TABLE infra_file IS '文件表'; 417 COMMENT ON TABLE infra_file IS '文件表';
437 418
438 -DROP SEQUENCE IF EXISTS infra_file_config_seq;  
439 -CREATE SEQUENCE infra_file_config_seq  
440 - START 31; 419 +DROP SEQUENCE IF EXISTS infra_file_seq;
  420 +CREATE SEQUENCE infra_file_seq
  421 + START 1;
441 422
442 -- ---------------------------- 423 -- ----------------------------
443 -- Table structure for infra_file_config 424 -- Table structure for infra_file_config
444 -- ---------------------------- 425 -- ----------------------------
445 DROP TABLE IF EXISTS infra_file_config; 426 DROP TABLE IF EXISTS infra_file_config;
446 -CREATE TABLE infra_file_config  
447 -(  
448 - id int8 NOT NULL default nextval('infra_file_config_seq'),  
449 - name varchar(63) NOT NULL,  
450 - storage int2 NOT NULL,  
451 - remark varchar(255) NULL DEFAULT NULL,  
452 - master bool NOT NULL,  
453 - config varchar(4096) NOT NULL,  
454 - creator varchar(64) NULL DEFAULT '',  
455 - create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
456 - updater varchar(64) NULL DEFAULT '',  
457 - update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
458 - deleted int2 NOT NULL DEFAULT 0 427 +CREATE TABLE infra_file_config (
  428 + id int8 NOT NULL,
  429 + name varchar(63) NOT NULL,
  430 + storage int2 NOT NULL,
  431 + remark varchar(255) NULL DEFAULT NULL,
  432 + master bool NOT NULL,
  433 + config varchar(4096) NOT NULL,
  434 + creator varchar(64) NULL DEFAULT '',
  435 + create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  436 + updater varchar(64) NULL DEFAULT '',
  437 + update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  438 + deleted int2 NOT NULL DEFAULT 0
459 ); 439 );
460 440
461 -ALTER TABLE infra_file_config  
462 - ADD CONSTRAINT pk_infra_file_config PRIMARY KEY (id); 441 +ALTER TABLE infra_file_config ADD CONSTRAINT pk_infra_file_config PRIMARY KEY (id);
463 442
464 COMMENT ON COLUMN infra_file_config.id IS '编号'; 443 COMMENT ON COLUMN infra_file_config.id IS '编号';
465 COMMENT ON COLUMN infra_file_config.name IS '配置名'; 444 COMMENT ON COLUMN infra_file_config.name IS '配置名';
@@ -479,41 +458,41 @@ COMMENT ON TABLE infra_file_config IS '文件配置表'; @@ -479,41 +458,41 @@ COMMENT ON TABLE infra_file_config IS '文件配置表';
479 -- ---------------------------- 458 -- ----------------------------
480 -- @formatter:off 459 -- @formatter:off
481 BEGIN; 460 BEGIN;
482 -INSERT INTO infra_file_config (id, name, storage, remark, master, config, creator, create_time, updater, update_time, deleted) VALUES (4, '数据库(示例)', 1, '我是数据库', '0', '{"@class":"cn.iocoder.yudao.module.infra.framework.file.core.client.db.DBFileClientConfig","domain":"http://127.0.0.1:48080"}', '1', '2022-03-15 23:56:24', '1', '2025-05-02 18:30:28', '0');  
483 -INSERT INTO infra_file_config (id, name, storage, remark, master, config, creator, create_time, updater, update_time, deleted) VALUES (22, '七牛存储器(示例)', 20, '请换成你自己的密钥!!!', '1', '{"@class":"cn.iocoder.yudao.module.infra.framework.file.core.client.s3.S3FileClientConfig","endpoint":"s3.cn-south-1.qiniucs.com","domain":"http://test.yudao.iocoder.cn","bucket":"ruoyi-vue-pro","accessKey":"3TvrJ70gl2Gt6IBe7_IZT1F6i_k0iMuRtyEv4EyS","accessSecret":"wd0tbVBYlp0S-ihA8Qg2hPLncoP83wyrIq24OZuY","enablePathStyleAccess":false}', '1', '2024-01-13 22:11:12', '1', '2025-05-02 18:30:28', '0');  
484 -INSERT INTO infra_file_config (id, name, storage, remark, master, config, creator, create_time, updater, update_time, deleted) VALUES (24, '腾讯云存储(示例)', 20, '请换成你的密钥!!!', '0', '{"@class":"cn.iocoder.yudao.module.infra.framework.file.core.client.s3.S3FileClientConfig","endpoint":"https://cos.ap-shanghai.myqcloud.com","domain":"http://tengxun-oss.iocoder.cn","bucket":"aoteman-1255880240","accessKey":"AKIDAF6WSh1uiIjwqtrOsGSN3WryqTM6cTMt","accessSecret":"X"}', '1', '2024-11-09 16:03:22', '1', '2025-05-02 18:30:28', '0');  
485 -INSERT INTO infra_file_config (id, name, storage, remark, master, config, creator, create_time, updater, update_time, deleted) VALUES (25, '阿里云存储(示例)', 20, '', '0', '{"@class":"cn.iocoder.yudao.module.infra.framework.file.core.client.s3.S3FileClientConfig","endpoint":"oss-cn-beijing.aliyuncs.com","domain":"http://ali-oss.iocoder.cn","bucket":"yunai-aoteman","accessKey":"LTAI5tEQLgnDyjh3WpNcdMKA","accessSecret":"X","enablePathStyleAccess":false}', '1', '2024-11-09 16:47:08', '1', '2025-05-02 18:30:28', '0');  
486 -INSERT INTO infra_file_config (id, name, storage, remark, master, config, creator, create_time, updater, update_time, deleted) VALUES (26, '火山云存储(示例)', 20, '', '0', '{"@class":"cn.iocoder.yudao.module.infra.framework.file.core.client.s3.S3FileClientConfig","endpoint":"tos-s3-cn-beijing.volces.com","domain":null,"bucket":"yunai","accessKey":"AKLTZjc3Zjc4MzZmMjU3NDk0ZTgxYmIyMmFkNTIwMDI1ZGE","accessSecret":"X==","enablePathStyleAccess":false}', '1', '2024-11-09 16:56:42', '1', '2025-05-02 18:30:28', '0');  
487 -INSERT INTO infra_file_config (id, name, storage, remark, master, config, creator, create_time, updater, update_time, deleted) VALUES (27, '华为云存储(示例)', 20, '', '0', '{"@class":"cn.iocoder.yudao.module.infra.framework.file.core.client.s3.S3FileClientConfig","endpoint":"obs.cn-east-3.myhuaweicloud.com","domain":"","bucket":"yudao","accessKey":"PVDONDEIOTW88LF8DC4U","accessSecret":"X","enablePathStyleAccess":false}', '1', '2024-11-09 17:18:41', '1', '2025-05-02 18:30:28', '0');  
488 -INSERT INTO infra_file_config (id, name, storage, remark, master, config, creator, create_time, updater, update_time, deleted) VALUES (28, 'MinIO 存储(示例)', 20, '', '0', '{"@class":"cn.iocoder.yudao.module.infra.framework.file.core.client.s3.S3FileClientConfig","endpoint":"http://127.0.0.1:9000","domain":"http://127.0.0.1:9000/yudao","bucket":"yudao","accessKey":"admin","accessSecret":"password","enablePathStyleAccess":false}', '1', '2024-11-09 17:43:10', '1', '2025-05-02 18:30:28', '0');  
489 -INSERT INTO infra_file_config (id, name, storage, remark, master, config, creator, create_time, updater, update_time, deleted) VALUES (29, '本地存储(示例)', 10, '仅适合 mac 或 windows', '0', '{"@class":"cn.iocoder.yudao.module.infra.framework.file.core.client.local.LocalFileClientConfig","basePath":"/Users/yunai/tmp/file","domain":"http://127.0.0.1:48080"}', '1', '2025-05-02 11:25:45', '1', '2025-05-02 18:30:28', '0');  
490 -INSERT INTO infra_file_config (id, name, storage, remark, master, config, creator, create_time, updater, update_time, deleted) VALUES (30, 'SFTP 存储(示例)', 12, '', '0', '{"@class":"cn.iocoder.yudao.module.infra.framework.file.core.client.sftp.SftpFileClientConfig","basePath":"/upload","domain":"http://127.0.0.1:48080","host":"127.0.0.1","port":2222,"username":"foo","password":"pass"}', '1', '2025-05-02 16:34:10', '1', '2025-05-02 18:30:28', '0'); 461 +INSERT INTO infra_file_config (id, name, storage, remark, master, config, creator, create_time, updater, update_time, deleted) VALUES (4, '数据库(示例)', 1, '我是数据库', '0', '{"@class":"cn.iocoder.yudao.module.infra.framework.file.core.client.db.DBFileClientConfig","domain":"http://127.0.0.1:48080"}', '1', '2022-03-15 23:56:24', '1', '2025-11-24 20:57:14', '0');
  462 +INSERT INTO infra_file_config (id, name, storage, remark, master, config, creator, create_time, updater, update_time, deleted) VALUES (22, '七牛存储器(示例)', 20, '请换成你自己的密钥!!!', '1', '{"@class":"cn.iocoder.yudao.module.infra.framework.file.core.client.s3.S3FileClientConfig","endpoint":"s3.cn-south-1.qiniucs.com","domain":"http://test.yudao.iocoder.cn","bucket":"ruoyi-vue-pro","accessKey":"3TvrJ70gl2Gt6IBe7_IZT1F6i_k0iMuRtyEv4EyS","accessSecret":"wd0tbVBYlp0S-ihA8Qg2hPLncoP83wyrIq24OZuY","enablePathStyleAccess":false,"enablePublicAccess":true}', '1', '2024-01-13 22:11:12', '1', '2025-11-24 20:57:14', '0');
  463 +INSERT INTO infra_file_config (id, name, storage, remark, master, config, creator, create_time, updater, update_time, deleted) VALUES (24, '腾讯云存储(示例)', 20, '请换成你的密钥!!!', '0', '{"@class":"cn.iocoder.yudao.module.infra.framework.file.core.client.s3.S3FileClientConfig","endpoint":"https://cos.ap-shanghai.myqcloud.com","domain":"http://tengxun-oss.iocoder.cn","bucket":"aoteman-1255880240","accessKey":"AKIDAF6WSh1uiIjwqtrOsGSN3WryqTM6cTMt","accessSecret":"X","enablePathStyleAccess":false,"enablePublicAccess":true}', '1', '2024-11-09 16:03:22', '1', '2025-11-24 20:57:14', '0');
  464 +INSERT INTO infra_file_config (id, name, storage, remark, master, config, creator, create_time, updater, update_time, deleted) VALUES (25, '阿里云存储(示例)', 20, '', '0', '{"@class":"cn.iocoder.yudao.module.infra.framework.file.core.client.s3.S3FileClientConfig","endpoint":"oss-cn-beijing.aliyuncs.com","domain":"http://ali-oss.iocoder.cn","bucket":"yunai-aoteman","accessKey":"LTAI5tEQLgnDyjh3WpNcdMKA","accessSecret":"X","enablePathStyleAccess":false,"enablePublicAccess":true}', '1', '2024-11-09 16:47:08', '1', '2025-11-24 20:57:14', '0');
  465 +INSERT INTO infra_file_config (id, name, storage, remark, master, config, creator, create_time, updater, update_time, deleted) VALUES (26, '火山云存储(示例)', 20, '', '0', '{"@class":"cn.iocoder.yudao.module.infra.framework.file.core.client.s3.S3FileClientConfig","endpoint":"tos-s3-cn-beijing.volces.com","domain":null,"bucket":"yunai","accessKey":"AKLTZjc3Zjc4MzZmMjU3NDk0ZTgxYmIyMmFkNTIwMDI1ZGE","accessSecret":"X==","enablePathStyleAccess":false,"enablePublicAccess":true}', '1', '2024-11-09 16:56:42', '1', '2025-11-24 20:57:14', '0');
  466 +INSERT INTO infra_file_config (id, name, storage, remark, master, config, creator, create_time, updater, update_time, deleted) VALUES (27, '华为云存储(示例)', 20, '', '0', '{"@class":"cn.iocoder.yudao.module.infra.framework.file.core.client.s3.S3FileClientConfig","endpoint":"obs.cn-east-3.myhuaweicloud.com","domain":"","bucket":"yudao","accessKey":"PVDONDEIOTW88LF8DC4U","accessSecret":"X","enablePathStyleAccess":false,"enablePublicAccess":true}', '1', '2024-11-09 17:18:41', '1', '2025-11-24 20:57:14', '0');
  467 +INSERT INTO infra_file_config (id, name, storage, remark, master, config, creator, create_time, updater, update_time, deleted) VALUES (28, 'MinIO 存储(示例)', 20, '', '0', '{"@class":"cn.iocoder.yudao.module.infra.framework.file.core.client.s3.S3FileClientConfig","endpoint":"http://127.0.0.1:9000","domain":"http://127.0.0.1:9000/yudao","bucket":"yudao","accessKey":"admin","accessSecret":"password","enablePathStyleAccess":false,"enablePublicAccess":true}', '1', '2024-11-09 17:43:10', '1', '2025-11-24 20:57:14', '0');
  468 +INSERT INTO infra_file_config (id, name, storage, remark, master, config, creator, create_time, updater, update_time, deleted) VALUES (29, '本地存储(示例)', 10, 'mac/linux 使用 /,windows 使用 \\', '0', '{"@class":"cn.iocoder.yudao.module.infra.framework.file.core.client.local.LocalFileClientConfig","basePath":"/Users/yunai/tmp/file","domain":"http://127.0.0.1:48080"}', '1', '2025-05-02 11:25:45', '1', '2025-11-24 20:57:14', '0');
  469 +INSERT INTO infra_file_config (id, name, storage, remark, master, config, creator, create_time, updater, update_time, deleted) VALUES (30, 'SFTP 存储(示例)', 12, '', '0', '{"@class":"cn.iocoder.yudao.module.infra.framework.file.core.client.sftp.SftpFileClientConfig","basePath":"/upload","domain":"http://127.0.0.1:48080","host":"127.0.0.1","port":2222,"username":"foo","password":"pass"}', '1', '2025-05-02 16:34:10', '1', '2025-11-24 20:57:14', '0');
  470 +INSERT INTO infra_file_config (id, name, storage, remark, master, config, creator, create_time, updater, update_time, deleted) VALUES (34, '七牛云存储【私有】(示例)', 20, '请换成你自己的密钥!!!', '0', '{"@class":"cn.iocoder.yudao.module.infra.framework.file.core.client.s3.S3FileClientConfig","endpoint":"s3.cn-south-1.qiniucs.com","domain":"http://t151glocd.hn-bkt.clouddn.com","bucket":"ruoyi-vue-pro-private","accessKey":"3TvrJ70gl2Gt6IBe7_IZT1F6i_k0iMuRtyEv4EyS","accessSecret":"wd0tbVBYlp0S-ihA8Qg2hPLncoP83wyrIq24OZuY","enablePathStyleAccess":false,"enablePublicAccess":false}', '1', '2025-08-17 21:22:00', '1', '2025-11-24 20:57:14', '0');
  471 +INSERT INTO infra_file_config (id, name, storage, remark, master, config, creator, create_time, updater, update_time, deleted) VALUES (35, '1', 20, '1', '0', '{"@class":"cn.iocoder.yudao.module.infra.framework.file.core.client.s3.S3FileClientConfig","endpoint":"http://www.baidu.com","domain":"http://www.xxx.com","bucket":"1","accessKey":"2","accessSecret":"3","enablePathStyleAccess":false,"enablePublicAccess":false}', '1', '2025-10-02 14:32:12', '1', '2025-11-24 20:57:14', '0');
491 COMMIT; 472 COMMIT;
492 -- @formatter:on 473 -- @formatter:on
493 474
494 -DROP SEQUENCE IF EXISTS infra_file_content_seq;  
495 -CREATE SEQUENCE infra_file_content_seq  
496 - START 1; 475 +DROP SEQUENCE IF EXISTS infra_file_config_seq;
  476 +CREATE SEQUENCE infra_file_config_seq
  477 + START 36;
497 478
498 -- ---------------------------- 479 -- ----------------------------
499 -- Table structure for infra_file_content 480 -- Table structure for infra_file_content
500 -- ---------------------------- 481 -- ----------------------------
501 DROP TABLE IF EXISTS infra_file_content; 482 DROP TABLE IF EXISTS infra_file_content;
502 -CREATE TABLE infra_file_content  
503 -(  
504 - id int8 NOT NULL default nextval('infra_file_content_seq'),  
505 - config_id int8 NOT NULL,  
506 - path varchar(512) NOT NULL,  
507 - content bytea NOT NULL,  
508 - creator varchar(64) NULL DEFAULT '',  
509 - create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
510 - updater varchar(64) NULL DEFAULT '',  
511 - update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
512 - deleted int2 NOT NULL DEFAULT 0 483 +CREATE TABLE infra_file_content (
  484 + id int8 NOT NULL,
  485 + config_id int8 NOT NULL,
  486 + path varchar(512) NOT NULL,
  487 + content bytea NOT NULL,
  488 + creator varchar(64) NULL DEFAULT '',
  489 + create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  490 + updater varchar(64) NULL DEFAULT '',
  491 + update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  492 + deleted int2 NOT NULL DEFAULT 0
513 ); 493 );
514 494
515 -ALTER TABLE infra_file_content  
516 - ADD CONSTRAINT pk_infra_file_content PRIMARY KEY (id); 495 +ALTER TABLE infra_file_content ADD CONSTRAINT pk_infra_file_content PRIMARY KEY (id);
517 496
518 COMMENT ON COLUMN infra_file_content.id IS '编号'; 497 COMMENT ON COLUMN infra_file_content.id IS '编号';
519 COMMENT ON COLUMN infra_file_content.config_id IS '配置编号'; 498 COMMENT ON COLUMN infra_file_content.config_id IS '配置编号';
@@ -526,34 +505,32 @@ COMMENT ON COLUMN infra_file_content.update_time IS '更新时间'; @@ -526,34 +505,32 @@ COMMENT ON COLUMN infra_file_content.update_time IS '更新时间';
526 COMMENT ON COLUMN infra_file_content.deleted IS '是否删除'; 505 COMMENT ON COLUMN infra_file_content.deleted IS '是否删除';
527 COMMENT ON TABLE infra_file_content IS '文件表'; 506 COMMENT ON TABLE infra_file_content IS '文件表';
528 507
529 -DROP SEQUENCE IF EXISTS infra_job_seq;  
530 -CREATE SEQUENCE infra_job_seq 508 +DROP SEQUENCE IF EXISTS infra_file_content_seq;
  509 +CREATE SEQUENCE infra_file_content_seq
531 START 1; 510 START 1;
532 511
533 -- ---------------------------- 512 -- ----------------------------
534 -- Table structure for infra_job 513 -- Table structure for infra_job
535 -- ---------------------------- 514 -- ----------------------------
536 DROP TABLE IF EXISTS infra_job; 515 DROP TABLE IF EXISTS infra_job;
537 -CREATE TABLE infra_job  
538 -(  
539 - id int8 NOT NULL default nextval('infra_job_seq'),  
540 - name varchar(32) NOT NULL,  
541 - status int2 NOT NULL,  
542 - handler_name varchar(64) NOT NULL,  
543 - handler_param varchar(255) NULL DEFAULT NULL,  
544 - cron_expression varchar(32) NOT NULL,  
545 - retry_count int4 NOT NULL DEFAULT 0,  
546 - retry_interval int4 NOT NULL DEFAULT 0,  
547 - monitor_timeout int4 NOT NULL DEFAULT 0,  
548 - creator varchar(64) NULL DEFAULT '',  
549 - create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
550 - updater varchar(64) NULL DEFAULT '',  
551 - update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
552 - deleted int2 NOT NULL DEFAULT 0 516 +CREATE TABLE infra_job (
  517 + id int8 NOT NULL,
  518 + name varchar(32) NOT NULL,
  519 + status int2 NOT NULL,
  520 + handler_name varchar(64) NOT NULL,
  521 + handler_param varchar(255) NULL DEFAULT NULL,
  522 + cron_expression varchar(32) NOT NULL,
  523 + retry_count int4 NOT NULL DEFAULT 0,
  524 + retry_interval int4 NOT NULL DEFAULT 0,
  525 + monitor_timeout int4 NOT NULL DEFAULT 0,
  526 + creator varchar(64) NULL DEFAULT '',
  527 + create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  528 + updater varchar(64) NULL DEFAULT '',
  529 + update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  530 + deleted int2 NOT NULL DEFAULT 0
553 ); 531 );
554 532
555 -ALTER TABLE infra_job  
556 - ADD CONSTRAINT pk_infra_job PRIMARY KEY (id); 533 +ALTER TABLE infra_job ADD CONSTRAINT pk_infra_job PRIMARY KEY (id);
557 534
558 COMMENT ON COLUMN infra_job.id IS '任务编号'; 535 COMMENT ON COLUMN infra_job.id IS '任务编号';
559 COMMENT ON COLUMN infra_job.name IS '任务名称'; 536 COMMENT ON COLUMN infra_job.name IS '任务名称';
@@ -580,47 +557,50 @@ INSERT INTO infra_job (id, name, status, handler_name, handler_param, cron_expre @@ -580,47 +557,50 @@ INSERT INTO infra_job (id, name, status, handler_name, handler_param, cron_expre
580 INSERT INTO infra_job (id, name, status, handler_name, handler_param, cron_expression, retry_count, retry_interval, monitor_timeout, creator, create_time, updater, update_time, deleted) VALUES (17, '支付订单同步 Job', 2, 'payOrderSyncJob', NULL, '0 0/1 * * * ?', 0, 0, 0, '1', '2023-07-22 14:36:26', '1', '2023-07-22 15:39:08', '0'); 557 INSERT INTO infra_job (id, name, status, handler_name, handler_param, cron_expression, retry_count, retry_interval, monitor_timeout, creator, create_time, updater, update_time, deleted) VALUES (17, '支付订单同步 Job', 2, 'payOrderSyncJob', NULL, '0 0/1 * * * ?', 0, 0, 0, '1', '2023-07-22 14:36:26', '1', '2023-07-22 15:39:08', '0');
581 INSERT INTO infra_job (id, name, status, handler_name, handler_param, cron_expression, retry_count, retry_interval, monitor_timeout, creator, create_time, updater, update_time, deleted) VALUES (18, '支付订单过期 Job', 2, 'payOrderExpireJob', NULL, '0 0/1 * * * ?', 0, 0, 0, '1', '2023-07-22 15:36:23', '1', '2023-07-22 15:39:54', '0'); 558 INSERT INTO infra_job (id, name, status, handler_name, handler_param, cron_expression, retry_count, retry_interval, monitor_timeout, creator, create_time, updater, update_time, deleted) VALUES (18, '支付订单过期 Job', 2, 'payOrderExpireJob', NULL, '0 0/1 * * * ?', 0, 0, 0, '1', '2023-07-22 15:36:23', '1', '2023-07-22 15:39:54', '0');
582 INSERT INTO infra_job (id, name, status, handler_name, handler_param, cron_expression, retry_count, retry_interval, monitor_timeout, creator, create_time, updater, update_time, deleted) VALUES (19, '退款订单的同步 Job', 2, 'payRefundSyncJob', NULL, '0 0/1 * * * ?', 0, 0, 0, '1', '2023-07-23 21:03:44', '1', '2023-07-23 21:09:00', '0'); 559 INSERT INTO infra_job (id, name, status, handler_name, handler_param, cron_expression, retry_count, retry_interval, monitor_timeout, creator, create_time, updater, update_time, deleted) VALUES (19, '退款订单的同步 Job', 2, 'payRefundSyncJob', NULL, '0 0/1 * * * ?', 0, 0, 0, '1', '2023-07-23 21:03:44', '1', '2023-07-23 21:09:00', '0');
583 -INSERT INTO infra_job (id, name, status, handler_name, handler_param, cron_expression, retry_count, retry_interval, monitor_timeout, creator, create_time, updater, update_time, deleted) VALUES (21, '交易订单的自动过期 Job', 2, 'tradeOrderAutoCancelJob', '', '0 * * * * ?', 3, 0, 0, '1', '2023-09-25 23:43:26', '1', '2023-09-26 19:23:30', '0');  
584 -INSERT INTO infra_job (id, name, status, handler_name, handler_param, cron_expression, retry_count, retry_interval, monitor_timeout, creator, create_time, updater, update_time, deleted) VALUES (22, '交易订单的自动收货 Job', 2, 'tradeOrderAutoReceiveJob', '', '0 * * * * ?', 3, 0, 0, '1', '2023-09-26 19:23:53', '1', '2023-09-26 23:38:08', '0');  
585 -INSERT INTO infra_job (id, name, status, handler_name, handler_param, cron_expression, retry_count, retry_interval, monitor_timeout, creator, create_time, updater, update_time, deleted) VALUES (23, '交易订单的自动评论 Job', 2, 'tradeOrderAutoCommentJob', '', '0 * * * * ?', 3, 0, 0, '1', '2023-09-26 23:38:29', '1', '2023-09-27 11:03:10', '0');  
586 -INSERT INTO infra_job (id, name, status, handler_name, handler_param, cron_expression, retry_count, retry_interval, monitor_timeout, creator, create_time, updater, update_time, deleted) VALUES (24, '佣金解冻 Job', 2, 'brokerageRecordUnfreezeJob', '', '0 * * * * ?', 3, 0, 0, '1', '2023-09-28 22:01:46', '1', '2023-09-28 22:01:56', '0'); 560 +INSERT INTO infra_job (id, name, status, handler_name, handler_param, cron_expression, retry_count, retry_interval, monitor_timeout, creator, create_time, updater, update_time, deleted) VALUES (21, 'Mall 交易订单的自动过期 Job', 2, 'tradeOrderAutoCancelJob', '', '0 * * * * ?', 3, 0, 0, '1', '2023-09-25 23:43:26', '1', '2025-10-02 11:08:34', '0');
  561 +INSERT INTO infra_job (id, name, status, handler_name, handler_param, cron_expression, retry_count, retry_interval, monitor_timeout, creator, create_time, updater, update_time, deleted) VALUES (22, 'Mall 交易订单的自动收货 Job', 2, 'tradeOrderAutoReceiveJob', '', '0 * * * * ?', 3, 0, 0, '1', '2023-09-26 19:23:53', '1', '2025-10-02 11:08:36', '0');
  562 +INSERT INTO infra_job (id, name, status, handler_name, handler_param, cron_expression, retry_count, retry_interval, monitor_timeout, creator, create_time, updater, update_time, deleted) VALUES (23, 'Mall 交易订单的自动评论 Job', 2, 'tradeOrderAutoCommentJob', '', '0 * * * * ?', 3, 0, 0, '1', '2023-09-26 23:38:29', '1', '2025-10-02 11:08:38', '0');
  563 +INSERT INTO infra_job (id, name, status, handler_name, handler_param, cron_expression, retry_count, retry_interval, monitor_timeout, creator, create_time, updater, update_time, deleted) VALUES (24, 'Mall 佣金解冻 Job', 2, 'brokerageRecordUnfreezeJob', '', '0 * * * * ?', 3, 0, 0, '1', '2023-09-28 22:01:46', '1', '2025-10-02 11:08:04', '0');
587 INSERT INTO infra_job (id, name, status, handler_name, handler_param, cron_expression, retry_count, retry_interval, monitor_timeout, creator, create_time, updater, update_time, deleted) VALUES (25, '访问日志清理 Job', 2, 'accessLogCleanJob', '', '0 0 0 * * ?', 3, 0, 0, '1', '2023-10-03 10:59:41', '1', '2023-10-03 11:01:10', '0'); 564 INSERT INTO infra_job (id, name, status, handler_name, handler_param, cron_expression, retry_count, retry_interval, monitor_timeout, creator, create_time, updater, update_time, deleted) VALUES (25, '访问日志清理 Job', 2, 'accessLogCleanJob', '', '0 0 0 * * ?', 3, 0, 0, '1', '2023-10-03 10:59:41', '1', '2023-10-03 11:01:10', '0');
588 INSERT INTO infra_job (id, name, status, handler_name, handler_param, cron_expression, retry_count, retry_interval, monitor_timeout, creator, create_time, updater, update_time, deleted) VALUES (26, '错误日志清理 Job', 2, 'errorLogCleanJob', '', '0 0 0 * * ?', 3, 0, 0, '1', '2023-10-03 11:00:43', '1', '2023-10-03 11:01:12', '0'); 565 INSERT INTO infra_job (id, name, status, handler_name, handler_param, cron_expression, retry_count, retry_interval, monitor_timeout, creator, create_time, updater, update_time, deleted) VALUES (26, '错误日志清理 Job', 2, 'errorLogCleanJob', '', '0 0 0 * * ?', 3, 0, 0, '1', '2023-10-03 11:00:43', '1', '2023-10-03 11:01:12', '0');
589 INSERT INTO infra_job (id, name, status, handler_name, handler_param, cron_expression, retry_count, retry_interval, monitor_timeout, creator, create_time, updater, update_time, deleted) VALUES (27, '任务日志清理 Job', 2, 'jobLogCleanJob', '', '0 0 0 * * ?', 3, 0, 0, '1', '2023-10-03 11:01:33', '1', '2024-09-12 13:40:34', '0'); 566 INSERT INTO infra_job (id, name, status, handler_name, handler_param, cron_expression, retry_count, retry_interval, monitor_timeout, creator, create_time, updater, update_time, deleted) VALUES (27, '任务日志清理 Job', 2, 'jobLogCleanJob', '', '0 0 0 * * ?', 3, 0, 0, '1', '2023-10-03 11:01:33', '1', '2024-09-12 13:40:34', '0');
590 INSERT INTO infra_job (id, name, status, handler_name, handler_param, cron_expression, retry_count, retry_interval, monitor_timeout, creator, create_time, updater, update_time, deleted) VALUES (33, 'demoJob', 2, 'demoJob', '', '0 * * * * ?', 1, 1, 0, '1', '2024-10-27 19:38:46', '1', '2025-05-10 18:13:54', '0'); 567 INSERT INTO infra_job (id, name, status, handler_name, handler_param, cron_expression, retry_count, retry_interval, monitor_timeout, creator, create_time, updater, update_time, deleted) VALUES (33, 'demoJob', 2, 'demoJob', '', '0 * * * * ?', 1, 1, 0, '1', '2024-10-27 19:38:46', '1', '2025-05-10 18:13:54', '0');
591 INSERT INTO infra_job (id, name, status, handler_name, handler_param, cron_expression, retry_count, retry_interval, monitor_timeout, creator, create_time, updater, update_time, deleted) VALUES (35, '转账订单的同步 Job', 2, 'payTransferSyncJob', '', '0 * * * * ?', 0, 0, 0, '1', '2025-05-10 17:35:54', '1', '2025-05-10 18:13:52', '0'); 568 INSERT INTO infra_job (id, name, status, handler_name, handler_param, cron_expression, retry_count, retry_interval, monitor_timeout, creator, create_time, updater, update_time, deleted) VALUES (35, '转账订单的同步 Job', 2, 'payTransferSyncJob', '', '0 * * * * ?', 0, 0, 0, '1', '2025-05-10 17:35:54', '1', '2025-05-10 18:13:52', '0');
  569 +INSERT INTO infra_job (id, name, status, handler_name, handler_param, cron_expression, retry_count, retry_interval, monitor_timeout, creator, create_time, updater, update_time, deleted) VALUES (36, 'IoT 设备离线检查 Job', 2, 'iotDeviceOfflineCheckJob', '', '0 * * * * ?', 0, 0, 0, '1', '2025-07-03 23:48:44', '"1"', '2025-07-03 23:48:47', '0');
  570 +INSERT INTO infra_job (id, name, status, handler_name, handler_param, cron_expression, retry_count, retry_interval, monitor_timeout, creator, create_time, updater, update_time, deleted) VALUES (37, 'IoT OTA 升级推送 Job', 2, 'iotOtaUpgradeJob', '', '0 * * * * ?', 0, 0, 0, '1', '2025-07-03 23:49:07', '"1"', '2025-07-03 23:49:13', '0');
  571 +INSERT INTO infra_job (id, name, status, handler_name, handler_param, cron_expression, retry_count, retry_interval, monitor_timeout, creator, create_time, updater, update_time, deleted) VALUES (38, 'Mall 拼团过期 Job', 2, 'combinationRecordExpireJob', '', '0 * * * * ?', 0, 0, 0, '1', '2025-10-02 11:07:11', '1', '2025-10-02 11:07:14', '0');
  572 +INSERT INTO infra_job (id, name, status, handler_name, handler_param, cron_expression, retry_count, retry_interval, monitor_timeout, creator, create_time, updater, update_time, deleted) VALUES (39, 'Mall 优惠券过期 Job', 2, 'couponExpireJob', '', '0 * * * * ?', 0, 0, 0, '1', '2025-10-02 11:07:34', '1', '2025-10-02 11:07:37', '0');
  573 +INSERT INTO infra_job (id, name, status, handler_name, handler_param, cron_expression, retry_count, retry_interval, monitor_timeout, creator, create_time, updater, update_time, deleted) VALUES (40, 'Mall 商品统计 Job', 2, 'productStatisticsJob', '', '0 0 0 * * ?', 0, 0, 0, '1', '2025-11-22 18:51:25', '1', '2025-11-22 18:56:21', '0');
592 COMMIT; 574 COMMIT;
593 -- @formatter:on 575 -- @formatter:on
594 576
595 -DROP SEQUENCE IF EXISTS infra_job_log_seq;  
596 -CREATE SEQUENCE infra_job_log_seq  
597 - START 1; 577 +DROP SEQUENCE IF EXISTS infra_job_seq;
  578 +CREATE SEQUENCE infra_job_seq
  579 + START 41;
598 580
599 -- ---------------------------- 581 -- ----------------------------
600 -- Table structure for infra_job_log 582 -- Table structure for infra_job_log
601 -- ---------------------------- 583 -- ----------------------------
602 DROP TABLE IF EXISTS infra_job_log; 584 DROP TABLE IF EXISTS infra_job_log;
603 -CREATE TABLE infra_job_log  
604 -(  
605 - id int8 NOT NULL default nextval('infra_job_log_seq'),  
606 - job_id int8 NOT NULL,  
607 - handler_name varchar(64) NOT NULL,  
608 - handler_param varchar(255) NULL DEFAULT NULL,  
609 - execute_index int2 NOT NULL DEFAULT 1,  
610 - begin_time timestamp NOT NULL,  
611 - end_time timestamp NULL DEFAULT NULL,  
612 - duration int4 NULL DEFAULT NULL,  
613 - status int2 NOT NULL,  
614 - result varchar(4000) NULL DEFAULT '',  
615 - creator varchar(64) NULL DEFAULT '',  
616 - create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
617 - updater varchar(64) NULL DEFAULT '',  
618 - update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
619 - deleted int2 NOT NULL DEFAULT 0 585 +CREATE TABLE infra_job_log (
  586 + id int8 NOT NULL,
  587 + job_id int8 NOT NULL,
  588 + handler_name varchar(64) NOT NULL,
  589 + handler_param varchar(255) NULL DEFAULT NULL,
  590 + execute_index int2 NOT NULL DEFAULT 1,
  591 + begin_time timestamp NOT NULL,
  592 + end_time timestamp NULL DEFAULT NULL,
  593 + duration int4 NULL DEFAULT NULL,
  594 + status int2 NOT NULL,
  595 + result varchar(4000) NULL DEFAULT '',
  596 + creator varchar(64) NULL DEFAULT '',
  597 + create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  598 + updater varchar(64) NULL DEFAULT '',
  599 + update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  600 + deleted int2 NOT NULL DEFAULT 0
620 ); 601 );
621 602
622 -ALTER TABLE infra_job_log  
623 - ADD CONSTRAINT pk_infra_job_log PRIMARY KEY (id); 603 +ALTER TABLE infra_job_log ADD CONSTRAINT pk_infra_job_log PRIMARY KEY (id);
624 604
625 COMMENT ON COLUMN infra_job_log.id IS '日志编号'; 605 COMMENT ON COLUMN infra_job_log.id IS '日志编号';
626 COMMENT ON COLUMN infra_job_log.job_id IS '任务编号'; 606 COMMENT ON COLUMN infra_job_log.job_id IS '任务编号';
@@ -639,34 +619,32 @@ COMMENT ON COLUMN infra_job_log.update_time IS '更新时间'; @@ -639,34 +619,32 @@ COMMENT ON COLUMN infra_job_log.update_time IS '更新时间';
639 COMMENT ON COLUMN infra_job_log.deleted IS '是否删除'; 619 COMMENT ON COLUMN infra_job_log.deleted IS '是否删除';
640 COMMENT ON TABLE infra_job_log IS '定时任务日志表'; 620 COMMENT ON TABLE infra_job_log IS '定时任务日志表';
641 621
642 -DROP SEQUENCE IF EXISTS system_dept_seq;  
643 -CREATE SEQUENCE system_dept_seq 622 +DROP SEQUENCE IF EXISTS infra_job_log_seq;
  623 +CREATE SEQUENCE infra_job_log_seq
644 START 1; 624 START 1;
645 625
646 -- ---------------------------- 626 -- ----------------------------
647 -- Table structure for system_dept 627 -- Table structure for system_dept
648 -- ---------------------------- 628 -- ----------------------------
649 DROP TABLE IF EXISTS system_dept; 629 DROP TABLE IF EXISTS system_dept;
650 -CREATE TABLE system_dept  
651 -(  
652 - id int8 NOT NULL default nextval('system_dept_seq'),  
653 - name varchar(30) NOT NULL DEFAULT '',  
654 - parent_id int8 NOT NULL DEFAULT 0,  
655 - sort int4 NOT NULL DEFAULT 0,  
656 - leader_user_id int8 NULL DEFAULT NULL,  
657 - phone varchar(11) NULL DEFAULT NULL,  
658 - email varchar(50) NULL DEFAULT NULL,  
659 - status int2 NOT NULL,  
660 - creator varchar(64) NULL DEFAULT '',  
661 - create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
662 - updater varchar(64) NULL DEFAULT '',  
663 - update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
664 - deleted int2 NOT NULL DEFAULT 0,  
665 - tenant_id int8 NOT NULL DEFAULT 0 630 +CREATE TABLE system_dept (
  631 + id int8 NOT NULL,
  632 + name varchar(30) NOT NULL DEFAULT '',
  633 + parent_id int8 NOT NULL DEFAULT 0,
  634 + sort int4 NOT NULL DEFAULT 0,
  635 + leader_user_id int8 NULL DEFAULT NULL,
  636 + phone varchar(11) NULL DEFAULT NULL,
  637 + email varchar(50) NULL DEFAULT NULL,
  638 + status int2 NOT NULL,
  639 + creator varchar(64) NULL DEFAULT '',
  640 + create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  641 + updater varchar(64) NULL DEFAULT '',
  642 + update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  643 + deleted int2 NOT NULL DEFAULT 0,
  644 + tenant_id int8 NOT NULL DEFAULT 0
666 ); 645 );
667 646
668 -ALTER TABLE system_dept  
669 - ADD CONSTRAINT pk_system_dept PRIMARY KEY (id); 647 +ALTER TABLE system_dept ADD CONSTRAINT pk_system_dept PRIMARY KEY (id);
670 648
671 COMMENT ON COLUMN system_dept.id IS '部门id'; 649 COMMENT ON COLUMN system_dept.id IS '部门id';
672 COMMENT ON COLUMN system_dept.name IS '部门名称'; 650 COMMENT ON COLUMN system_dept.name IS '部门名称';
@@ -706,34 +684,32 @@ INSERT INTO system_dept (id, name, parent_id, sort, leader_user_id, phone, email @@ -706,34 +684,32 @@ INSERT INTO system_dept (id, name, parent_id, sort, leader_user_id, phone, email
706 COMMIT; 684 COMMIT;
707 -- @formatter:on 685 -- @formatter:on
708 686
709 -DROP SEQUENCE IF EXISTS system_dict_data_seq;  
710 -CREATE SEQUENCE system_dict_data_seq  
711 - START 1; 687 +DROP SEQUENCE IF EXISTS system_dept_seq;
  688 +CREATE SEQUENCE system_dept_seq
  689 + START 114;
712 690
713 -- ---------------------------- 691 -- ----------------------------
714 -- Table structure for system_dict_data 692 -- Table structure for system_dict_data
715 -- ---------------------------- 693 -- ----------------------------
716 DROP TABLE IF EXISTS system_dict_data; 694 DROP TABLE IF EXISTS system_dict_data;
717 -CREATE TABLE system_dict_data  
718 -(  
719 - id int8 NOT NULL default nextval('system_dict_data_seq'),  
720 - sort int4 NOT NULL DEFAULT 0,  
721 - label varchar(100) NOT NULL DEFAULT '',  
722 - value varchar(100) NOT NULL DEFAULT '',  
723 - dict_type varchar(100) NOT NULL DEFAULT '',  
724 - status int2 NOT NULL DEFAULT 0,  
725 - color_type varchar(100) NULL DEFAULT '',  
726 - css_class varchar(100) NULL DEFAULT '',  
727 - remark varchar(500) NULL DEFAULT NULL,  
728 - creator varchar(64) NULL DEFAULT '',  
729 - create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
730 - updater varchar(64) NULL DEFAULT '',  
731 - update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
732 - deleted int2 NOT NULL DEFAULT 0 695 +CREATE TABLE system_dict_data (
  696 + id int8 NOT NULL,
  697 + sort int4 NOT NULL DEFAULT 0,
  698 + label varchar(100) NOT NULL DEFAULT '',
  699 + value varchar(100) NOT NULL DEFAULT '',
  700 + dict_type varchar(100) NOT NULL DEFAULT '',
  701 + status int2 NOT NULL DEFAULT 0,
  702 + color_type varchar(100) NULL DEFAULT '',
  703 + css_class varchar(100) NULL DEFAULT '',
  704 + remark varchar(500) NULL DEFAULT NULL,
  705 + creator varchar(64) NULL DEFAULT '',
  706 + create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  707 + updater varchar(64) NULL DEFAULT '',
  708 + update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  709 + deleted int2 NOT NULL DEFAULT 0
733 ); 710 );
734 711
735 -ALTER TABLE system_dict_data  
736 - ADD CONSTRAINT pk_system_dict_data PRIMARY KEY (id); 712 +ALTER TABLE system_dict_data ADD CONSTRAINT pk_system_dict_data PRIMARY KEY (id);
737 713
738 COMMENT ON COLUMN system_dict_data.id IS '字典编码'; 714 COMMENT ON COLUMN system_dict_data.id IS '字典编码';
739 COMMENT ON COLUMN system_dict_data.sort IS '字典排序'; 715 COMMENT ON COLUMN system_dict_data.sort IS '字典排序';
@@ -941,7 +917,7 @@ INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_t @@ -941,7 +917,7 @@ INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_t
941 INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (1230, 13, '支付宝条码支付', 'alipay_bar', 'pay_channel_code', 0, 'primary', '', '支付宝条码支付', '1', '2023-02-18 23:32:24', '1', '2023-07-19 20:09:23', '0'); 917 INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (1230, 13, '支付宝条码支付', 'alipay_bar', 'pay_channel_code', 0, 'primary', '', '支付宝条码支付', '1', '2023-02-18 23:32:24', '1', '2023-07-19 20:09:23', '0');
942 INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (1231, 10, 'Vue2 Element UI 标准模版', '10', 'infra_codegen_front_type', 0, '', '', '', '1', '2023-04-13 00:03:55', '1', '2023-04-13 00:03:55', '0'); 918 INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (1231, 10, 'Vue2 Element UI 标准模版', '10', 'infra_codegen_front_type', 0, '', '', '', '1', '2023-04-13 00:03:55', '1', '2023-04-13 00:03:55', '0');
943 INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (1232, 20, 'Vue3 Element Plus 标准模版', '20', 'infra_codegen_front_type', 0, '', '', '', '1', '2023-04-13 00:04:08', '1', '2023-04-13 00:04:08', '0'); 919 INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (1232, 20, 'Vue3 Element Plus 标准模版', '20', 'infra_codegen_front_type', 0, '', '', '', '1', '2023-04-13 00:04:08', '1', '2023-04-13 00:04:08', '0');
944 -INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (1234, 30, 'Vben2.0 Ant Design Schema 模版', '30', 'infra_codegen_front_type', 0, '', '', '', '1', '2023-04-13 00:04:26', '1', '2025-04-23 21:27:34', '0'); 920 +INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (1234, 30, 'Vben2.0 Ant Design Schema 模版', '30', 'infra_codegen_front_type', 1, '', '', '', '1', '2023-04-13 00:04:26', '1', '2025-07-27 10:55:14', '0');
945 INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (1244, 0, '按件', '1', 'trade_delivery_express_charge_mode', 0, '', '', '', '1', '2023-05-21 22:46:40', '1', '2023-05-21 22:46:40', '0'); 921 INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (1244, 0, '按件', '1', 'trade_delivery_express_charge_mode', 0, '', '', '', '1', '2023-05-21 22:46:40', '1', '2023-05-21 22:46:40', '0');
946 INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (1245, 1, '按重量', '2', 'trade_delivery_express_charge_mode', 0, '', '', '', '1', '2023-05-21 22:46:58', '1', '2023-05-21 22:46:58', '0'); 922 INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (1245, 1, '按重量', '2', 'trade_delivery_express_charge_mode', 0, '', '', '', '1', '2023-05-21 22:46:58', '1', '2023-05-21 22:46:58', '0');
947 INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (1246, 2, '按体积', '3', 'trade_delivery_express_charge_mode', 0, '', '', '', '1', '2023-05-21 22:47:18', '1', '2023-05-21 22:47:18', '0'); 923 INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (1246, 2, '按体积', '3', 'trade_delivery_express_charge_mode', 0, '', '', '', '1', '2023-05-21 22:47:18', '1', '2023-05-21 22:47:18', '0');
@@ -1182,37 +1158,22 @@ INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_t @@ -1182,37 +1158,22 @@ INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_t
1182 INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (1690, 5, '向量', '5', 'ai_model_type', 0, '', '', '', '1', '2025-03-03 12:28:15', '1', '2025-03-03 12:28:15', '0'); 1158 INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (1690, 5, '向量', '5', 'ai_model_type', 0, '', '', '', '1', '2025-03-03 12:28:15', '1', '2025-03-03 12:28:15', '0');
1183 INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (1691, 6, '重排', '6', 'ai_model_type', 0, '', '', '', '1', '2025-03-03 12:28:26', '1', '2025-03-03 12:28:26', '0'); 1159 INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (1691, 6, '重排', '6', 'ai_model_type', 0, '', '', '', '1', '2025-03-03 12:28:26', '1', '2025-03-03 12:28:26', '0');
1184 INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (1692, 14, 'MiniMax', 'MiniMax', 'ai_platform', 0, '', '', '', '1', '2025-03-11 20:04:51', '1', '2025-03-11 20:04:51', '0'); 1160 INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (1692, 14, 'MiniMax', 'MiniMax', 'ai_platform', 0, '', '', '', '1', '2025-03-11 20:04:51', '1', '2025-03-11 20:04:51', '0');
1185 -INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (1693, 15, '月之暗面', 'Moonshot', 'ai_platform', 0, '', '', '', '1', '2025-03-11 20:05:08', '1', '2025-03-11 20:05:08', '0');  
1186 -INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2000, 0, '标准数据格式(JSON)', '0', 'iot_data_format', 0, 'default', '', '', '1', '2024-08-10 11:53:26', '1', '2025-03-17 09:28:16', '0');  
1187 -INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2001, 1, '透传/自定义', '1', 'iot_data_format', 0, 'default', '', '', '1', '2024-08-10 11:53:37', '1', '2025-03-17 09:28:19', '0'); 1161 +INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (1693, 15, '月之暗面', 'Moonshot', 'ai_platform', 0, '', '', '', '1', '2025-03-11 20:05:08', '1', '2025-11-24 07:17:39', '0');
1188 INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2002, 0, '直连设备', '0', 'iot_product_device_type', 0, 'default', '', '', '1', '2024-08-10 11:54:58', '1', '2025-03-17 09:28:22', '0'); 1162 INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2002, 0, '直连设备', '0', 'iot_product_device_type', 0, 'default', '', '', '1', '2024-08-10 11:54:58', '1', '2025-03-17 09:28:22', '0');
1189 INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2003, 2, '网关设备', '2', 'iot_product_device_type', 0, 'default', '', '', '1', '2024-08-10 11:55:08', '1', '2025-03-17 09:28:28', '0'); 1163 INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2003, 2, '网关设备', '2', 'iot_product_device_type', 0, 'default', '', '', '1', '2024-08-10 11:55:08', '1', '2025-03-17 09:28:28', '0');
1190 INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2004, 1, '网关子设备', '1', 'iot_product_device_type', 0, 'default', '', '', '1', '2024-08-10 11:55:20', '1', '2025-03-17 09:28:31', '0'); 1164 INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2004, 1, '网关子设备', '1', 'iot_product_device_type', 0, 'default', '', '', '1', '2024-08-10 11:55:20', '1', '2025-03-17 09:28:31', '0');
1191 INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2005, 1, '已发布', '1', 'iot_product_status', 0, 'success', '', '', '1', '2024-08-10 12:10:33', '1', '2025-03-17 09:28:34', '0'); 1165 INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2005, 1, '已发布', '1', 'iot_product_status', 0, 'success', '', '', '1', '2024-08-10 12:10:33', '1', '2025-03-17 09:28:34', '0');
1192 INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2006, 0, '开发中', '0', 'iot_product_status', 0, 'default', '', '', '1', '2024-08-10 14:19:18', '1', '2025-03-17 09:28:39', '0'); 1166 INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2006, 0, '开发中', '0', 'iot_product_status', 0, 'default', '', '', '1', '2024-08-10 14:19:18', '1', '2025-03-17 09:28:39', '0');
1193 -INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2007, 0, '弱校验', '0', 'iot_validate_type', 0, '', '', '', '1', '2024-09-06 20:05:48', '1', '2025-03-17 09:28:41', '0');  
1194 -INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2008, 1, '免校验', '1', 'iot_validate_type', 0, '', '', '', '1', '2024-09-06 20:06:03', '1', '2025-03-17 09:28:44', '0');  
1195 INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2009, 0, 'Wi-Fi', '0', 'iot_net_type', 0, '', '', '', '1', '2024-09-06 22:04:47', '1', '2025-03-17 09:28:47', '0'); 1167 INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2009, 0, 'Wi-Fi', '0', 'iot_net_type', 0, '', '', '', '1', '2024-09-06 22:04:47', '1', '2025-03-17 09:28:47', '0');
1196 -INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2010, 1, '蜂窝(2G / 3G / 4G / 5G)', '1', 'iot_net_type', 0, '', '', '', '1', '2024-09-06 22:05:14', '1', '2025-03-17 09:28:49', '0'); 1168 +INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2010, 1, '移动网络', '1', 'iot_net_type', 0, '', '', '', '1', '2024-09-06 22:05:14', '1', '2025-06-12 23:27:19', '0');
1197 INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2011, 2, '以太网', '2', 'iot_net_type', 0, '', '', '', '1', '2024-09-06 22:05:35', '1', '2025-03-17 09:28:51', '0'); 1169 INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2011, 2, '以太网', '2', 'iot_net_type', 0, '', '', '', '1', '2024-09-06 22:05:35', '1', '2025-03-17 09:28:51', '0');
1198 INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2012, 3, '其他', '3', 'iot_net_type', 0, '', '', '', '1', '2024-09-06 22:05:52', '1', '2025-03-17 09:28:54', '0'); 1170 INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2012, 3, '其他', '3', 'iot_net_type', 0, '', '', '', '1', '2024-09-06 22:05:52', '1', '2025-03-17 09:28:54', '0');
1199 -INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2013, 0, '自定义', '0', 'iot_protocol_type', 0, '', '', '', '1', '2024-09-06 22:26:10', '1', '2025-03-17 09:28:56', '0');  
1200 -INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2014, 1, 'Modbus', '1', 'iot_protocol_type', 0, '', '', '', '1', '2024-09-06 22:26:21', '1', '2025-03-17 09:28:58', '0');  
1201 -INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2015, 2, 'OPC UA', '2', 'iot_protocol_type', 0, '', '', '', '1', '2024-09-06 22:26:31', '1', '2025-03-17 09:29:00', '0');  
1202 -INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2016, 3, 'ZigBee', '3', 'iot_protocol_type', 0, '', '', '', '1', '2024-09-06 22:26:39', '1', '2025-03-17 09:29:04', '0');  
1203 -INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2017, 4, 'BLE', '4', 'iot_protocol_type', 0, '', '', '', '1', '2024-09-06 22:26:48', '1', '2025-03-17 09:29:06', '0');  
1204 INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2018, 0, '未激活', '0', 'iot_device_state', 0, '', '', '', '1', '2024-09-21 08:13:34', '1', '2025-03-17 09:29:09', '0'); 1171 INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2018, 0, '未激活', '0', 'iot_device_state', 0, '', '', '', '1', '2024-09-21 08:13:34', '1', '2025-03-17 09:29:09', '0');
1205 INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2019, 1, '在线', '1', 'iot_device_state', 0, '', '', '', '1', '2024-09-21 08:13:48', '1', '2025-03-17 09:29:12', '0'); 1172 INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2019, 1, '在线', '1', 'iot_device_state', 0, '', '', '', '1', '2024-09-21 08:13:48', '1', '2025-03-17 09:29:12', '0');
1206 INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2020, 2, '离线', '2', 'iot_device_state', 0, '', '', '', '1', '2024-09-21 08:13:59', '1', '2025-03-17 09:29:14', '0'); 1173 INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2020, 2, '离线', '2', 'iot_device_state', 0, '', '', '', '1', '2024-09-21 08:13:59', '1', '2025-03-17 09:29:14', '0');
1207 INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2021, 1, '属性', '1', 'iot_thing_model_type', 0, '', '', '', '1', '2024-09-29 20:03:01', '1', '2025-03-17 09:29:24', '0'); 1174 INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2021, 1, '属性', '1', 'iot_thing_model_type', 0, '', '', '', '1', '2024-09-29 20:03:01', '1', '2025-03-17 09:29:24', '0');
1208 INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2022, 2, '服务', '2', 'iot_thing_model_type', 0, '', '', '', '1', '2024-09-29 20:03:11', '1', '2025-03-17 09:29:27', '0'); 1175 INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2022, 2, '服务', '2', 'iot_thing_model_type', 0, '', '', '', '1', '2024-09-29 20:03:11', '1', '2025-03-17 09:29:27', '0');
1209 INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2023, 3, '事件', '3', 'iot_thing_model_type', 0, '', '', '', '1', '2024-09-29 20:03:20', '1', '2025-03-17 09:29:29', '0'); 1176 INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2023, 3, '事件', '3', 'iot_thing_model_type', 0, '', '', '', '1', '2024-09-29 20:03:20', '1', '2025-03-17 09:29:29', '0');
1210 -INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2024, 1, 'JAR 部署', '0', 'iot_plugin_deploy_type', 0, '', '', '', '1', '2024-12-13 10:55:32', '1', '2025-03-17 09:29:32', '0');  
1211 -INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2025, 2, '独立部署', '1', 'iot_plugin_deploy_type', 0, '', '', '', '1', '2024-12-13 10:55:43', '1', '2025-03-17 09:29:34', '0');  
1212 -INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2026, 0, '停止', '0', 'iot_plugin_status', 0, 'danger', '', '', '1', '2024-12-13 11:07:37', '1', '2025-03-17 09:29:37', '0');  
1213 -INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2027, 1, '运行', '1', 'iot_plugin_status', 0, '', '', '', '1', '2024-12-13 11:07:45', '1', '2025-03-17 09:34:17', '0');  
1214 -INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2028, 0, '普通插件', '0', 'iot_plugin_type', 0, '', '', '', '1', '2024-12-13 11:08:32', '1', '2025-03-17 09:34:19', '0');  
1215 -INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2029, 1, '设备插件', '1', 'iot_plugin_type', 0, '', '', '', '1', '2024-12-13 11:08:41', '1', '2025-03-17 09:34:22', '0');  
1216 INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2030, 1, '升每分钟', 'L/min', 'iot_thing_model_unit', 0, '', '', '', '1', '2024-12-13 11:08:41', '1', '2025-03-17 09:34:24', '0'); 1177 INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2030, 1, '升每分钟', 'L/min', 'iot_thing_model_unit', 0, '', '', '', '1', '2024-12-13 11:08:41', '1', '2025-03-17 09:34:24', '0');
1217 INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2031, 2, '毫克每千克', 'mg/kg', 'iot_thing_model_unit', 0, '', '', '', '1', '2024-12-13 11:08:41', '1', '2025-03-17 09:34:27', '0'); 1178 INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2031, 2, '毫克每千克', 'mg/kg', 'iot_thing_model_unit', 0, '', '', '', '1', '2024-12-13 11:08:41', '1', '2025-03-17 09:34:27', '0');
1218 INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2032, 3, '浊度', 'NTU', 'iot_thing_model_unit', 0, '', '', '', '1', '2024-12-13 11:08:41', '1', '2025-03-17 09:34:31', '0'); 1179 INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2032, 3, '浊度', 'NTU', 'iot_thing_model_unit', 0, '', '', '', '1', '2024-12-13 11:08:41', '1', '2025-03-17 09:34:31', '0');
@@ -1345,48 +1306,90 @@ INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_t @@ -1345,48 +1306,90 @@ INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_t
1345 INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2160, 130, '分米', 'dm', 'iot_thing_model_unit', 0, '', '', '', '1', '2024-12-13 11:08:41', '1', '2025-03-17 09:40:46', '0'); 1306 INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2160, 130, '分米', 'dm', 'iot_thing_model_unit', 0, '', '', '', '1', '2024-12-13 11:08:41', '1', '2025-03-17 09:40:46', '0');
1346 INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2161, 131, '千米', 'km', 'iot_thing_model_unit', 0, '', '', '', '1', '2024-12-13 11:08:41', '1', '2025-03-17 09:40:46', '0'); 1307 INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2161, 131, '千米', 'km', 'iot_thing_model_unit', 0, '', '', '', '1', '2024-12-13 11:08:41', '1', '2025-03-17 09:40:46', '0');
1347 INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2162, 132, '米', 'm', 'iot_thing_model_unit', 0, '', '', '', '1', '2024-12-13 11:08:41', '1', '2025-03-17 09:40:46', '0'); 1308 INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2162, 132, '米', 'm', 'iot_thing_model_unit', 0, '', '', '', '1', '2024-12-13 11:08:41', '1', '2025-03-17 09:40:46', '0');
1348 -INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2163, 1, '输入', '1', 'iot_data_bridge_direction_enum', 0, 'primary', '', '', '1', '2025-03-09 12:38:24', '1', '2025-03-17 09:40:46', '0');  
1349 -INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2164, 2, '输出', '2', 'iot_data_bridge_direction_enum', 0, 'primary', '', '', '1', '2025-03-09 12:38:36', '1', '2025-03-17 09:40:46', '0');  
1350 -INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2165, 1, 'HTTP', '1', 'iot_data_bridge_type_enum', 0, 'primary', '', '', '1', '2025-03-09 12:39:54', '1', '2025-03-17 09:40:46', '0');  
1351 -INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2166, 2, 'TCP', '2', 'iot_data_bridge_type_enum', 0, 'primary', '', '', '1', '2025-03-09 12:40:06', '1', '2025-03-17 09:40:46', '0');  
1352 -INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2167, 3, 'WEBSOCKET', '3', 'iot_data_bridge_type_enum', 0, 'primary', '', '', '1', '2025-03-09 12:40:24', '1', '2025-03-17 09:40:46', '0');  
1353 -INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2168, 10, 'MQTT', '10', 'iot_data_bridge_type_enum', 0, 'primary', '', '', '1', '2025-03-09 12:40:37', '1', '2025-03-17 09:40:46', '0');  
1354 -INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2169, 20, 'DATABASE', '20', 'iot_data_bridge_type_enum', 0, 'primary', '', '', '1', '2025-03-09 12:41:05', '1', '2025-03-17 09:40:46', '0');  
1355 -INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2170, 21, 'REDIS_STREAM', '21', 'iot_data_bridge_type_enum', 0, 'primary', '', '', '1', '2025-03-09 12:41:18', '1', '2025-03-17 09:40:46', '0');  
1356 -INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2171, 30, 'ROCKETMQ', '30', 'iot_data_bridge_type_enum', 0, 'primary', '', '', '1', '2025-03-09 12:41:30', '1', '2025-03-17 09:40:46', '0');  
1357 -INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2172, 31, 'RABBITMQ', '31', 'iot_data_bridge_type_enum', 0, 'primary', '', '', '1', '2025-03-09 12:41:47', '1', '2025-03-17 09:40:46', '0');  
1358 -INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2173, 32, 'KAFKA', '32', 'iot_data_bridge_type_enum', 0, 'primary', '', '', '1', '2025-03-09 12:41:59', '1', '2025-03-17 09:40:46', '0'); 1309 +INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2165, 1, 'HTTP', '1', 'iot_data_sink_type_enum', 0, 'default', '', '', '1', '2025-03-09 12:39:54', '1', '2025-06-24 12:44:47', '0');
  1310 +INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2166, 2, 'TCP', '2', 'iot_data_sink_type_enum', 0, 'default', '', '', '1', '2025-03-09 12:40:06', '1', '2025-06-24 12:44:46', '0');
  1311 +INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2167, 3, 'WebSocket', '3', 'iot_data_sink_type_enum', 0, 'default', '', '', '1', '2025-03-09 12:40:24', '1', '2025-06-24 12:44:45', '0');
  1312 +INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2168, 10, 'MQTT', '10', 'iot_data_sink_type_enum', 0, 'default', '', '', '1', '2025-03-09 12:40:37', '1', '2025-06-24 12:44:44', '0');
  1313 +INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2169, 20, 'Database', '20', 'iot_data_sink_type_enum', 0, 'default', '', '', '1', '2025-03-09 12:41:05', '1', '2025-06-24 12:44:44', '0');
  1314 +INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2170, 21, 'Redis Stream', '21', 'iot_data_sink_type_enum', 0, 'default', '', '', '1', '2025-03-09 12:41:18', '1', '2025-06-24 12:44:43', '0');
  1315 +INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2171, 30, 'RocketMQ', '30', 'iot_data_sink_type_enum', 0, 'default', '', '', '1', '2025-03-09 12:41:30', '1', '2025-06-24 12:44:42', '0');
  1316 +INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2172, 31, 'RabbitMQ', '31', 'iot_data_sink_type_enum', 0, 'default', '', '', '1', '2025-03-09 12:41:47', '1', '2025-06-24 12:44:41', '0');
  1317 +INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2173, 32, 'Kafka', '32', 'iot_data_sink_type_enum', 0, 'default', '', '', '1', '2025-03-09 12:41:59', '1', '2025-06-24 12:44:39', '0');
  1318 +INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2174, 1, '设备上下线变更', '1', 'iot_rule_scene_trigger_type_enum', 0, 'primary', '', '', '1', '2025-03-20 15:00:01', '"1"', '2025-07-06 10:28:16', '0');
  1319 +INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2175, 2, '物模型属性上报', '2', 'iot_rule_scene_trigger_type_enum', 0, 'primary', '', '', '1', '2025-03-20 15:00:09', '"1"', '2025-07-06 10:28:22', '0');
  1320 +INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2176, 1, '设备状态', 'state', 'iot_device_message_type_enum', 0, 'primary', '', '', '1', '2025-03-20 15:24:58', '1', '2025-03-20 15:24:58', '0');
  1321 +INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2177, 2, '设备属性', 'property', 'iot_device_message_type_enum', 0, 'primary', '', '', '1', '2025-03-20 15:25:09', '1', '2025-03-20 15:25:09', '0');
  1322 +INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2178, 3, '设备事件', 'event', 'iot_device_message_type_enum', 0, 'primary', '', '', '1', '2025-03-20 15:25:23', '1', '2025-03-20 15:25:23', '0');
  1323 +INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2179, 4, '设备服务', 'service', 'iot_device_message_type_enum', 0, 'primary', '', '', '1', '2025-03-20 15:25:39', '1', '2025-03-20 15:25:39', '0');
  1324 +INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2180, 5, '设备配置', 'config', 'iot_device_message_type_enum', 0, 'primary', '', '', '1', '2025-03-20 15:25:51', '1', '2025-03-20 15:25:57', '0');
  1325 +INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2181, 6, '设备 OTA', 'ota', 'iot_device_message_type_enum', 0, 'primary', '', '', '1', '2025-03-20 15:26:17', '1', '2025-03-20 15:26:17', '0');
  1326 +INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2182, 7, '设备注册', 'register', 'iot_device_message_type_enum', 0, 'primary', '', '', '1', '2025-03-20 15:26:35', '1', '2025-03-20 15:26:35', '0');
  1327 +INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2183, 8, '设备拓扑', 'topology', 'iot_device_message_type_enum', 0, 'primary', '', '', '1', '2025-03-20 15:26:46', '1', '2025-03-20 15:26:46', '0');
  1328 +INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2184, 1, '设备属性设置', '1', 'iot_rule_scene_action_type_enum', 0, 'primary', '', '', '1', '2025-03-28 15:27:12', '"1"', '2025-07-06 10:37:33', '0');
  1329 +INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2185, 2, '设备服务调用', '2', 'iot_rule_scene_action_type_enum', 0, 'primary', '', '', '1', '2025-03-28 15:27:25', '"1"', '2025-07-06 10:37:41', '0');
  1330 +INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (2186, 100, '告警触发', '100', 'iot_rule_scene_action_type_enum', 0, 'primary', '', '', '1', '2025-03-28 15:27:35', '"1"', '2025-07-06 10:37:50', '0');
1359 INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (3000, 16, '百川智能', 'BaiChuan', 'ai_platform', 0, '', '', '', '1', '2025-03-23 12:15:46', '1', '2025-03-23 12:15:46', '0'); 1331 INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (3000, 16, '百川智能', 'BaiChuan', 'ai_platform', 0, '', '', '', '1', '2025-03-23 12:15:46', '1', '2025-03-23 12:15:46', '0');
1360 -INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (3001, 50, 'Vben5.0 Ant Design Schema 模版', '40', 'infra_codegen_front_type', 0, '', '', NULL, '1', '2025-04-23 21:47:47', '1', '2025-05-02 12:01:15', '0'); 1332 +INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (3001, 40, 'Vben5.0 Ant Design Schema 模版', '40', 'infra_codegen_front_type', 0, '', '', NULL, '1', '2025-04-23 21:47:47', '1', '2025-09-04 23:25:12', '0');
1361 INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (3002, 6, '支付宝余额', '6', 'brokerage_withdraw_type', 0, '', '', 'API 打款', '1', '2025-05-10 08:24:49', '1', '2025-05-10 08:24:49', '0'); 1333 INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (3002, 6, '支付宝余额', '6', 'brokerage_withdraw_type', 0, '', '', 'API 打款', '1', '2025-05-10 08:24:49', '1', '2025-05-10 08:24:49', '0');
  1334 +INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (3003, 1, 'Alink', 'Alink', 'iot_codec_type', 0, '', '', '阿里云 Alink', '1', '2025-06-12 22:56:06', '1', '2025-06-12 23:22:24', '0');
  1335 +INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (3004, 3, 'WARN', '3', 'iot_alert_level', 0, 'warning', '', '', '1', '2025-06-27 20:32:22', '1', '2025-06-27 20:34:31', '0');
  1336 +INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (3005, 1, 'INFO', '1', 'iot_alert_level', 0, 'primary', '', '', '1', '2025-06-27 20:33:28', '1', '2025-06-27 20:34:35', '0');
  1337 +INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (3006, 5, 'ERROR', '5', 'iot_alert_level', 0, 'danger', '', '', '1', '2025-06-27 20:33:50', '1', '2025-06-27 20:33:50', '0');
  1338 +INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (3007, 1, '短信', '1', 'iot_alert_receive_type', 0, '', '', '', '1', '2025-06-27 22:49:30', '1', '2025-06-27 22:49:30', '0');
  1339 +INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (3008, 2, '邮箱', '2', 'iot_alert_receive_type', 0, '', '', '', '1', '2025-06-27 22:49:39', '1', '2025-06-27 22:50:07', '0');
  1340 +INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (3009, 3, '站内信', '3', 'iot_alert_receive_type', 0, '', '', '', '1', '2025-06-27 22:50:20', '1', '2025-06-27 22:50:20', '0');
  1341 +INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (3010, 1, '全部设备', '1', 'iot_ota_task_device_scope', 0, '', '', '', '1', '2025-07-02 09:43:09', '1', '2025-07-02 09:43:09', '0');
  1342 +INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (3011, 2, '指定设备', '2', 'iot_ota_task_device_scope', 0, '', '', '', '1', '2025-07-02 09:43:15', '1', '2025-07-02 09:43:15', '0');
  1343 +INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (3012, 10, '进行中', '10', 'iot_ota_task_status', 0, 'primary', '', '', '1', '2025-07-02 09:44:01', '"1"', '2025-07-02 09:44:21', '0');
  1344 +INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (3013, 20, '已结束', '20', 'iot_ota_task_status', 0, 'success', '', '', '1', '2025-07-02 09:44:14', '"1"', '2025-07-02 23:56:12', '0');
  1345 +INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (3014, 30, '已取消', '30', 'iot_ota_task_status', 0, 'danger', '', '', '1', '2025-07-02 09:44:36', '1', '2025-07-02 09:44:36', '0');
  1346 +INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (3015, 0, '待推送', '0', 'iot_ota_task_record_status', 0, '', '', '', '1', '2025-07-02 09:45:16', '1', '2025-07-02 09:45:16', '0');
  1347 +INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (3016, 10, '已推送', '10', 'iot_ota_task_record_status', 0, '', '', '', '1', '2025-07-02 09:45:25', '1', '2025-07-02 09:45:25', '0');
  1348 +INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (3017, 20, '升级中', '20', 'iot_ota_task_record_status', 0, 'primary', '', '', '1', '2025-07-02 09:45:37', '1', '2025-07-02 09:45:37', '0');
  1349 +INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (3018, 30, '升级成功', '30', 'iot_ota_task_record_status', 0, 'success', '', '', '1', '2025-07-02 09:45:47', '1', '2025-07-02 09:45:47', '0');
  1350 +INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (3019, 40, '升级失败', '40', 'iot_ota_task_record_status', 0, 'danger', '', '', '1', '2025-07-02 09:46:02', '1', '2025-07-02 09:46:02', '0');
  1351 +INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (3020, 50, '升级取消', '50', 'iot_ota_task_record_status', 0, 'warning', '', '', '1', '2025-07-02 09:46:09', '"1"', '2025-07-02 09:46:27', '0');
  1352 +INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (3021, 1, 'IP 定位', '1', 'iot_location_type', 0, '', '', '', '1', '2025-07-05 09:56:46', '1', '2025-07-05 09:56:46', '0');
  1353 +INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (3022, 2, '设备上报', '2', 'iot_location_type', 0, '', '', '', '1', '2025-07-05 09:56:57', '1', '2025-07-05 09:56:57', '0');
  1354 +INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (3023, 3, '手动定位', '3', 'iot_location_type', 0, '', '', '', '1', '2025-07-05 09:57:05', '1', '2025-07-05 09:57:05', '0');
  1355 +INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (3024, 3, '设备事件上报', '3', 'iot_rule_scene_trigger_type_enum', 0, '', '', '', '1', '2025-07-06 10:28:29', '1', '2025-07-06 10:28:29', '0');
  1356 +INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (3025, 4, '设备服务调用', '4', 'iot_rule_scene_trigger_type_enum', 0, '', '', '', '1', '2025-07-06 10:28:35', '1', '2025-07-06 10:28:35', '0');
  1357 +INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (3026, 100, '定时触发', '100', 'iot_rule_scene_trigger_type_enum', 0, '', '', '', '1', '2025-07-06 10:28:48', '1', '2025-07-06 10:28:48', '0');
  1358 +INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (3027, 101, '告警恢复', '101', 'iot_rule_scene_action_type_enum', 0, '', '', '', '1', '2025-07-06 10:37:57', '1', '2025-07-06 10:37:57', '0');
  1359 +INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (3028, 2, 'Anthropic', 'Anthropic', 'ai_platform', 0, '', '', '', '1', '2025-08-21 22:54:24', '1', '2025-08-21 22:57:58', '0');
  1360 +INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (3029, 2, '谷歌 Gemini', 'Gemini', 'ai_platform', 0, '', '', '', '1', '2025-08-22 22:39:35', '1', '2025-08-22 22:44:49', '0');
  1361 +INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (3030, 1, '文件系统', 'filesystem', 'ai_mcp_client_name', 0, '', '', '', '1', '2025-08-28 13:58:43', '1', '2025-08-28 21:19:42', '0');
  1362 +INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (3031, 41, 'Vben5.0 Ant Design 标准模版', '41', 'infra_codegen_front_type', 0, '', '', '', '1', '2025-09-04 23:26:07', '1', '2025-09-04 23:26:07', '0');
  1363 +INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (3032, 50, 'Vben5.0 Element Plus Schema 模版', '50', 'infra_codegen_front_type', 0, '', '', '', '1', '2025-09-04 23:26:38', '1', '2025-09-04 23:26:38', '0');
  1364 +INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (3033, 51, 'Vben5.0 Element Plus 标准模版', '51', 'infra_codegen_front_type', 0, '', '', '', '1', '2025-09-04 23:26:49', '1', '2025-09-04 23:26:49', '0');
  1365 +INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (3034, 1, 'ttt', 'tt', 'iot_ota_task_record_status', 0, 'success', '', NULL, '1', '2025-09-06 00:02:21', '1', '2025-09-06 00:02:31', '0');
  1366 +INSERT INTO system_dict_data (id, sort, label, value, dict_type, status, color_type, css_class, remark, creator, create_time, updater, update_time, deleted) VALUES (3035, 40, '支付宝小程序', '40', 'system_social_type', 0, '', '', '', '1', '2023-11-04 13:05:38', '1', '2023-11-04 13:07:16', '0');
1362 COMMIT; 1367 COMMIT;
1363 -- @formatter:on 1368 -- @formatter:on
1364 1369
1365 -DROP SEQUENCE IF EXISTS system_dict_type_seq;  
1366 -CREATE SEQUENCE system_dict_type_seq  
1367 - START 1; 1370 +DROP SEQUENCE IF EXISTS system_dict_data_seq;
  1371 +CREATE SEQUENCE system_dict_data_seq
  1372 + START 3036;
1368 1373
1369 -- ---------------------------- 1374 -- ----------------------------
1370 -- Table structure for system_dict_type 1375 -- Table structure for system_dict_type
1371 -- ---------------------------- 1376 -- ----------------------------
1372 DROP TABLE IF EXISTS system_dict_type; 1377 DROP TABLE IF EXISTS system_dict_type;
1373 -CREATE TABLE system_dict_type  
1374 -(  
1375 - id int8 NOT NULL default nextval('system_dict_type_seq'),  
1376 - name varchar(100) NOT NULL DEFAULT '',  
1377 - type varchar(100) NOT NULL DEFAULT '',  
1378 - status int2 NOT NULL DEFAULT 0,  
1379 - remark varchar(500) NULL DEFAULT NULL,  
1380 - creator varchar(64) NULL DEFAULT '',  
1381 - create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
1382 - updater varchar(64) NULL DEFAULT '',  
1383 - update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
1384 - deleted int2 NOT NULL DEFAULT 0,  
1385 - deleted_time timestamp NULL DEFAULT NULL 1378 +CREATE TABLE system_dict_type (
  1379 + id int8 NOT NULL,
  1380 + name varchar(100) NOT NULL DEFAULT '',
  1381 + type varchar(100) NOT NULL DEFAULT '',
  1382 + status int2 NOT NULL DEFAULT 0,
  1383 + remark varchar(500) NULL DEFAULT NULL,
  1384 + creator varchar(64) NULL DEFAULT '',
  1385 + create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  1386 + updater varchar(64) NULL DEFAULT '',
  1387 + update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  1388 + deleted int2 NOT NULL DEFAULT 0,
  1389 + deleted_time timestamp NULL DEFAULT NULL
1386 ); 1390 );
1387 1391
1388 -ALTER TABLE system_dict_type  
1389 - ADD CONSTRAINT pk_system_dict_type PRIMARY KEY (id); 1392 +ALTER TABLE system_dict_type ADD CONSTRAINT pk_system_dict_type PRIMARY KEY (id);
1390 1393
1391 COMMENT ON COLUMN system_dict_type.id IS '字典主键'; 1394 COMMENT ON COLUMN system_dict_type.id IS '字典主键';
1392 COMMENT ON COLUMN system_dict_type.name IS '字典名称'; 1395 COMMENT ON COLUMN system_dict_type.name IS '字典名称';
@@ -1499,52 +1502,54 @@ INSERT INTO system_dict_type (id, name, type, status, remark, creator, create_ti @@ -1499,52 +1502,54 @@ INSERT INTO system_dict_type (id, name, type, status, remark, creator, create_ti
1499 INSERT INTO system_dict_type (id, name, type, status, remark, creator, create_time, updater, update_time, deleted, deleted_time) VALUES (628, 'AI 写作类型', 'ai_write_type', 0, '', '1', '2024-07-10 21:25:29', '1', '2024-07-10 21:25:29', '0', '1970-01-01 00:00:00'); 1502 INSERT INTO system_dict_type (id, name, type, status, remark, creator, create_time, updater, update_time, deleted, deleted_time) VALUES (628, 'AI 写作类型', 'ai_write_type', 0, '', '1', '2024-07-10 21:25:29', '1', '2024-07-10 21:25:29', '0', '1970-01-01 00:00:00');
1500 INSERT INTO system_dict_type (id, name, type, status, remark, creator, create_time, updater, update_time, deleted, deleted_time) VALUES (629, 'BPM 流程模型类型', 'bpm_model_type', 0, '', '1', '2024-08-26 15:21:43', '1', '2024-08-26 15:21:43', '0', '1970-01-01 00:00:00'); 1503 INSERT INTO system_dict_type (id, name, type, status, remark, creator, create_time, updater, update_time, deleted, deleted_time) VALUES (629, 'BPM 流程模型类型', 'bpm_model_type', 0, '', '1', '2024-08-26 15:21:43', '1', '2024-08-26 15:21:43', '0', '1970-01-01 00:00:00');
1501 INSERT INTO system_dict_type (id, name, type, status, remark, creator, create_time, updater, update_time, deleted, deleted_time) VALUES (640, 'AI 模型类型', 'ai_model_type', 0, '', '1', '2025-03-03 12:24:07', '1', '2025-03-03 12:24:07', '0', '1970-01-01 00:00:00'); 1504 INSERT INTO system_dict_type (id, name, type, status, remark, creator, create_time, updater, update_time, deleted, deleted_time) VALUES (640, 'AI 模型类型', 'ai_model_type', 0, '', '1', '2025-03-03 12:24:07', '1', '2025-03-03 12:24:07', '0', '1970-01-01 00:00:00');
1502 -INSERT INTO system_dict_type (id, name, type, status, remark, creator, create_time, updater, update_time, deleted, deleted_time) VALUES (1000, 'IoT 数据格式', 'iot_data_format', 0, '', '1', '2024-08-10 11:52:58', '1', '2025-03-17 09:25:06', '0', '1970-01-01 00:00:00');  
1503 INSERT INTO system_dict_type (id, name, type, status, remark, creator, create_time, updater, update_time, deleted, deleted_time) VALUES (1001, 'IoT 产品设备类型', 'iot_product_device_type', 0, '', '1', '2024-08-10 11:54:30', '1', '2025-03-17 09:25:08', '0', '1970-01-01 00:00:00'); 1505 INSERT INTO system_dict_type (id, name, type, status, remark, creator, create_time, updater, update_time, deleted, deleted_time) VALUES (1001, 'IoT 产品设备类型', 'iot_product_device_type', 0, '', '1', '2024-08-10 11:54:30', '1', '2025-03-17 09:25:08', '0', '1970-01-01 00:00:00');
1504 INSERT INTO system_dict_type (id, name, type, status, remark, creator, create_time, updater, update_time, deleted, deleted_time) VALUES (1002, 'IoT 产品状态', 'iot_product_status', 0, '', '1', '2024-08-10 12:06:09', '1', '2025-03-17 09:25:10', '0', '1970-01-01 00:00:00'); 1506 INSERT INTO system_dict_type (id, name, type, status, remark, creator, create_time, updater, update_time, deleted, deleted_time) VALUES (1002, 'IoT 产品状态', 'iot_product_status', 0, '', '1', '2024-08-10 12:06:09', '1', '2025-03-17 09:25:10', '0', '1970-01-01 00:00:00');
1505 -INSERT INTO system_dict_type (id, name, type, status, remark, creator, create_time, updater, update_time, deleted, deleted_time) VALUES (1003, 'IoT 数据校验级别', 'iot_validate_type', 0, '', '1', '2024-09-06 20:05:13', '1', '2025-03-17 09:25:12', '0', '1970-01-01 00:00:00');  
1506 INSERT INTO system_dict_type (id, name, type, status, remark, creator, create_time, updater, update_time, deleted, deleted_time) VALUES (1004, 'IoT 联网方式', 'iot_net_type', 0, '', '1', '2024-09-06 22:04:13', '1', '2025-03-17 09:25:14', '0', '1970-01-01 00:00:00'); 1507 INSERT INTO system_dict_type (id, name, type, status, remark, creator, create_time, updater, update_time, deleted, deleted_time) VALUES (1004, 'IoT 联网方式', 'iot_net_type', 0, '', '1', '2024-09-06 22:04:13', '1', '2025-03-17 09:25:14', '0', '1970-01-01 00:00:00');
1507 -INSERT INTO system_dict_type (id, name, type, status, remark, creator, create_time, updater, update_time, deleted, deleted_time) VALUES (1005, 'IoT 接入网关协议', 'iot_protocol_type', 0, '', '1', '2024-09-06 22:20:17', '1', '2025-03-17 09:25:16', '0', '1970-01-01 00:00:00');  
1508 INSERT INTO system_dict_type (id, name, type, status, remark, creator, create_time, updater, update_time, deleted, deleted_time) VALUES (1006, 'IoT 设备状态', 'iot_device_state', 0, '', '1', '2024-09-21 08:12:55', '1', '2025-03-17 09:25:19', '0', '1970-01-01 00:00:00'); 1508 INSERT INTO system_dict_type (id, name, type, status, remark, creator, create_time, updater, update_time, deleted, deleted_time) VALUES (1006, 'IoT 设备状态', 'iot_device_state', 0, '', '1', '2024-09-21 08:12:55', '1', '2025-03-17 09:25:19', '0', '1970-01-01 00:00:00');
1509 INSERT INTO system_dict_type (id, name, type, status, remark, creator, create_time, updater, update_time, deleted, deleted_time) VALUES (1007, 'IoT 物模型功能类型', 'iot_thing_model_type', 0, '', '1', '2024-09-29 20:02:36', '1', '2025-03-17 09:25:24', '0', '1970-01-01 00:00:00'); 1509 INSERT INTO system_dict_type (id, name, type, status, remark, creator, create_time, updater, update_time, deleted, deleted_time) VALUES (1007, 'IoT 物模型功能类型', 'iot_thing_model_type', 0, '', '1', '2024-09-29 20:02:36', '1', '2025-03-17 09:25:24', '0', '1970-01-01 00:00:00');
1510 -INSERT INTO system_dict_type (id, name, type, status, remark, creator, create_time, updater, update_time, deleted, deleted_time) VALUES (1008, 'IoT 插件部署方式', 'iot_plugin_deploy_type', 0, '', '1', '2024-12-13 10:55:13', '1', '2025-03-17 09:25:27', '0', '1970-01-01 00:00:00');  
1511 -INSERT INTO system_dict_type (id, name, type, status, remark, creator, create_time, updater, update_time, deleted, deleted_time) VALUES (1009, 'IoT 插件状态', 'iot_plugin_status', 0, '', '1', '2024-12-13 11:05:34', '1', '2025-03-17 09:25:30', '0', '1970-01-01 00:00:00');  
1512 -INSERT INTO system_dict_type (id, name, type, status, remark, creator, create_time, updater, update_time, deleted, deleted_time) VALUES (1010, 'IoT 插件类型', 'iot_plugin_type', 0, '', '1', '2024-12-13 11:08:19', '1', '2025-03-17 09:25:32', '0', '1970-01-01 00:00:00');  
1513 INSERT INTO system_dict_type (id, name, type, status, remark, creator, create_time, updater, update_time, deleted, deleted_time) VALUES (1011, 'IoT 物模型单位', 'iot_thing_model_unit', 0, '', '1', '2024-12-25 17:36:46', '1', '2025-03-17 09:25:35', '0', '1970-01-01 00:00:00'); 1510 INSERT INTO system_dict_type (id, name, type, status, remark, creator, create_time, updater, update_time, deleted, deleted_time) VALUES (1011, 'IoT 物模型单位', 'iot_thing_model_unit', 0, '', '1', '2024-12-25 17:36:46', '1', '2025-03-17 09:25:35', '0', '1970-01-01 00:00:00');
1514 -INSERT INTO system_dict_type (id, name, type, status, remark, creator, create_time, updater, update_time, deleted, deleted_time) VALUES (1012, 'IoT 数据桥接的方向枚举', 'iot_data_bridge_direction_enum', 0, '', '1', '2025-03-09 12:37:40', '1', '2025-03-17 09:25:39', '0', '1970-01-01 00:00:00');  
1515 -INSERT INTO system_dict_type (id, name, type, status, remark, creator, create_time, updater, update_time, deleted, deleted_time) VALUES (1013, 'IoT 数据桥梁的类型枚举', 'iot_data_bridge_type_enum', 0, '', '1', '2025-03-09 12:39:36', '1', '2025-04-06 17:09:46', '0', '1970-01-01 00:00:00'); 1511 +INSERT INTO system_dict_type (id, name, type, status, remark, creator, create_time, updater, update_time, deleted, deleted_time) VALUES (1013, 'IoT 数据流转目的的类型枚举', 'iot_data_sink_type_enum', 0, '', '1', '2025-03-09 12:39:36', '1', '2025-06-24 12:45:24', '0', '1970-01-01 00:00:00');
  1512 +INSERT INTO system_dict_type (id, name, type, status, remark, creator, create_time, updater, update_time, deleted, deleted_time) VALUES (1014, 'IoT 场景流转的触发类型枚举', 'iot_rule_scene_trigger_type_enum', 0, '', '1', '2025-03-20 14:59:44', '1', '2025-03-20 14:59:44', '0', '1970-01-01 00:00:00');
  1513 +INSERT INTO system_dict_type (id, name, type, status, remark, creator, create_time, updater, update_time, deleted, deleted_time) VALUES (1015, 'IoT 设备消息类型枚举', 'iot_device_message_type_enum', 0, '', '1', '2025-03-20 15:01:15', '1', '2025-03-20 15:01:15', '0', '1970-01-01 00:00:00');
  1514 +INSERT INTO system_dict_type (id, name, type, status, remark, creator, create_time, updater, update_time, deleted, deleted_time) VALUES (1016, 'IoT 规则场景的触发类型枚举', 'iot_rule_scene_action_type_enum', 0, '', '1', '2025-03-28 15:26:54', '1', '2025-03-28 15:29:13', '0', '1970-01-01 00:00:00');
  1515 +INSERT INTO system_dict_type (id, name, type, status, remark, creator, create_time, updater, update_time, deleted, deleted_time) VALUES (2000, 'IoT 数据格式', 'iot_codec_type', 0, 'IoT 编解码器类型', '1', '2025-06-12 22:55:46', '1', '2025-06-12 22:55:46', '0', '1970-01-01 00:00:00');
  1516 +INSERT INTO system_dict_type (id, name, type, status, remark, creator, create_time, updater, update_time, deleted, deleted_time) VALUES (2001, 'IoT 告警级别', 'iot_alert_level', 0, '', '1', '2025-06-27 20:30:57', '1', '2025-06-27 20:30:57', '0', '1970-01-01 00:00:00');
  1517 +INSERT INTO system_dict_type (id, name, type, status, remark, creator, create_time, updater, update_time, deleted, deleted_time) VALUES (2002, 'IoT 告警', 'iot_alert_receive_type', 0, '', '1', '2025-06-27 22:49:19', '1', '2025-06-27 22:49:19', '0', '1970-01-01 00:00:00');
  1518 +INSERT INTO system_dict_type (id, name, type, status, remark, creator, create_time, updater, update_time, deleted, deleted_time) VALUES (2003, 'IoT 固件设备范围', 'iot_ota_task_device_scope', 0, '', '1', '2025-07-02 09:42:49', '1', '2025-07-02 09:42:49', '0', '1970-01-01 00:00:00');
  1519 +INSERT INTO system_dict_type (id, name, type, status, remark, creator, create_time, updater, update_time, deleted, deleted_time) VALUES (2004, 'IoT 固件升级任务状态', 'iot_ota_task_status', 0, '', '1', '2025-07-02 09:43:43', '1', '2025-07-02 09:43:43', '0', '1970-01-01 00:00:00');
  1520 +INSERT INTO system_dict_type (id, name, type, status, remark, creator, create_time, updater, update_time, deleted, deleted_time) VALUES (2005, 'IoT 固件升级记录状态', 'iot_ota_task_record_status', 0, '', '1', '2025-07-02 09:45:02', '1', '2025-07-02 09:45:02', '0', '1970-01-01 00:00:00');
  1521 +INSERT INTO system_dict_type (id, name, type, status, remark, creator, create_time, updater, update_time, deleted, deleted_time) VALUES (2006, 'IoT 定位类型', 'iot_location_type', 0, '', '1', '2025-07-05 09:56:25', '1', '2025-07-05 09:56:25', '0', '1970-01-01 00:00:00');
  1522 +INSERT INTO system_dict_type (id, name, type, status, remark, creator, create_time, updater, update_time, deleted, deleted_time) VALUES (2007, 'AI MCP 客户端名字', 'ai_mcp_client_name', 0, '', '1', '2025-08-28 13:57:40', '1', '2025-08-28 13:57:40', '0', '1970-01-01 00:00:00');
1516 COMMIT; 1523 COMMIT;
1517 -- @formatter:on 1524 -- @formatter:on
1518 1525
1519 -DROP SEQUENCE IF EXISTS system_login_log_seq;  
1520 -CREATE SEQUENCE system_login_log_seq  
1521 - START 1; 1526 +DROP SEQUENCE IF EXISTS system_dict_type_seq;
  1527 +CREATE SEQUENCE system_dict_type_seq
  1528 + START 2008;
1522 1529
1523 -- ---------------------------- 1530 -- ----------------------------
1524 -- Table structure for system_login_log 1531 -- Table structure for system_login_log
1525 -- ---------------------------- 1532 -- ----------------------------
1526 DROP TABLE IF EXISTS system_login_log; 1533 DROP TABLE IF EXISTS system_login_log;
1527 -CREATE TABLE system_login_log  
1528 -(  
1529 - id int8 NOT NULL default nextval('system_login_log_seq'),  
1530 - log_type int8 NOT NULL,  
1531 - trace_id varchar(64) NOT NULL DEFAULT '',  
1532 - user_id int8 NOT NULL DEFAULT 0,  
1533 - user_type int2 NOT NULL DEFAULT 0,  
1534 - username varchar(50) NOT NULL DEFAULT '',  
1535 - result int2 NOT NULL,  
1536 - user_ip varchar(50) NOT NULL,  
1537 - user_agent varchar(512) NOT NULL,  
1538 - creator varchar(64) NULL DEFAULT '',  
1539 - create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
1540 - updater varchar(64) NULL DEFAULT '',  
1541 - update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
1542 - deleted int2 NOT NULL DEFAULT 0,  
1543 - tenant_id int8 NOT NULL DEFAULT 0 1534 +CREATE TABLE system_login_log (
  1535 + id int8 NOT NULL,
  1536 + log_type int8 NOT NULL,
  1537 + trace_id varchar(64) NOT NULL DEFAULT '',
  1538 + user_id int8 NOT NULL DEFAULT 0,
  1539 + user_type int2 NOT NULL DEFAULT 0,
  1540 + username varchar(50) NOT NULL DEFAULT '',
  1541 + result int2 NOT NULL,
  1542 + user_ip varchar(50) NOT NULL,
  1543 + user_agent varchar(512) NOT NULL,
  1544 + creator varchar(64) NULL DEFAULT '',
  1545 + create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  1546 + updater varchar(64) NULL DEFAULT '',
  1547 + update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  1548 + deleted int2 NOT NULL DEFAULT 0,
  1549 + tenant_id int8 NOT NULL DEFAULT 0
1544 ); 1550 );
1545 1551
1546 -ALTER TABLE system_login_log  
1547 - ADD CONSTRAINT pk_system_login_log PRIMARY KEY (id); 1552 +ALTER TABLE system_login_log ADD CONSTRAINT pk_system_login_log PRIMARY KEY (id);
1548 1553
1549 COMMENT ON COLUMN system_login_log.id IS '访问ID'; 1554 COMMENT ON COLUMN system_login_log.id IS '访问ID';
1550 COMMENT ON COLUMN system_login_log.log_type IS '日志类型'; 1555 COMMENT ON COLUMN system_login_log.log_type IS '日志类型';
@@ -1563,33 +1568,31 @@ COMMENT ON COLUMN system_login_log.deleted IS '是否删除'; @@ -1563,33 +1568,31 @@ COMMENT ON COLUMN system_login_log.deleted IS '是否删除';
1563 COMMENT ON COLUMN system_login_log.tenant_id IS '租户编号'; 1568 COMMENT ON COLUMN system_login_log.tenant_id IS '租户编号';
1564 COMMENT ON TABLE system_login_log IS '系统访问记录'; 1569 COMMENT ON TABLE system_login_log IS '系统访问记录';
1565 1570
1566 -DROP SEQUENCE IF EXISTS system_mail_account_seq;  
1567 -CREATE SEQUENCE system_mail_account_seq 1571 +DROP SEQUENCE IF EXISTS system_login_log_seq;
  1572 +CREATE SEQUENCE system_login_log_seq
1568 START 1; 1573 START 1;
1569 1574
1570 -- ---------------------------- 1575 -- ----------------------------
1571 -- Table structure for system_mail_account 1576 -- Table structure for system_mail_account
1572 -- ---------------------------- 1577 -- ----------------------------
1573 DROP TABLE IF EXISTS system_mail_account; 1578 DROP TABLE IF EXISTS system_mail_account;
1574 -CREATE TABLE system_mail_account  
1575 -(  
1576 - id int8 NOT NULL default nextval('system_mail_account_seq'),  
1577 - mail varchar(255) NOT NULL,  
1578 - username varchar(255) NOT NULL,  
1579 - password varchar(255) NOT NULL,  
1580 - host varchar(255) NOT NULL,  
1581 - port int4 NOT NULL,  
1582 - ssl_enable bool NOT NULL DEFAULT '0',  
1583 - starttls_enable bool NOT NULL DEFAULT '0',  
1584 - creator varchar(64) NULL DEFAULT '',  
1585 - create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
1586 - updater varchar(64) NULL DEFAULT '',  
1587 - update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
1588 - deleted int2 NOT NULL DEFAULT 0 1579 +CREATE TABLE system_mail_account (
  1580 + id int8 NOT NULL,
  1581 + mail varchar(255) NOT NULL,
  1582 + username varchar(255) NOT NULL,
  1583 + password varchar(255) NOT NULL,
  1584 + host varchar(255) NOT NULL,
  1585 + port int4 NOT NULL,
  1586 + ssl_enable bool NOT NULL DEFAULT '0',
  1587 + starttls_enable bool NOT NULL DEFAULT '0',
  1588 + creator varchar(64) NULL DEFAULT '',
  1589 + create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  1590 + updater varchar(64) NULL DEFAULT '',
  1591 + update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  1592 + deleted int2 NOT NULL DEFAULT 0
1589 ); 1593 );
1590 1594
1591 -ALTER TABLE system_mail_account  
1592 - ADD CONSTRAINT pk_system_mail_account PRIMARY KEY (id); 1595 +ALTER TABLE system_mail_account ADD CONSTRAINT pk_system_mail_account PRIMARY KEY (id);
1593 1596
1594 COMMENT ON COLUMN system_mail_account.id IS '主键'; 1597 COMMENT ON COLUMN system_mail_account.id IS '主键';
1595 COMMENT ON COLUMN system_mail_account.mail IS '邮箱'; 1598 COMMENT ON COLUMN system_mail_account.mail IS '邮箱';
@@ -1612,52 +1615,54 @@ COMMENT ON TABLE system_mail_account IS '邮箱账号表'; @@ -1612,52 +1615,54 @@ COMMENT ON TABLE system_mail_account IS '邮箱账号表';
1612 -- @formatter:off 1615 -- @formatter:off
1613 BEGIN; 1616 BEGIN;
1614 INSERT INTO system_mail_account (id, mail, username, password, host, port, ssl_enable, starttls_enable, creator, create_time, updater, update_time, deleted) VALUES (1, '7684413@qq.com', '7684413@qq.com', '1234576', '127.0.0.1', 8080, '0', '0', '1', '2023-01-25 17:39:52', '1', '2025-04-04 16:34:40', '0'); 1617 INSERT INTO system_mail_account (id, mail, username, password, host, port, ssl_enable, starttls_enable, creator, create_time, updater, update_time, deleted) VALUES (1, '7684413@qq.com', '7684413@qq.com', '1234576', '127.0.0.1', 8080, '0', '0', '1', '2023-01-25 17:39:52', '1', '2025-04-04 16:34:40', '0');
1615 -INSERT INTO system_mail_account (id, mail, username, password, host, port, ssl_enable, starttls_enable, creator, create_time, updater, update_time, deleted) VALUES (2, 'ydym_test@163.com', 'ydym_test@163.com', 'WBZTEINMIFVRYSOE', 'smtp.163.com', 465, '1', '0', '1', '2023-01-26 01:26:03', '1', '2023-04-12 22:39:38', '0'); 1618 +INSERT INTO system_mail_account (id, mail, username, password, host, port, ssl_enable, starttls_enable, creator, create_time, updater, update_time, deleted) VALUES (2, 'ydym_test@163.com', 'ydym_test@163.com', 'WBZTEINMIFVRYSOE', 'smtp.163.com', 465, '1', '0', '1', '2023-01-26 01:26:03', '1', '2025-07-26 21:57:55', '0');
1616 INSERT INTO system_mail_account (id, mail, username, password, host, port, ssl_enable, starttls_enable, creator, create_time, updater, update_time, deleted) VALUES (3, '76854114@qq.com', '3335', '11234', 'yunai1.cn', 466, '0', '0', '1', '2023-01-27 15:06:38', '1', '2023-01-27 07:08:36', '1'); 1619 INSERT INTO system_mail_account (id, mail, username, password, host, port, ssl_enable, starttls_enable, creator, create_time, updater, update_time, deleted) VALUES (3, '76854114@qq.com', '3335', '11234', 'yunai1.cn', 466, '0', '0', '1', '2023-01-27 15:06:38', '1', '2023-01-27 07:08:36', '1');
1617 INSERT INTO system_mail_account (id, mail, username, password, host, port, ssl_enable, starttls_enable, creator, create_time, updater, update_time, deleted) VALUES (4, '7685413x@qq.com', '2', '3', '4', 5, '1', '0', '1', '2023-04-12 23:05:06', '1', '2023-04-12 15:05:11', '1'); 1620 INSERT INTO system_mail_account (id, mail, username, password, host, port, ssl_enable, starttls_enable, creator, create_time, updater, update_time, deleted) VALUES (4, '7685413x@qq.com', '2', '3', '4', 5, '1', '0', '1', '2023-04-12 23:05:06', '1', '2023-04-12 15:05:11', '1');
1618 COMMIT; 1621 COMMIT;
1619 -- @formatter:on 1622 -- @formatter:on
1620 1623
1621 -DROP SEQUENCE IF EXISTS system_mail_log_seq;  
1622 -CREATE SEQUENCE system_mail_log_seq  
1623 - START 1; 1624 +DROP SEQUENCE IF EXISTS system_mail_account_seq;
  1625 +CREATE SEQUENCE system_mail_account_seq
  1626 + START 5;
1624 1627
1625 -- ---------------------------- 1628 -- ----------------------------
1626 -- Table structure for system_mail_log 1629 -- Table structure for system_mail_log
1627 -- ---------------------------- 1630 -- ----------------------------
1628 DROP TABLE IF EXISTS system_mail_log; 1631 DROP TABLE IF EXISTS system_mail_log;
1629 -CREATE TABLE system_mail_log  
1630 -(  
1631 - id int8 NOT NULL default nextval('system_mail_log_seq'),  
1632 - user_id int8 NULL DEFAULT NULL,  
1633 - user_type int2 NULL DEFAULT NULL,  
1634 - to_mail varchar(255) NOT NULL,  
1635 - account_id int8 NOT NULL,  
1636 - from_mail varchar(255) NOT NULL,  
1637 - template_id int8 NOT NULL,  
1638 - template_code varchar(63) NOT NULL,  
1639 - template_nickname varchar(255) NULL DEFAULT NULL,  
1640 - template_title varchar(255) NOT NULL,  
1641 - template_content varchar(10240) NOT NULL,  
1642 - template_params varchar(255) NOT NULL,  
1643 - send_status int2 NOT NULL DEFAULT 0,  
1644 - send_time timestamp NULL DEFAULT NULL,  
1645 - send_message_id varchar(255) NULL DEFAULT NULL,  
1646 - send_exception varchar(4096) NULL DEFAULT NULL,  
1647 - creator varchar(64) NULL DEFAULT '',  
1648 - create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
1649 - updater varchar(64) NULL DEFAULT '',  
1650 - update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
1651 - deleted int2 NOT NULL DEFAULT 0 1632 +CREATE TABLE system_mail_log (
  1633 + id int8 NOT NULL,
  1634 + user_id int8 NULL DEFAULT NULL,
  1635 + user_type int2 NULL DEFAULT NULL,
  1636 + to_mails varchar(1024) NOT NULL,
  1637 + cc_mails varchar(1024) NULL DEFAULT NULL,
  1638 + bcc_mails varchar(1024) NULL DEFAULT NULL,
  1639 + account_id int8 NOT NULL,
  1640 + from_mail varchar(255) NOT NULL,
  1641 + template_id int8 NOT NULL,
  1642 + template_code varchar(63) NOT NULL,
  1643 + template_nickname varchar(255) NULL DEFAULT NULL,
  1644 + template_title varchar(255) NOT NULL,
  1645 + template_content text NOT NULL,
  1646 + template_params varchar(255) NOT NULL,
  1647 + send_status int2 NOT NULL DEFAULT 0,
  1648 + send_time timestamp NULL DEFAULT NULL,
  1649 + send_message_id varchar(255) NULL DEFAULT NULL,
  1650 + send_exception varchar(4096) NULL DEFAULT NULL,
  1651 + creator varchar(64) NULL DEFAULT '',
  1652 + create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  1653 + updater varchar(64) NULL DEFAULT '',
  1654 + update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  1655 + deleted int2 NOT NULL DEFAULT 0
1652 ); 1656 );
1653 1657
1654 -ALTER TABLE system_mail_log  
1655 - ADD CONSTRAINT pk_system_mail_log PRIMARY KEY (id); 1658 +ALTER TABLE system_mail_log ADD CONSTRAINT pk_system_mail_log PRIMARY KEY (id);
1656 1659
1657 COMMENT ON COLUMN system_mail_log.id IS '编号'; 1660 COMMENT ON COLUMN system_mail_log.id IS '编号';
1658 COMMENT ON COLUMN system_mail_log.user_id IS '用户编号'; 1661 COMMENT ON COLUMN system_mail_log.user_id IS '用户编号';
1659 COMMENT ON COLUMN system_mail_log.user_type IS '用户类型'; 1662 COMMENT ON COLUMN system_mail_log.user_type IS '用户类型';
1660 -COMMENT ON COLUMN system_mail_log.to_mail IS '接收邮箱地址'; 1663 +COMMENT ON COLUMN system_mail_log.to_mails IS '接收邮箱地址';
  1664 +COMMENT ON COLUMN system_mail_log.cc_mails IS '抄送邮箱地址';
  1665 +COMMENT ON COLUMN system_mail_log.bcc_mails IS '密送邮箱地址';
1661 COMMENT ON COLUMN system_mail_log.account_id IS '邮箱账号编号'; 1666 COMMENT ON COLUMN system_mail_log.account_id IS '邮箱账号编号';
1662 COMMENT ON COLUMN system_mail_log.from_mail IS '发送邮箱地址'; 1667 COMMENT ON COLUMN system_mail_log.from_mail IS '发送邮箱地址';
1663 COMMENT ON COLUMN system_mail_log.template_id IS '模板编号'; 1668 COMMENT ON COLUMN system_mail_log.template_id IS '模板编号';
@@ -1677,35 +1682,33 @@ COMMENT ON COLUMN system_mail_log.update_time IS '更新时间'; @@ -1677,35 +1682,33 @@ COMMENT ON COLUMN system_mail_log.update_time IS '更新时间';
1677 COMMENT ON COLUMN system_mail_log.deleted IS '是否删除'; 1682 COMMENT ON COLUMN system_mail_log.deleted IS '是否删除';
1678 COMMENT ON TABLE system_mail_log IS '邮件日志表'; 1683 COMMENT ON TABLE system_mail_log IS '邮件日志表';
1679 1684
1680 -DROP SEQUENCE IF EXISTS system_mail_template_seq;  
1681 -CREATE SEQUENCE system_mail_template_seq 1685 +DROP SEQUENCE IF EXISTS system_mail_log_seq;
  1686 +CREATE SEQUENCE system_mail_log_seq
1682 START 1; 1687 START 1;
1683 1688
1684 -- ---------------------------- 1689 -- ----------------------------
1685 -- Table structure for system_mail_template 1690 -- Table structure for system_mail_template
1686 -- ---------------------------- 1691 -- ----------------------------
1687 DROP TABLE IF EXISTS system_mail_template; 1692 DROP TABLE IF EXISTS system_mail_template;
1688 -CREATE TABLE system_mail_template  
1689 -(  
1690 - id int8 NOT NULL default nextval('system_mail_template_seq'),  
1691 - name varchar(63) NOT NULL,  
1692 - code varchar(63) NOT NULL,  
1693 - account_id int8 NOT NULL,  
1694 - nickname varchar(255) NULL DEFAULT NULL,  
1695 - title varchar(255) NOT NULL,  
1696 - content varchar(10240) NOT NULL,  
1697 - params varchar(255) NOT NULL,  
1698 - status int2 NOT NULL,  
1699 - remark varchar(255) NULL DEFAULT NULL,  
1700 - creator varchar(64) NULL DEFAULT '',  
1701 - create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
1702 - updater varchar(64) NULL DEFAULT '',  
1703 - update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
1704 - deleted int2 NOT NULL DEFAULT 0 1693 +CREATE TABLE system_mail_template (
  1694 + id int8 NOT NULL,
  1695 + name varchar(63) NOT NULL,
  1696 + code varchar(63) NOT NULL,
  1697 + account_id int8 NOT NULL,
  1698 + nickname varchar(255) NULL DEFAULT NULL,
  1699 + title varchar(255) NOT NULL,
  1700 + content varchar(10240) NOT NULL,
  1701 + params varchar(255) NOT NULL,
  1702 + status int2 NOT NULL,
  1703 + remark varchar(255) NULL DEFAULT NULL,
  1704 + creator varchar(64) NULL DEFAULT '',
  1705 + create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  1706 + updater varchar(64) NULL DEFAULT '',
  1707 + update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  1708 + deleted int2 NOT NULL DEFAULT 0
1705 ); 1709 );
1706 1710
1707 -ALTER TABLE system_mail_template  
1708 - ADD CONSTRAINT pk_system_mail_template PRIMARY KEY (id); 1711 +ALTER TABLE system_mail_template ADD CONSTRAINT pk_system_mail_template PRIMARY KEY (id);
1709 1712
1710 COMMENT ON COLUMN system_mail_template.id IS '编号'; 1713 COMMENT ON COLUMN system_mail_template.id IS '编号';
1711 COMMENT ON COLUMN system_mail_template.name IS '模板名称'; 1714 COMMENT ON COLUMN system_mail_template.name IS '模板名称';
@@ -1730,44 +1733,42 @@ COMMENT ON TABLE system_mail_template IS '邮件模版表'; @@ -1730,44 +1733,42 @@ COMMENT ON TABLE system_mail_template IS '邮件模版表';
1730 -- @formatter:off 1733 -- @formatter:off
1731 BEGIN; 1734 BEGIN;
1732 INSERT INTO system_mail_template (id, name, code, account_id, nickname, title, content, params, status, remark, creator, create_time, updater, update_time, deleted) VALUES (13, '后台用户短信登录', 'admin-sms-login', 1, '奥特曼', '你猜我猜', '<p>您的验证码是{code},名字是{name}</p>', '["code","name"]', 0, '3', '1', '2021-10-11 08:10:00', '1', '2023-12-02 19:51:14', '0'); 1735 INSERT INTO system_mail_template (id, name, code, account_id, nickname, title, content, params, status, remark, creator, create_time, updater, update_time, deleted) VALUES (13, '后台用户短信登录', 'admin-sms-login', 1, '奥特曼', '你猜我猜', '<p>您的验证码是{code},名字是{name}</p>', '["code","name"]', 0, '3', '1', '2021-10-11 08:10:00', '1', '2023-12-02 19:51:14', '0');
1733 -INSERT INTO system_mail_template (id, name, code, account_id, nickname, title, content, params, status, remark, creator, create_time, updater, update_time, deleted) VALUES (14, '测试模版', 'test_01', 2, '芋艿', '一个标题', '<p>你是 {key01} 吗?</p><p><br></p><p>是的话,赶紧 {key02} 一下!</p>', '["key01","key02"]', 0, NULL, '1', '2023-01-26 01:27:40', '1', '2023-01-27 10:32:16', '0');  
1734 -INSERT INTO system_mail_template (id, name, code, account_id, nickname, title, content, params, status, remark, creator, create_time, updater, update_time, deleted) VALUES (15, '3', '2', 2, '7', '4', '<p>45</p>', '[]', 1, '80', '1', '2023-01-27 15:50:35', '1', '2023-01-27 16:34:49', '0'); 1736 +INSERT INTO system_mail_template (id, name, code, account_id, nickname, title, content, params, status, remark, creator, create_time, updater, update_time, deleted) VALUES (14, '测试模版', 'test_01', 2, '芋艿', '一个标题', '<p>你是 {key01} 吗?</p><p><br></p><p>是的话,赶紧 {key02} 一下!</p>', '["key01","key02"]', 0, NULL, '1', '2023-01-26 01:27:40', '1', '2025-07-26 21:48:45', '0');
  1737 +INSERT INTO system_mail_template (id, name, code, account_id, nickname, title, content, params, status, remark, creator, create_time, updater, update_time, deleted) VALUES (15, '3', '2', 2, '7', '4', '<p>45</p>', '[]', 1, '80', '1', '2023-01-27 15:50:35', '1', '2025-07-26 21:47:49', '1');
1735 COMMIT; 1738 COMMIT;
1736 -- @formatter:on 1739 -- @formatter:on
1737 1740
1738 -DROP SEQUENCE IF EXISTS system_menu_seq;  
1739 -CREATE SEQUENCE system_menu_seq  
1740 - START 1; 1741 +DROP SEQUENCE IF EXISTS system_mail_template_seq;
  1742 +CREATE SEQUENCE system_mail_template_seq
  1743 + START 16;
1741 1744
1742 -- ---------------------------- 1745 -- ----------------------------
1743 -- Table structure for system_menu 1746 -- Table structure for system_menu
1744 -- ---------------------------- 1747 -- ----------------------------
1745 DROP TABLE IF EXISTS system_menu; 1748 DROP TABLE IF EXISTS system_menu;
1746 -CREATE TABLE system_menu  
1747 -(  
1748 - id int8 NOT NULL default nextval('system_menu_seq'),  
1749 - name varchar(50) NOT NULL,  
1750 - permission varchar(100) NOT NULL DEFAULT '',  
1751 - type int2 NOT NULL,  
1752 - sort int4 NOT NULL DEFAULT 0,  
1753 - parent_id int8 NOT NULL DEFAULT 0,  
1754 - path varchar(200) NULL DEFAULT '',  
1755 - icon varchar(100) NULL DEFAULT '#',  
1756 - component varchar(255) NULL DEFAULT NULL,  
1757 - component_name varchar(255) NULL DEFAULT NULL,  
1758 - status int2 NOT NULL DEFAULT 0,  
1759 - visible bool NOT NULL DEFAULT '1',  
1760 - keep_alive bool NOT NULL DEFAULT '1',  
1761 - always_show bool NOT NULL DEFAULT '1',  
1762 - creator varchar(64) NULL DEFAULT '',  
1763 - create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
1764 - updater varchar(64) NULL DEFAULT '',  
1765 - update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
1766 - deleted int2 NOT NULL DEFAULT 0 1749 +CREATE TABLE system_menu (
  1750 + id int8 NOT NULL,
  1751 + name varchar(50) NOT NULL,
  1752 + permission varchar(100) NOT NULL DEFAULT '',
  1753 + type int2 NOT NULL,
  1754 + sort int4 NOT NULL DEFAULT 0,
  1755 + parent_id int8 NOT NULL DEFAULT 0,
  1756 + path varchar(200) NULL DEFAULT '',
  1757 + icon varchar(100) NULL DEFAULT '#',
  1758 + component varchar(255) NULL DEFAULT NULL,
  1759 + component_name varchar(255) NULL DEFAULT NULL,
  1760 + status int2 NOT NULL DEFAULT 0,
  1761 + visible bool NOT NULL DEFAULT '1',
  1762 + keep_alive bool NOT NULL DEFAULT '1',
  1763 + always_show bool NOT NULL DEFAULT '1',
  1764 + creator varchar(64) NULL DEFAULT '',
  1765 + create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  1766 + updater varchar(64) NULL DEFAULT '',
  1767 + update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  1768 + deleted int2 NOT NULL DEFAULT 0
1767 ); 1769 );
1768 1770
1769 -ALTER TABLE system_menu  
1770 - ADD CONSTRAINT pk_system_menu PRIMARY KEY (id); 1771 +ALTER TABLE system_menu ADD CONSTRAINT pk_system_menu PRIMARY KEY (id);
1771 1772
1772 COMMENT ON COLUMN system_menu.id IS '菜单ID'; 1773 COMMENT ON COLUMN system_menu.id IS '菜单ID';
1773 COMMENT ON COLUMN system_menu.name IS '菜单名称'; 1774 COMMENT ON COLUMN system_menu.name IS '菜单名称';
@@ -2007,7 +2008,7 @@ INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon @@ -2007,7 +2008,7 @@ INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon
2007 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (2010, '品牌创建', 'product:brand:create', 3, 2, 2008, '', '', '', NULL, 0, '1', '1', '1', '', '2022-07-30 13:52:44', '', '2022-07-30 13:52:44', '0'); 2008 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (2010, '品牌创建', 'product:brand:create', 3, 2, 2008, '', '', '', NULL, 0, '1', '1', '1', '', '2022-07-30 13:52:44', '', '2022-07-30 13:52:44', '0');
2008 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (2011, '品牌更新', 'product:brand:update', 3, 3, 2008, '', '', '', NULL, 0, '1', '1', '1', '', '2022-07-30 13:52:44', '', '2022-07-30 13:52:44', '0'); 2009 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (2011, '品牌更新', 'product:brand:update', 3, 3, 2008, '', '', '', NULL, 0, '1', '1', '1', '', '2022-07-30 13:52:44', '', '2022-07-30 13:52:44', '0');
2009 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (2012, '品牌删除', 'product:brand:delete', 3, 4, 2008, '', '', '', NULL, 0, '1', '1', '1', '', '2022-07-30 13:52:44', '', '2022-07-30 13:52:44', '0'); 2010 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (2012, '品牌删除', 'product:brand:delete', 3, 4, 2008, '', '', '', NULL, 0, '1', '1', '1', '', '2022-07-30 13:52:44', '', '2022-07-30 13:52:44', '0');
2010 -INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (2014, '商品列表', '', 2, 1, 2000, 'spu', 'ep:apple', 'mall/product/spu/index', 'ProductSpu', 0, '1', '1', '1', '', '2022-07-30 14:22:58', '1', '2023-08-21 10:27:01', '0'); 2011 +INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (2014, '商品列表', '', 2, 1, 2000, 'spu', 'ep:apple', 'mall/product/spu/index', 'ProductSpu', 0, '1', '1', '1', '', '2022-07-30 14:22:58', '1', '2025-10-08 10:36:52', '0');
2011 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (2015, '商品查询', 'product:spu:query', 3, 1, 2014, '', '', '', NULL, 0, '1', '1', '1', '', '2022-07-30 14:22:58', '', '2022-07-30 14:22:58', '0'); 2012 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (2015, '商品查询', 'product:spu:query', 3, 1, 2014, '', '', '', NULL, 0, '1', '1', '1', '', '2022-07-30 14:22:58', '', '2022-07-30 14:22:58', '0');
2012 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (2016, '商品创建', 'product:spu:create', 3, 2, 2014, '', '', '', NULL, 0, '1', '1', '1', '', '2022-07-30 14:22:58', '', '2022-07-30 14:22:58', '0'); 2013 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (2016, '商品创建', 'product:spu:create', 3, 2, 2014, '', '', '', NULL, 0, '1', '1', '1', '', '2022-07-30 14:22:58', '', '2022-07-30 14:22:58', '0');
2013 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (2017, '商品更新', 'product:spu:update', 3, 3, 2014, '', '', '', NULL, 0, '1', '1', '1', '', '2022-07-30 14:22:58', '', '2022-07-30 14:22:58', '0'); 2014 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (2017, '商品更新', 'product:spu:update', 3, 3, 2014, '', '', '', NULL, 0, '1', '1', '1', '', '2022-07-30 14:22:58', '', '2022-07-30 14:22:58', '0');
@@ -2647,55 +2648,47 @@ INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon @@ -2647,55 +2648,47 @@ INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon
2647 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (2924, '工具删除', 'ai:tool:delete', 3, 4, 2920, '', '', '', NULL, 0, '1', '1', '1', '', '2025-03-14 11:19:29', '', '2025-03-14 11:19:29', '0'); 2648 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (2924, '工具删除', 'ai:tool:delete', 3, 4, 2920, '', '', '', NULL, 0, '1', '1', '1', '', '2025-03-14 11:19:29', '', '2025-03-14 11:19:29', '0');
2648 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4000, 'IoT 物联网', '', 1, 500, 0, '/iot', 'fa-solid:hdd', '', '', 0, '1', '1', '1', '1', '2024-08-10 09:55:28', '1', '2024-12-07 15:58:34', '0'); 2649 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4000, 'IoT 物联网', '', 1, 500, 0, '/iot', 'fa-solid:hdd', '', '', 0, '1', '1', '1', '1', '2024-08-10 09:55:28', '1', '2024-12-07 15:58:34', '0');
2649 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4001, '设备接入', '', 1, 2, 4000, 'device', 'ep:platform', '', '', 0, '1', '1', '1', '1', '2024-08-10 09:57:56', '1', '2025-02-27 08:39:49', '0'); 2650 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4001, '设备接入', '', 1, 2, 4000, 'device', 'ep:platform', '', '', 0, '1', '1', '1', '1', '2024-08-10 09:57:56', '1', '2025-02-27 08:39:49', '0');
2650 -INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4002, '产品管理', '', 2, 2, 4001, 'product', 'fa-solid:tools', 'iot/product/product/index', 'IoTProduct', 0, '1', '1', '1', '', '2024-08-10 02:38:02', '1', '2024-12-07 18:47:53', '0'); 2651 +INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4002, '产品管理', '', 2, 1, 4001, 'product', 'fa-solid:tools', 'iot/product/product/index', 'IoTProduct', 0, '1', '1', '1', '', '2024-08-10 02:38:02', '1', '2025-06-15 20:56:06', '0');
2651 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4003, '产品查询', 'iot:product:query', 3, 1, 4002, '', '', '', NULL, 0, '1', '1', '1', '', '2024-08-10 02:38:02', '', '2024-12-07 15:55:00', '0'); 2652 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4003, '产品查询', 'iot:product:query', 3, 1, 4002, '', '', '', NULL, 0, '1', '1', '1', '', '2024-08-10 02:38:02', '', '2024-12-07 15:55:00', '0');
2652 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4004, '产品创建', 'iot:product:create', 3, 2, 4002, '', '', '', NULL, 0, '1', '1', '1', '', '2024-08-10 02:38:02', '', '2024-12-07 15:55:03', '0'); 2653 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4004, '产品创建', 'iot:product:create', 3, 2, 4002, '', '', '', NULL, 0, '1', '1', '1', '', '2024-08-10 02:38:02', '', '2024-12-07 15:55:03', '0');
2653 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4005, '产品更新', 'iot:product:update', 3, 3, 4002, '', '', '', NULL, 0, '1', '1', '1', '', '2024-08-10 02:38:02', '', '2024-12-07 15:55:05', '0'); 2654 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4005, '产品更新', 'iot:product:update', 3, 3, 4002, '', '', '', NULL, 0, '1', '1', '1', '', '2024-08-10 02:38:02', '', '2024-12-07 15:55:05', '0');
2654 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4006, '产品删除', 'iot:product:delete', 3, 4, 4002, '', '', '', NULL, 0, '1', '1', '1', '', '2024-08-10 02:38:02', '', '2024-12-07 15:55:06', '0'); 2655 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4006, '产品删除', 'iot:product:delete', 3, 4, 4002, '', '', '', NULL, 0, '1', '1', '1', '', '2024-08-10 02:38:02', '', '2024-12-07 15:55:06', '0');
2655 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4007, '产品导出', 'iot:product:export', 3, 5, 4002, '', '', '', NULL, 0, '1', '1', '1', '', '2024-08-10 02:38:02', '', '2024-12-07 15:55:13', '0'); 2656 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4007, '产品导出', 'iot:product:export', 3, 5, 4002, '', '', '', NULL, 0, '1', '1', '1', '', '2024-08-10 02:38:02', '', '2024-12-07 15:55:13', '0');
2656 -INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4008, '设备管理', '', 2, 4, 4001, 'device', 'fa:mobile', 'iot/device/device/index', 'IoTDevice', 0, '1', '1', '1', '', '2024-09-16 18:48:19', '1', '2024-12-14 11:39:30', '0'); 2657 +INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4008, '设备管理', '', 2, 2, 4001, 'device', 'fa:mobile', 'iot/device/device/index', 'IoTDevice', 0, '1', '1', '1', '', '2024-09-16 18:48:19', '1', '2025-06-15 20:56:10', '0');
2657 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4009, '设备查询', 'iot:device:query', 3, 1, 4008, '', '', '', '', 0, '1', '1', '1', '', '2024-09-16 18:48:19', '1', '2024-12-07 15:55:40', '0'); 2658 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4009, '设备查询', 'iot:device:query', 3, 1, 4008, '', '', '', '', 0, '1', '1', '1', '', '2024-09-16 18:48:19', '1', '2024-12-07 15:55:40', '0');
2658 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4010, '设备创建', 'iot:device:create', 3, 2, 4008, '', '', '', '', 0, '1', '1', '1', '', '2024-09-16 18:48:19', '1', '2024-12-07 15:55:41', '0'); 2659 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4010, '设备创建', 'iot:device:create', 3, 2, 4008, '', '', '', '', 0, '1', '1', '1', '', '2024-09-16 18:48:19', '1', '2024-12-07 15:55:41', '0');
2659 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4011, '设备更新', 'iot:device:update', 3, 3, 4008, '', '', '', '', 0, '1', '1', '1', '', '2024-09-16 18:48:19', '1', '2024-12-07 15:55:42', '0'); 2660 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4011, '设备更新', 'iot:device:update', 3, 3, 4008, '', '', '', '', 0, '1', '1', '1', '', '2024-09-16 18:48:19', '1', '2024-12-07 15:55:42', '0');
2660 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4012, '设备删除', 'iot:device:delete', 3, 4, 4008, '', '', '', '', 0, '1', '1', '1', '', '2024-09-16 18:48:19', '1', '2024-12-07 15:55:43', '0'); 2661 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4012, '设备删除', 'iot:device:delete', 3, 4, 4008, '', '', '', '', 0, '1', '1', '1', '', '2024-09-16 18:48:19', '1', '2024-12-07 15:55:43', '0');
2661 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4013, '设备导出', 'iot:device:export', 3, 5, 4008, '', '', '', '', 0, '1', '1', '1', '', '2024-09-16 18:48:19', '1', '2024-12-07 15:55:44', '0'); 2662 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4013, '设备导出', 'iot:device:export', 3, 5, 4008, '', '', '', '', 0, '1', '1', '1', '', '2024-09-16 18:48:19', '1', '2024-12-07 15:55:44', '0');
2662 -INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4014, '产品分类', '', 2, 1, 4001, 'product-category', 'ep:notebook', 'iot/product/category/index', 'IotProductCategory', 0, '1', '1', '1', '', '2024-12-07 16:01:35', '1', '2024-12-07 16:31:52', '0'); 2663 +INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4014, '产品分类', '', 2, 3, 4001, 'product-category', 'ep:notebook', 'iot/product/category/index', 'IotProductCategory', 0, '1', '1', '1', '', '2024-12-07 16:01:35', '1', '2025-06-15 20:56:39', '0');
2663 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4015, '产品分类查询', 'iot:product-category:query', 3, 1, 4014, '', '', '', NULL, 0, '1', '1', '1', '', '2024-12-07 16:01:35', '', '2024-12-07 16:01:35', '0'); 2664 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4015, '产品分类查询', 'iot:product-category:query', 3, 1, 4014, '', '', '', NULL, 0, '1', '1', '1', '', '2024-12-07 16:01:35', '', '2024-12-07 16:01:35', '0');
2664 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4016, '产品分类创建', 'iot:product-category:create', 3, 2, 4014, '', '', '', NULL, 0, '1', '1', '1', '', '2024-12-07 16:01:35', '', '2024-12-07 16:01:35', '0'); 2665 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4016, '产品分类创建', 'iot:product-category:create', 3, 2, 4014, '', '', '', NULL, 0, '1', '1', '1', '', '2024-12-07 16:01:35', '', '2024-12-07 16:01:35', '0');
2665 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4017, '产品分类更新', 'iot:product-category:update', 3, 3, 4014, '', '', '', NULL, 0, '1', '1', '1', '', '2024-12-07 16:01:35', '', '2024-12-07 16:01:35', '0'); 2666 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4017, '产品分类更新', 'iot:product-category:update', 3, 3, 4014, '', '', '', NULL, 0, '1', '1', '1', '', '2024-12-07 16:01:35', '', '2024-12-07 16:01:35', '0');
2666 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4018, '产品分类删除', 'iot:product-category:delete', 3, 4, 4014, '', '', '', NULL, 0, '1', '1', '1', '', '2024-12-07 16:01:35', '', '2024-12-07 16:01:35', '0'); 2667 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4018, '产品分类删除', 'iot:product-category:delete', 3, 4, 4014, '', '', '', NULL, 0, '1', '1', '1', '', '2024-12-07 16:01:35', '', '2024-12-07 16:01:35', '0');
2667 -INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4025, '插件管理', '', 2, 5, 4047, 'plugin-config', 'ep:folder-opened', 'iot/plugin/index', 'IoTPlugin', 0, '1', '1', '1', '', '2024-12-09 21:25:06', '1', '2025-02-05 22:23:12', '0');  
2668 -INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4026, '插件查询', 'iot:plugin-config:query', 3, 1, 4025, '', '', '', NULL, 0, '1', '1', '1', '', '2024-12-09 21:25:06', '', '2025-02-05 21:23:20', '0');  
2669 -INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4027, '插件创建', 'iot:plugin-config:create', 3, 2, 4025, '', '', '', NULL, 0, '1', '1', '1', '', '2024-12-09 21:25:06', '', '2025-02-05 21:23:16', '0');  
2670 -INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4028, '插件更新', 'iot:plugin-config:update', 3, 3, 4025, '', '', '', NULL, 0, '1', '1', '1', '', '2024-12-09 21:25:06', '', '2025-02-05 21:23:12', '0');  
2671 -INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4029, '插件删除', 'iot:plugin-config:delete', 3, 4, 4025, '', '', '', NULL, 0, '1', '1', '1', '', '2024-12-09 21:25:06', '', '2025-02-05 21:23:09', '0');  
2672 -INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4030, '插件导出', 'iot:plugin-config:export', 3, 5, 4025, '', '', '', NULL, 0, '1', '1', '1', '', '2024-12-09 21:25:06', '', '2025-02-05 21:23:06', '0');  
2673 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4031, '设备分组', '', 2, 3, 4001, 'device-group', 'fa-solid:layer-group', 'iot/device/group/index', 'IotDeviceGroup', 0, '1', '1', '1', '', '2024-12-14 17:08:29', '1', '2024-12-14 17:09:17', '0'); 2668 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4031, '设备分组', '', 2, 3, 4001, 'device-group', 'fa-solid:layer-group', 'iot/device/group/index', 'IotDeviceGroup', 0, '1', '1', '1', '', '2024-12-14 17:08:29', '1', '2024-12-14 17:09:17', '0');
2674 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4032, '设备分组查询', 'iot:device-group:query', 3, 1, 4031, '', '', '', NULL, 0, '1', '1', '1', '', '2024-12-14 17:08:29', '', '2024-12-14 17:08:29', '0'); 2669 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4032, '设备分组查询', 'iot:device-group:query', 3, 1, 4031, '', '', '', NULL, 0, '1', '1', '1', '', '2024-12-14 17:08:29', '', '2024-12-14 17:08:29', '0');
2675 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4033, '设备分组创建', 'iot:device-group:create', 3, 2, 4031, '', '', '', NULL, 0, '1', '1', '1', '', '2024-12-14 17:08:29', '', '2024-12-14 17:08:29', '0'); 2670 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4033, '设备分组创建', 'iot:device-group:create', 3, 2, 4031, '', '', '', NULL, 0, '1', '1', '1', '', '2024-12-14 17:08:29', '', '2024-12-14 17:08:29', '0');
2676 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4034, '设备分组更新', 'iot:device-group:update', 3, 3, 4031, '', '', '', NULL, 0, '1', '1', '1', '', '2024-12-14 17:08:29', '', '2024-12-14 17:08:29', '0'); 2671 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4034, '设备分组更新', 'iot:device-group:update', 3, 3, 4031, '', '', '', NULL, 0, '1', '1', '1', '', '2024-12-14 17:08:29', '', '2024-12-14 17:08:29', '0');
2677 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4035, '设备分组删除', 'iot:device-group:delete', 3, 4, 4031, '', '', '', NULL, 0, '1', '1', '1', '', '2024-12-14 17:08:29', '', '2024-12-14 17:08:29', '0'); 2672 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4035, '设备分组删除', 'iot:device-group:delete', 3, 4, 4031, '', '', '', NULL, 0, '1', '1', '1', '', '2024-12-14 17:08:29', '', '2024-12-14 17:08:29', '0');
2678 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4036, '设备导入', 'iot:device:import', 3, 6, 4008, '', '', '', '', 0, '1', '1', '1', '1', '2024-12-15 10:35:47', '1', '2024-12-15 10:35:47', '0'); 2673 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4036, '设备导入', 'iot:device:import', 3, 6, 4008, '', '', '', '', 0, '1', '1', '1', '1', '2024-12-15 10:35:47', '1', '2024-12-15 10:35:47', '0');
2679 -INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4037, '产品物模型', '', 2, 2, 4001, 'thing-model', 'ep:mostly-cloudy', 'iot/thingmodel/index', 'IoTThingModel', 0, '0', '0', '0', '', '2024-12-16 17:17:50', '1', '2024-12-27 11:03:37', '0'); 2674 +INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4037, '产品物模型', '', 2, 99, 4001, 'thing-model', 'ep:mostly-cloudy', 'iot/thingmodel/index', 'IoTThingModel', 0, '0', '0', '0', '', '2024-12-16 17:17:50', '1', '2025-06-15 20:56:19', '0');
2680 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4038, '产品物模型功能查询', 'iot:thing-model:query', 3, 1, 4037, '', '', '', NULL, 0, '1', '1', '1', '', '2024-12-16 17:17:51', '', '2025-03-17 09:14:54', '0'); 2675 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4038, '产品物模型功能查询', 'iot:thing-model:query', 3, 1, 4037, '', '', '', NULL, 0, '1', '1', '1', '', '2024-12-16 17:17:51', '', '2025-03-17 09:14:54', '0');
2681 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4039, '产品物模型功能创建', 'iot:thing-model:create', 3, 2, 4037, '', '', '', NULL, 0, '1', '1', '1', '', '2024-12-16 17:17:52', '', '2025-03-17 09:14:58', '0'); 2676 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4039, '产品物模型功能创建', 'iot:thing-model:create', 3, 2, 4037, '', '', '', NULL, 0, '1', '1', '1', '', '2024-12-16 17:17:52', '', '2025-03-17 09:14:58', '0');
2682 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4040, '产品物模型功能更新', 'iot:thing-model:update', 3, 3, 4037, '', '', '', NULL, 0, '1', '1', '1', '', '2024-12-16 17:17:52', '', '2025-03-17 09:15:03', '0'); 2677 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4040, '产品物模型功能更新', 'iot:thing-model:update', 3, 3, 4037, '', '', '', NULL, 0, '1', '1', '1', '', '2024-12-16 17:17:52', '', '2025-03-17 09:15:03', '0');
2683 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4041, '产品物模型功能删除', 'iot:thing-model:delete', 3, 4, 4037, '', '', '', NULL, 0, '1', '1', '1', '', '2024-12-16 17:17:52', '', '2025-03-17 09:15:06', '0'); 2678 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4041, '产品物模型功能删除', 'iot:thing-model:delete', 3, 4, 4037, '', '', '', NULL, 0, '1', '1', '1', '', '2024-12-16 17:17:52', '', '2025-03-17 09:15:06', '0');
2684 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4042, '产品物模型功能导出', 'iot:thing-model:export', 3, 5, 4037, '', '', '', NULL, 0, '1', '1', '1', '', '2024-12-16 17:17:53', '', '2025-03-17 09:15:09', '0'); 2679 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4042, '产品物模型功能导出', 'iot:thing-model:export', 3, 5, 4037, '', '', '', NULL, 0, '1', '1', '1', '', '2024-12-16 17:17:53', '', '2025-03-17 09:15:09', '0');
2685 -INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4043, '设备上行', 'iot:device:upstream', 3, 7, 4008, '', '', '', '', 0, '1', '1', '1', '1', '2025-01-28 04:40:16', '1', '2025-01-31 22:45:53', '0'); 2680 +INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4043, '设备消息发送', 'iot:device:message-send', 3, 12, 4008, '', '', '', '', 0, '1', '1', '1', '1', '2025-01-28 04:40:16', '1', '2025-06-14 14:09:26', '0');
2686 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4044, '设备属性查询', 'iot:device:property-query', 3, 10, 4008, '', '', '', '', 0, '1', '1', '1', '1', '2025-01-28 11:52:54', '1', '2025-01-28 11:52:54', '0'); 2681 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4044, '设备属性查询', 'iot:device:property-query', 3, 10, 4008, '', '', '', '', 0, '1', '1', '1', '1', '2025-01-28 11:52:54', '1', '2025-01-28 11:52:54', '0');
2687 -INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4045, '设备日志查询', 'iot:device:log-query', 3, 11, 4008, '', '', '', '', 0, '1', '1', '1', '1', '2025-01-28 11:53:22', '1', '2025-01-28 11:53:22', '0');  
2688 -INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4046, '设备下行', 'iot:device:downstream', 3, 8, 4008, '', '', '', '', 0, '1', '1', '1', '1', '2025-01-31 22:46:11', '1', '2025-01-31 22:46:11', '0');  
2689 -INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4047, '运维管理', '', 1, 2, 4000, 'operations', 'fa:cog', '', '', 0, '1', '1', '1', '1', '2025-02-05 22:21:37', '1', '2025-02-05 22:22:53', '0'); 2682 +INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4045, '设备消息查询', 'iot:device:message-query', 3, 11, 4008, '', '', '', '', 0, '1', '1', '1', '1', '2025-01-28 11:53:22', '1', '2025-06-14 11:11:20', '0');
  2683 +INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4047, '运维管理', '', 1, 4, 4000, 'operation', 'fa:align-center', '', '', 0, '1', '1', '1', '1', '2025-02-05 22:21:37', '"1"', '2025-06-30 20:12:48', '0');
2690 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4048, '规则引擎', '', 1, 3, 4000, 'rule', 'fa-solid:cogs', '', '', 0, '1', '1', '1', '1', '2025-02-11 14:10:54', '1', '2025-02-11 14:10:54', '0'); 2684 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4048, '规则引擎', '', 1, 3, 4000, 'rule', 'fa-solid:cogs', '', '', 0, '1', '1', '1', '1', '2025-02-11 14:10:54', '1', '2025-02-11 14:10:54', '0');
2691 -INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4049, '场景联动', '', 2, 1, 4048, 'scene', 'ep:link', 'iot/rule/scene/index', 'Scene', 0, '1', '1', '1', '1', '2025-02-11 14:12:44', '1', '2025-02-12 10:15:36', '0');  
2692 -INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4050, 'IoT首页', '', 2, 1, 4000, 'home', 'ep:home-filled', 'iot/home/index', 'IotHome', 0, '1', '1', '1', '1', '2025-02-27 08:39:35', '1', '2025-02-27 08:40:28', '0');  
2693 -INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4051, '数据桥梁', '', 2, 0, 4048, 'data-bridge', 'ep:guide', 'iot/rule/databridge/index', 'IotDataBridge', 0, '1', '1', '1', '', '2025-03-09 13:47:11', '1', '2025-03-09 13:47:51', '0');  
2694 -INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4052, 'IoT 数据桥梁查询', 'iot:data-bridge:query', 3, 1, 4051, '', '', '', NULL, 0, '1', '1', '1', '', '2025-03-09 13:47:11', '', '2025-03-09 13:47:11', '0');  
2695 -INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4053, 'IoT 数据桥梁创建', 'iot:data-bridge:create', 3, 2, 4051, '', '', '', NULL, 0, '1', '1', '1', '', '2025-03-09 13:47:11', '', '2025-03-09 13:47:11', '0');  
2696 -INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4054, 'IoT 数据桥梁更新', 'iot:data-bridge:update', 3, 3, 4051, '', '', '', NULL, 0, '1', '1', '1', '', '2025-03-09 13:47:11', '', '2025-03-09 13:47:11', '0');  
2697 -INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4055, 'IoT 数据桥梁删除', 'iot:data-bridge:delete', 3, 4, 4051, '', '', '', NULL, 0, '1', '1', '1', '', '2025-03-09 13:47:12', '', '2025-03-09 13:47:12', '0');  
2698 -INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4056, 'IoT 数据桥梁导出', 'iot:data-bridge:export', 3, 5, 4051, '', '', '', NULL, 0, '1', '1', '1', '', '2025-03-09 13:47:12', '', '2025-03-09 13:47:12', '0'); 2685 +INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4049, '场景联动', '', 2, 1, 4048, 'scene', 'ep:link', 'iot/rule/scene/index', 'IoTSceneRule', 0, '1', '1', '1', '1', '2025-02-11 14:12:44', '"1"', '2025-08-09 15:38:32', '0');
  2686 +INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4050, 'IoT 首页', '', 2, 1, 4000, 'home', 'ep:home-filled', 'iot/home/index', 'IotHome', 0, '1', '1', '1', '1', '2025-02-27 08:39:35', '1', '2025-06-24 14:22:50', '0');
  2687 +INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4051, '数据流转', '', 2, 2, 4048, 'data-rule', 'ep:guide', 'iot/rule/data/index', 'IoTDataRule', 0, '1', '1', '1', '', '2025-03-09 13:47:11', '"1"', '2025-08-09 15:38:37', '0');
  2688 +INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4052, '数据流转规则查询', 'iot:data-rule:query', 3, 1, 4051, '', '', '', '', 0, '1', '1', '1', '', '2025-03-09 13:47:11', '1', '2025-06-24 20:48:04', '0');
  2689 +INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4053, '数据流转规则创建', 'iot:data-rule:create', 3, 2, 4051, '', '', '', '', 0, '1', '1', '1', '', '2025-03-09 13:47:11', '1', '2025-06-24 20:48:08', '0');
  2690 +INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4054, '数据流转规则更新', 'iot:data-rule:update', 3, 3, 4051, '', '', '', '', 0, '1', '1', '1', '', '2025-03-09 13:47:11', '1', '2025-06-24 20:48:11', '0');
  2691 +INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (4055, '数据流转规则删除', 'iot:data-rule:delete', 3, 4, 4051, '', '', '', '', 0, '1', '1', '1', '', '2025-03-09 13:47:12', '1', '2025-06-24 20:48:15', '0');
2699 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (5000, 'AI 工作流', '', 2, 5, 2758, 'workflow', 'fa:hand-grab-o', 'ai/workflow/index.vue', 'AiWorkflow', 0, '1', '1', '1', '1', '2025-03-25 09:50:27', '1', '2025-05-03 18:55:12', '0'); 2692 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (5000, 'AI 工作流', '', 2, 5, 2758, 'workflow', 'fa:hand-grab-o', 'ai/workflow/index.vue', 'AiWorkflow', 0, '1', '1', '1', '1', '2025-03-25 09:50:27', '1', '2025-05-03 18:55:12', '0');
2700 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (5001, 'AI 工作流查询', 'ai:workflow:query', 3, 1, 5000, '', '', '', '', 0, '1', '1', '1', '1', '2025-03-25 09:51:11', '1', '2025-03-25 09:51:11', '0'); 2693 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (5001, 'AI 工作流查询', 'ai:workflow:query', 3, 1, 5000, '', '', '', '', 0, '1', '1', '1', '1', '2025-03-25 09:51:11', '1', '2025-03-25 09:51:11', '0');
2701 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (5002, 'AI 工作流创建', 'ai:workflow:create', 3, 2, 5000, '', '', '', '', 0, '1', '1', '1', '1', '2025-03-25 09:51:28', '1', '2025-03-25 09:51:28', '0'); 2694 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (5002, 'AI 工作流创建', 'ai:workflow:create', 3, 2, 5000, '', '', '', '', 0, '1', '1', '1', '1', '2025-03-25 09:51:28', '1', '2025-03-25 09:51:28', '0');
@@ -2706,34 +2699,65 @@ INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon @@ -2706,34 +2699,65 @@ INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon
2706 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (5010, '租户切换', 'system:tenant:visit', 3, 999, 1138, '', '', '', '', 0, '1', '1', '1', '1', '2025-05-05 15:25:32', '1', '2025-05-05 15:25:32', '0'); 2699 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (5010, '租户切换', 'system:tenant:visit', 3, 999, 1138, '', '', '', '', 0, '1', '1', '1', '1', '2025-05-05 15:25:32', '1', '2025-05-05 15:25:32', '0');
2707 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (5011, '转账订单查询', 'pay:transfer:query', 3, 1, 2559, '', '', '', '', 0, '1', '1', '1', '1', '2025-05-08 12:46:53', '1', '2025-05-08 12:46:53', '0'); 2700 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (5011, '转账订单查询', 'pay:transfer:query', 3, 1, 2559, '', '', '', '', 0, '1', '1', '1', '1', '2025-05-08 12:46:53', '1', '2025-05-08 12:46:53', '0');
2708 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (5012, '转账订单导出', 'pay:transfer:export', 3, 2, 2559, '', '', '', '', 0, '1', '1', '1', '1', '2025-05-10 17:00:28', '1', '2025-05-10 17:00:28', '0'); 2701 INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (5012, '转账订单导出', 'pay:transfer:export', 3, 2, 2559, '', '', '', '', 0, '1', '1', '1', '1', '2025-05-10 17:00:28', '1', '2025-05-10 17:00:28', '0');
  2702 +INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (5013, '场景联动查询', 'iot:rule-scene:query', 3, 1, 4049, '', '', '', '', 0, '1', '1', '1', '1', '2025-06-20 16:53:01', '1', '2025-06-20 16:53:01', '0');
  2703 +INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (5014, '场景联动创建', 'iot:rule-scene:create', 3, 2, 4049, '', '', '', '', 0, '1', '1', '1', '1', '2025-06-20 16:54:31', '1', '2025-06-20 16:54:31', '0');
  2704 +INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (5015, '场景联动更新', 'iot:rule-scene:update', 3, 3, 4049, '', '', '', '', 0, '1', '1', '1', '1', '2025-06-20 16:54:47', '1', '2025-06-20 16:54:47', '0');
  2705 +INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (5016, '场景联动删除', 'iot:rule-scene:delete', 3, 4, 4049, '', '', '', '', 0, '1', '1', '1', '1', '2025-06-20 16:55:04', '1', '2025-06-20 16:55:27', '0');
  2706 +INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (5017, '场景联动导出', 'iot:rule-scene:export', 3, 5, 4049, '', '', '', '', 0, '1', '1', '1', '1', '2025-06-20 16:57:56', '1', '2025-06-20 16:57:56', '0');
  2707 +INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (5018, '数据流转目的查询', 'iot:data-sink:query', 3, 11, 4051, '', '', '', '', 0, '1', '1', '1', '1', '2025-06-24 20:48:40', '1', '2025-06-24 20:48:40', '0');
  2708 +INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (5019, '数据流转目的创建', 'iot:data-sink:create', 3, 12, 4051, '', '', '', '', 0, '1', '1', '1', '1', '2025-06-24 20:48:57', '1', '2025-06-24 20:48:57', '0');
  2709 +INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (5020, '数据流转目的更新', 'iot:data-sink:update', 3, 13, 4051, '', '', '', '', 0, '1', '1', '1', '1', '2025-06-24 20:49:10', '1', '2025-06-24 20:49:10', '0');
  2710 +INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (5021, '数据流转目的删除', 'iot:data-sink:delete', 3, 14, 4051, '', '', '', '', 0, '1', '1', '1', '1', '2025-06-24 20:49:23', '1', '2025-06-24 20:49:23', '0');
  2711 +INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (5022, '告警配置', '', 2, 1, 5028, 'config', 'fa:connectdevelop', 'iot/alert/config/index', 'IotAlertConfig', 0, '1', '1', '1', '', '2025-06-27 14:28:59', '1', '2025-06-27 22:31:19', '0');
  2712 +INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (5023, '告警配置查询', 'iot:alert-config:query', 3, 1, 5022, '', '', '', '', 0, '1', '1', '1', '', '2025-06-27 14:28:59', '1', '2025-06-28 16:00:31', '0');
  2713 +INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (5024, '告警配置创建', 'iot:alert-config:create', 3, 2, 5022, '', '', '', '', 0, '1', '1', '1', '', '2025-06-27 14:28:59', '1', '2025-06-28 16:00:35', '0');
  2714 +INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (5025, '告警配置更新', 'iot:alert-config:update', 3, 3, 5022, '', '', '', '', 0, '1', '1', '1', '', '2025-06-27 14:28:59', '1', '2025-06-28 16:00:43', '0');
  2715 +INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (5026, '告警配置删除', 'iot:alert-config:delete', 3, 4, 5022, '', '', '', '', 0, '1', '1', '1', '', '2025-06-27 14:29:00', '1', '2025-06-28 16:00:39', '0');
  2716 +INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (5028, '告警中心', '', 1, 3, 4000, 'alert', 'fa:soundcloud', '', '', 0, '1', '1', '1', '1', '2025-06-27 22:30:04', '1', '2025-06-27 22:30:19', '0');
  2717 +INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (5029, '告警记录', '', 2, 2, 5028, 'record', 'fa-solid:record-vinyl', 'iot/alert/record/index', 'IotAlertRecord', 0, '1', '1', '1', '', '2025-06-28 07:59:32', '1', '2025-06-28 16:01:48', '0');
  2718 +INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (5030, '告警记录查询', 'iot:alert-record:query', 3, 1, 5029, '', '', '', '', 0, '1', '1', '1', '', '2025-06-28 07:59:32', '1', '2025-06-28 16:00:53', '0');
  2719 +INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (5031, '告警记录处理', 'iot:alert-record:process', 3, 2, 5029, '', '', '', '', 0, '1', '1', '1', '', '2025-06-28 07:59:32', '1', '2025-06-28 16:01:04', '0');
  2720 +INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (5032, 'OTA 固件', '', 2, 1, 4047, 'ota/firmware', 'fa-solid:award', 'iot/ota/firmware/index', 'IoTOtaFirmware', 0, '1', '1', '1', '', '2025-06-30 07:50:29', '"1"', '2025-06-30 20:13:28', '0');
  2721 +INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (5033, 'OTA 固件查询', 'iot:ota-firmware:query', 3, 1, 5032, '', '', '', '', 0, '1', '1', '1', '', '2025-06-30 07:50:29', '"1"', '2025-06-30 17:38:12', '0');
  2722 +INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (5034, 'OTA 固件创建', 'iot:ota-firmware:create', 3, 2, 5032, '', '', '', '', 0, '1', '1', '1', '', '2025-06-30 07:50:29', '"1"', '2025-06-30 17:38:21', '0');
  2723 +INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (5035, 'OTA 固件更新', 'iot:ota-firmware:update', 3, 3, 5032, '', '', '', '', 0, '1', '1', '1', '', '2025-06-30 07:50:29', '"1"', '2025-06-30 17:38:29', '0');
  2724 +INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (5036, 'OTA 固件删除', 'iot:ota-firmware:delete', 3, 4, 5032, '', '', '', '', 0, '1', '1', '1', '', '2025-06-30 07:50:29', '"1"', '2025-06-30 17:38:37', '0');
  2725 +INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (5037, 'OTA 升级任务查询', 'iot:ota-task:create', 3, 11, 5032, '', '', '', '', 0, '1', '1', '1', '1', '2025-07-02 23:56:56', '1', '2025-07-02 23:56:56', '0');
  2726 +INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (5038, 'OTA 升级任务取消', 'iot:ota-task:cancel', 3, 13, 5032, '', '', '', '', 0, '1', '1', '1', '1', '2025-07-02 23:57:26', '1', '2025-07-02 23:57:26', '0');
  2727 +INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (5039, 'OTA 升级任务创建', 'iot:ota-task:create', 3, 12, 5032, '', '', '', '', 0, '1', '1', '1', '1', '2025-07-02 23:57:52', '1', '2025-07-02 23:57:52', '0');
  2728 +INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (5040, 'OTA 升级记录查询', 'iot:ota-task-record:query', 3, 21, 5032, '', '', '', '', 0, '1', '1', '1', '1', '2025-07-02 23:58:30', '1', '2025-07-02 23:58:30', '0');
  2729 +INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (5041, 'OTA 升级记录取消', 'iot:ota-task-record:cancel', 3, 23, 5032, '', '', '', '', 0, '1', '1', '1', '1', '2025-07-02 23:59:18', '1', '2025-07-02 23:59:18', '0');
  2730 +INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (5042, '模版消息', '', 2, 5, 2084, 'message-template', 'ep:notebook', 'mp/messageTemplate/index', 'MpMessageTemplate', 0, '1', '1', '1', '1', '2025-11-26 16:45:35', '1', '2025-11-26 18:44:52', '0');
  2731 +INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (5043, '查询模版消息', 'mp:message-template:query', 3, 1, 5042, '', '', '', '', 0, '1', '1', '1', '1', '2025-11-26 17:00:15', '1', '2025-11-26 18:45:00', '0');
  2732 +INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (5044, '删除模版消息', 'mp:message-template:delete', 3, 2, 5042, '', '', '', '', 0, '1', '1', '1', '1', '2025-11-26 17:00:31', '1', '2025-11-26 18:45:05', '0');
  2733 +INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (5045, '同步公众号模板', 'mp:message-template:sync', 3, 3, 5042, '', '', '', '', 0, '1', '1', '1', '1', '2025-11-26 17:00:55', '1', '2025-11-26 17:00:55', '0');
  2734 +INSERT INTO system_menu (id, name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) VALUES (5046, '给粉丝发送模版消息', 'mp:message-template:send', 3, 4, 5042, '', '', '', '', 0, '1', '1', '1', '1', '2025-11-26 17:01:11', '1', '2025-11-26 17:01:11', '0');
2709 COMMIT; 2735 COMMIT;
2710 -- @formatter:on 2736 -- @formatter:on
2711 2737
2712 -DROP SEQUENCE IF EXISTS system_notice_seq;  
2713 -CREATE SEQUENCE system_notice_seq  
2714 - START 1; 2738 +DROP SEQUENCE IF EXISTS system_menu_seq;
  2739 +CREATE SEQUENCE system_menu_seq
  2740 + START 5047;
2715 2741
2716 -- ---------------------------- 2742 -- ----------------------------
2717 -- Table structure for system_notice 2743 -- Table structure for system_notice
2718 -- ---------------------------- 2744 -- ----------------------------
2719 DROP TABLE IF EXISTS system_notice; 2745 DROP TABLE IF EXISTS system_notice;
2720 -CREATE TABLE system_notice  
2721 -(  
2722 - id int8 NOT NULL default nextval('system_notice_seq'),  
2723 - title varchar(50) NOT NULL,  
2724 - content text NOT NULL,  
2725 - type int2 NOT NULL,  
2726 - status int2 NOT NULL DEFAULT 0,  
2727 - creator varchar(64) NULL DEFAULT '',  
2728 - create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
2729 - updater varchar(64) NULL DEFAULT '',  
2730 - update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
2731 - deleted int2 NOT NULL DEFAULT 0,  
2732 - tenant_id int8 NOT NULL DEFAULT 0 2746 +CREATE TABLE system_notice (
  2747 + id int8 NOT NULL,
  2748 + title varchar(50) NOT NULL,
  2749 + content text NOT NULL,
  2750 + type int2 NOT NULL,
  2751 + status int2 NOT NULL DEFAULT 0,
  2752 + creator varchar(64) NULL DEFAULT '',
  2753 + create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  2754 + updater varchar(64) NULL DEFAULT '',
  2755 + update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  2756 + deleted int2 NOT NULL DEFAULT 0,
  2757 + tenant_id int8 NOT NULL DEFAULT 0
2733 ); 2758 );
2734 2759
2735 -ALTER TABLE system_notice  
2736 - ADD CONSTRAINT pk_system_notice PRIMARY KEY (id); 2760 +ALTER TABLE system_notice ADD CONSTRAINT pk_system_notice PRIMARY KEY (id);
2737 2761
2738 COMMENT ON COLUMN system_notice.id IS '公告ID'; 2762 COMMENT ON COLUMN system_notice.id IS '公告ID';
2739 COMMENT ON COLUMN system_notice.title IS '公告标题'; 2763 COMMENT ON COLUMN system_notice.title IS '公告标题';
@@ -2753,43 +2777,41 @@ COMMENT ON TABLE system_notice IS &#39;通知公告表&#39;; @@ -2753,43 +2777,41 @@ COMMENT ON TABLE system_notice IS &#39;通知公告表&#39;;
2753 -- ---------------------------- 2777 -- ----------------------------
2754 -- @formatter:off 2778 -- @formatter:off
2755 BEGIN; 2779 BEGIN;
2756 -INSERT INTO system_notice (id, title, content, type, status, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1, '芋道的公众', '<p>新版本内容133</p>', 1, 0, 'admin', '2021-01-05 17:03:48', '1', '2022-05-04 21:00:20', '0', 1); 2780 +INSERT INTO system_notice (id, title, content, type, status, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1, '芋道的公众', '<p>新版本内容133222</p>', 1, 0, 'admin', '2021-01-05 17:03:48', '"1"', '2025-08-31 09:38:22', '0', 1);
2757 INSERT INTO system_notice (id, title, content, type, status, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2, '维护通知:2018-07-01 系统凌晨维护', '<p><img src="http://test.yudao.iocoder.cn/b7cb3cf49b4b3258bf7309a09dd2f4e5.jpg" alt="" data-href="">11112222<img src="http://test.yudao.iocoder.cn/fe44fc7bdb82ca421184b2eebbaee9e2148d4a1827479a4eb4521e11d2a062ba.png" alt="image" data-href="http://test.yudao.iocoder.cn/fe44fc7bdb82ca421184b2eebbaee9e2148d4a1827479a4eb4521e11d2a062ba.png">3333</p>', 2, 1, 'admin', '2021-01-05 17:03:48', '1', '2025-04-18 23:56:40', '0', 1); 2781 INSERT INTO system_notice (id, title, content, type, status, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2, '维护通知:2018-07-01 系统凌晨维护', '<p><img src="http://test.yudao.iocoder.cn/b7cb3cf49b4b3258bf7309a09dd2f4e5.jpg" alt="" data-href="">11112222<img src="http://test.yudao.iocoder.cn/fe44fc7bdb82ca421184b2eebbaee9e2148d4a1827479a4eb4521e11d2a062ba.png" alt="image" data-href="http://test.yudao.iocoder.cn/fe44fc7bdb82ca421184b2eebbaee9e2148d4a1827479a4eb4521e11d2a062ba.png">3333</p>', 2, 1, 'admin', '2021-01-05 17:03:48', '1', '2025-04-18 23:56:40', '0', 1);
2758 INSERT INTO system_notice (id, title, content, type, status, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (4, '我是测试标题', '<p>哈哈哈哈123</p>', 1, 0, '110', '2022-02-22 01:01:25', '110', '2022-02-22 01:01:46', '0', 121); 2782 INSERT INTO system_notice (id, title, content, type, status, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (4, '我是测试标题', '<p>哈哈哈哈123</p>', 1, 0, '110', '2022-02-22 01:01:25', '110', '2022-02-22 01:01:46', '0', 121);
2759 COMMIT; 2783 COMMIT;
2760 -- @formatter:on 2784 -- @formatter:on
2761 2785
2762 -DROP SEQUENCE IF EXISTS system_notify_message_seq;  
2763 -CREATE SEQUENCE system_notify_message_seq  
2764 - START 1; 2786 +DROP SEQUENCE IF EXISTS system_notice_seq;
  2787 +CREATE SEQUENCE system_notice_seq
  2788 + START 5;
2765 2789
2766 -- ---------------------------- 2790 -- ----------------------------
2767 -- Table structure for system_notify_message 2791 -- Table structure for system_notify_message
2768 -- ---------------------------- 2792 -- ----------------------------
2769 DROP TABLE IF EXISTS system_notify_message; 2793 DROP TABLE IF EXISTS system_notify_message;
2770 -CREATE TABLE system_notify_message  
2771 -(  
2772 - id int8 NOT NULL default nextval('system_notify_message_seq'),  
2773 - user_id int8 NOT NULL,  
2774 - user_type int2 NOT NULL,  
2775 - template_id int8 NOT NULL,  
2776 - template_code varchar(64) NOT NULL,  
2777 - template_nickname varchar(63) NOT NULL,  
2778 - template_content varchar(1024) NOT NULL,  
2779 - template_type int4 NOT NULL,  
2780 - template_params varchar(255) NOT NULL,  
2781 - read_status bool NOT NULL,  
2782 - read_time timestamp NULL DEFAULT NULL,  
2783 - creator varchar(64) NULL DEFAULT '',  
2784 - create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
2785 - updater varchar(64) NULL DEFAULT '',  
2786 - update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
2787 - deleted int2 NOT NULL DEFAULT 0,  
2788 - tenant_id int8 NOT NULL DEFAULT 0 2794 +CREATE TABLE system_notify_message (
  2795 + id int8 NOT NULL,
  2796 + user_id int8 NOT NULL,
  2797 + user_type int2 NOT NULL,
  2798 + template_id int8 NOT NULL,
  2799 + template_code varchar(64) NOT NULL,
  2800 + template_nickname varchar(63) NOT NULL,
  2801 + template_content varchar(1024) NOT NULL,
  2802 + template_type int4 NOT NULL,
  2803 + template_params varchar(255) NOT NULL,
  2804 + read_status bool NOT NULL,
  2805 + read_time timestamp NULL DEFAULT NULL,
  2806 + creator varchar(64) NULL DEFAULT '',
  2807 + create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  2808 + updater varchar(64) NULL DEFAULT '',
  2809 + update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  2810 + deleted int2 NOT NULL DEFAULT 0,
  2811 + tenant_id int8 NOT NULL DEFAULT 0
2789 ); 2812 );
2790 2813
2791 -ALTER TABLE system_notify_message  
2792 - ADD CONSTRAINT pk_system_notify_message PRIMARY KEY (id); 2814 +ALTER TABLE system_notify_message ADD CONSTRAINT pk_system_notify_message PRIMARY KEY (id);
2793 2815
2794 COMMENT ON COLUMN system_notify_message.id IS '用户ID'; 2816 COMMENT ON COLUMN system_notify_message.id IS '用户ID';
2795 COMMENT ON COLUMN system_notify_message.user_id IS '用户id'; 2817 COMMENT ON COLUMN system_notify_message.user_id IS '用户id';
@@ -2827,34 +2849,32 @@ INSERT INTO system_notify_message (id, user_id, user_type, template_id, template @@ -2827,34 +2849,32 @@ INSERT INTO system_notify_message (id, user_id, user_type, template_id, template
2827 COMMIT; 2849 COMMIT;
2828 -- @formatter:on 2850 -- @formatter:on
2829 2851
2830 -DROP SEQUENCE IF EXISTS system_notify_template_seq;  
2831 -CREATE SEQUENCE system_notify_template_seq  
2832 - START 1; 2852 +DROP SEQUENCE IF EXISTS system_notify_message_seq;
  2853 +CREATE SEQUENCE system_notify_message_seq
  2854 + START 11;
2833 2855
2834 -- ---------------------------- 2856 -- ----------------------------
2835 -- Table structure for system_notify_template 2857 -- Table structure for system_notify_template
2836 -- ---------------------------- 2858 -- ----------------------------
2837 DROP TABLE IF EXISTS system_notify_template; 2859 DROP TABLE IF EXISTS system_notify_template;
2838 -CREATE TABLE system_notify_template  
2839 -(  
2840 - id int8 NOT NULL default nextval('system_notify_template_seq'),  
2841 - name varchar(63) NOT NULL,  
2842 - code varchar(64) NOT NULL,  
2843 - nickname varchar(255) NOT NULL,  
2844 - content varchar(1024) NOT NULL,  
2845 - type int2 NOT NULL,  
2846 - params varchar(255) NULL DEFAULT NULL,  
2847 - status int2 NOT NULL,  
2848 - remark varchar(255) NULL DEFAULT NULL,  
2849 - creator varchar(64) NULL DEFAULT '',  
2850 - create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
2851 - updater varchar(64) NULL DEFAULT '',  
2852 - update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
2853 - deleted int2 NOT NULL DEFAULT 0 2860 +CREATE TABLE system_notify_template (
  2861 + id int8 NOT NULL,
  2862 + name varchar(63) NOT NULL,
  2863 + code varchar(64) NOT NULL,
  2864 + nickname varchar(255) NOT NULL,
  2865 + content varchar(1024) NOT NULL,
  2866 + type int2 NOT NULL,
  2867 + params varchar(255) NULL DEFAULT NULL,
  2868 + status int2 NOT NULL,
  2869 + remark varchar(255) NULL DEFAULT NULL,
  2870 + creator varchar(64) NULL DEFAULT '',
  2871 + create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  2872 + updater varchar(64) NULL DEFAULT '',
  2873 + update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  2874 + deleted int2 NOT NULL DEFAULT 0
2854 ); 2875 );
2855 2876
2856 -ALTER TABLE system_notify_template  
2857 - ADD CONSTRAINT pk_system_notify_template PRIMARY KEY (id); 2877 +ALTER TABLE system_notify_template ADD CONSTRAINT pk_system_notify_template PRIMARY KEY (id);
2858 2878
2859 COMMENT ON COLUMN system_notify_template.id IS '主键'; 2879 COMMENT ON COLUMN system_notify_template.id IS '主键';
2860 COMMENT ON COLUMN system_notify_template.name IS '模板名称'; 2880 COMMENT ON COLUMN system_notify_template.name IS '模板名称';
@@ -2872,35 +2892,33 @@ COMMENT ON COLUMN system_notify_template.update_time IS &#39;更新时间&#39;; @@ -2872,35 +2892,33 @@ COMMENT ON COLUMN system_notify_template.update_time IS &#39;更新时间&#39;;
2872 COMMENT ON COLUMN system_notify_template.deleted IS '是否删除'; 2892 COMMENT ON COLUMN system_notify_template.deleted IS '是否删除';
2873 COMMENT ON TABLE system_notify_template IS '站内信模板表'; 2893 COMMENT ON TABLE system_notify_template IS '站内信模板表';
2874 2894
2875 -DROP SEQUENCE IF EXISTS system_oauth2_access_token_seq;  
2876 -CREATE SEQUENCE system_oauth2_access_token_seq 2895 +DROP SEQUENCE IF EXISTS system_notify_template_seq;
  2896 +CREATE SEQUENCE system_notify_template_seq
2877 START 1; 2897 START 1;
2878 2898
2879 -- ---------------------------- 2899 -- ----------------------------
2880 -- Table structure for system_oauth2_access_token 2900 -- Table structure for system_oauth2_access_token
2881 -- ---------------------------- 2901 -- ----------------------------
2882 DROP TABLE IF EXISTS system_oauth2_access_token; 2902 DROP TABLE IF EXISTS system_oauth2_access_token;
2883 -CREATE TABLE system_oauth2_access_token  
2884 -(  
2885 - id int8 NOT NULL default nextval('system_oauth2_access_token_seq'),  
2886 - user_id int8 NOT NULL,  
2887 - user_type int2 NOT NULL,  
2888 - user_info varchar(512) NOT NULL,  
2889 - access_token varchar(255) NOT NULL,  
2890 - refresh_token varchar(32) NOT NULL,  
2891 - client_id varchar(255) NOT NULL,  
2892 - scopes varchar(255) NULL DEFAULT NULL,  
2893 - expires_time timestamp NOT NULL,  
2894 - creator varchar(64) NULL DEFAULT '',  
2895 - create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
2896 - updater varchar(64) NULL DEFAULT '',  
2897 - update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
2898 - deleted int2 NOT NULL DEFAULT 0,  
2899 - tenant_id int8 NOT NULL DEFAULT 0 2903 +CREATE TABLE system_oauth2_access_token (
  2904 + id int8 NOT NULL,
  2905 + user_id int8 NOT NULL,
  2906 + user_type int2 NOT NULL,
  2907 + user_info varchar(512) NOT NULL,
  2908 + access_token varchar(255) NOT NULL,
  2909 + refresh_token varchar(32) NOT NULL,
  2910 + client_id varchar(255) NOT NULL,
  2911 + scopes varchar(255) NULL DEFAULT NULL,
  2912 + expires_time timestamp NOT NULL,
  2913 + creator varchar(64) NULL DEFAULT '',
  2914 + create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  2915 + updater varchar(64) NULL DEFAULT '',
  2916 + update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  2917 + deleted int2 NOT NULL DEFAULT 0,
  2918 + tenant_id int8 NOT NULL DEFAULT 0
2900 ); 2919 );
2901 2920
2902 -ALTER TABLE system_oauth2_access_token  
2903 - ADD CONSTRAINT pk_system_oauth2_access_token PRIMARY KEY (id); 2921 +ALTER TABLE system_oauth2_access_token ADD CONSTRAINT pk_system_oauth2_access_token PRIMARY KEY (id);
2904 2922
2905 CREATE INDEX idx_system_oauth2_access_token_01 ON system_oauth2_access_token (access_token); 2923 CREATE INDEX idx_system_oauth2_access_token_01 ON system_oauth2_access_token (access_token);
2906 CREATE INDEX idx_system_oauth2_access_token_02 ON system_oauth2_access_token (refresh_token); 2924 CREATE INDEX idx_system_oauth2_access_token_02 ON system_oauth2_access_token (refresh_token);
@@ -2922,33 +2940,31 @@ COMMENT ON COLUMN system_oauth2_access_token.deleted IS &#39;是否删除&#39;; @@ -2922,33 +2940,31 @@ COMMENT ON COLUMN system_oauth2_access_token.deleted IS &#39;是否删除&#39;;
2922 COMMENT ON COLUMN system_oauth2_access_token.tenant_id IS '租户编号'; 2940 COMMENT ON COLUMN system_oauth2_access_token.tenant_id IS '租户编号';
2923 COMMENT ON TABLE system_oauth2_access_token IS 'OAuth2 访问令牌'; 2941 COMMENT ON TABLE system_oauth2_access_token IS 'OAuth2 访问令牌';
2924 2942
2925 -DROP SEQUENCE IF EXISTS system_oauth2_approve_seq;  
2926 -CREATE SEQUENCE system_oauth2_approve_seq 2943 +DROP SEQUENCE IF EXISTS system_oauth2_access_token_seq;
  2944 +CREATE SEQUENCE system_oauth2_access_token_seq
2927 START 1; 2945 START 1;
2928 2946
2929 -- ---------------------------- 2947 -- ----------------------------
2930 -- Table structure for system_oauth2_approve 2948 -- Table structure for system_oauth2_approve
2931 -- ---------------------------- 2949 -- ----------------------------
2932 DROP TABLE IF EXISTS system_oauth2_approve; 2950 DROP TABLE IF EXISTS system_oauth2_approve;
2933 -CREATE TABLE system_oauth2_approve  
2934 -(  
2935 - id int8 NOT NULL default nextval('system_oauth2_approve_seq'),  
2936 - user_id int8 NOT NULL,  
2937 - user_type int2 NOT NULL,  
2938 - client_id varchar(255) NOT NULL,  
2939 - scope varchar(255) NOT NULL DEFAULT '',  
2940 - approved bool NOT NULL DEFAULT '0',  
2941 - expires_time timestamp NOT NULL,  
2942 - creator varchar(64) NULL DEFAULT '',  
2943 - create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
2944 - updater varchar(64) NULL DEFAULT '',  
2945 - update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
2946 - deleted int2 NOT NULL DEFAULT 0,  
2947 - tenant_id int8 NOT NULL DEFAULT 0 2951 +CREATE TABLE system_oauth2_approve (
  2952 + id int8 NOT NULL,
  2953 + user_id int8 NOT NULL,
  2954 + user_type int2 NOT NULL,
  2955 + client_id varchar(255) NOT NULL,
  2956 + scope varchar(255) NOT NULL DEFAULT '',
  2957 + approved bool NOT NULL DEFAULT '0',
  2958 + expires_time timestamp NOT NULL,
  2959 + creator varchar(64) NULL DEFAULT '',
  2960 + create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  2961 + updater varchar(64) NULL DEFAULT '',
  2962 + update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  2963 + deleted int2 NOT NULL DEFAULT 0,
  2964 + tenant_id int8 NOT NULL DEFAULT 0
2948 ); 2965 );
2949 2966
2950 -ALTER TABLE system_oauth2_approve  
2951 - ADD CONSTRAINT pk_system_oauth2_approve PRIMARY KEY (id); 2967 +ALTER TABLE system_oauth2_approve ADD CONSTRAINT pk_system_oauth2_approve PRIMARY KEY (id);
2952 2968
2953 COMMENT ON COLUMN system_oauth2_approve.id IS '编号'; 2969 COMMENT ON COLUMN system_oauth2_approve.id IS '编号';
2954 COMMENT ON COLUMN system_oauth2_approve.user_id IS '用户编号'; 2970 COMMENT ON COLUMN system_oauth2_approve.user_id IS '用户编号';
@@ -2965,41 +2981,39 @@ COMMENT ON COLUMN system_oauth2_approve.deleted IS &#39;是否删除&#39;; @@ -2965,41 +2981,39 @@ COMMENT ON COLUMN system_oauth2_approve.deleted IS &#39;是否删除&#39;;
2965 COMMENT ON COLUMN system_oauth2_approve.tenant_id IS '租户编号'; 2981 COMMENT ON COLUMN system_oauth2_approve.tenant_id IS '租户编号';
2966 COMMENT ON TABLE system_oauth2_approve IS 'OAuth2 批准表'; 2982 COMMENT ON TABLE system_oauth2_approve IS 'OAuth2 批准表';
2967 2983
2968 -DROP SEQUENCE IF EXISTS system_oauth2_client_seq;  
2969 -CREATE SEQUENCE system_oauth2_client_seq 2984 +DROP SEQUENCE IF EXISTS system_oauth2_approve_seq;
  2985 +CREATE SEQUENCE system_oauth2_approve_seq
2970 START 1; 2986 START 1;
2971 2987
2972 -- ---------------------------- 2988 -- ----------------------------
2973 -- Table structure for system_oauth2_client 2989 -- Table structure for system_oauth2_client
2974 -- ---------------------------- 2990 -- ----------------------------
2975 DROP TABLE IF EXISTS system_oauth2_client; 2991 DROP TABLE IF EXISTS system_oauth2_client;
2976 -CREATE TABLE system_oauth2_client  
2977 -(  
2978 - id int8 NOT NULL default nextval('system_oauth2_client_seq'),  
2979 - client_id varchar(255) NOT NULL,  
2980 - secret varchar(255) NOT NULL,  
2981 - name varchar(255) NOT NULL,  
2982 - logo varchar(255) NOT NULL,  
2983 - description varchar(255) NULL DEFAULT NULL,  
2984 - status int2 NOT NULL,  
2985 - access_token_validity_seconds int4 NOT NULL,  
2986 - refresh_token_validity_seconds int4 NOT NULL,  
2987 - redirect_uris varchar(255) NOT NULL,  
2988 - authorized_grant_types varchar(255) NOT NULL,  
2989 - scopes varchar(255) NULL DEFAULT NULL,  
2990 - auto_approve_scopes varchar(255) NULL DEFAULT NULL,  
2991 - authorities varchar(255) NULL DEFAULT NULL,  
2992 - resource_ids varchar(255) NULL DEFAULT NULL,  
2993 - additional_information varchar(4096) NULL DEFAULT NULL,  
2994 - creator varchar(64) NULL DEFAULT '',  
2995 - create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
2996 - updater varchar(64) NULL DEFAULT '',  
2997 - update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
2998 - deleted int2 NOT NULL DEFAULT 0 2992 +CREATE TABLE system_oauth2_client (
  2993 + id int8 NOT NULL,
  2994 + client_id varchar(255) NOT NULL,
  2995 + secret varchar(255) NOT NULL,
  2996 + name varchar(255) NOT NULL,
  2997 + logo varchar(255) NOT NULL,
  2998 + description varchar(255) NULL DEFAULT NULL,
  2999 + status int2 NOT NULL,
  3000 + access_token_validity_seconds int4 NOT NULL,
  3001 + refresh_token_validity_seconds int4 NOT NULL,
  3002 + redirect_uris varchar(255) NOT NULL,
  3003 + authorized_grant_types varchar(255) NOT NULL,
  3004 + scopes varchar(255) NULL DEFAULT NULL,
  3005 + auto_approve_scopes varchar(255) NULL DEFAULT NULL,
  3006 + authorities varchar(255) NULL DEFAULT NULL,
  3007 + resource_ids varchar(255) NULL DEFAULT NULL,
  3008 + additional_information varchar(4096) NULL DEFAULT NULL,
  3009 + creator varchar(64) NULL DEFAULT '',
  3010 + create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  3011 + updater varchar(64) NULL DEFAULT '',
  3012 + update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  3013 + deleted int2 NOT NULL DEFAULT 0
2999 ); 3014 );
3000 3015
3001 -ALTER TABLE system_oauth2_client  
3002 - ADD CONSTRAINT pk_system_oauth2_client PRIMARY KEY (id); 3016 +ALTER TABLE system_oauth2_client ADD CONSTRAINT pk_system_oauth2_client PRIMARY KEY (id);
3003 3017
3004 COMMENT ON COLUMN system_oauth2_client.id IS '编号'; 3018 COMMENT ON COLUMN system_oauth2_client.id IS '编号';
3005 COMMENT ON COLUMN system_oauth2_client.client_id IS '客户端编号'; 3019 COMMENT ON COLUMN system_oauth2_client.client_id IS '客户端编号';
@@ -3029,42 +3043,40 @@ COMMENT ON TABLE system_oauth2_client IS &#39;OAuth2 客户端表&#39;; @@ -3029,42 +3043,40 @@ COMMENT ON TABLE system_oauth2_client IS &#39;OAuth2 客户端表&#39;;
3029 -- ---------------------------- 3043 -- ----------------------------
3030 -- @formatter:off 3044 -- @formatter:off
3031 BEGIN; 3045 BEGIN;
3032 -INSERT INTO system_oauth2_client (id, client_id, secret, name, logo, description, status, access_token_validity_seconds, refresh_token_validity_seconds, redirect_uris, authorized_grant_types, scopes, auto_approve_scopes, authorities, resource_ids, additional_information, creator, create_time, updater, update_time, deleted) VALUES (1, 'default', 'admin123', '芋道源码', 'http://test.yudao.iocoder.cn/20250502/sort2_1746189740718.png', '我是描述', 0, 1800, 2592000, '["https://www.iocoder.cn","https://doc.iocoder.cn"]', '["password","authorization_code","implicit","refresh_token"]', '["user.read","user.write"]', '[]', '["user.read","user.write"]', '[]', '{}', '1', '2022-05-11 21:47:12', '1', '2025-05-02 20:42:22', '0'); 3046 +INSERT INTO system_oauth2_client (id, client_id, secret, name, logo, description, status, access_token_validity_seconds, refresh_token_validity_seconds, redirect_uris, authorized_grant_types, scopes, auto_approve_scopes, authorities, resource_ids, additional_information, creator, create_time, updater, update_time, deleted) VALUES (1, 'default', 'admin123', '芋道源码', 'http://test.yudao.iocoder.cn/20250502/sort2_1746189740718.png', '我是描述', 0, 1800, 2592000, '["https://www.iocoder.cn","https://doc.iocoder.cn"]', '["password","authorization_code","implicit","refresh_token","client_credentials"]', '["user.read","user.write"]', '[]', '["user.read","user.write"]', '[]', '{}', '1', '2022-05-11 21:47:12', '1', '2025-08-21 10:04:50', '0');
3033 INSERT INTO system_oauth2_client (id, client_id, secret, name, logo, description, status, access_token_validity_seconds, refresh_token_validity_seconds, redirect_uris, authorized_grant_types, scopes, auto_approve_scopes, authorities, resource_ids, additional_information, creator, create_time, updater, update_time, deleted) VALUES (40, 'test', 'test2', 'biubiu', 'http://test.yudao.iocoder.cn/xx/20250502/ed07110a37464b5299f8bd7c67ad65c7_1746187077009.jpg', '啦啦啦啦', 0, 1800, 43200, '["https://www.iocoder.cn"]', '["password","authorization_code","implicit"]', '["user_info","projects"]', '["user_info"]', '[]', '[]', '{}', '1', '2022-05-12 00:28:20', '1', '2025-05-02 19:58:08', '0'); 3047 INSERT INTO system_oauth2_client (id, client_id, secret, name, logo, description, status, access_token_validity_seconds, refresh_token_validity_seconds, redirect_uris, authorized_grant_types, scopes, auto_approve_scopes, authorities, resource_ids, additional_information, creator, create_time, updater, update_time, deleted) VALUES (40, 'test', 'test2', 'biubiu', 'http://test.yudao.iocoder.cn/xx/20250502/ed07110a37464b5299f8bd7c67ad65c7_1746187077009.jpg', '啦啦啦啦', 0, 1800, 43200, '["https://www.iocoder.cn"]', '["password","authorization_code","implicit"]', '["user_info","projects"]', '["user_info"]', '[]', '[]', '{}', '1', '2022-05-12 00:28:20', '1', '2025-05-02 19:58:08', '0');
3034 INSERT INTO system_oauth2_client (id, client_id, secret, name, logo, description, status, access_token_validity_seconds, refresh_token_validity_seconds, redirect_uris, authorized_grant_types, scopes, auto_approve_scopes, authorities, resource_ids, additional_information, creator, create_time, updater, update_time, deleted) VALUES (41, 'yudao-sso-demo-by-code', 'test', '基于授权码模式,如何实现 SSO 单点登录?', 'http://test.yudao.iocoder.cn/it/20250502/sign_1746181948685.png', NULL, 0, 1800, 43200, '["http://127.0.0.1:18080"]', '["authorization_code","refresh_token"]', '["user.read","user.write"]', '[]', '[]', '[]', NULL, '1', '2022-09-29 13:28:31', '1', '2025-05-02 18:32:30', '0'); 3048 INSERT INTO system_oauth2_client (id, client_id, secret, name, logo, description, status, access_token_validity_seconds, refresh_token_validity_seconds, redirect_uris, authorized_grant_types, scopes, auto_approve_scopes, authorities, resource_ids, additional_information, creator, create_time, updater, update_time, deleted) VALUES (41, 'yudao-sso-demo-by-code', 'test', '基于授权码模式,如何实现 SSO 单点登录?', 'http://test.yudao.iocoder.cn/it/20250502/sign_1746181948685.png', NULL, 0, 1800, 43200, '["http://127.0.0.1:18080"]', '["authorization_code","refresh_token"]', '["user.read","user.write"]', '[]', '[]', '[]', NULL, '1', '2022-09-29 13:28:31', '1', '2025-05-02 18:32:30', '0');
3035 -INSERT INTO system_oauth2_client (id, client_id, secret, name, logo, description, status, access_token_validity_seconds, refresh_token_validity_seconds, redirect_uris, authorized_grant_types, scopes, auto_approve_scopes, authorities, resource_ids, additional_information, creator, create_time, updater, update_time, deleted) VALUES (42, 'yudao-sso-demo-by-password', 'test', '基于密码模式,如何实现 SSO 单点登录?', 'http://test.yudao.iocoder.cn/604bdc695e13b3b22745be704d1f2aa8ee05c5f26f9fead6d1ca49005afbc857.jpeg', NULL, 0, 1800, 43200, '["http://127.0.0.1:18080"]', '["password","refresh_token"]', '["user.read","user.write"]', '[]', '[]', '[]', NULL, '1', '2022-10-04 17:40:16', '1', '2025-05-04 16:00:46', '0'); 3049 +INSERT INTO system_oauth2_client (id, client_id, secret, name, logo, description, status, access_token_validity_seconds, refresh_token_validity_seconds, redirect_uris, authorized_grant_types, scopes, auto_approve_scopes, authorities, resource_ids, additional_information, creator, create_time, updater, update_time, deleted) VALUES (42, 'yudao-sso-demo-by-password', 'test', '基于密码模式,如何实现 SSO 单点登录?', 'http://test.yudao.iocoder.cn/20251025/images (3)_1761360515810.jpeg', NULL, 0, 1800, 43200, '["http://127.0.0.1:18080"]', '["password","refresh_token"]', '["user.read","user.write"]', '[]', '[]', '[]', NULL, '1', '2022-10-04 17:40:16', '1', '2025-10-25 10:49:40', '0');
3036 COMMIT; 3050 COMMIT;
3037 -- @formatter:on 3051 -- @formatter:on
3038 3052
3039 -DROP SEQUENCE IF EXISTS system_oauth2_code_seq;  
3040 -CREATE SEQUENCE system_oauth2_code_seq  
3041 - START 1; 3053 +DROP SEQUENCE IF EXISTS system_oauth2_client_seq;
  3054 +CREATE SEQUENCE system_oauth2_client_seq
  3055 + START 43;
3042 3056
3043 -- ---------------------------- 3057 -- ----------------------------
3044 -- Table structure for system_oauth2_code 3058 -- Table structure for system_oauth2_code
3045 -- ---------------------------- 3059 -- ----------------------------
3046 DROP TABLE IF EXISTS system_oauth2_code; 3060 DROP TABLE IF EXISTS system_oauth2_code;
3047 -CREATE TABLE system_oauth2_code  
3048 -(  
3049 - id int8 NOT NULL default nextval('system_oauth2_code_seq'),  
3050 - user_id int8 NOT NULL,  
3051 - user_type int2 NOT NULL,  
3052 - code varchar(32) NOT NULL,  
3053 - client_id varchar(255) NOT NULL,  
3054 - scopes varchar(255) NULL DEFAULT '',  
3055 - expires_time timestamp NOT NULL,  
3056 - redirect_uri varchar(255) NULL DEFAULT NULL,  
3057 - state varchar(255) NOT NULL DEFAULT '',  
3058 - creator varchar(64) NULL DEFAULT '',  
3059 - create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
3060 - updater varchar(64) NULL DEFAULT '',  
3061 - update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
3062 - deleted int2 NOT NULL DEFAULT 0,  
3063 - tenant_id int8 NOT NULL DEFAULT 0 3061 +CREATE TABLE system_oauth2_code (
  3062 + id int8 NOT NULL,
  3063 + user_id int8 NOT NULL,
  3064 + user_type int2 NOT NULL,
  3065 + code varchar(32) NOT NULL,
  3066 + client_id varchar(255) NOT NULL,
  3067 + scopes varchar(255) NULL DEFAULT '',
  3068 + expires_time timestamp NOT NULL,
  3069 + redirect_uri varchar(255) NULL DEFAULT NULL,
  3070 + state varchar(255) NOT NULL DEFAULT '',
  3071 + creator varchar(64) NULL DEFAULT '',
  3072 + create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  3073 + updater varchar(64) NULL DEFAULT '',
  3074 + update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  3075 + deleted int2 NOT NULL DEFAULT 0,
  3076 + tenant_id int8 NOT NULL DEFAULT 0
3064 ); 3077 );
3065 3078
3066 -ALTER TABLE system_oauth2_code  
3067 - ADD CONSTRAINT pk_system_oauth2_code PRIMARY KEY (id); 3079 +ALTER TABLE system_oauth2_code ADD CONSTRAINT pk_system_oauth2_code PRIMARY KEY (id);
3068 3080
3069 COMMENT ON COLUMN system_oauth2_code.id IS '编号'; 3081 COMMENT ON COLUMN system_oauth2_code.id IS '编号';
3070 COMMENT ON COLUMN system_oauth2_code.user_id IS '用户编号'; 3082 COMMENT ON COLUMN system_oauth2_code.user_id IS '用户编号';
@@ -3083,33 +3095,31 @@ COMMENT ON COLUMN system_oauth2_code.deleted IS &#39;是否删除&#39;; @@ -3083,33 +3095,31 @@ COMMENT ON COLUMN system_oauth2_code.deleted IS &#39;是否删除&#39;;
3083 COMMENT ON COLUMN system_oauth2_code.tenant_id IS '租户编号'; 3095 COMMENT ON COLUMN system_oauth2_code.tenant_id IS '租户编号';
3084 COMMENT ON TABLE system_oauth2_code IS 'OAuth2 授权码表'; 3096 COMMENT ON TABLE system_oauth2_code IS 'OAuth2 授权码表';
3085 3097
3086 -DROP SEQUENCE IF EXISTS system_oauth2_refresh_token_seq;  
3087 -CREATE SEQUENCE system_oauth2_refresh_token_seq 3098 +DROP SEQUENCE IF EXISTS system_oauth2_code_seq;
  3099 +CREATE SEQUENCE system_oauth2_code_seq
3088 START 1; 3100 START 1;
3089 3101
3090 -- ---------------------------- 3102 -- ----------------------------
3091 -- Table structure for system_oauth2_refresh_token 3103 -- Table structure for system_oauth2_refresh_token
3092 -- ---------------------------- 3104 -- ----------------------------
3093 DROP TABLE IF EXISTS system_oauth2_refresh_token; 3105 DROP TABLE IF EXISTS system_oauth2_refresh_token;
3094 -CREATE TABLE system_oauth2_refresh_token  
3095 -(  
3096 - id int8 NOT NULL default nextval('system_oauth2_refresh_token_seq'),  
3097 - user_id int8 NOT NULL,  
3098 - refresh_token varchar(32) NOT NULL,  
3099 - user_type int2 NOT NULL,  
3100 - client_id varchar(255) NOT NULL,  
3101 - scopes varchar(255) NULL DEFAULT NULL,  
3102 - expires_time timestamp NOT NULL,  
3103 - creator varchar(64) NULL DEFAULT '',  
3104 - create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
3105 - updater varchar(64) NULL DEFAULT '',  
3106 - update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
3107 - deleted int2 NOT NULL DEFAULT 0,  
3108 - tenant_id int8 NOT NULL DEFAULT 0 3106 +CREATE TABLE system_oauth2_refresh_token (
  3107 + id int8 NOT NULL,
  3108 + user_id int8 NOT NULL,
  3109 + refresh_token varchar(32) NOT NULL,
  3110 + user_type int2 NOT NULL,
  3111 + client_id varchar(255) NOT NULL,
  3112 + scopes varchar(255) NULL DEFAULT NULL,
  3113 + expires_time timestamp NOT NULL,
  3114 + creator varchar(64) NULL DEFAULT '',
  3115 + create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  3116 + updater varchar(64) NULL DEFAULT '',
  3117 + update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  3118 + deleted int2 NOT NULL DEFAULT 0,
  3119 + tenant_id int8 NOT NULL DEFAULT 0
3109 ); 3120 );
3110 3121
3111 -ALTER TABLE system_oauth2_refresh_token  
3112 - ADD CONSTRAINT pk_system_oauth2_refresh_token PRIMARY KEY (id); 3122 +ALTER TABLE system_oauth2_refresh_token ADD CONSTRAINT pk_system_oauth2_refresh_token PRIMARY KEY (id);
3113 3123
3114 COMMENT ON COLUMN system_oauth2_refresh_token.id IS '编号'; 3124 COMMENT ON COLUMN system_oauth2_refresh_token.id IS '编号';
3115 COMMENT ON COLUMN system_oauth2_refresh_token.user_id IS '用户编号'; 3125 COMMENT ON COLUMN system_oauth2_refresh_token.user_id IS '用户编号';
@@ -3126,40 +3136,38 @@ COMMENT ON COLUMN system_oauth2_refresh_token.deleted IS &#39;是否删除&#39;; @@ -3126,40 +3136,38 @@ COMMENT ON COLUMN system_oauth2_refresh_token.deleted IS &#39;是否删除&#39;;
3126 COMMENT ON COLUMN system_oauth2_refresh_token.tenant_id IS '租户编号'; 3136 COMMENT ON COLUMN system_oauth2_refresh_token.tenant_id IS '租户编号';
3127 COMMENT ON TABLE system_oauth2_refresh_token IS 'OAuth2 刷新令牌'; 3137 COMMENT ON TABLE system_oauth2_refresh_token IS 'OAuth2 刷新令牌';
3128 3138
3129 -DROP SEQUENCE IF EXISTS system_operate_log_seq;  
3130 -CREATE SEQUENCE system_operate_log_seq 3139 +DROP SEQUENCE IF EXISTS system_oauth2_refresh_token_seq;
  3140 +CREATE SEQUENCE system_oauth2_refresh_token_seq
3131 START 1; 3141 START 1;
3132 3142
3133 -- ---------------------------- 3143 -- ----------------------------
3134 -- Table structure for system_operate_log 3144 -- Table structure for system_operate_log
3135 -- ---------------------------- 3145 -- ----------------------------
3136 DROP TABLE IF EXISTS system_operate_log; 3146 DROP TABLE IF EXISTS system_operate_log;
3137 -CREATE TABLE system_operate_log  
3138 -(  
3139 - id int8 NOT NULL default nextval('system_operate_log_seq'),  
3140 - trace_id varchar(64) NOT NULL DEFAULT '',  
3141 - user_id int8 NOT NULL,  
3142 - user_type int2 NOT NULL DEFAULT 0,  
3143 - type varchar(50) NOT NULL,  
3144 - sub_type varchar(50) NOT NULL,  
3145 - biz_id int8 NOT NULL,  
3146 - action varchar(2000) NOT NULL DEFAULT '',  
3147 - success bool NOT NULL DEFAULT '1',  
3148 - extra varchar(2000) NOT NULL DEFAULT '',  
3149 - request_method varchar(16) NULL DEFAULT '',  
3150 - request_url varchar(255) NULL DEFAULT '',  
3151 - user_ip varchar(50) NULL DEFAULT NULL,  
3152 - user_agent varchar(512) NULL DEFAULT NULL,  
3153 - creator varchar(64) NULL DEFAULT '',  
3154 - create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
3155 - updater varchar(64) NULL DEFAULT '',  
3156 - update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
3157 - deleted int2 NOT NULL DEFAULT 0,  
3158 - tenant_id int8 NOT NULL DEFAULT 0 3147 +CREATE TABLE system_operate_log (
  3148 + id int8 NOT NULL,
  3149 + trace_id varchar(64) NOT NULL DEFAULT '',
  3150 + user_id int8 NOT NULL,
  3151 + user_type int2 NOT NULL DEFAULT 0,
  3152 + type varchar(50) NOT NULL,
  3153 + sub_type varchar(50) NOT NULL,
  3154 + biz_id int8 NOT NULL,
  3155 + action varchar(2000) NOT NULL DEFAULT '',
  3156 + success bool NOT NULL DEFAULT '1',
  3157 + extra varchar(2000) NOT NULL DEFAULT '',
  3158 + request_method varchar(16) NULL DEFAULT '',
  3159 + request_url varchar(255) NULL DEFAULT '',
  3160 + user_ip varchar(50) NULL DEFAULT NULL,
  3161 + user_agent varchar(512) NULL DEFAULT NULL,
  3162 + creator varchar(64) NULL DEFAULT '',
  3163 + create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  3164 + updater varchar(64) NULL DEFAULT '',
  3165 + update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  3166 + deleted int2 NOT NULL DEFAULT 0,
  3167 + tenant_id int8 NOT NULL DEFAULT 0
3159 ); 3168 );
3160 3169
3161 -ALTER TABLE system_operate_log  
3162 - ADD CONSTRAINT pk_system_operate_log PRIMARY KEY (id); 3170 +ALTER TABLE system_operate_log ADD CONSTRAINT pk_system_operate_log PRIMARY KEY (id);
3163 3171
3164 COMMENT ON COLUMN system_operate_log.id IS '日志主键'; 3172 COMMENT ON COLUMN system_operate_log.id IS '日志主键';
3165 COMMENT ON COLUMN system_operate_log.trace_id IS '链路追踪编号'; 3173 COMMENT ON COLUMN system_operate_log.trace_id IS '链路追踪编号';
@@ -3183,32 +3191,30 @@ COMMENT ON COLUMN system_operate_log.deleted IS &#39;是否删除&#39;; @@ -3183,32 +3191,30 @@ COMMENT ON COLUMN system_operate_log.deleted IS &#39;是否删除&#39;;
3183 COMMENT ON COLUMN system_operate_log.tenant_id IS '租户编号'; 3191 COMMENT ON COLUMN system_operate_log.tenant_id IS '租户编号';
3184 COMMENT ON TABLE system_operate_log IS '操作日志记录 V2 版本'; 3192 COMMENT ON TABLE system_operate_log IS '操作日志记录 V2 版本';
3185 3193
3186 -DROP SEQUENCE IF EXISTS system_post_seq;  
3187 -CREATE SEQUENCE system_post_seq 3194 +DROP SEQUENCE IF EXISTS system_operate_log_seq;
  3195 +CREATE SEQUENCE system_operate_log_seq
3188 START 1; 3196 START 1;
3189 3197
3190 -- ---------------------------- 3198 -- ----------------------------
3191 -- Table structure for system_post 3199 -- Table structure for system_post
3192 -- ---------------------------- 3200 -- ----------------------------
3193 DROP TABLE IF EXISTS system_post; 3201 DROP TABLE IF EXISTS system_post;
3194 -CREATE TABLE system_post  
3195 -(  
3196 - id int8 NOT NULL default nextval('system_post_seq'),  
3197 - code varchar(64) NOT NULL,  
3198 - name varchar(50) NOT NULL,  
3199 - sort int4 NOT NULL,  
3200 - status int2 NOT NULL,  
3201 - remark varchar(500) NULL DEFAULT NULL,  
3202 - creator varchar(64) NULL DEFAULT '',  
3203 - create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
3204 - updater varchar(64) NULL DEFAULT '',  
3205 - update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
3206 - deleted int2 NOT NULL DEFAULT 0,  
3207 - tenant_id int8 NOT NULL DEFAULT 0 3202 +CREATE TABLE system_post (
  3203 + id int8 NOT NULL,
  3204 + code varchar(64) NOT NULL,
  3205 + name varchar(50) NOT NULL,
  3206 + sort int4 NOT NULL,
  3207 + status int2 NOT NULL,
  3208 + remark varchar(500) NULL DEFAULT NULL,
  3209 + creator varchar(64) NULL DEFAULT '',
  3210 + create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  3211 + updater varchar(64) NULL DEFAULT '',
  3212 + update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  3213 + deleted int2 NOT NULL DEFAULT 0,
  3214 + tenant_id int8 NOT NULL DEFAULT 0
3208 ); 3215 );
3209 3216
3210 -ALTER TABLE system_post  
3211 - ADD CONSTRAINT pk_system_post PRIMARY KEY (id); 3217 +ALTER TABLE system_post ADD CONSTRAINT pk_system_post PRIMARY KEY (id);
3212 3218
3213 COMMENT ON COLUMN system_post.id IS '岗位ID'; 3219 COMMENT ON COLUMN system_post.id IS '岗位ID';
3214 COMMENT ON COLUMN system_post.code IS '岗位编码'; 3220 COMMENT ON COLUMN system_post.code IS '岗位编码';
@@ -3229,49 +3235,47 @@ COMMENT ON TABLE system_post IS &#39;岗位信息表&#39;; @@ -3229,49 +3235,47 @@ COMMENT ON TABLE system_post IS &#39;岗位信息表&#39;;
3229 -- ---------------------------- 3235 -- ----------------------------
3230 -- @formatter:off 3236 -- @formatter:off
3231 BEGIN; 3237 BEGIN;
3232 -INSERT INTO system_post (id, code, name, sort, status, remark, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1, 'ceo', '董事长', 1, 0, '', 'admin', '2021-01-06 17:03:48', '1', '2023-02-11 15:19:04', '0', 1);  
3233 INSERT INTO system_post (id, code, name, sort, status, remark, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2, 'se', '项目经理', 2, 0, '', 'admin', '2021-01-05 17:03:48', '1', '2023-11-15 09:18:20', '0', 1); 3238 INSERT INTO system_post (id, code, name, sort, status, remark, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2, 'se', '项目经理', 2, 0, '', 'admin', '2021-01-05 17:03:48', '1', '2023-11-15 09:18:20', '0', 1);
3234 INSERT INTO system_post (id, code, name, sort, status, remark, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (4, 'user', '普通员工', 4, 0, '111222', 'admin', '2021-01-05 17:03:48', '1', '2025-03-24 21:32:40', '0', 1); 3239 INSERT INTO system_post (id, code, name, sort, status, remark, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (4, 'user', '普通员工', 4, 0, '111222', 'admin', '2021-01-05 17:03:48', '1', '2025-03-24 21:32:40', '0', 1);
3235 INSERT INTO system_post (id, code, name, sort, status, remark, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (5, 'HR', '人力资源', 5, 0, '`', '1', '2024-03-24 20:45:40', '1', '2025-03-29 19:08:10', '0', 1); 3240 INSERT INTO system_post (id, code, name, sort, status, remark, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (5, 'HR', '人力资源', 5, 0, '`', '1', '2024-03-24 20:45:40', '1', '2025-03-29 19:08:10', '0', 1);
  3241 +INSERT INTO system_post (id, code, name, sort, status, remark, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (7, 'test', '测试', 10, 0, NULL, '1', '2025-09-02 08:45:57', '1', '2025-09-02 08:45:57', '0', 1);
3236 COMMIT; 3242 COMMIT;
3237 -- @formatter:on 3243 -- @formatter:on
3238 3244
3239 -DROP SEQUENCE IF EXISTS system_role_seq;  
3240 -CREATE SEQUENCE system_role_seq  
3241 - START 1; 3245 +DROP SEQUENCE IF EXISTS system_post_seq;
  3246 +CREATE SEQUENCE system_post_seq
  3247 + START 8;
3242 3248
3243 -- ---------------------------- 3249 -- ----------------------------
3244 -- Table structure for system_role 3250 -- Table structure for system_role
3245 -- ---------------------------- 3251 -- ----------------------------
3246 DROP TABLE IF EXISTS system_role; 3252 DROP TABLE IF EXISTS system_role;
3247 -CREATE TABLE system_role  
3248 -(  
3249 - id int8 NOT NULL default nextval('system_role_seq'),  
3250 - name varchar(30) NOT NULL,  
3251 - code varchar(100) NOT NULL,  
3252 - sort int4 NOT NULL,  
3253 - data_scope int2 NOT NULL DEFAULT 1,  
3254 - data_scope_dept_ids varchar(500) NOT NULL DEFAULT '',  
3255 - status int2 NOT NULL,  
3256 - type int2 NOT NULL,  
3257 - remark varchar(500) NULL DEFAULT NULL,  
3258 - creator varchar(64) NULL DEFAULT '',  
3259 - create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
3260 - updater varchar(64) NULL DEFAULT '',  
3261 - update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
3262 - deleted int2 NOT NULL DEFAULT 0,  
3263 - tenant_id int8 NOT NULL DEFAULT 0 3253 +CREATE TABLE system_role (
  3254 + id int8 NOT NULL,
  3255 + name varchar(30) NOT NULL,
  3256 + code varchar(100) NOT NULL,
  3257 + sort int4 NOT NULL,
  3258 + data_scope int2 NOT NULL DEFAULT 1,
  3259 + data_scope_dept_ids varchar(500) NOT NULL DEFAULT '',
  3260 + status int2 NOT NULL,
  3261 + type int2 NOT NULL,
  3262 + remark varchar(500) NULL DEFAULT NULL,
  3263 + creator varchar(64) NULL DEFAULT '',
  3264 + create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  3265 + updater varchar(64) NULL DEFAULT '',
  3266 + update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  3267 + deleted int2 NOT NULL DEFAULT 0,
  3268 + tenant_id int8 NOT NULL DEFAULT 0
3264 ); 3269 );
3265 3270
3266 -ALTER TABLE system_role  
3267 - ADD CONSTRAINT pk_system_role PRIMARY KEY (id); 3271 +ALTER TABLE system_role ADD CONSTRAINT pk_system_role PRIMARY KEY (id);
3268 3272
3269 COMMENT ON COLUMN system_role.id IS '角色ID'; 3273 COMMENT ON COLUMN system_role.id IS '角色ID';
3270 COMMENT ON COLUMN system_role.name IS '角色名称'; 3274 COMMENT ON COLUMN system_role.name IS '角色名称';
3271 COMMENT ON COLUMN system_role.code IS '角色权限字符串'; 3275 COMMENT ON COLUMN system_role.code IS '角色权限字符串';
3272 COMMENT ON COLUMN system_role.sort IS '显示顺序'; 3276 COMMENT ON COLUMN system_role.sort IS '显示顺序';
3273 COMMENT ON COLUMN system_role.data_scope IS '数据范围(1:全部数据权限 2:自定数据权限 3:本部门数据权限 4:本部门及以下数据权限)'; 3277 COMMENT ON COLUMN system_role.data_scope IS '数据范围(1:全部数据权限 2:自定数据权限 3:本部门数据权限 4:本部门及以下数据权限)';
3274 -COMMENT ON COLUMN system_role.data_scope_dept_ids IS '数据范围 ( 指定部门数组)'; 3278 +COMMENT ON COLUMN system_role.data_scope_dept_ids IS '数据范围 ( 指定部门数组 ) ';
3275 COMMENT ON COLUMN system_role.status IS '角色状态(0正常 1停用)'; 3279 COMMENT ON COLUMN system_role.status IS '角色状态(0正常 1停用)';
3276 COMMENT ON COLUMN system_role.type IS '角色类型'; 3280 COMMENT ON COLUMN system_role.type IS '角色类型';
3277 COMMENT ON COLUMN system_role.remark IS '备注'; 3281 COMMENT ON COLUMN system_role.remark IS '备注';
@@ -3291,37 +3295,33 @@ BEGIN; @@ -3291,37 +3295,33 @@ BEGIN;
3291 INSERT INTO system_role (id, name, code, sort, data_scope, data_scope_dept_ids, status, type, remark, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1, '超级管理员', 'super_admin', 1, 1, '', 0, 1, '超级管理员', 'admin', '2021-01-05 17:03:48', '', '2022-02-22 05:08:21', '0', 1); 3295 INSERT INTO system_role (id, name, code, sort, data_scope, data_scope_dept_ids, status, type, remark, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1, '超级管理员', 'super_admin', 1, 1, '', 0, 1, '超级管理员', 'admin', '2021-01-05 17:03:48', '', '2022-02-22 05:08:21', '0', 1);
3292 INSERT INTO system_role (id, name, code, sort, data_scope, data_scope_dept_ids, status, type, remark, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2, '普通角色', 'common', 2, 2, '', 0, 1, '普通角色', 'admin', '2021-01-05 17:03:48', '', '2022-02-22 05:08:20', '0', 1); 3296 INSERT INTO system_role (id, name, code, sort, data_scope, data_scope_dept_ids, status, type, remark, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2, '普通角色', 'common', 2, 2, '', 0, 1, '普通角色', 'admin', '2021-01-05 17:03:48', '', '2022-02-22 05:08:20', '0', 1);
3293 INSERT INTO system_role (id, name, code, sort, data_scope, data_scope_dept_ids, status, type, remark, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (3, 'CRM 管理员', 'crm_admin', 2, 1, '', 0, 1, 'CRM 专属角色', '1', '2024-02-24 10:51:13', '1', '2024-02-24 02:51:32', '0', 1); 3297 INSERT INTO system_role (id, name, code, sort, data_scope, data_scope_dept_ids, status, type, remark, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (3, 'CRM 管理员', 'crm_admin', 2, 1, '', 0, 1, 'CRM 专属角色', '1', '2024-02-24 10:51:13', '1', '2024-02-24 02:51:32', '0', 1);
3294 -INSERT INTO system_role (id, name, code, sort, data_scope, data_scope_dept_ids, status, type, remark, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (101, '测试账号', 'test', 0, 1, '[]', 0, 2, '123', '', '2021-01-06 13:49:35', '1', '2025-04-30 17:38:28', '0', 1);  
3295 INSERT INTO system_role (id, name, code, sort, data_scope, data_scope_dept_ids, status, type, remark, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (109, '租户管理员', 'tenant_admin', 0, 1, '', 0, 1, '系统自动生成', '1', '2022-02-22 00:56:14', '1', '2022-02-22 00:56:14', '0', 121); 3298 INSERT INTO system_role (id, name, code, sort, data_scope, data_scope_dept_ids, status, type, remark, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (109, '租户管理员', 'tenant_admin', 0, 1, '', 0, 1, '系统自动生成', '1', '2022-02-22 00:56:14', '1', '2022-02-22 00:56:14', '0', 121);
3296 INSERT INTO system_role (id, name, code, sort, data_scope, data_scope_dept_ids, status, type, remark, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (111, '租户管理员', 'tenant_admin', 0, 1, '', 0, 1, '系统自动生成', '1', '2022-03-07 21:37:58', '1', '2022-03-07 21:37:58', '0', 122); 3299 INSERT INTO system_role (id, name, code, sort, data_scope, data_scope_dept_ids, status, type, remark, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (111, '租户管理员', 'tenant_admin', 0, 1, '', 0, 1, '系统自动生成', '1', '2022-03-07 21:37:58', '1', '2022-03-07 21:37:58', '0', 122);
3297 -INSERT INTO system_role (id, name, code, sort, data_scope, data_scope_dept_ids, status, type, remark, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (155, '测试数据权限', 'test-dp', 3, 2, '[100,102,103,104,105,108]', 0, 2, '', '1', '2025-03-31 14:58:06', '1', '2025-04-17 23:07:44', '0', 1);  
3298 -INSERT INTO system_role (id, name, code, sort, data_scope, data_scope_dept_ids, status, type, remark, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (158, '2', '3', 4, 1, '', 0, 2, NULL, '1', '2025-04-17 20:08:08', '1', '2025-04-17 23:05:31', '0', 1); 3300 +INSERT INTO system_role (id, name, code, sort, data_scope, data_scope_dept_ids, status, type, remark, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (155, '测试数据权限', 'test-dp', 3, 2, '[112,100,102,103,104,105,107,108]', 0, 2, '', '1', '2025-03-31 14:58:06', '1', '2025-09-06 20:15:13', '0', 1);
3299 COMMIT; 3301 COMMIT;
3300 -- @formatter:on 3302 -- @formatter:on
3301 3303
3302 -DROP SEQUENCE IF EXISTS system_role_menu_seq;  
3303 -CREATE SEQUENCE system_role_menu_seq  
3304 - START 1; 3304 +DROP SEQUENCE IF EXISTS system_role_seq;
  3305 +CREATE SEQUENCE system_role_seq
  3306 + START 156;
3305 3307
3306 -- ---------------------------- 3308 -- ----------------------------
3307 -- Table structure for system_role_menu 3309 -- Table structure for system_role_menu
3308 -- ---------------------------- 3310 -- ----------------------------
3309 DROP TABLE IF EXISTS system_role_menu; 3311 DROP TABLE IF EXISTS system_role_menu;
3310 -CREATE TABLE system_role_menu  
3311 -(  
3312 - id int8 NOT NULL default nextval('system_role_menu_seq'),  
3313 - role_id int8 NOT NULL,  
3314 - menu_id int8 NOT NULL,  
3315 - creator varchar(64) NULL DEFAULT '',  
3316 - create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
3317 - updater varchar(64) NULL DEFAULT '',  
3318 - update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
3319 - deleted int2 NOT NULL DEFAULT 0,  
3320 - tenant_id int8 NOT NULL DEFAULT 0 3312 +CREATE TABLE system_role_menu (
  3313 + id int8 NOT NULL,
  3314 + role_id int8 NOT NULL,
  3315 + menu_id int8 NOT NULL,
  3316 + creator varchar(64) NULL DEFAULT '',
  3317 + create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  3318 + updater varchar(64) NULL DEFAULT '',
  3319 + update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  3320 + deleted int2 NOT NULL DEFAULT 0,
  3321 + tenant_id int8 NOT NULL DEFAULT 0
3321 ); 3322 );
3322 3323
3323 -ALTER TABLE system_role_menu  
3324 - ADD CONSTRAINT pk_system_role_menu PRIMARY KEY (id); 3324 +ALTER TABLE system_role_menu ADD CONSTRAINT pk_system_role_menu PRIMARY KEY (id);
3325 3325
3326 COMMENT ON COLUMN system_role_menu.id IS '自增编号'; 3326 COMMENT ON COLUMN system_role_menu.id IS '自增编号';
3327 COMMENT ON COLUMN system_role_menu.role_id IS '角色ID'; 3327 COMMENT ON COLUMN system_role_menu.role_id IS '角色ID';
@@ -3374,87 +3374,6 @@ INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, update @@ -3374,87 +3374,6 @@ INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, update
3374 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (707, 2, 113, '1', '2022-02-22 13:16:57', '1', '2022-02-22 13:16:57', '0', 1); 3374 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (707, 2, 113, '1', '2022-02-22 13:16:57', '1', '2022-02-22 13:16:57', '0', 1);
3375 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1296, 110, 1, '110', '2022-02-23 00:23:55', '110', '2022-02-23 00:23:55', '0', 121); 3375 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1296, 110, 1, '110', '2022-02-23 00:23:55', '110', '2022-02-23 00:23:55', '0', 121);
3376 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1578, 111, 1, '1', '2022-03-07 21:37:58', '1', '2022-03-07 21:37:58', '0', 122); 3376 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1578, 111, 1, '1', '2022-03-07 21:37:58', '1', '2022-03-07 21:37:58', '0', 122);
3377 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1604, 101, 1216, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', '0', 1);  
3378 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1605, 101, 1217, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', '0', 1);  
3379 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1606, 101, 1218, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', '0', 1);  
3380 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1607, 101, 1219, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', '0', 1);  
3381 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1608, 101, 1220, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', '0', 1);  
3382 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1609, 101, 1221, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', '0', 1);  
3383 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1610, 101, 5, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', '0', 1);  
3384 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1611, 101, 1222, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', '0', 1);  
3385 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1612, 101, 1118, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', '0', 1);  
3386 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1613, 101, 1119, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', '0', 1);  
3387 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1614, 101, 1120, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', '0', 1);  
3388 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1615, 101, 1185, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', '0', 1);  
3389 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1616, 101, 1186, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', '0', 1);  
3390 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1617, 101, 1187, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', '0', 1);  
3391 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1618, 101, 1188, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', '0', 1);  
3392 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1619, 101, 1189, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', '0', 1);  
3393 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1620, 101, 1190, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', '0', 1);  
3394 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1621, 101, 1191, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', '0', 1);  
3395 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1622, 101, 1192, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', '0', 1);  
3396 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1623, 101, 1193, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', '0', 1);  
3397 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1624, 101, 1194, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', '0', 1);  
3398 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1625, 101, 1195, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', '0', 1);  
3399 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1627, 101, 1197, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', '0', 1);  
3400 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1628, 101, 1198, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', '0', 1);  
3401 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1629, 101, 1199, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', '0', 1);  
3402 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1630, 101, 1200, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', '0', 1);  
3403 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1631, 101, 1201, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', '0', 1);  
3404 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1632, 101, 1202, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', '0', 1);  
3405 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1633, 101, 1207, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', '0', 1);  
3406 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1634, 101, 1208, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', '0', 1);  
3407 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1635, 101, 1209, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', '0', 1);  
3408 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1636, 101, 1210, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', '0', 1);  
3409 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1637, 101, 1211, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', '0', 1);  
3410 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1638, 101, 1212, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', '0', 1);  
3411 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1639, 101, 1213, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', '0', 1);  
3412 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1640, 101, 1215, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', '0', 1);  
3413 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1641, 101, 2, '1', '2022-04-01 22:21:24', '1', '2022-04-01 22:21:24', '0', 1);  
3414 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1642, 101, 1031, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', '0', 1);  
3415 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1643, 101, 1032, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', '0', 1);  
3416 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1644, 101, 1033, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', '0', 1);  
3417 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1645, 101, 1034, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', '0', 1);  
3418 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1646, 101, 1035, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', '0', 1);  
3419 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1647, 101, 1050, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', '0', 1);  
3420 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1648, 101, 1051, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', '0', 1);  
3421 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1649, 101, 1052, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', '0', 1);  
3422 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1650, 101, 1053, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', '0', 1);  
3423 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1651, 101, 1054, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', '0', 1);  
3424 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1652, 101, 1056, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', '0', 1);  
3425 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1653, 101, 1057, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', '0', 1);  
3426 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1654, 101, 1058, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', '0', 1);  
3427 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1655, 101, 1059, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', '0', 1);  
3428 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1656, 101, 1060, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', '0', 1);  
3429 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1657, 101, 1066, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', '0', 1);  
3430 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1658, 101, 1067, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', '0', 1);  
3431 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1659, 101, 1070, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', '0', 1);  
3432 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1664, 101, 1075, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', '0', 1);  
3433 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1666, 101, 1077, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', '0', 1);  
3434 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1667, 101, 1078, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', '0', 1);  
3435 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1668, 101, 1082, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', '0', 1);  
3436 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1669, 101, 1083, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', '0', 1);  
3437 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1670, 101, 1084, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', '0', 1);  
3438 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1671, 101, 1085, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', '0', 1);  
3439 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1672, 101, 1086, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', '0', 1);  
3440 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1673, 101, 1087, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', '0', 1);  
3441 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1674, 101, 1088, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', '0', 1);  
3442 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1675, 101, 1089, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', '0', 1);  
3443 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1679, 101, 1237, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', '0', 1);  
3444 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1680, 101, 1238, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', '0', 1);  
3445 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1681, 101, 1239, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', '0', 1);  
3446 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1682, 101, 1240, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', '0', 1);  
3447 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1683, 101, 1241, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', '0', 1);  
3448 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1684, 101, 1242, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', '0', 1);  
3449 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1685, 101, 1243, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', '0', 1);  
3450 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1687, 101, 106, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', '0', 1);  
3451 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1688, 101, 110, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', '0', 1);  
3452 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1689, 101, 111, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', '0', 1);  
3453 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1690, 101, 112, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', '0', 1);  
3454 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1691, 101, 113, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', '0', 1);  
3455 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1692, 101, 114, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', '0', 1);  
3456 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1693, 101, 115, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', '0', 1);  
3457 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1694, 101, 116, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', '0', 1);  
3458 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1729, 109, 100, '1', '2022-09-21 22:08:51', '1', '2022-09-21 22:08:51', '0', 121); 3377 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1729, 109, 100, '1', '2022-09-21 22:08:51', '1', '2022-09-21 22:08:51', '0', 121);
3459 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1730, 109, 101, '1', '2022-09-21 22:08:51', '1', '2022-09-21 22:08:51', '0', 121); 3378 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1730, 109, 101, '1', '2022-09-21 22:08:51', '1', '2022-09-21 22:08:51', '0', 121);
3460 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1731, 109, 1063, '1', '2022-09-21 22:08:51', '1', '2022-09-21 22:08:51', '0', 121); 3379 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1731, 109, 1063, '1', '2022-09-21 22:08:51', '1', '2022-09-21 22:08:51', '0', 121);
@@ -3734,119 +3653,6 @@ INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, update @@ -3734,119 +3653,6 @@ INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, update
3734 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2182, 2, 2016, '1', '2023-01-25 08:43:12', '1', '2023-01-25 08:43:12', '0', 1); 3653 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2182, 2, 2016, '1', '2023-01-25 08:43:12', '1', '2023-01-25 08:43:12', '0', 1);
3735 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2183, 2, 2017, '1', '2023-01-25 08:43:12', '1', '2023-01-25 08:43:12', '0', 1); 3654 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2183, 2, 2017, '1', '2023-01-25 08:43:12', '1', '2023-01-25 08:43:12', '0', 1);
3736 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2184, 2, 2018, '1', '2023-01-25 08:43:12', '1', '2023-01-25 08:43:12', '0', 1); 3655 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2184, 2, 2018, '1', '2023-01-25 08:43:12', '1', '2023-01-25 08:43:12', '0', 1);
3737 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2188, 101, 1024, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3738 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2189, 101, 1, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3739 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2190, 101, 1025, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3740 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2191, 101, 1026, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3741 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2192, 101, 1027, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3742 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2193, 101, 1028, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3743 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2194, 101, 1029, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3744 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2195, 101, 1030, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3745 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2196, 101, 1036, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3746 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2197, 101, 1037, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3747 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2198, 101, 1038, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3748 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2199, 101, 1039, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3749 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2200, 101, 1040, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3750 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2201, 101, 1042, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3751 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2202, 101, 1043, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3752 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2203, 101, 1045, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3753 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2204, 101, 1046, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3754 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2205, 101, 1048, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3755 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2206, 101, 2083, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3756 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2207, 101, 1063, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3757 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2208, 101, 1064, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3758 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2209, 101, 1065, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3759 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2210, 101, 1093, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3760 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2211, 101, 1094, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3761 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2212, 101, 1095, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3762 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2213, 101, 1096, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3763 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2214, 101, 1097, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3764 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2215, 101, 1098, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3765 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2216, 101, 1100, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3766 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2217, 101, 1101, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3767 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2218, 101, 1102, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3768 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2219, 101, 1103, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3769 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2220, 101, 1104, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3770 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2221, 101, 1105, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3771 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2222, 101, 1106, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3772 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2223, 101, 2130, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3773 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2224, 101, 1107, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3774 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2225, 101, 2131, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3775 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2226, 101, 1108, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3776 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2227, 101, 2132, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3777 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2228, 101, 1109, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3778 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2229, 101, 2133, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3779 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2230, 101, 2134, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3780 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2232, 101, 2135, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3781 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2234, 101, 2136, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3782 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2236, 101, 2137, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3783 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2238, 101, 2138, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3784 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2240, 101, 2139, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3785 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2242, 101, 2140, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3786 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2243, 101, 2141, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3787 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2244, 101, 2142, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3788 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2245, 101, 2143, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3789 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2246, 101, 2144, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3790 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2247, 101, 2145, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3791 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2248, 101, 2146, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3792 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2249, 101, 2147, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3793 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2250, 101, 100, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3794 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2251, 101, 2148, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3795 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2252, 101, 101, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3796 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2253, 101, 2149, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3797 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2254, 101, 102, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3798 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2255, 101, 2150, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3799 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2256, 101, 103, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3800 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2257, 101, 2151, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3801 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2258, 101, 104, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3802 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2259, 101, 2152, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3803 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2260, 101, 105, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3804 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2261, 101, 107, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3805 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2262, 101, 108, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3806 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2263, 101, 109, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3807 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2264, 101, 1138, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3808 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2265, 101, 1139, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3809 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2266, 101, 1140, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3810 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2267, 101, 1141, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3811 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2268, 101, 1142, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3812 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2269, 101, 1143, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3813 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2270, 101, 1224, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3814 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2271, 101, 1225, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3815 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2272, 101, 1226, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3816 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2273, 101, 1227, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3817 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2274, 101, 1228, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3818 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2275, 101, 1229, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3819 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2282, 101, 1261, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3820 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2283, 101, 1263, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3821 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2284, 101, 1264, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3822 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2285, 101, 1265, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3823 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2286, 101, 1266, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3824 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2287, 101, 1267, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3825 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2288, 101, 1001, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3826 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2289, 101, 1002, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3827 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2290, 101, 1003, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3828 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2291, 101, 1004, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3829 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2292, 101, 1005, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3830 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2293, 101, 1006, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3831 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2294, 101, 1007, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3832 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2295, 101, 1008, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3833 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2296, 101, 1009, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3834 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2297, 101, 1010, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3835 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2298, 101, 1011, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3836 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2299, 101, 1012, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3837 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2300, 101, 500, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3838 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2301, 101, 1013, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3839 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2302, 101, 501, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3840 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2303, 101, 1014, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3841 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2304, 101, 1015, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3842 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2305, 101, 1016, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3843 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2306, 101, 1017, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3844 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2307, 101, 1018, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3845 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2308, 101, 1019, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3846 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2309, 101, 1020, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3847 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2310, 101, 1021, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3848 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2311, 101, 1022, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3849 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2312, 101, 1023, '1', '2023-02-09 23:49:46', '1', '2023-02-09 23:49:46', '0', 1);  
3850 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2929, 109, 1224, '1', '2023-12-02 23:19:40', '1', '2023-12-02 23:19:40', '0', 121); 3656 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2929, 109, 1224, '1', '2023-12-02 23:19:40', '1', '2023-12-02 23:19:40', '0', 121);
3851 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2930, 109, 1225, '1', '2023-12-02 23:19:40', '1', '2023-12-02 23:19:40', '0', 121); 3657 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2930, 109, 1225, '1', '2023-12-02 23:19:40', '1', '2023-12-02 23:19:40', '0', 121);
3852 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2931, 109, 1226, '1', '2023-12-02 23:19:40', '1', '2023-12-02 23:19:40', '0', 121); 3658 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2931, 109, 1226, '1', '2023-12-02 23:19:40', '1', '2023-12-02 23:19:40', '0', 121);
@@ -4064,7 +3870,6 @@ INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, update @@ -4064,7 +3870,6 @@ INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, update
4064 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (4193, 109, 2730, '1', '2024-03-30 17:53:17', '1', '2024-03-30 17:53:17', '0', 121); 3870 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (4193, 109, 2730, '1', '2024-03-30 17:53:17', '1', '2024-03-30 17:53:17', '0', 121);
4065 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (4194, 109, 1195, '1', '2024-03-30 17:53:17', '1', '2024-03-30 17:53:17', '0', 121); 3871 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (4194, 109, 1195, '1', '2024-03-30 17:53:17', '1', '2024-03-30 17:53:17', '0', 121);
4066 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (4195, 109, 2731, '1', '2024-03-30 17:53:17', '1', '2024-03-30 17:53:17', '0', 121); 3872 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (4195, 109, 2731, '1', '2024-03-30 17:53:17', '1', '2024-03-30 17:53:17', '0', 121);
4067 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (4196, 109, 1196, '1', '2024-03-30 17:53:17', '1', '2024-03-30 17:53:17', '0', 121);  
4068 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (4197, 109, 2732, '1', '2024-03-30 17:53:17', '1', '2024-03-30 17:53:17', '0', 121); 3873 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (4197, 109, 2732, '1', '2024-03-30 17:53:17', '1', '2024-03-30 17:53:17', '0', 121);
4069 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (4198, 109, 1197, '1', '2024-03-30 17:53:17', '1', '2024-03-30 17:53:17', '0', 121); 3874 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (4198, 109, 1197, '1', '2024-03-30 17:53:17', '1', '2024-03-30 17:53:17', '0', 121);
4070 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (4199, 109, 2733, '1', '2024-03-30 17:53:17', '1', '2024-03-30 17:53:17', '0', 121); 3875 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (4199, 109, 2733, '1', '2024-03-30 17:53:17', '1', '2024-03-30 17:53:17', '0', 121);
@@ -4123,7 +3928,6 @@ INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, update @@ -4123,7 +3928,6 @@ INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, update
4123 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (4252, 111, 2730, '1', '2024-03-30 17:53:18', '1', '2024-03-30 17:53:18', '0', 122); 3928 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (4252, 111, 2730, '1', '2024-03-30 17:53:18', '1', '2024-03-30 17:53:18', '0', 122);
4124 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (4253, 111, 1195, '1', '2024-03-30 17:53:18', '1', '2024-03-30 17:53:18', '0', 122); 3929 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (4253, 111, 1195, '1', '2024-03-30 17:53:18', '1', '2024-03-30 17:53:18', '0', 122);
4125 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (4254, 111, 2731, '1', '2024-03-30 17:53:18', '1', '2024-03-30 17:53:18', '0', 122); 3930 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (4254, 111, 2731, '1', '2024-03-30 17:53:18', '1', '2024-03-30 17:53:18', '0', 122);
4126 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (4255, 111, 1196, '1', '2024-03-30 17:53:18', '1', '2024-03-30 17:53:18', '0', 122);  
4127 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (4256, 111, 2732, '1', '2024-03-30 17:53:18', '1', '2024-03-30 17:53:18', '0', 122); 3931 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (4256, 111, 2732, '1', '2024-03-30 17:53:18', '1', '2024-03-30 17:53:18', '0', 122);
4128 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (4257, 111, 1197, '1', '2024-03-30 17:53:18', '1', '2024-03-30 17:53:18', '0', 122); 3932 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (4257, 111, 1197, '1', '2024-03-30 17:53:18', '1', '2024-03-30 17:53:18', '0', 122);
4129 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (4258, 111, 2733, '1', '2024-03-30 17:53:18', '1', '2024-03-30 17:53:18', '0', 122); 3933 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (4258, 111, 2733, '1', '2024-03-30 17:53:18', '1', '2024-03-30 17:53:18', '0', 122);
@@ -4149,8 +3953,6 @@ INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, update @@ -4149,8 +3953,6 @@ INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, update
4149 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (4278, 111, 1220, '1', '2024-03-30 17:53:18', '1', '2024-03-30 17:53:18', '0', 122); 3953 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (4278, 111, 1220, '1', '2024-03-30 17:53:18', '1', '2024-03-30 17:53:18', '0', 122);
4150 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (4279, 111, 1221, '1', '2024-03-30 17:53:18', '1', '2024-03-30 17:53:18', '0', 122); 3954 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (4279, 111, 1221, '1', '2024-03-30 17:53:18', '1', '2024-03-30 17:53:18', '0', 122);
4151 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (4280, 111, 1222, '1', '2024-03-30 17:53:18', '1', '2024-03-30 17:53:18', '0', 122); 3955 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (4280, 111, 1222, '1', '2024-03-30 17:53:18', '1', '2024-03-30 17:53:18', '0', 122);
4152 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (5777, 101, 2739, '1', '2024-04-30 09:38:37', '1', '2024-04-30 09:38:37', '0', 1);  
4153 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (5778, 101, 2740, '1', '2024-04-30 09:38:37', '1', '2024-04-30 09:38:37', '0', 1);  
4154 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (5779, 2, 2739, '1', '2024-07-07 20:39:38', '1', '2024-07-07 20:39:38', '0', 1); 3956 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (5779, 2, 2739, '1', '2024-07-07 20:39:38', '1', '2024-07-07 20:39:38', '0', 1);
4155 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (5780, 2, 2740, '1', '2024-07-07 20:39:38', '1', '2024-07-07 20:39:38', '0', 1); 3957 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (5780, 2, 2740, '1', '2024-07-07 20:39:38', '1', '2024-07-07 20:39:38', '0', 1);
4156 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (5781, 2, 2758, '1', '2024-07-07 20:39:38', '1', '2024-07-07 20:39:38', '0', 1); 3958 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (5781, 2, 2758, '1', '2024-07-07 20:39:38', '1', '2024-07-07 20:39:38', '0', 1);
@@ -4158,9 +3960,6 @@ INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, update @@ -4158,9 +3960,6 @@ INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, update
4158 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (5783, 2, 2362, '1', '2024-07-07 20:39:38', '1', '2024-07-07 20:39:38', '0', 1); 3960 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (5783, 2, 2362, '1', '2024-07-07 20:39:38', '1', '2024-07-07 20:39:38', '0', 1);
4159 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (5784, 2, 2387, '1', '2024-07-07 20:39:38', '1', '2024-07-07 20:39:38', '0', 1); 3961 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (5784, 2, 2387, '1', '2024-07-07 20:39:38', '1', '2024-07-07 20:39:38', '0', 1);
4160 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (5785, 2, 2030, '1', '2024-07-07 20:39:38', '1', '2024-07-07 20:39:38', '0', 1); 3962 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (5785, 2, 2030, '1', '2024-07-07 20:39:38', '1', '2024-07-07 20:39:38', '0', 1);
4161 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (5786, 101, 2758, '1', '2024-07-07 20:39:55', '1', '2024-07-07 20:39:55', '0', 1);  
4162 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (5787, 101, 2759, '1', '2024-07-07 20:39:55', '1', '2024-07-07 20:39:55', '0', 1);  
4163 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (5788, 101, 2783, '1', '2024-07-07 20:39:55', '1', '2024-07-07 20:39:55', '0', 1);  
4164 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (5789, 109, 2739, '1', '2024-07-13 22:37:24', '1', '2024-07-13 22:37:24', '0', 121); 3963 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (5789, 109, 2739, '1', '2024-07-13 22:37:24', '1', '2024-07-13 22:37:24', '0', 121);
4165 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (5790, 109, 2740, '1', '2024-07-13 22:37:24', '1', '2024-07-13 22:37:24', '0', 121); 3964 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (5790, 109, 2740, '1', '2024-07-13 22:37:24', '1', '2024-07-13 22:37:24', '0', 121);
4166 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (5791, 111, 2739, '1', '2024-07-13 22:37:24', '1', '2024-07-13 22:37:24', '0', 122); 3965 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (5791, 111, 2739, '1', '2024-07-13 22:37:24', '1', '2024-07-13 22:37:24', '0', 122);
@@ -4181,7 +3980,6 @@ INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, update @@ -4181,7 +3980,6 @@ INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, update
4181 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6115, 155, 4043, '1', '2025-04-01 13:49:30', '1', '2025-04-01 13:49:30', '0', 1); 3980 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6115, 155, 4043, '1', '2025-04-01 13:49:30', '1', '2025-04-01 13:49:30', '0', 1);
4182 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6116, 155, 4044, '1', '2025-04-01 13:49:30', '1', '2025-04-01 13:49:30', '0', 1); 3981 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6116, 155, 4044, '1', '2025-04-01 13:49:30', '1', '2025-04-01 13:49:30', '0', 1);
4183 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6117, 155, 4045, '1', '2025-04-01 13:49:30', '1', '2025-04-01 13:49:30', '0', 1); 3982 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6117, 155, 4045, '1', '2025-04-01 13:49:30', '1', '2025-04-01 13:49:30', '0', 1);
4184 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6118, 155, 4046, '1', '2025-04-01 13:49:30', '1', '2025-04-01 13:49:30', '0', 1);  
4185 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6119, 155, 4001, '1', '2025-04-01 13:49:30', '1', '2025-04-01 13:49:30', '0', 1); 3983 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6119, 155, 4001, '1', '2025-04-01 13:49:30', '1', '2025-04-01 13:49:30', '0', 1);
4186 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6120, 155, 4002, '1', '2025-04-01 13:49:30', '1', '2025-04-01 13:49:30', '0', 1); 3984 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6120, 155, 4002, '1', '2025-04-01 13:49:30', '1', '2025-04-01 13:49:30', '0', 1);
4187 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6121, 155, 4003, '1', '2025-04-01 13:49:30', '1', '2025-04-01 13:49:30', '0', 1); 3985 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6121, 155, 4003, '1', '2025-04-01 13:49:30', '1', '2025-04-01 13:49:30', '0', 1);
@@ -4201,37 +3999,188 @@ INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, update @@ -4201,37 +3999,188 @@ INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, update
4201 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6135, 155, 4017, '1', '2025-04-01 13:49:30', '1', '2025-04-01 13:49:30', '0', 1); 3999 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6135, 155, 4017, '1', '2025-04-01 13:49:30', '1', '2025-04-01 13:49:30', '0', 1);
4202 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6136, 155, 4018, '1', '2025-04-01 13:49:30', '1', '2025-04-01 13:49:30', '0', 1); 4000 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6136, 155, 4018, '1', '2025-04-01 13:49:30', '1', '2025-04-01 13:49:30', '0', 1);
4203 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6137, 155, 4031, '1', '2025-04-01 13:49:30', '1', '2025-04-01 13:49:30', '0', 1); 4001 INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6137, 155, 4031, '1', '2025-04-01 13:49:30', '1', '2025-04-01 13:49:30', '0', 1);
4204 -INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6138, 101, 5010, '1', '2025-05-05 17:49:17', '1', '2025-05-05 17:49:17', '0', 1); 4002 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6139, 109, 1117, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 121);
  4003 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6140, 109, 1126, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 121);
  4004 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6141, 109, 1127, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 121);
  4005 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6142, 109, 1128, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 121);
  4006 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6143, 109, 1129, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 121);
  4007 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6144, 109, 1130, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 121);
  4008 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6145, 109, 1132, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 121);
  4009 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6146, 109, 1133, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 121);
  4010 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6147, 109, 1134, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 121);
  4011 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6148, 109, 1135, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 121);
  4012 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6149, 109, 1136, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 121);
  4013 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6150, 109, 1137, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 121);
  4014 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6151, 109, 2161, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 121);
  4015 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6152, 109, 1150, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 121);
  4016 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6153, 109, 1161, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 121);
  4017 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6154, 109, 1162, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 121);
  4018 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6155, 109, 1166, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 121);
  4019 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6156, 109, 1173, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 121);
  4020 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6157, 109, 1174, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 121);
  4021 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6158, 109, 1178, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 121);
  4022 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6159, 109, 2745, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 121);
  4023 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6160, 109, 2746, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 121);
  4024 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6161, 109, 2747, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 121);
  4025 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6162, 109, 2748, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 121);
  4026 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6163, 109, 2301, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 121);
  4027 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6164, 109, 2302, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 121);
  4028 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6165, 109, 5011, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 121);
  4029 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6166, 109, 5012, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 121);
  4030 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6167, 109, 2549, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 121);
  4031 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6168, 109, 2550, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 121);
  4032 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6169, 109, 2551, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 121);
  4033 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6170, 109, 2552, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 121);
  4034 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6171, 109, 2553, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 121);
  4035 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6172, 109, 2554, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 121);
  4036 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6173, 109, 2555, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 121);
  4037 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6174, 109, 2556, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 121);
  4038 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6175, 109, 2557, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 121);
  4039 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6176, 109, 2558, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 121);
  4040 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6177, 109, 2559, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 121);
  4041 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6178, 111, 1117, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 122);
  4042 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6179, 111, 1126, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 122);
  4043 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6180, 111, 1127, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 122);
  4044 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6181, 111, 1128, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 122);
  4045 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6182, 111, 1129, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 122);
  4046 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6183, 111, 1130, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 122);
  4047 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6184, 111, 1132, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 122);
  4048 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6185, 111, 1133, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 122);
  4049 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6186, 111, 1134, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 122);
  4050 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6187, 111, 1135, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 122);
  4051 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6188, 111, 1136, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 122);
  4052 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6189, 111, 1137, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 122);
  4053 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6190, 111, 2161, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 122);
  4054 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6191, 111, 1150, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 122);
  4055 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6192, 111, 1161, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 122);
  4056 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6193, 111, 1162, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 122);
  4057 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6194, 111, 1166, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 122);
  4058 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6195, 111, 1173, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 122);
  4059 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6196, 111, 1174, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 122);
  4060 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6197, 111, 1178, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 122);
  4061 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6198, 111, 2745, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 122);
  4062 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6199, 111, 2746, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 122);
  4063 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6200, 111, 2747, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 122);
  4064 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6201, 111, 2748, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 122);
  4065 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6202, 111, 2301, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 122);
  4066 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6203, 111, 2302, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 122);
  4067 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6204, 111, 5011, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 122);
  4068 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6205, 111, 5012, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 122);
  4069 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6206, 111, 2549, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 122);
  4070 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6207, 111, 2550, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 122);
  4071 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6208, 111, 2551, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 122);
  4072 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6209, 111, 2552, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 122);
  4073 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6210, 111, 2553, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 122);
  4074 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6211, 111, 2554, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 122);
  4075 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6212, 111, 2555, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 122);
  4076 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6213, 111, 2556, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 122);
  4077 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6214, 111, 2557, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 122);
  4078 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6215, 111, 2558, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 122);
  4079 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6216, 111, 2559, '1', '2025-09-06 20:52:12', '1', '2025-09-06 20:52:12', '0', 122);
  4080 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6217, 109, 2756, '1', '2025-09-06 20:52:25', '1', '2025-09-06 20:52:25', '0', 121);
  4081 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6218, 109, 2757, '1', '2025-09-06 20:52:25', '1', '2025-09-06 20:52:25', '0', 121);
  4082 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6219, 109, 2262, '1', '2025-09-06 20:52:25', '1', '2025-09-06 20:52:25', '0', 121);
  4083 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6220, 109, 2275, '1', '2025-09-06 20:52:25', '1', '2025-09-06 20:52:25', '0', 121);
  4084 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6221, 109, 2276, '1', '2025-09-06 20:52:25', '1', '2025-09-06 20:52:25', '0', 121);
  4085 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6222, 109, 2277, '1', '2025-09-06 20:52:25', '1', '2025-09-06 20:52:25', '0', 121);
  4086 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6223, 109, 2281, '1', '2025-09-06 20:52:25', '1', '2025-09-06 20:52:25', '0', 121);
  4087 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6224, 109, 2282, '1', '2025-09-06 20:52:25', '1', '2025-09-06 20:52:25', '0', 121);
  4088 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6225, 109, 2283, '1', '2025-09-06 20:52:25', '1', '2025-09-06 20:52:25', '0', 121);
  4089 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6226, 109, 2284, '1', '2025-09-06 20:52:25', '1', '2025-09-06 20:52:25', '0', 121);
  4090 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6227, 109, 2285, '1', '2025-09-06 20:52:25', '1', '2025-09-06 20:52:25', '0', 121);
  4091 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6228, 109, 2287, '1', '2025-09-06 20:52:25', '1', '2025-09-06 20:52:25', '0', 121);
  4092 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6229, 109, 2288, '1', '2025-09-06 20:52:25', '1', '2025-09-06 20:52:25', '0', 121);
  4093 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6230, 109, 2293, '1', '2025-09-06 20:52:25', '1', '2025-09-06 20:52:25', '0', 121);
  4094 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6231, 109, 2294, '1', '2025-09-06 20:52:25', '1', '2025-09-06 20:52:25', '0', 121);
  4095 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6232, 109, 2297, '1', '2025-09-06 20:52:25', '1', '2025-09-06 20:52:25', '0', 121);
  4096 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6233, 109, 2300, '1', '2025-09-06 20:52:25', '1', '2025-09-06 20:52:25', '0', 121);
  4097 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6234, 109, 2317, '1', '2025-09-06 20:52:25', '1', '2025-09-06 20:52:25', '0', 121);
  4098 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6235, 109, 2318, '1', '2025-09-06 20:52:25', '1', '2025-09-06 20:52:25', '0', 121);
  4099 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6236, 109, 2319, '1', '2025-09-06 20:52:25', '1', '2025-09-06 20:52:25', '0', 121);
  4100 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6237, 109, 2320, '1', '2025-09-06 20:52:25', '1', '2025-09-06 20:52:25', '0', 121);
  4101 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6238, 109, 2321, '1', '2025-09-06 20:52:25', '1', '2025-09-06 20:52:25', '0', 121);
  4102 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6239, 109, 2322, '1', '2025-09-06 20:52:25', '1', '2025-09-06 20:52:25', '0', 121);
  4103 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6240, 109, 2323, '1', '2025-09-06 20:52:25', '1', '2025-09-06 20:52:25', '0', 121);
  4104 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6241, 109, 2324, '1', '2025-09-06 20:52:25', '1', '2025-09-06 20:52:25', '0', 121);
  4105 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6242, 109, 2325, '1', '2025-09-06 20:52:25', '1', '2025-09-06 20:52:25', '0', 121);
  4106 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6243, 109, 2326, '1', '2025-09-06 20:52:25', '1', '2025-09-06 20:52:25', '0', 121);
  4107 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6244, 109, 2327, '1', '2025-09-06 20:52:25', '1', '2025-09-06 20:52:25', '0', 121);
  4108 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6245, 109, 2328, '1', '2025-09-06 20:52:25', '1', '2025-09-06 20:52:25', '0', 121);
  4109 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6246, 109, 2329, '1', '2025-09-06 20:52:25', '1', '2025-09-06 20:52:25', '0', 121);
  4110 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6247, 109, 2330, '1', '2025-09-06 20:52:25', '1', '2025-09-06 20:52:25', '0', 121);
  4111 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6248, 109, 2331, '1', '2025-09-06 20:52:25', '1', '2025-09-06 20:52:25', '0', 121);
  4112 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6249, 109, 2332, '1', '2025-09-06 20:52:25', '1', '2025-09-06 20:52:25', '0', 121);
  4113 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6250, 109, 2333, '1', '2025-09-06 20:52:25', '1', '2025-09-06 20:52:25', '0', 121);
  4114 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6251, 109, 2334, '1', '2025-09-06 20:52:25', '1', '2025-09-06 20:52:25', '0', 121);
  4115 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6252, 109, 2335, '1', '2025-09-06 20:52:25', '1', '2025-09-06 20:52:25', '0', 121);
  4116 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6253, 109, 2363, '1', '2025-09-06 20:52:25', '1', '2025-09-06 20:52:25', '0', 121);
  4117 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6254, 109, 2364, '1', '2025-09-06 20:52:25', '1', '2025-09-06 20:52:25', '0', 121);
  4118 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6255, 111, 2756, '1', '2025-09-06 20:52:25', '1', '2025-09-06 20:52:25', '0', 122);
  4119 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6256, 111, 2757, '1', '2025-09-06 20:52:25', '1', '2025-09-06 20:52:25', '0', 122);
  4120 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6257, 111, 2262, '1', '2025-09-06 20:52:25', '1', '2025-09-06 20:52:25', '0', 122);
  4121 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6258, 111, 2275, '1', '2025-09-06 20:52:25', '1', '2025-09-06 20:52:25', '0', 122);
  4122 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6259, 111, 2276, '1', '2025-09-06 20:52:25', '1', '2025-09-06 20:52:25', '0', 122);
  4123 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6260, 111, 2277, '1', '2025-09-06 20:52:25', '1', '2025-09-06 20:52:25', '0', 122);
  4124 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6261, 111, 2281, '1', '2025-09-06 20:52:25', '1', '2025-09-06 20:52:25', '0', 122);
  4125 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6262, 111, 2282, '1', '2025-09-06 20:52:25', '1', '2025-09-06 20:52:25', '0', 122);
  4126 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6263, 111, 2283, '1', '2025-09-06 20:52:25', '1', '2025-09-06 20:52:25', '0', 122);
  4127 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6264, 111, 2284, '1', '2025-09-06 20:52:25', '1', '2025-09-06 20:52:25', '0', 122);
  4128 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6265, 111, 2285, '1', '2025-09-06 20:52:25', '1', '2025-09-06 20:52:25', '0', 122);
  4129 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6266, 111, 2287, '1', '2025-09-06 20:52:25', '1', '2025-09-06 20:52:25', '0', 122);
  4130 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6267, 111, 2288, '1', '2025-09-06 20:52:25', '1', '2025-09-06 20:52:25', '0', 122);
  4131 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6268, 111, 2293, '1', '2025-09-06 20:52:25', '1', '2025-09-06 20:52:25', '0', 122);
  4132 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6269, 111, 2294, '1', '2025-09-06 20:52:25', '1', '2025-09-06 20:52:25', '0', 122);
  4133 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6270, 111, 2297, '1', '2025-09-06 20:52:25', '1', '2025-09-06 20:52:25', '0', 122);
  4134 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6271, 111, 2300, '1', '2025-09-06 20:52:25', '1', '2025-09-06 20:52:25', '0', 122);
  4135 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6272, 111, 2317, '1', '2025-09-06 20:52:25', '1', '2025-09-06 20:52:25', '0', 122);
  4136 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6273, 111, 2318, '1', '2025-09-06 20:52:25', '1', '2025-09-06 20:52:25', '0', 122);
  4137 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6274, 111, 2319, '1', '2025-09-06 20:52:25', '1', '2025-09-06 20:52:25', '0', 122);
  4138 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6275, 111, 2320, '1', '2025-09-06 20:52:25', '1', '2025-09-06 20:52:25', '0', 122);
  4139 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6276, 111, 2321, '1', '2025-09-06 20:52:25', '1', '2025-09-06 20:52:25', '0', 122);
  4140 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6277, 111, 2322, '1', '2025-09-06 20:52:25', '1', '2025-09-06 20:52:25', '0', 122);
  4141 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6278, 111, 2323, '1', '2025-09-06 20:52:25', '1', '2025-09-06 20:52:25', '0', 122);
  4142 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6279, 111, 2324, '1', '2025-09-06 20:52:25', '1', '2025-09-06 20:52:25', '0', 122);
  4143 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6280, 111, 2325, '1', '2025-09-06 20:52:25', '1', '2025-09-06 20:52:25', '0', 122);
  4144 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6281, 111, 2326, '1', '2025-09-06 20:52:25', '1', '2025-09-06 20:52:25', '0', 122);
  4145 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6282, 111, 2327, '1', '2025-09-06 20:52:25', '1', '2025-09-06 20:52:25', '0', 122);
  4146 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6283, 111, 2328, '1', '2025-09-06 20:52:25', '1', '2025-09-06 20:52:25', '0', 122);
  4147 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6284, 111, 2329, '1', '2025-09-06 20:52:25', '1', '2025-09-06 20:52:25', '0', 122);
  4148 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6285, 111, 2330, '1', '2025-09-06 20:52:25', '1', '2025-09-06 20:52:25', '0', 122);
  4149 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6286, 111, 2331, '1', '2025-09-06 20:52:25', '1', '2025-09-06 20:52:25', '0', 122);
  4150 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6287, 111, 2332, '1', '2025-09-06 20:52:25', '1', '2025-09-06 20:52:25', '0', 122);
  4151 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6288, 111, 2333, '1', '2025-09-06 20:52:25', '1', '2025-09-06 20:52:25', '0', 122);
  4152 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6289, 111, 2334, '1', '2025-09-06 20:52:25', '1', '2025-09-06 20:52:25', '0', 122);
  4153 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6290, 111, 2335, '1', '2025-09-06 20:52:25', '1', '2025-09-06 20:52:25', '0', 122);
  4154 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6291, 111, 2363, '1', '2025-09-06 20:52:25', '1', '2025-09-06 20:52:25', '0', 122);
  4155 +INSERT INTO system_role_menu (id, role_id, menu_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6292, 111, 2364, '1', '2025-09-06 20:52:25', '1', '2025-09-06 20:52:25', '0', 122);
4205 COMMIT; 4156 COMMIT;
4206 -- @formatter:on 4157 -- @formatter:on
4207 4158
4208 -DROP SEQUENCE IF EXISTS system_sms_channel_seq;  
4209 -CREATE SEQUENCE system_sms_channel_seq  
4210 - START 1; 4159 +DROP SEQUENCE IF EXISTS system_role_menu_seq;
  4160 +CREATE SEQUENCE system_role_menu_seq
  4161 + START 6293;
4211 4162
4212 -- ---------------------------- 4163 -- ----------------------------
4213 -- Table structure for system_sms_channel 4164 -- Table structure for system_sms_channel
4214 -- ---------------------------- 4165 -- ----------------------------
4215 DROP TABLE IF EXISTS system_sms_channel; 4166 DROP TABLE IF EXISTS system_sms_channel;
4216 -CREATE TABLE system_sms_channel  
4217 -(  
4218 - id int8 NOT NULL default nextval('system_sms_channel_seq'),  
4219 - signature varchar(12) NOT NULL,  
4220 - code varchar(63) NOT NULL,  
4221 - status int2 NOT NULL,  
4222 - remark varchar(255) NULL DEFAULT NULL,  
4223 - api_key varchar(128) NOT NULL,  
4224 - api_secret varchar(128) NULL DEFAULT NULL,  
4225 - callback_url varchar(255) NULL DEFAULT NULL,  
4226 - creator varchar(64) NULL DEFAULT '',  
4227 - create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
4228 - updater varchar(64) NULL DEFAULT '',  
4229 - update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
4230 - deleted int2 NOT NULL DEFAULT 0 4167 +CREATE TABLE system_sms_channel (
  4168 + id int8 NOT NULL,
  4169 + signature varchar(12) NOT NULL,
  4170 + code varchar(63) NOT NULL,
  4171 + status int2 NOT NULL,
  4172 + remark varchar(255) NULL DEFAULT NULL,
  4173 + api_key varchar(128) NOT NULL,
  4174 + api_secret varchar(128) NULL DEFAULT NULL,
  4175 + callback_url varchar(255) NULL DEFAULT NULL,
  4176 + creator varchar(64) NULL DEFAULT '',
  4177 + create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  4178 + updater varchar(64) NULL DEFAULT '',
  4179 + update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  4180 + deleted int2 NOT NULL DEFAULT 0
4231 ); 4181 );
4232 4182
4233 -ALTER TABLE system_sms_channel  
4234 - ADD CONSTRAINT pk_system_sms_channel PRIMARY KEY (id); 4183 +ALTER TABLE system_sms_channel ADD CONSTRAINT pk_system_sms_channel PRIMARY KEY (id);
4235 4184
4236 COMMENT ON COLUMN system_sms_channel.id IS '编号'; 4185 COMMENT ON COLUMN system_sms_channel.id IS '编号';
4237 COMMENT ON COLUMN system_sms_channel.signature IS '短信签名'; 4186 COMMENT ON COLUMN system_sms_channel.signature IS '短信签名';
@@ -4259,35 +4208,33 @@ INSERT INTO system_sms_channel (id, signature, code, status, remark, api_key, ap @@ -4259,35 +4208,33 @@ INSERT INTO system_sms_channel (id, signature, code, status, remark, api_key, ap
4259 COMMIT; 4208 COMMIT;
4260 -- @formatter:on 4209 -- @formatter:on
4261 4210
4262 -DROP SEQUENCE IF EXISTS system_sms_code_seq;  
4263 -CREATE SEQUENCE system_sms_code_seq  
4264 - START 1; 4211 +DROP SEQUENCE IF EXISTS system_sms_channel_seq;
  4212 +CREATE SEQUENCE system_sms_channel_seq
  4213 + START 8;
4265 4214
4266 -- ---------------------------- 4215 -- ----------------------------
4267 -- Table structure for system_sms_code 4216 -- Table structure for system_sms_code
4268 -- ---------------------------- 4217 -- ----------------------------
4269 DROP TABLE IF EXISTS system_sms_code; 4218 DROP TABLE IF EXISTS system_sms_code;
4270 -CREATE TABLE system_sms_code  
4271 -(  
4272 - id int8 NOT NULL default nextval('system_sms_code_seq'),  
4273 - mobile varchar(11) NOT NULL,  
4274 - code varchar(6) NOT NULL,  
4275 - create_ip varchar(15) NOT NULL,  
4276 - scene int2 NOT NULL,  
4277 - today_index int2 NOT NULL,  
4278 - used int2 NOT NULL,  
4279 - used_time timestamp NULL DEFAULT NULL,  
4280 - used_ip varchar(255) NULL DEFAULT NULL,  
4281 - creator varchar(64) NULL DEFAULT '',  
4282 - create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
4283 - updater varchar(64) NULL DEFAULT '',  
4284 - update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
4285 - deleted int2 NOT NULL DEFAULT 0,  
4286 - tenant_id int8 NOT NULL DEFAULT 0 4219 +CREATE TABLE system_sms_code (
  4220 + id int8 NOT NULL,
  4221 + mobile varchar(11) NOT NULL,
  4222 + code varchar(6) NOT NULL,
  4223 + create_ip varchar(15) NOT NULL,
  4224 + scene int2 NOT NULL,
  4225 + today_index int2 NOT NULL,
  4226 + used int2 NOT NULL,
  4227 + used_time timestamp NULL DEFAULT NULL,
  4228 + used_ip varchar(255) NULL DEFAULT NULL,
  4229 + creator varchar(64) NULL DEFAULT '',
  4230 + create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  4231 + updater varchar(64) NULL DEFAULT '',
  4232 + update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  4233 + deleted int2 NOT NULL DEFAULT 0,
  4234 + tenant_id int8 NOT NULL DEFAULT 0
4287 ); 4235 );
4288 4236
4289 -ALTER TABLE system_sms_code  
4290 - ADD CONSTRAINT pk_system_sms_code PRIMARY KEY (id); 4237 +ALTER TABLE system_sms_code ADD CONSTRAINT pk_system_sms_code PRIMARY KEY (id);
4291 4238
4292 CREATE INDEX idx_system_sms_code_01 ON system_sms_code (mobile); 4239 CREATE INDEX idx_system_sms_code_01 ON system_sms_code (mobile);
4293 4240
@@ -4308,47 +4255,45 @@ COMMENT ON COLUMN system_sms_code.deleted IS &#39;是否删除&#39;; @@ -4308,47 +4255,45 @@ COMMENT ON COLUMN system_sms_code.deleted IS &#39;是否删除&#39;;
4308 COMMENT ON COLUMN system_sms_code.tenant_id IS '租户编号'; 4255 COMMENT ON COLUMN system_sms_code.tenant_id IS '租户编号';
4309 COMMENT ON TABLE system_sms_code IS '手机验证码'; 4256 COMMENT ON TABLE system_sms_code IS '手机验证码';
4310 4257
4311 -DROP SEQUENCE IF EXISTS system_sms_log_seq;  
4312 -CREATE SEQUENCE system_sms_log_seq 4258 +DROP SEQUENCE IF EXISTS system_sms_code_seq;
  4259 +CREATE SEQUENCE system_sms_code_seq
4313 START 1; 4260 START 1;
4314 4261
4315 -- ---------------------------- 4262 -- ----------------------------
4316 -- Table structure for system_sms_log 4263 -- Table structure for system_sms_log
4317 -- ---------------------------- 4264 -- ----------------------------
4318 DROP TABLE IF EXISTS system_sms_log; 4265 DROP TABLE IF EXISTS system_sms_log;
4319 -CREATE TABLE system_sms_log  
4320 -(  
4321 - id int8 NOT NULL default nextval('system_sms_log_seq'),  
4322 - channel_id int8 NOT NULL,  
4323 - channel_code varchar(63) NOT NULL,  
4324 - template_id int8 NOT NULL,  
4325 - template_code varchar(63) NOT NULL,  
4326 - template_type int2 NOT NULL,  
4327 - template_content varchar(255) NOT NULL,  
4328 - template_params varchar(255) NOT NULL,  
4329 - api_template_id varchar(63) NOT NULL,  
4330 - mobile varchar(11) NOT NULL,  
4331 - user_id int8 NULL DEFAULT NULL,  
4332 - user_type int2 NULL DEFAULT NULL,  
4333 - send_status int2 NOT NULL DEFAULT 0,  
4334 - send_time timestamp NULL DEFAULT NULL,  
4335 - api_send_code varchar(63) NULL DEFAULT NULL,  
4336 - api_send_msg varchar(255) NULL DEFAULT NULL,  
4337 - api_request_id varchar(255) NULL DEFAULT NULL,  
4338 - api_serial_no varchar(255) NULL DEFAULT NULL,  
4339 - receive_status int2 NOT NULL DEFAULT 0,  
4340 - receive_time timestamp NULL DEFAULT NULL,  
4341 - api_receive_code varchar(63) NULL DEFAULT NULL,  
4342 - api_receive_msg varchar(255) NULL DEFAULT NULL,  
4343 - creator varchar(64) NULL DEFAULT '',  
4344 - create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
4345 - updater varchar(64) NULL DEFAULT '',  
4346 - update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
4347 - deleted int2 NOT NULL DEFAULT 0 4266 +CREATE TABLE system_sms_log (
  4267 + id int8 NOT NULL,
  4268 + channel_id int8 NOT NULL,
  4269 + channel_code varchar(63) NOT NULL,
  4270 + template_id int8 NOT NULL,
  4271 + template_code varchar(63) NOT NULL,
  4272 + template_type int2 NOT NULL,
  4273 + template_content varchar(255) NOT NULL,
  4274 + template_params varchar(255) NOT NULL,
  4275 + api_template_id varchar(63) NOT NULL,
  4276 + mobile varchar(11) NOT NULL,
  4277 + user_id int8 NULL DEFAULT NULL,
  4278 + user_type int2 NULL DEFAULT NULL,
  4279 + send_status int2 NOT NULL DEFAULT 0,
  4280 + send_time timestamp NULL DEFAULT NULL,
  4281 + api_send_code varchar(63) NULL DEFAULT NULL,
  4282 + api_send_msg varchar(255) NULL DEFAULT NULL,
  4283 + api_request_id varchar(255) NULL DEFAULT NULL,
  4284 + api_serial_no varchar(255) NULL DEFAULT NULL,
  4285 + receive_status int2 NOT NULL DEFAULT 0,
  4286 + receive_time timestamp NULL DEFAULT NULL,
  4287 + api_receive_code varchar(63) NULL DEFAULT NULL,
  4288 + api_receive_msg varchar(255) NULL DEFAULT NULL,
  4289 + creator varchar(64) NULL DEFAULT '',
  4290 + create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  4291 + updater varchar(64) NULL DEFAULT '',
  4292 + update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  4293 + deleted int2 NOT NULL DEFAULT 0
4348 ); 4294 );
4349 4295
4350 -ALTER TABLE system_sms_log  
4351 - ADD CONSTRAINT pk_system_sms_log PRIMARY KEY (id); 4296 +ALTER TABLE system_sms_log ADD CONSTRAINT pk_system_sms_log PRIMARY KEY (id);
4352 4297
4353 COMMENT ON COLUMN system_sms_log.id IS '编号'; 4298 COMMENT ON COLUMN system_sms_log.id IS '编号';
4354 COMMENT ON COLUMN system_sms_log.channel_id IS '短信渠道编号'; 4299 COMMENT ON COLUMN system_sms_log.channel_id IS '短信渠道编号';
@@ -4379,36 +4324,34 @@ COMMENT ON COLUMN system_sms_log.update_time IS &#39;更新时间&#39;; @@ -4379,36 +4324,34 @@ COMMENT ON COLUMN system_sms_log.update_time IS &#39;更新时间&#39;;
4379 COMMENT ON COLUMN system_sms_log.deleted IS '是否删除'; 4324 COMMENT ON COLUMN system_sms_log.deleted IS '是否删除';
4380 COMMENT ON TABLE system_sms_log IS '短信日志'; 4325 COMMENT ON TABLE system_sms_log IS '短信日志';
4381 4326
4382 -DROP SEQUENCE IF EXISTS system_sms_template_seq;  
4383 -CREATE SEQUENCE system_sms_template_seq 4327 +DROP SEQUENCE IF EXISTS system_sms_log_seq;
  4328 +CREATE SEQUENCE system_sms_log_seq
4384 START 1; 4329 START 1;
4385 4330
4386 -- ---------------------------- 4331 -- ----------------------------
4387 -- Table structure for system_sms_template 4332 -- Table structure for system_sms_template
4388 -- ---------------------------- 4333 -- ----------------------------
4389 DROP TABLE IF EXISTS system_sms_template; 4334 DROP TABLE IF EXISTS system_sms_template;
4390 -CREATE TABLE system_sms_template  
4391 -(  
4392 - id int8 NOT NULL default nextval('system_sms_template_seq'),  
4393 - type int2 NOT NULL,  
4394 - status int2 NOT NULL,  
4395 - code varchar(63) NOT NULL,  
4396 - name varchar(63) NOT NULL,  
4397 - content varchar(255) NOT NULL,  
4398 - params varchar(255) NOT NULL,  
4399 - remark varchar(255) NULL DEFAULT NULL,  
4400 - api_template_id varchar(63) NOT NULL,  
4401 - channel_id int8 NOT NULL,  
4402 - channel_code varchar(63) NOT NULL,  
4403 - creator varchar(64) NULL DEFAULT '',  
4404 - create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
4405 - updater varchar(64) NULL DEFAULT '',  
4406 - update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
4407 - deleted int2 NOT NULL DEFAULT 0 4335 +CREATE TABLE system_sms_template (
  4336 + id int8 NOT NULL,
  4337 + type int2 NOT NULL,
  4338 + status int2 NOT NULL,
  4339 + code varchar(63) NOT NULL,
  4340 + name varchar(63) NOT NULL,
  4341 + content varchar(255) NOT NULL,
  4342 + params varchar(255) NOT NULL,
  4343 + remark varchar(255) NULL DEFAULT NULL,
  4344 + api_template_id varchar(63) NOT NULL,
  4345 + channel_id int8 NOT NULL,
  4346 + channel_code varchar(63) NOT NULL,
  4347 + creator varchar(64) NULL DEFAULT '',
  4348 + create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  4349 + updater varchar(64) NULL DEFAULT '',
  4350 + update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  4351 + deleted int2 NOT NULL DEFAULT 0
4408 ); 4352 );
4409 4353
4410 -ALTER TABLE system_sms_template  
4411 - ADD CONSTRAINT pk_system_sms_template PRIMARY KEY (id); 4354 +ALTER TABLE system_sms_template ADD CONSTRAINT pk_system_sms_template PRIMARY KEY (id);
4412 4355
4413 COMMENT ON COLUMN system_sms_template.id IS '编号'; 4356 COMMENT ON COLUMN system_sms_template.id IS '编号';
4414 COMMENT ON COLUMN system_sms_template.type IS '模板类型'; 4357 COMMENT ON COLUMN system_sms_template.type IS '模板类型';
@@ -4451,35 +4394,33 @@ INSERT INTO system_sms_template (id, type, status, code, name, content, params, @@ -4451,35 +4394,33 @@ INSERT INTO system_sms_template (id, type, status, code, name, content, params,
4451 COMMIT; 4394 COMMIT;
4452 -- @formatter:on 4395 -- @formatter:on
4453 4396
4454 -DROP SEQUENCE IF EXISTS system_social_client_seq;  
4455 -CREATE SEQUENCE system_social_client_seq  
4456 - START 1; 4397 +DROP SEQUENCE IF EXISTS system_sms_template_seq;
  4398 +CREATE SEQUENCE system_sms_template_seq
  4399 + START 20;
4457 4400
4458 -- ---------------------------- 4401 -- ----------------------------
4459 -- Table structure for system_social_client 4402 -- Table structure for system_social_client
4460 -- ---------------------------- 4403 -- ----------------------------
4461 DROP TABLE IF EXISTS system_social_client; 4404 DROP TABLE IF EXISTS system_social_client;
4462 -CREATE TABLE system_social_client  
4463 -(  
4464 - id int8 NOT NULL default nextval('system_social_client_seq'),  
4465 - name varchar(255) NOT NULL,  
4466 - social_type int2 NOT NULL,  
4467 - user_type int2 NOT NULL,  
4468 - client_id varchar(255) NOT NULL,  
4469 - client_secret varchar(255) NOT NULL,  
4470 - public_key varchar(255) NULL DEFAULT NULL,  
4471 - agent_id varchar(255) NULL DEFAULT NULL,  
4472 - status int2 NOT NULL,  
4473 - creator varchar(64) NULL DEFAULT '',  
4474 - create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
4475 - updater varchar(64) NULL DEFAULT '',  
4476 - update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
4477 - deleted int2 NOT NULL DEFAULT 0,  
4478 - tenant_id int8 NOT NULL DEFAULT 0 4405 +CREATE TABLE system_social_client (
  4406 + id int8 NOT NULL,
  4407 + name varchar(255) NOT NULL,
  4408 + social_type int2 NOT NULL,
  4409 + user_type int2 NOT NULL,
  4410 + client_id varchar(255) NOT NULL,
  4411 + client_secret varchar(2048) NOT NULL,
  4412 + public_key varchar(2048) NULL,
  4413 + agent_id varchar(255) NULL DEFAULT NULL,
  4414 + status int2 NOT NULL,
  4415 + creator varchar(64) NULL DEFAULT '',
  4416 + create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  4417 + updater varchar(64) NULL DEFAULT '',
  4418 + update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  4419 + deleted int2 NOT NULL DEFAULT 0,
  4420 + tenant_id int8 NOT NULL DEFAULT 0
4479 ); 4421 );
4480 4422
4481 -ALTER TABLE system_social_client  
4482 - ADD CONSTRAINT pk_system_social_client PRIMARY KEY (id); 4423 +ALTER TABLE system_social_client ADD CONSTRAINT pk_system_social_client PRIMARY KEY (id);
4483 4424
4484 COMMENT ON COLUMN system_social_client.id IS '编号'; 4425 COMMENT ON COLUMN system_social_client.id IS '编号';
4485 COMMENT ON COLUMN system_social_client.name IS '应用名'; 4426 COMMENT ON COLUMN system_social_client.name IS '应用名';
@@ -4487,7 +4428,7 @@ COMMENT ON COLUMN system_social_client.social_type IS &#39;社交平台的类型&#39;; @@ -4487,7 +4428,7 @@ COMMENT ON COLUMN system_social_client.social_type IS &#39;社交平台的类型&#39;;
4487 COMMENT ON COLUMN system_social_client.user_type IS '用户类型'; 4428 COMMENT ON COLUMN system_social_client.user_type IS '用户类型';
4488 COMMENT ON COLUMN system_social_client.client_id IS '客户端编号'; 4429 COMMENT ON COLUMN system_social_client.client_id IS '客户端编号';
4489 COMMENT ON COLUMN system_social_client.client_secret IS '客户端密钥'; 4430 COMMENT ON COLUMN system_social_client.client_secret IS '客户端密钥';
4490 -COMMENT ON COLUMN system_social_client.public_key IS 'publicKey 公钥'; 4431 +COMMENT ON COLUMN system_social_client.public_key IS 'publicKey公钥';
4491 COMMENT ON COLUMN system_social_client.agent_id IS '代理编号'; 4432 COMMENT ON COLUMN system_social_client.agent_id IS '代理编号';
4492 COMMENT ON COLUMN system_social_client.status IS '状态'; 4433 COMMENT ON COLUMN system_social_client.status IS '状态';
4493 COMMENT ON COLUMN system_social_client.creator IS '创建者'; 4434 COMMENT ON COLUMN system_social_client.creator IS '创建者';
@@ -4508,41 +4449,40 @@ INSERT INTO system_social_client (id, name, social_type, user_type, client_id, c @@ -4508,41 +4449,40 @@ INSERT INTO system_social_client (id, name, social_type, user_type, client_id, c
4508 INSERT INTO system_social_client (id, name, social_type, user_type, client_id, client_secret, agent_id, status, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (3, '微信公众号', 31, 1, 'wx5b23ba7a5589ecbb', '2a7b3b20c537e52e74afd395eb85f61f', NULL, 0, '', '2023-10-18 16:07:46', '1', '2023-12-20 21:28:23', '1', 1); 4449 INSERT INTO system_social_client (id, name, social_type, user_type, client_id, client_secret, agent_id, status, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (3, '微信公众号', 31, 1, 'wx5b23ba7a5589ecbb', '2a7b3b20c537e52e74afd395eb85f61f', NULL, 0, '', '2023-10-18 16:07:46', '1', '2023-12-20 21:28:23', '1', 1);
4509 INSERT INTO system_social_client (id, name, social_type, user_type, client_id, client_secret, agent_id, status, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (43, '微信小程序', 34, 1, 'wx63c280fe3248a3e7', '6f270509224a7ae1296bbf1c8cb97aed', NULL, 0, '', '2023-10-19 13:37:41', '1', '2023-12-20 21:28:25', '1', 1); 4450 INSERT INTO system_social_client (id, name, social_type, user_type, client_id, client_secret, agent_id, status, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (43, '微信小程序', 34, 1, 'wx63c280fe3248a3e7', '6f270509224a7ae1296bbf1c8cb97aed', NULL, 0, '', '2023-10-19 13:37:41', '1', '2023-12-20 21:28:25', '1', 1);
4510 INSERT INTO system_social_client (id, name, social_type, user_type, client_id, client_secret, agent_id, status, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (44, '1', 10, 1, '2', '3', NULL, 0, '1', '2025-04-06 20:36:28', '1', '2025-04-06 20:43:12', '1', 1); 4451 INSERT INTO system_social_client (id, name, social_type, user_type, client_id, client_secret, agent_id, status, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (44, '1', 10, 1, '2', '3', NULL, 0, '1', '2025-04-06 20:36:28', '1', '2025-04-06 20:43:12', '1', 1);
  4452 +INSERT INTO system_social_client (id, name, social_type, user_type, client_id, client_secret, agent_id, status, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (45, '1', 10, 1, '2', '3', NULL, 1, '1', '2025-09-06 20:26:15', '1', '2025-09-06 20:27:55', '1', 1);
4511 COMMIT; 4453 COMMIT;
4512 -- @formatter:on 4454 -- @formatter:on
4513 4455
4514 -DROP SEQUENCE IF EXISTS system_social_user_seq;  
4515 -CREATE SEQUENCE system_social_user_seq  
4516 - START 1; 4456 +DROP SEQUENCE IF EXISTS system_social_client_seq;
  4457 +CREATE SEQUENCE system_social_client_seq
  4458 + START 46;
4517 4459
4518 -- ---------------------------- 4460 -- ----------------------------
4519 -- Table structure for system_social_user 4461 -- Table structure for system_social_user
4520 -- ---------------------------- 4462 -- ----------------------------
4521 DROP TABLE IF EXISTS system_social_user; 4463 DROP TABLE IF EXISTS system_social_user;
4522 -CREATE TABLE system_social_user  
4523 -(  
4524 - id int8 NOT NULL default nextval('system_social_user_seq'),  
4525 - type int2 NOT NULL,  
4526 - openid varchar(32) NOT NULL,  
4527 - token varchar(256) NULL DEFAULT NULL,  
4528 - raw_token_info varchar(1024) NOT NULL,  
4529 - nickname varchar(32) NOT NULL,  
4530 - avatar varchar(255) NULL DEFAULT NULL,  
4531 - raw_user_info varchar(1024) NOT NULL,  
4532 - code varchar(256) NOT NULL,  
4533 - state varchar(256) NULL DEFAULT NULL,  
4534 - creator varchar(64) NULL DEFAULT '',  
4535 - create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
4536 - updater varchar(64) NULL DEFAULT '',  
4537 - update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
4538 - deleted int2 NOT NULL DEFAULT 0,  
4539 - tenant_id int8 NOT NULL DEFAULT 0 4464 +CREATE TABLE system_social_user (
  4465 + id int8 NOT NULL,
  4466 + type int2 NOT NULL,
  4467 + openid varchar(32) NOT NULL,
  4468 + token varchar(256) NULL DEFAULT NULL,
  4469 + raw_token_info varchar(1024) NOT NULL,
  4470 + nickname varchar(32) NOT NULL,
  4471 + avatar varchar(255) NULL DEFAULT NULL,
  4472 + raw_user_info varchar(1024) NOT NULL,
  4473 + code varchar(256) NOT NULL,
  4474 + state varchar(256) NULL DEFAULT NULL,
  4475 + creator varchar(64) NULL DEFAULT '',
  4476 + create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  4477 + updater varchar(64) NULL DEFAULT '',
  4478 + update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  4479 + deleted int2 NOT NULL DEFAULT 0,
  4480 + tenant_id int8 NOT NULL DEFAULT 0
4540 ); 4481 );
4541 4482
4542 -ALTER TABLE system_social_user  
4543 - ADD CONSTRAINT pk_system_social_user PRIMARY KEY (id); 4483 +ALTER TABLE system_social_user ADD CONSTRAINT pk_system_social_user PRIMARY KEY (id);
4544 4484
4545 -COMMENT ON COLUMN system_social_user.id IS '主键 ( 自增策略)'; 4485 +COMMENT ON COLUMN system_social_user.id IS '主键 ( 自增策略 ) ';
4546 COMMENT ON COLUMN system_social_user.type IS '社交平台的类型'; 4486 COMMENT ON COLUMN system_social_user.type IS '社交平台的类型';
4547 COMMENT ON COLUMN system_social_user.openid IS '社交 openid'; 4487 COMMENT ON COLUMN system_social_user.openid IS '社交 openid';
4548 COMMENT ON COLUMN system_social_user.token IS '社交 token'; 4488 COMMENT ON COLUMN system_social_user.token IS '社交 token';
@@ -4560,33 +4500,31 @@ COMMENT ON COLUMN system_social_user.deleted IS &#39;是否删除&#39;; @@ -4560,33 +4500,31 @@ COMMENT ON COLUMN system_social_user.deleted IS &#39;是否删除&#39;;
4560 COMMENT ON COLUMN system_social_user.tenant_id IS '租户编号'; 4500 COMMENT ON COLUMN system_social_user.tenant_id IS '租户编号';
4561 COMMENT ON TABLE system_social_user IS '社交用户表'; 4501 COMMENT ON TABLE system_social_user IS '社交用户表';
4562 4502
4563 -DROP SEQUENCE IF EXISTS system_social_user_bind_seq;  
4564 -CREATE SEQUENCE system_social_user_bind_seq 4503 +DROP SEQUENCE IF EXISTS system_social_user_seq;
  4504 +CREATE SEQUENCE system_social_user_seq
4565 START 1; 4505 START 1;
4566 4506
4567 -- ---------------------------- 4507 -- ----------------------------
4568 -- Table structure for system_social_user_bind 4508 -- Table structure for system_social_user_bind
4569 -- ---------------------------- 4509 -- ----------------------------
4570 DROP TABLE IF EXISTS system_social_user_bind; 4510 DROP TABLE IF EXISTS system_social_user_bind;
4571 -CREATE TABLE system_social_user_bind  
4572 -(  
4573 - id int8 NOT NULL default nextval('system_social_user_bind_seq'),  
4574 - user_id int8 NOT NULL,  
4575 - user_type int2 NOT NULL,  
4576 - social_type int2 NOT NULL,  
4577 - social_user_id int8 NOT NULL,  
4578 - creator varchar(64) NULL DEFAULT '',  
4579 - create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
4580 - updater varchar(64) NULL DEFAULT '',  
4581 - update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
4582 - deleted int2 NOT NULL DEFAULT 0,  
4583 - tenant_id int8 NOT NULL DEFAULT 0 4511 +CREATE TABLE system_social_user_bind (
  4512 + id int8 NOT NULL,
  4513 + user_id int8 NOT NULL,
  4514 + user_type int2 NOT NULL,
  4515 + social_type int2 NOT NULL,
  4516 + social_user_id int8 NOT NULL,
  4517 + creator varchar(64) NULL DEFAULT '',
  4518 + create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  4519 + updater varchar(64) NULL DEFAULT '',
  4520 + update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  4521 + deleted int2 NOT NULL DEFAULT 0,
  4522 + tenant_id int8 NOT NULL DEFAULT 0
4584 ); 4523 );
4585 4524
4586 -ALTER TABLE system_social_user_bind  
4587 - ADD CONSTRAINT pk_system_social_user_bind PRIMARY KEY (id); 4525 +ALTER TABLE system_social_user_bind ADD CONSTRAINT pk_system_social_user_bind PRIMARY KEY (id);
4588 4526
4589 -COMMENT ON COLUMN system_social_user_bind.id IS '主键 ( 自增策略)'; 4527 +COMMENT ON COLUMN system_social_user_bind.id IS '主键 ( 自增策略 ) ';
4590 COMMENT ON COLUMN system_social_user_bind.user_id IS '用户编号'; 4528 COMMENT ON COLUMN system_social_user_bind.user_id IS '用户编号';
4591 COMMENT ON COLUMN system_social_user_bind.user_type IS '用户类型'; 4529 COMMENT ON COLUMN system_social_user_bind.user_type IS '用户类型';
4592 COMMENT ON COLUMN system_social_user_bind.social_type IS '社交平台的类型'; 4530 COMMENT ON COLUMN system_social_user_bind.social_type IS '社交平台的类型';
@@ -4599,42 +4537,40 @@ COMMENT ON COLUMN system_social_user_bind.deleted IS &#39;是否删除&#39;; @@ -4599,42 +4537,40 @@ COMMENT ON COLUMN system_social_user_bind.deleted IS &#39;是否删除&#39;;
4599 COMMENT ON COLUMN system_social_user_bind.tenant_id IS '租户编号'; 4537 COMMENT ON COLUMN system_social_user_bind.tenant_id IS '租户编号';
4600 COMMENT ON TABLE system_social_user_bind IS '社交绑定表'; 4538 COMMENT ON TABLE system_social_user_bind IS '社交绑定表';
4601 4539
4602 -DROP SEQUENCE IF EXISTS system_tenant_seq;  
4603 -CREATE SEQUENCE system_tenant_seq 4540 +DROP SEQUENCE IF EXISTS system_social_user_bind_seq;
  4541 +CREATE SEQUENCE system_social_user_bind_seq
4604 START 1; 4542 START 1;
4605 4543
4606 -- ---------------------------- 4544 -- ----------------------------
4607 -- Table structure for system_tenant 4545 -- Table structure for system_tenant
4608 -- ---------------------------- 4546 -- ----------------------------
4609 DROP TABLE IF EXISTS system_tenant; 4547 DROP TABLE IF EXISTS system_tenant;
4610 -CREATE TABLE system_tenant  
4611 -(  
4612 - id int8 NOT NULL default nextval('system_tenant_seq'),  
4613 - name varchar(30) NOT NULL,  
4614 - contact_user_id int8 NULL DEFAULT NULL,  
4615 - contact_name varchar(30) NOT NULL,  
4616 - contact_mobile varchar(500) NULL DEFAULT NULL,  
4617 - status int2 NOT NULL DEFAULT 0,  
4618 - websites varchar(256) NULL DEFAULT '',  
4619 - package_id int8 NOT NULL,  
4620 - expire_time timestamp NOT NULL,  
4621 - account_count int4 NOT NULL,  
4622 - creator varchar(64) NOT NULL DEFAULT '',  
4623 - create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
4624 - updater varchar(64) NULL DEFAULT '',  
4625 - update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
4626 - deleted int2 NOT NULL DEFAULT 0 4548 +CREATE TABLE system_tenant (
  4549 + id int8 NOT NULL,
  4550 + name varchar(30) NOT NULL,
  4551 + contact_user_id int8 NULL DEFAULT NULL,
  4552 + contact_name varchar(30) NOT NULL,
  4553 + contact_mobile varchar(500) NULL DEFAULT NULL,
  4554 + status int2 NOT NULL DEFAULT 0,
  4555 + websites varchar(1024) NULL DEFAULT '',
  4556 + package_id int8 NOT NULL,
  4557 + expire_time timestamp NOT NULL,
  4558 + account_count int4 NOT NULL,
  4559 + creator varchar(64) NOT NULL DEFAULT '',
  4560 + create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  4561 + updater varchar(64) NULL DEFAULT '',
  4562 + update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  4563 + deleted int2 NOT NULL DEFAULT 0
4627 ); 4564 );
4628 4565
4629 -ALTER TABLE system_tenant  
4630 - ADD CONSTRAINT pk_system_tenant PRIMARY KEY (id); 4566 +ALTER TABLE system_tenant ADD CONSTRAINT pk_system_tenant PRIMARY KEY (id);
4631 4567
4632 COMMENT ON COLUMN system_tenant.id IS '租户编号'; 4568 COMMENT ON COLUMN system_tenant.id IS '租户编号';
4633 COMMENT ON COLUMN system_tenant.name IS '租户名'; 4569 COMMENT ON COLUMN system_tenant.name IS '租户名';
4634 COMMENT ON COLUMN system_tenant.contact_user_id IS '联系人的用户编号'; 4570 COMMENT ON COLUMN system_tenant.contact_user_id IS '联系人的用户编号';
4635 COMMENT ON COLUMN system_tenant.contact_name IS '联系人'; 4571 COMMENT ON COLUMN system_tenant.contact_name IS '联系人';
4636 COMMENT ON COLUMN system_tenant.contact_mobile IS '联系手机'; 4572 COMMENT ON COLUMN system_tenant.contact_mobile IS '联系手机';
4637 -COMMENT ON COLUMN system_tenant.status IS '租户状态(0正常 1停用)'; 4573 +COMMENT ON COLUMN system_tenant.status IS '租户状态';
4638 COMMENT ON COLUMN system_tenant.websites IS '绑定域名数组'; 4574 COMMENT ON COLUMN system_tenant.websites IS '绑定域名数组';
4639 COMMENT ON COLUMN system_tenant.package_id IS '租户套餐编号'; 4575 COMMENT ON COLUMN system_tenant.package_id IS '租户套餐编号';
4640 COMMENT ON COLUMN system_tenant.expire_time IS '过期时间'; 4576 COMMENT ON COLUMN system_tenant.expire_time IS '过期时间';
@@ -4651,36 +4587,34 @@ COMMENT ON TABLE system_tenant IS &#39;租户表&#39;; @@ -4651,36 +4587,34 @@ COMMENT ON TABLE system_tenant IS &#39;租户表&#39;;
4651 -- ---------------------------- 4587 -- ----------------------------
4652 -- @formatter:off 4588 -- @formatter:off
4653 BEGIN; 4589 BEGIN;
4654 -INSERT INTO system_tenant (id, name, contact_user_id, contact_name, contact_mobile, status, websites, package_id, expire_time, account_count, creator, create_time, updater, update_time, deleted) VALUES (1, '芋道源码', NULL, '芋艿', '17321315478', 0, 'www.iocoder.cn', 0, '2099-02-19 17:14:16', 9999, '1', '2021-01-05 17:03:47', '1', '2023-11-06 11:41:41', '0');  
4655 -INSERT INTO system_tenant (id, name, contact_user_id, contact_name, contact_mobile, status, websites, package_id, expire_time, account_count, creator, create_time, updater, update_time, deleted) VALUES (121, '小租户', 110, '小王2', '15601691300', 0, 'zsxq.iocoder.cn', 111, '2026-07-10 00:00:00', 30, '1', '2022-02-22 00:56:14', '1', '2025-04-03 21:33:01', '0');  
4656 -INSERT INTO system_tenant (id, name, contact_user_id, contact_name, contact_mobile, status, websites, package_id, expire_time, account_count, creator, create_time, updater, update_time, deleted) VALUES (122, '测试租户', 113, '芋道', '15601691300', 0, 'test.iocoder.cn', 111, '2022-04-29 00:00:00', 50, '1', '2022-03-07 21:37:58', '1', '2024-09-22 12:10:50', '0'); 4590 +INSERT INTO system_tenant (id, name, contact_user_id, contact_name, contact_mobile, status, websites, package_id, expire_time, account_count, creator, create_time, updater, update_time, deleted) VALUES (1, '芋道源码', NULL, '芋艿', '17321315478', 0, 'www.iocoder.cn,127.0.0.1:3000,wxc4598c446f8a9cb3', 0, '2099-02-19 17:14:16', 9999, '1', '2021-01-05 17:03:47', '1', '2025-08-19 05:18:41', '0');
  4591 +INSERT INTO system_tenant (id, name, contact_user_id, contact_name, contact_mobile, status, websites, package_id, expire_time, account_count, creator, create_time, updater, update_time, deleted) VALUES (121, '小租户', 110, '小王2', '15601691300', 0, 'zsxq.iocoder.cn,123321', 111, '2026-07-10 00:00:00', 30, '1', '2022-02-22 00:56:14', '1', '2025-08-19 21:19:29', '0');
  4592 +INSERT INTO system_tenant (id, name, contact_user_id, contact_name, contact_mobile, status, websites, package_id, expire_time, account_count, creator, create_time, updater, update_time, deleted) VALUES (122, '测试租户', 113, '芋道', '15601691300', 0, 'test.iocoder.cn,222,333', 111, '2022-04-29 00:00:00', 50, '1', '2022-03-07 21:37:58', '1', '2025-09-06 20:44:42', '0');
4657 COMMIT; 4593 COMMIT;
4658 -- @formatter:on 4594 -- @formatter:on
4659 4595
4660 -DROP SEQUENCE IF EXISTS system_tenant_package_seq;  
4661 -CREATE SEQUENCE system_tenant_package_seq  
4662 - START 1; 4596 +DROP SEQUENCE IF EXISTS system_tenant_seq;
  4597 +CREATE SEQUENCE system_tenant_seq
  4598 + START 123;
4663 4599
4664 -- ---------------------------- 4600 -- ----------------------------
4665 -- Table structure for system_tenant_package 4601 -- Table structure for system_tenant_package
4666 -- ---------------------------- 4602 -- ----------------------------
4667 DROP TABLE IF EXISTS system_tenant_package; 4603 DROP TABLE IF EXISTS system_tenant_package;
4668 -CREATE TABLE system_tenant_package  
4669 -(  
4670 - id int8 NOT NULL default nextval('system_tenant_package_seq'),  
4671 - name varchar(30) NOT NULL,  
4672 - status int2 NOT NULL DEFAULT 0,  
4673 - remark varchar(256) NULL DEFAULT '',  
4674 - menu_ids varchar(4096) NOT NULL,  
4675 - creator varchar(64) NOT NULL DEFAULT '',  
4676 - create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
4677 - updater varchar(64) NULL DEFAULT '',  
4678 - update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
4679 - deleted int2 NOT NULL DEFAULT 0 4604 +CREATE TABLE system_tenant_package (
  4605 + id int8 NOT NULL,
  4606 + name varchar(30) NOT NULL,
  4607 + status int2 NOT NULL DEFAULT 0,
  4608 + remark varchar(256) NULL DEFAULT '',
  4609 + menu_ids varchar(4096) NOT NULL,
  4610 + creator varchar(64) NOT NULL DEFAULT '',
  4611 + create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  4612 + updater varchar(64) NULL DEFAULT '',
  4613 + update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  4614 + deleted int2 NOT NULL DEFAULT 0
4680 ); 4615 );
4681 4616
4682 -ALTER TABLE system_tenant_package  
4683 - ADD CONSTRAINT pk_system_tenant_package PRIMARY KEY (id); 4617 +ALTER TABLE system_tenant_package ADD CONSTRAINT pk_system_tenant_package PRIMARY KEY (id);
4684 4618
4685 COMMENT ON COLUMN system_tenant_package.id IS '套餐编号'; 4619 COMMENT ON COLUMN system_tenant_package.id IS '套餐编号';
4686 COMMENT ON COLUMN system_tenant_package.name IS '套餐名'; 4620 COMMENT ON COLUMN system_tenant_package.name IS '套餐名';
@@ -4699,34 +4633,31 @@ COMMENT ON TABLE system_tenant_package IS &#39;租户套餐表&#39;; @@ -4699,34 +4633,31 @@ COMMENT ON TABLE system_tenant_package IS &#39;租户套餐表&#39;;
4699 -- ---------------------------- 4633 -- ----------------------------
4700 -- @formatter:off 4634 -- @formatter:off
4701 BEGIN; 4635 BEGIN;
4702 -INSERT INTO system_tenant_package (id, name, status, remark, menu_ids, creator, create_time, updater, update_time, deleted) VALUES (111, '普通套餐', 0, '小功能', '[1,2,5,1031,1032,1033,1034,1035,1036,1037,1038,1039,1050,1051,1052,1053,1054,1056,1057,1058,1059,1060,1063,1064,1065,1066,1067,1070,1075,1077,1078,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1118,1119,1120,100,101,102,103,106,107,110,111,112,113,1138,114,1139,115,1140,116,1141,1142,1143,2713,2714,2715,2716,2717,2718,2720,1185,2721,1186,2722,1187,2723,1188,2724,1189,2725,1190,2726,1191,2727,2472,1192,2728,1193,2729,1194,2730,1195,2731,1196,2732,1197,2733,2478,1198,2734,2479,1199,2735,2480,1200,2481,1201,2482,1202,2483,2739,2484,2740,2485,2486,2487,1207,2488,1208,2489,1209,2490,1210,2491,1211,2492,1212,2493,1213,2494,2495,1215,1216,2497,1217,1218,1219,1220,1221,1222,1224,1225,1226,1227,1228,1229,1237,1238,1239,1240,1241,1242,1243,2525,1255,1256,1001,1257,1002,1258,1003,1259,1004,1260,1005,1006,1007,1008,1009,1010,1011,1012,1013,1014,1015,1016,1017,1018,1019,1020]', '1', '2022-02-22 00:54:00', '1', '2024-07-13 22:37:24', '0');  
4703 -INSERT INTO system_tenant_package (id, name, status, remark, menu_ids, creator, create_time, updater, update_time, deleted) VALUES (112, '再来一个套餐', 0, '1234', '[1024,1,1025,1026,2,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1042,1043,1045,1046,1048,1050,1051,1052,1053,1054,1056,1057,1058,2083,1059,1060,1063,1064,1065,1066,1067,1070,1075,1077,1078,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1100,1101,1102,1103,1104,1105,1106,2130,1107,2131,1108,2132,1109,2133,2134,2135,2136,2137,2138,2139,2140,2141,2142,2143,2144,2145,2146,2147,100,2148,101,2149,102,2150,103,2151,104,2152,105,106,107,108,109,110,111,112,113,1138,114,1139,115,1140,116,1141,1142,1143,2739,2740,1224,1225,1226,1227,1228,1229,1237,1238,1239,1240,1241,1242,1243,1255,1256,1257,1258,1259,1260,1261,1263,1264,1265,1266,1267,2447,2448,2449,2450,2451,2452,2453,2472,2478,2479,2480,2481,2482,2483,2484,2485,2486,2487,2488,2489,2490,2491,2492,2493,2494,2495,2497,2525,1001,1002,1003,1004,1005,1006,1007,1008,1009,1010,1011,1012,500,1013,501,1014,1015,1016,1017,1018,1019,1020,1021,1022,1023]', '1', '2025-04-04 08:15:02', '1', '2025-04-04 08:15:21', '0'); 4636 +INSERT INTO system_tenant_package (id, name, status, remark, menu_ids, creator, create_time, updater, update_time, deleted) VALUES (111, '普通套餐', 0, '小功能', '[1,2,5,1031,1032,1033,1034,1035,1036,1037,1038,1039,1050,1051,1052,1053,1054,1056,1057,1058,1059,1060,1063,1064,1065,1066,1067,1070,1075,1077,1078,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1117,1118,1119,1120,100,101,102,1126,103,1127,1128,1129,106,1130,107,1132,1133,110,1134,111,1135,112,1136,113,1137,2161,114,1138,1139,115,1140,116,1141,1142,1143,1150,1161,1162,1166,1173,1174,2713,2714,1178,2715,2716,2717,2718,2720,2721,1185,2722,1186,1187,2723,1188,2724,1189,2725,1190,2726,1191,2727,1192,2728,2729,1193,1194,2730,1195,2731,2732,1197,2733,1198,2734,1199,2735,1200,1201,1202,2739,2740,1207,1208,1209,2745,1210,2746,1211,2747,1212,2748,1213,1215,1216,1217,1218,1219,1220,2756,1221,2757,1222,1224,1225,1226,1227,1228,1229,1237,1238,2262,1239,1240,1241,1242,1243,2275,2276,2277,1255,1256,1257,2281,1258,2282,1259,2283,1260,2284,2285,2287,2288,2293,2294,2297,2300,2301,2302,2317,2318,2319,2320,2321,2322,2323,2324,2325,2326,2327,2328,2329,2330,2331,2332,2333,2334,2335,2363,2364,5011,5012,2472,2478,2479,2480,2481,2482,2483,2484,2485,2486,2487,2488,2489,2490,2491,2492,2493,2494,2495,2497,2525,1001,1002,1003,1004,1005,1006,1007,1008,1009,1010,1011,1012,1013,2549,1014,2550,1015,2551,1016,2552,1017,2553,1018,2554,1019,2555,1020,2556,2557,2558,2559]', '1', '2022-02-22 00:54:00', '1', '2025-09-06 20:52:25', '0');
4704 COMMIT; 4637 COMMIT;
4705 -- @formatter:on 4638 -- @formatter:on
4706 4639
4707 -DROP SEQUENCE IF EXISTS system_user_post_seq;  
4708 -CREATE SEQUENCE system_user_post_seq  
4709 - START 1; 4640 +DROP SEQUENCE IF EXISTS system_tenant_package_seq;
  4641 +CREATE SEQUENCE system_tenant_package_seq
  4642 + START 112;
4710 4643
4711 -- ---------------------------- 4644 -- ----------------------------
4712 -- Table structure for system_user_post 4645 -- Table structure for system_user_post
4713 -- ---------------------------- 4646 -- ----------------------------
4714 DROP TABLE IF EXISTS system_user_post; 4647 DROP TABLE IF EXISTS system_user_post;
4715 -CREATE TABLE system_user_post  
4716 -(  
4717 - id int8 NOT NULL default nextval('system_user_post_seq'),  
4718 - user_id int8 NOT NULL DEFAULT 0,  
4719 - post_id int8 NOT NULL DEFAULT 0,  
4720 - creator varchar(64) NULL DEFAULT '',  
4721 - create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
4722 - updater varchar(64) NULL DEFAULT '',  
4723 - update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
4724 - deleted int2 NOT NULL DEFAULT 0,  
4725 - tenant_id int8 NOT NULL DEFAULT 0 4648 +CREATE TABLE system_user_post (
  4649 + id int8 NOT NULL,
  4650 + user_id int8 NOT NULL DEFAULT 0,
  4651 + post_id int8 NOT NULL DEFAULT 0,
  4652 + creator varchar(64) NULL DEFAULT '',
  4653 + create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  4654 + updater varchar(64) NULL DEFAULT '',
  4655 + update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  4656 + deleted int2 NOT NULL DEFAULT 0,
  4657 + tenant_id int8 NOT NULL DEFAULT 0
4726 ); 4658 );
4727 4659
4728 -ALTER TABLE system_user_post  
4729 - ADD CONSTRAINT pk_system_user_post PRIMARY KEY (id); 4660 +ALTER TABLE system_user_post ADD CONSTRAINT pk_system_user_post PRIMARY KEY (id);
4730 4661
4731 COMMENT ON COLUMN system_user_post.id IS 'id'; 4662 COMMENT ON COLUMN system_user_post.id IS 'id';
4732 COMMENT ON COLUMN system_user_post.user_id IS '用户ID'; 4663 COMMENT ON COLUMN system_user_post.user_id IS '用户ID';
@@ -4756,29 +4687,27 @@ INSERT INTO system_user_post (id, user_id, post_id, creator, create_time, update @@ -4756,29 +4687,27 @@ INSERT INTO system_user_post (id, user_id, post_id, creator, create_time, update
4756 COMMIT; 4687 COMMIT;
4757 -- @formatter:on 4688 -- @formatter:on
4758 4689
4759 -DROP SEQUENCE IF EXISTS system_user_role_seq;  
4760 -CREATE SEQUENCE system_user_role_seq  
4761 - START 1; 4690 +DROP SEQUENCE IF EXISTS system_user_post_seq;
  4691 +CREATE SEQUENCE system_user_post_seq
  4692 + START 126;
4762 4693
4763 -- ---------------------------- 4694 -- ----------------------------
4764 -- Table structure for system_user_role 4695 -- Table structure for system_user_role
4765 -- ---------------------------- 4696 -- ----------------------------
4766 DROP TABLE IF EXISTS system_user_role; 4697 DROP TABLE IF EXISTS system_user_role;
4767 -CREATE TABLE system_user_role  
4768 -(  
4769 - id int8 NOT NULL default nextval('system_user_role_seq'),  
4770 - user_id int8 NOT NULL,  
4771 - role_id int8 NOT NULL,  
4772 - creator varchar(64) NULL DEFAULT '',  
4773 - create_time timestamp NULL DEFAULT CURRENT_TIMESTAMP,  
4774 - updater varchar(64) NULL DEFAULT '',  
4775 - update_time timestamp NULL DEFAULT CURRENT_TIMESTAMP,  
4776 - deleted int2 NOT NULL DEFAULT 0,  
4777 - tenant_id int8 NOT NULL DEFAULT 0 4698 +CREATE TABLE system_user_role (
  4699 + id int8 NOT NULL,
  4700 + user_id int8 NOT NULL,
  4701 + role_id int8 NOT NULL,
  4702 + creator varchar(64) NULL DEFAULT '',
  4703 + create_time timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  4704 + updater varchar(64) NULL DEFAULT '',
  4705 + update_time timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  4706 + deleted int2 NOT NULL DEFAULT 0,
  4707 + tenant_id int8 NOT NULL DEFAULT 0
4778 ); 4708 );
4779 4709
4780 -ALTER TABLE system_user_role  
4781 - ADD CONSTRAINT pk_system_user_role PRIMARY KEY (id); 4710 +ALTER TABLE system_user_role ADD CONSTRAINT pk_system_user_role PRIMARY KEY (id);
4782 4711
4783 COMMENT ON COLUMN system_user_role.id IS '自增编号'; 4712 COMMENT ON COLUMN system_user_role.id IS '自增编号';
4784 COMMENT ON COLUMN system_user_role.user_id IS '用户ID'; 4713 COMMENT ON COLUMN system_user_role.user_id IS '用户ID';
@@ -4798,7 +4727,6 @@ COMMENT ON TABLE system_user_role IS &#39;用户和角色关联表&#39;; @@ -4798,7 +4727,6 @@ COMMENT ON TABLE system_user_role IS &#39;用户和角色关联表&#39;;
4798 BEGIN; 4727 BEGIN;
4799 INSERT INTO system_user_role (id, user_id, role_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1, 1, 1, '', '2022-01-11 13:19:45', '', '2022-05-12 12:35:17', '0', 1); 4728 INSERT INTO system_user_role (id, user_id, role_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1, 1, 1, '', '2022-01-11 13:19:45', '', '2022-05-12 12:35:17', '0', 1);
4800 INSERT INTO system_user_role (id, user_id, role_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2, 2, 2, '', '2022-01-11 13:19:45', '', '2022-05-12 12:35:13', '0', 1); 4729 INSERT INTO system_user_role (id, user_id, role_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (2, 2, 2, '', '2022-01-11 13:19:45', '', '2022-05-12 12:35:13', '0', 1);
4801 -INSERT INTO system_user_role (id, user_id, role_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (4, 100, 101, '', '2022-01-11 13:19:45', '', '2022-05-12 12:35:13', '0', 1);  
4802 INSERT INTO system_user_role (id, user_id, role_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (5, 100, 1, '', '2022-01-11 13:19:45', '', '2022-05-12 12:35:12', '0', 1); 4730 INSERT INTO system_user_role (id, user_id, role_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (5, 100, 1, '', '2022-01-11 13:19:45', '', '2022-05-12 12:35:12', '0', 1);
4803 INSERT INTO system_user_role (id, user_id, role_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6, 100, 2, '', '2022-01-11 13:19:45', '', '2022-05-12 12:35:11', '0', 1); 4731 INSERT INTO system_user_role (id, user_id, role_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6, 100, 2, '', '2022-01-11 13:19:45', '', '2022-05-12 12:35:11', '0', 1);
4804 INSERT INTO system_user_role (id, user_id, role_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (10, 103, 1, '1', '2022-01-11 13:19:45', '1', '2022-01-11 13:19:45', '0', 1); 4732 INSERT INTO system_user_role (id, user_id, role_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (10, 103, 1, '1', '2022-01-11 13:19:45', '1', '2022-01-11 13:19:45', '0', 1);
@@ -4809,47 +4737,46 @@ INSERT INTO system_user_role (id, user_id, role_id, creator, create_time, update @@ -4809,47 +4737,46 @@ INSERT INTO system_user_role (id, user_id, role_id, creator, create_time, update
4809 INSERT INTO system_user_role (id, user_id, role_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (22, 115, 2, '1', '2022-07-21 22:08:30', '1', '2022-07-21 22:08:30', '0', 1); 4737 INSERT INTO system_user_role (id, user_id, role_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (22, 115, 2, '1', '2022-07-21 22:08:30', '1', '2022-07-21 22:08:30', '0', 1);
4810 INSERT INTO system_user_role (id, user_id, role_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (35, 112, 1, '1', '2024-03-15 20:00:24', '1', '2024-03-15 20:00:24', '0', 1); 4738 INSERT INTO system_user_role (id, user_id, role_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (35, 112, 1, '1', '2024-03-15 20:00:24', '1', '2024-03-15 20:00:24', '0', 1);
4811 INSERT INTO system_user_role (id, user_id, role_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (36, 118, 1, '1', '2024-03-17 09:12:08', '1', '2024-03-17 09:12:08', '0', 1); 4739 INSERT INTO system_user_role (id, user_id, role_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (36, 118, 1, '1', '2024-03-17 09:12:08', '1', '2024-03-17 09:12:08', '0', 1);
4812 -INSERT INTO system_user_role (id, user_id, role_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (38, 114, 101, '1', '2024-03-24 22:23:03', '1', '2024-03-24 22:23:03', '0', 1);  
4813 INSERT INTO system_user_role (id, user_id, role_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (46, 117, 1, '1', '2024-10-02 10:16:11', '1', '2024-10-02 10:16:11', '0', 1); 4740 INSERT INTO system_user_role (id, user_id, role_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (46, 117, 1, '1', '2024-10-02 10:16:11', '1', '2024-10-02 10:16:11', '0', 1);
4814 INSERT INTO system_user_role (id, user_id, role_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (47, 104, 2, '1', '2025-01-04 10:40:33', '1', '2025-01-04 10:40:33', '0', 1); 4741 INSERT INTO system_user_role (id, user_id, role_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (47, 104, 2, '1', '2025-01-04 10:40:33', '1', '2025-01-04 10:40:33', '0', 1);
4815 INSERT INTO system_user_role (id, user_id, role_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (48, 100, 155, '1', '2025-04-04 10:41:14', '1', '2025-04-04 10:41:14', '0', 1); 4742 INSERT INTO system_user_role (id, user_id, role_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (48, 100, 155, '1', '2025-04-04 10:41:14', '1', '2025-04-04 10:41:14', '0', 1);
  4743 +INSERT INTO system_user_role (id, user_id, role_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (49, 142, 1, '1', '2025-07-23 09:11:42', '1', '2025-07-23 09:11:42', '0', 1);
  4744 +INSERT INTO system_user_role (id, user_id, role_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (50, 142, 2, '1', '2025-10-07 20:50:37', '1', '2025-10-07 20:50:37', '0', 1);
4816 COMMIT; 4745 COMMIT;
4817 -- @formatter:on 4746 -- @formatter:on
4818 4747
4819 -DROP SEQUENCE IF EXISTS system_users_seq;  
4820 -CREATE SEQUENCE system_users_seq  
4821 - START 1; 4748 +DROP SEQUENCE IF EXISTS system_user_role_seq;
  4749 +CREATE SEQUENCE system_user_role_seq
  4750 + START 51;
4822 4751
4823 -- ---------------------------- 4752 -- ----------------------------
4824 -- Table structure for system_users 4753 -- Table structure for system_users
4825 -- ---------------------------- 4754 -- ----------------------------
4826 DROP TABLE IF EXISTS system_users; 4755 DROP TABLE IF EXISTS system_users;
4827 -CREATE TABLE system_users  
4828 -(  
4829 - id int8 NOT NULL default nextval('system_users_seq'),  
4830 - username varchar(30) NOT NULL,  
4831 - password varchar(100) NOT NULL DEFAULT '',  
4832 - nickname varchar(30) NOT NULL,  
4833 - remark varchar(500) NULL DEFAULT NULL,  
4834 - dept_id int8 NULL DEFAULT NULL,  
4835 - post_ids varchar(255) NULL DEFAULT NULL,  
4836 - email varchar(50) NULL DEFAULT '',  
4837 - mobile varchar(11) NULL DEFAULT '',  
4838 - sex int2 NULL DEFAULT 0,  
4839 - avatar varchar(512) NULL DEFAULT '',  
4840 - status int2 NOT NULL DEFAULT 0,  
4841 - login_ip varchar(50) NULL DEFAULT '',  
4842 - login_date timestamp NULL DEFAULT NULL,  
4843 - creator varchar(64) NULL DEFAULT '',  
4844 - create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
4845 - updater varchar(64) NULL DEFAULT '',  
4846 - update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
4847 - deleted int2 NOT NULL DEFAULT 0,  
4848 - tenant_id int8 NOT NULL DEFAULT 0 4756 +CREATE TABLE system_users (
  4757 + id int8 NOT NULL,
  4758 + username varchar(30) NOT NULL,
  4759 + password varchar(100) NOT NULL DEFAULT '',
  4760 + nickname varchar(30) NOT NULL,
  4761 + remark varchar(500) NULL DEFAULT NULL,
  4762 + dept_id int8 NULL DEFAULT NULL,
  4763 + post_ids varchar(255) NULL DEFAULT NULL,
  4764 + email varchar(50) NULL DEFAULT '',
  4765 + mobile varchar(11) NULL DEFAULT '',
  4766 + sex int2 NULL DEFAULT 0,
  4767 + avatar varchar(512) NULL DEFAULT '',
  4768 + status int2 NOT NULL DEFAULT 0,
  4769 + login_ip varchar(50) NULL DEFAULT '',
  4770 + login_date timestamp NULL DEFAULT NULL,
  4771 + creator varchar(64) NULL DEFAULT '',
  4772 + create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  4773 + updater varchar(64) NULL DEFAULT '',
  4774 + update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  4775 + deleted int2 NOT NULL DEFAULT 0,
  4776 + tenant_id int8 NOT NULL DEFAULT 0
4849 ); 4777 );
4850 4778
4851 -ALTER TABLE system_users  
4852 - ADD CONSTRAINT pk_system_users PRIMARY KEY (id); 4779 +ALTER TABLE system_users ADD CONSTRAINT pk_system_users PRIMARY KEY (id);
4853 4780
4854 COMMENT ON COLUMN system_users.id IS '用户ID'; 4781 COMMENT ON COLUMN system_users.id IS '用户ID';
4855 COMMENT ON COLUMN system_users.username IS '用户账号'; 4782 COMMENT ON COLUMN system_users.username IS '用户账号';
@@ -4878,9 +4805,9 @@ COMMENT ON TABLE system_users IS &#39;用户信息表&#39;; @@ -4878,9 +4805,9 @@ COMMENT ON TABLE system_users IS &#39;用户信息表&#39;;
4878 -- ---------------------------- 4805 -- ----------------------------
4879 -- @formatter:off 4806 -- @formatter:off
4880 BEGIN; 4807 BEGIN;
4881 -INSERT INTO system_users (id, username, password, nickname, remark, dept_id, post_ids, email, mobile, sex, avatar, status, login_ip, login_date, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1, 'admin', '$2a$04$KljJDa/LK7QfDm0lF5OhuePhlPfjRH3tB2Wu351Uidz.oQGJXevPi', '芋道源码', '管理员', 103, '[1,2]', '11aoteman@126.com', '18818260277', 2, 'http://test.yudao.iocoder.cn/test/20250502/avatar_1746154660449.png', 0, '0:0:0:0:0:0:0:1', '2025-05-10 18:03:15', 'admin', '2021-01-05 17:03:47', NULL, '2025-05-10 18:03:15', '0', 1); 4808 +INSERT INTO system_users (id, username, password, nickname, remark, dept_id, post_ids, email, mobile, sex, avatar, status, login_ip, login_date, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (1, 'admin', '$2a$04$KljJDa/LK7QfDm0lF5OhuePhlPfjRH3tB2Wu351Uidz.oQGJXevPi', '芋道源码', '管理员', 103, '[1,2]', '11aoteman@126.com', '18818260272', 2, 'http://test.yudao.iocoder.cn/20250921/avatar_1758423875594.png', 0, '0:0:0:0:0:0:0:1', '2025-11-22 18:50:21', 'admin', '2021-01-05 17:03:47', NULL, '2025-11-22 18:50:21', '0', 1);
4882 INSERT INTO system_users (id, username, password, nickname, remark, dept_id, post_ids, email, mobile, sex, avatar, status, login_ip, login_date, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (100, 'yudao', '$2a$04$h.aaPKgO.odHepnk5PCsWeEwKdojFWdTItxGKfx1r0e1CSeBzsTJ6', '芋道', '不要吓我', 104, '[1]', 'yudao@iocoder.cn', '15601691300', 1, NULL, 0, '0:0:0:0:0:0:0:1', '2025-04-08 09:36:40', '', '2021-01-07 09:07:17', NULL, '2025-04-21 14:23:08', '0', 1); 4809 INSERT INTO system_users (id, username, password, nickname, remark, dept_id, post_ids, email, mobile, sex, avatar, status, login_ip, login_date, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (100, 'yudao', '$2a$04$h.aaPKgO.odHepnk5PCsWeEwKdojFWdTItxGKfx1r0e1CSeBzsTJ6', '芋道', '不要吓我', 104, '[1]', 'yudao@iocoder.cn', '15601691300', 1, NULL, 0, '0:0:0:0:0:0:0:1', '2025-04-08 09:36:40', '', '2021-01-07 09:07:17', NULL, '2025-04-21 14:23:08', '0', 1);
4883 -INSERT INTO system_users (id, username, password, nickname, remark, dept_id, post_ids, email, mobile, sex, avatar, status, login_ip, login_date, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (103, 'yuanma', '$2a$04$fUBSmjKCPYAUmnMzOb6qE.eZCGPhHi1JmAKclODbfS/O7fHOl2bH6', '源码', NULL, 106, NULL, 'yuanma@iocoder.cn', '15601701300', 0, NULL, 0, '0:0:0:0:0:0:0:1', '2024-08-11 17:48:12', '', '2021-01-13 23:50:35', NULL, '2025-04-21 14:23:08', '0', 1); 4810 +INSERT INTO system_users (id, username, password, nickname, remark, dept_id, post_ids, email, mobile, sex, avatar, status, login_ip, login_date, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (103, 'yuanma', '$2a$04$fUBSmjKCPYAUmnMzOb6qE.eZCGPhHi1JmAKclODbfS/O7fHOl2bH6', '源码', NULL, 106, NULL, 'yuanma@iocoder.cn', '15601701300', 0, NULL, 0, '0:0:0:0:0:0:0:1', '2024-08-11 17:48:12', '', '2021-01-13 23:50:35', '1', '2025-07-09 23:41:58', '0', 1);
4884 INSERT INTO system_users (id, username, password, nickname, remark, dept_id, post_ids, email, mobile, sex, avatar, status, login_ip, login_date, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (104, 'test', '$2a$04$BrwaYn303hjA/6TnXqdGoOLhyHOAA0bVrAFu6.1dJKycqKUnIoRz2', '测试号', NULL, 107, '[1,2]', '111@qq.com', '15601691200', 1, NULL, 0, '0:0:0:0:0:0:0:1', '2025-03-28 20:01:16', '', '2021-01-21 02:13:53', NULL, '2025-04-21 14:23:08', '0', 1); 4811 INSERT INTO system_users (id, username, password, nickname, remark, dept_id, post_ids, email, mobile, sex, avatar, status, login_ip, login_date, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (104, 'test', '$2a$04$BrwaYn303hjA/6TnXqdGoOLhyHOAA0bVrAFu6.1dJKycqKUnIoRz2', '测试号', NULL, 107, '[1,2]', '111@qq.com', '15601691200', 1, NULL, 0, '0:0:0:0:0:0:0:1', '2025-03-28 20:01:16', '', '2021-01-21 02:13:53', NULL, '2025-04-21 14:23:08', '0', 1);
4885 INSERT INTO system_users (id, username, password, nickname, remark, dept_id, post_ids, email, mobile, sex, avatar, status, login_ip, login_date, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (107, 'admin107', '$2a$10$dYOOBKMO93v/.ReCqzyFg.o67Tqk.bbc2bhrpyBGkIw9aypCtr2pm', '芋艿', NULL, NULL, NULL, '', '15601691300', 0, NULL, 0, '', NULL, '1', '2022-02-20 22:59:33', '1', '2025-04-21 14:23:08', '0', 118); 4812 INSERT INTO system_users (id, username, password, nickname, remark, dept_id, post_ids, email, mobile, sex, avatar, status, login_ip, login_date, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (107, 'admin107', '$2a$10$dYOOBKMO93v/.ReCqzyFg.o67Tqk.bbc2bhrpyBGkIw9aypCtr2pm', '芋艿', NULL, NULL, NULL, '', '15601691300', 0, NULL, 0, '', NULL, '1', '2022-02-20 22:59:33', '1', '2025-04-21 14:23:08', '0', 118);
4886 INSERT INTO system_users (id, username, password, nickname, remark, dept_id, post_ids, email, mobile, sex, avatar, status, login_ip, login_date, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (108, 'admin108', '$2a$10$y6mfvKoNYL1GXWak8nYwVOH.kCWqjactkzdoIDgiKl93WN3Ejg.Lu', '芋艿', NULL, NULL, NULL, '', '15601691300', 0, NULL, 0, '', NULL, '1', '2022-02-20 23:00:50', '1', '2025-04-21 14:23:08', '0', 119); 4813 INSERT INTO system_users (id, username, password, nickname, remark, dept_id, post_ids, email, mobile, sex, avatar, status, login_ip, login_date, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (108, 'admin108', '$2a$10$y6mfvKoNYL1GXWak8nYwVOH.kCWqjactkzdoIDgiKl93WN3Ejg.Lu', '芋艿', NULL, NULL, NULL, '', '15601691300', 0, NULL, 0, '', NULL, '1', '2022-02-20 23:00:50', '1', '2025-04-21 14:23:08', '0', 119);
@@ -4891,40 +4818,38 @@ INSERT INTO system_users (id, username, password, nickname, remark, dept_id, pos @@ -4891,40 +4818,38 @@ INSERT INTO system_users (id, username, password, nickname, remark, dept_id, pos
4891 INSERT INTO system_users (id, username, password, nickname, remark, dept_id, post_ids, email, mobile, sex, avatar, status, login_ip, login_date, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (113, 'aoteman', '$2a$10$0acJOIk2D25/oC87nyclE..0lzeu9DtQ/n3geP4fkun/zIVRhHJIO', '芋道1', NULL, NULL, NULL, '', '15601691300', 0, NULL, 0, '127.0.0.1', '2022-03-19 18:38:51', '1', '2022-03-07 21:37:58', '1', '2025-05-05 15:30:53', '0', 122); 4818 INSERT INTO system_users (id, username, password, nickname, remark, dept_id, post_ids, email, mobile, sex, avatar, status, login_ip, login_date, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (113, 'aoteman', '$2a$10$0acJOIk2D25/oC87nyclE..0lzeu9DtQ/n3geP4fkun/zIVRhHJIO', '芋道1', NULL, NULL, NULL, '', '15601691300', 0, NULL, 0, '127.0.0.1', '2022-03-19 18:38:51', '1', '2022-03-07 21:37:58', '1', '2025-05-05 15:30:53', '0', 122);
4892 INSERT INTO system_users (id, username, password, nickname, remark, dept_id, post_ids, email, mobile, sex, avatar, status, login_ip, login_date, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (114, 'hrmgr', '$2a$10$TR4eybBioGRhBmDBWkqWLO6NIh3mzYa8KBKDDB5woiGYFVlRAi.fu', 'hr 小姐姐', NULL, NULL, '[5]', '', '15601691236', 1, NULL, 0, '0:0:0:0:0:0:0:1', '2024-03-24 22:21:05', '1', '2022-03-19 21:50:58', NULL, '2025-04-21 14:23:08', '0', 1); 4819 INSERT INTO system_users (id, username, password, nickname, remark, dept_id, post_ids, email, mobile, sex, avatar, status, login_ip, login_date, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (114, 'hrmgr', '$2a$10$TR4eybBioGRhBmDBWkqWLO6NIh3mzYa8KBKDDB5woiGYFVlRAi.fu', 'hr 小姐姐', NULL, NULL, '[5]', '', '15601691236', 1, NULL, 0, '0:0:0:0:0:0:0:1', '2024-03-24 22:21:05', '1', '2022-03-19 21:50:58', NULL, '2025-04-21 14:23:08', '0', 1);
4893 INSERT INTO system_users (id, username, password, nickname, remark, dept_id, post_ids, email, mobile, sex, avatar, status, login_ip, login_date, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (115, 'aotemane', '$2a$04$GcyP0Vyzb2F2Yni5PuIK9ueGxM0tkZGMtDwVRwrNbtMvorzbpNsV2', '阿呆', '11222', 102, '[1,2]', '7648@qq.com', '15601691229', 2, NULL, 0, '', NULL, '1', '2022-04-30 02:55:43', '1', '2025-04-21 14:23:08', '0', 1); 4820 INSERT INTO system_users (id, username, password, nickname, remark, dept_id, post_ids, email, mobile, sex, avatar, status, login_ip, login_date, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (115, 'aotemane', '$2a$04$GcyP0Vyzb2F2Yni5PuIK9ueGxM0tkZGMtDwVRwrNbtMvorzbpNsV2', '阿呆', '11222', 102, '[1,2]', '7648@qq.com', '15601691229', 2, NULL, 0, '', NULL, '1', '2022-04-30 02:55:43', '1', '2025-04-21 14:23:08', '0', 1);
4894 -INSERT INTO system_users (id, username, password, nickname, remark, dept_id, post_ids, email, mobile, sex, avatar, status, login_ip, login_date, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (117, 'admin123', '$2a$04$sEtimsHu9YCkYY4/oqElHem2Ijc9ld20eYO6lN.g/21NfLUTDLB9W', '测试号02', '1111', 100, '[2]', '', '15601691234', 1, NULL, 0, '0:0:0:0:0:0:0:1', '2024-10-02 10:16:20', '1', '2022-07-09 17:40:26', NULL, '2025-04-21 14:23:08', '0', 1);  
4895 -INSERT INTO system_users (id, username, password, nickname, remark, dept_id, post_ids, email, mobile, sex, avatar, status, login_ip, login_date, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (118, 'goudan', '$2a$04$jth0yOj8cSJq84D6vrzusOHDwW/LpBfgBnQ6bfFlD8zNZfM632Ta2', '狗蛋', NULL, 103, '[1]', '', '15601691239', 1, NULL, 0, '0:0:0:0:0:0:0:1', '2024-03-17 09:10:27', '1', '2022-07-09 17:44:43', '1', '2025-04-21 14:23:08', '0', 1);  
4896 -INSERT INTO system_users (id, username, password, nickname, remark, dept_id, post_ids, email, mobile, sex, avatar, status, login_ip, login_date, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (131, 'hh', '$2a$04$jyH9h6.gaw8mpOjPfHIpx.8as2Rzfcmdlj5rlJFwgCw4rsv/MTb2K', '呵呵', NULL, 100, '[]', '777@qq.com', '15601882312', 1, NULL, 0, '', NULL, '1', '2024-04-27 08:45:56', '1', '2025-04-21 14:23:08', '0', 1); 4821 +INSERT INTO system_users (id, username, password, nickname, remark, dept_id, post_ids, email, mobile, sex, avatar, status, login_ip, login_date, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (117, 'admin123', '$2a$04$sEtimsHu9YCkYY4/oqElHem2Ijc9ld20eYO6lN.g/21NfLUTDLB9W', '测试号02', '1111', 100, '[2]', '', '15601691234', 1, NULL, 0, '0:0:0:0:0:0:0:1', '2024-10-02 10:16:20', '1', '2022-07-09 17:40:26', '1', '2025-05-14 09:56:04', '0', 1);
  4822 +INSERT INTO system_users (id, username, password, nickname, remark, dept_id, post_ids, email, mobile, sex, avatar, status, login_ip, login_date, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (118, 'goudan', '$2a$04$3suGZjnA6rM5bErf38u1felbgqbsPHGdRG3l9NkxPCEt2ah9Y6aJi', '狗蛋', NULL, 103, '[1]', '', '15601691239', 1, NULL, 0, '0:0:0:0:0:0:0:1', '2025-11-23 15:28:25', '1', '2022-07-09 17:44:43', NULL, '2025-11-23 15:28:25', '0', 1);
4897 INSERT INTO system_users (id, username, password, nickname, remark, dept_id, post_ids, email, mobile, sex, avatar, status, login_ip, login_date, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (139, 'wwbwwb', '$2a$04$aOHoFbQU6zfBk/1Z9raF/ugTdhjNdx7culC1HhO0zvoczAnahCiMq', '小秃头', NULL, NULL, NULL, '', '', 0, NULL, 0, '0:0:0:0:0:0:0:1', '2024-09-10 21:03:58', NULL, '2024-09-10 21:03:58', NULL, '2025-04-21 14:23:08', '0', 1); 4823 INSERT INTO system_users (id, username, password, nickname, remark, dept_id, post_ids, email, mobile, sex, avatar, status, login_ip, login_date, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (139, 'wwbwwb', '$2a$04$aOHoFbQU6zfBk/1Z9raF/ugTdhjNdx7culC1HhO0zvoczAnahCiMq', '小秃头', NULL, NULL, NULL, '', '', 0, NULL, 0, '0:0:0:0:0:0:0:1', '2024-09-10 21:03:58', NULL, '2024-09-10 21:03:58', NULL, '2025-04-21 14:23:08', '0', 1);
4898 -INSERT INTO system_users (id, username, password, nickname, remark, dept_id, post_ids, email, mobile, sex, avatar, status, login_ip, login_date, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (141, 'admin1', '$2a$04$oj6F6d7HrZ70kYVD3TNzEu.m3TPUzajOVuC66zdKna8KRerK1FmVa', '新用户', NULL, NULL, NULL, '', '', 0, '', 0, '0:0:0:0:0:0:0:1', '2025-04-08 13:09:07', '1', '2025-04-08 13:09:07', '1', '2025-04-08 13:09:07', '0', 1); 4824 +INSERT INTO system_users (id, username, password, nickname, remark, dept_id, post_ids, email, mobile, sex, avatar, status, login_ip, login_date, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (141, 'admin1', '$2a$04$oj6F6d7HrZ70kYVD3TNzEu.m3TPUzajOVuC66zdKna8KRerK1FmVa', '新用户', NULL, NULL, NULL, '', '', 0, '', 0, '0:0:0:0:0:0:0:1', '2025-04-08 13:09:07', '1', '2025-04-08 13:09:07', '1', '2025-05-14 19:11:48', '0', 1);
  4825 +INSERT INTO system_users (id, username, password, nickname, remark, dept_id, post_ids, email, mobile, sex, avatar, status, login_ip, login_date, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (142, 'test01', '$2a$04$IaR0fGYtalIDURMMdcaD2.4JDWZ15ueQZwap9oPUuxkwSbL66vIRG', 'test01', '', NULL, '[]', '', '19021719925', 1, '', 0, '0:0:0:0:0:0:0:1', '2025-07-29 19:47:17', '1', '2025-07-09 21:07:10', '1', '2025-11-25 19:49:08', '0', 1);
4899 COMMIT; 4826 COMMIT;
4900 -- @formatter:on 4827 -- @formatter:on
4901 4828
4902 -DROP SEQUENCE IF EXISTS yudao_demo01_contact_seq;  
4903 -CREATE SEQUENCE yudao_demo01_contact_seq  
4904 - START 1; 4829 +DROP SEQUENCE IF EXISTS system_users_seq;
  4830 +CREATE SEQUENCE system_users_seq
  4831 + START 143;
4905 4832
4906 -- ---------------------------- 4833 -- ----------------------------
4907 -- Table structure for yudao_demo01_contact 4834 -- Table structure for yudao_demo01_contact
4908 -- ---------------------------- 4835 -- ----------------------------
4909 DROP TABLE IF EXISTS yudao_demo01_contact; 4836 DROP TABLE IF EXISTS yudao_demo01_contact;
4910 -CREATE TABLE yudao_demo01_contact  
4911 -(  
4912 - id int8 NOT NULL default nextval('yudao_demo01_contact_seq'),  
4913 - name varchar(100) NOT NULL DEFAULT '',  
4914 - sex int2 NOT NULL,  
4915 - birthday timestamp NOT NULL,  
4916 - description varchar(255) NOT NULL,  
4917 - avatar varchar(512) NULL DEFAULT NULL,  
4918 - creator varchar(64) NULL DEFAULT '',  
4919 - create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
4920 - updater varchar(64) NULL DEFAULT '',  
4921 - update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
4922 - deleted int2 NOT NULL DEFAULT 0,  
4923 - tenant_id int8 NOT NULL DEFAULT 0 4837 +CREATE TABLE yudao_demo01_contact (
  4838 + id int8 NOT NULL,
  4839 + name varchar(100) NOT NULL DEFAULT '',
  4840 + sex int2 NOT NULL,
  4841 + birthday timestamp NOT NULL,
  4842 + description varchar(255) NOT NULL,
  4843 + avatar varchar(512) NULL DEFAULT NULL,
  4844 + creator varchar(64) NULL DEFAULT '',
  4845 + create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  4846 + updater varchar(64) NULL DEFAULT '',
  4847 + update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  4848 + deleted int2 NOT NULL DEFAULT 0,
  4849 + tenant_id int8 NOT NULL DEFAULT 0
4924 ); 4850 );
4925 4851
4926 -ALTER TABLE yudao_demo01_contact  
4927 - ADD CONSTRAINT pk_yudao_demo01_contact PRIMARY KEY (id); 4852 +ALTER TABLE yudao_demo01_contact ADD CONSTRAINT pk_yudao_demo01_contact PRIMARY KEY (id);
4928 4853
4929 COMMENT ON COLUMN yudao_demo01_contact.id IS '编号'; 4854 COMMENT ON COLUMN yudao_demo01_contact.id IS '编号';
4930 COMMENT ON COLUMN yudao_demo01_contact.name IS '名字'; 4855 COMMENT ON COLUMN yudao_demo01_contact.name IS '名字';
@@ -4949,29 +4874,27 @@ INSERT INTO yudao_demo01_contact (id, name, sex, birthday, description, avatar, @@ -4949,29 +4874,27 @@ INSERT INTO yudao_demo01_contact (id, name, sex, birthday, description, avatar,
4949 COMMIT; 4874 COMMIT;
4950 -- @formatter:on 4875 -- @formatter:on
4951 4876
4952 -DROP SEQUENCE IF EXISTS yudao_demo02_category_seq;  
4953 -CREATE SEQUENCE yudao_demo02_category_seq  
4954 - START 1; 4877 +DROP SEQUENCE IF EXISTS yudao_demo01_contact_seq;
  4878 +CREATE SEQUENCE yudao_demo01_contact_seq
  4879 + START 2;
4955 4880
4956 -- ---------------------------- 4881 -- ----------------------------
4957 -- Table structure for yudao_demo02_category 4882 -- Table structure for yudao_demo02_category
4958 -- ---------------------------- 4883 -- ----------------------------
4959 DROP TABLE IF EXISTS yudao_demo02_category; 4884 DROP TABLE IF EXISTS yudao_demo02_category;
4960 -CREATE TABLE yudao_demo02_category  
4961 -(  
4962 - id int8 NOT NULL default nextval('yudao_demo02_category_seq'),  
4963 - name varchar(100) NOT NULL DEFAULT '',  
4964 - parent_id int8 NOT NULL,  
4965 - creator varchar(64) NULL DEFAULT '',  
4966 - create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
4967 - updater varchar(64) NULL DEFAULT '',  
4968 - update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
4969 - deleted int2 NOT NULL DEFAULT 0,  
4970 - tenant_id int8 NOT NULL DEFAULT 0 4885 +CREATE TABLE yudao_demo02_category (
  4886 + id int8 NOT NULL,
  4887 + name varchar(100) NOT NULL DEFAULT '',
  4888 + parent_id int8 NOT NULL,
  4889 + creator varchar(64) NULL DEFAULT '',
  4890 + create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  4891 + updater varchar(64) NULL DEFAULT '',
  4892 + update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  4893 + deleted int2 NOT NULL DEFAULT 0,
  4894 + tenant_id int8 NOT NULL DEFAULT 0
4971 ); 4895 );
4972 4896
4973 -ALTER TABLE yudao_demo02_category  
4974 - ADD CONSTRAINT pk_yudao_demo02_category PRIMARY KEY (id); 4897 +ALTER TABLE yudao_demo02_category ADD CONSTRAINT pk_yudao_demo02_category PRIMARY KEY (id);
4975 4898
4976 COMMENT ON COLUMN yudao_demo02_category.id IS '编号'; 4899 COMMENT ON COLUMN yudao_demo02_category.id IS '编号';
4977 COMMENT ON COLUMN yudao_demo02_category.name IS '名字'; 4900 COMMENT ON COLUMN yudao_demo02_category.name IS '名字';
@@ -4995,33 +4918,32 @@ INSERT INTO yudao_demo02_category (id, name, parent_id, creator, create_time, up @@ -4995,33 +4918,32 @@ INSERT INTO yudao_demo02_category (id, name, parent_id, creator, create_time, up
4995 INSERT INTO yudao_demo02_category (id, name, parent_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (4, '小番茄', 2, '1', '2023-11-16 20:24:39', '1', '2023-11-16 20:24:39', '0', 1); 4918 INSERT INTO yudao_demo02_category (id, name, parent_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (4, '小番茄', 2, '1', '2023-11-16 20:24:39', '1', '2023-11-16 20:24:39', '0', 1);
4996 INSERT INTO yudao_demo02_category (id, name, parent_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (5, '大番茄', 2, '1', '2023-11-16 20:24:46', '1', '2023-11-16 20:24:46', '0', 1); 4919 INSERT INTO yudao_demo02_category (id, name, parent_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (5, '大番茄', 2, '1', '2023-11-16 20:24:46', '1', '2023-11-16 20:24:46', '0', 1);
4997 INSERT INTO yudao_demo02_category (id, name, parent_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6, '11', 3, '1', '2023-11-24 19:29:34', '1', '2023-11-24 19:29:34', '0', 1); 4920 INSERT INTO yudao_demo02_category (id, name, parent_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (6, '11', 3, '1', '2023-11-24 19:29:34', '1', '2023-11-24 19:29:34', '0', 1);
  4921 +INSERT INTO yudao_demo02_category (id, name, parent_id, creator, create_time, updater, update_time, deleted, tenant_id) VALUES (7, '1', 0, '1', '2025-10-01 09:19:20', '1', '2025-10-01 09:19:20', '0', 1);
4998 COMMIT; 4922 COMMIT;
4999 -- @formatter:on 4923 -- @formatter:on
5000 4924
5001 -DROP SEQUENCE IF EXISTS yudao_demo03_course_seq;  
5002 -CREATE SEQUENCE yudao_demo03_course_seq  
5003 - START 1; 4925 +DROP SEQUENCE IF EXISTS yudao_demo02_category_seq;
  4926 +CREATE SEQUENCE yudao_demo02_category_seq
  4927 + START 8;
5004 4928
5005 -- ---------------------------- 4929 -- ----------------------------
5006 -- Table structure for yudao_demo03_course 4930 -- Table structure for yudao_demo03_course
5007 -- ---------------------------- 4931 -- ----------------------------
5008 DROP TABLE IF EXISTS yudao_demo03_course; 4932 DROP TABLE IF EXISTS yudao_demo03_course;
5009 -CREATE TABLE yudao_demo03_course  
5010 -(  
5011 - id int8 NOT NULL default nextval('yudao_demo03_course_seq'),  
5012 - student_id int8 NOT NULL,  
5013 - name varchar(100) NOT NULL DEFAULT '',  
5014 - score int2 NOT NULL,  
5015 - creator varchar(64) NULL DEFAULT '',  
5016 - create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
5017 - updater varchar(64) NULL DEFAULT '',  
5018 - update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
5019 - deleted int2 NOT NULL DEFAULT 0,  
5020 - tenant_id int8 NOT NULL DEFAULT 0 4933 +CREATE TABLE yudao_demo03_course (
  4934 + id int8 NOT NULL,
  4935 + student_id int8 NOT NULL,
  4936 + name varchar(100) NOT NULL DEFAULT '',
  4937 + score int2 NOT NULL,
  4938 + creator varchar(64) NULL DEFAULT '',
  4939 + create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  4940 + updater varchar(64) NULL DEFAULT '',
  4941 + update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  4942 + deleted int2 NOT NULL DEFAULT 0,
  4943 + tenant_id int8 NOT NULL DEFAULT 0
5021 ); 4944 );
5022 4945
5023 -ALTER TABLE yudao_demo03_course  
5024 - ADD CONSTRAINT pk_yudao_demo03_course PRIMARY KEY (id); 4946 +ALTER TABLE yudao_demo03_course ADD CONSTRAINT pk_yudao_demo03_course PRIMARY KEY (id);
5025 4947
5026 COMMENT ON COLUMN yudao_demo03_course.id IS '编号'; 4948 COMMENT ON COLUMN yudao_demo03_course.id IS '编号';
5027 COMMENT ON COLUMN yudao_demo03_course.student_id IS '学生编号'; 4949 COMMENT ON COLUMN yudao_demo03_course.student_id IS '学生编号';
@@ -5060,30 +4982,28 @@ INSERT INTO yudao_demo03_course (id, student_id, name, score, creator, create_ti @@ -5060,30 +4982,28 @@ INSERT INTO yudao_demo03_course (id, student_id, name, score, creator, create_ti
5060 COMMIT; 4982 COMMIT;
5061 -- @formatter:on 4983 -- @formatter:on
5062 4984
5063 -DROP SEQUENCE IF EXISTS yudao_demo03_grade_seq;  
5064 -CREATE SEQUENCE yudao_demo03_grade_seq  
5065 - START 1; 4985 +DROP SEQUENCE IF EXISTS yudao_demo03_course_seq;
  4986 +CREATE SEQUENCE yudao_demo03_course_seq
  4987 + START 21;
5066 4988
5067 -- ---------------------------- 4989 -- ----------------------------
5068 -- Table structure for yudao_demo03_grade 4990 -- Table structure for yudao_demo03_grade
5069 -- ---------------------------- 4991 -- ----------------------------
5070 DROP TABLE IF EXISTS yudao_demo03_grade; 4992 DROP TABLE IF EXISTS yudao_demo03_grade;
5071 -CREATE TABLE yudao_demo03_grade  
5072 -(  
5073 - id int8 NOT NULL default nextval('yudao_demo03_grade_seq'),  
5074 - student_id int8 NOT NULL,  
5075 - name varchar(100) NOT NULL DEFAULT '',  
5076 - teacher varchar(255) NOT NULL,  
5077 - creator varchar(64) NULL DEFAULT '',  
5078 - create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
5079 - updater varchar(64) NULL DEFAULT '',  
5080 - update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
5081 - deleted int2 NOT NULL DEFAULT 0,  
5082 - tenant_id int8 NOT NULL DEFAULT 0 4993 +CREATE TABLE yudao_demo03_grade (
  4994 + id int8 NOT NULL,
  4995 + student_id int8 NOT NULL,
  4996 + name varchar(100) NOT NULL DEFAULT '',
  4997 + teacher varchar(255) NOT NULL,
  4998 + creator varchar(64) NULL DEFAULT '',
  4999 + create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  5000 + updater varchar(64) NULL DEFAULT '',
  5001 + update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  5002 + deleted int2 NOT NULL DEFAULT 0,
  5003 + tenant_id int8 NOT NULL DEFAULT 0
5083 ); 5004 );
5084 5005
5085 -ALTER TABLE yudao_demo03_grade  
5086 - ADD CONSTRAINT pk_yudao_demo03_grade PRIMARY KEY (id); 5006 +ALTER TABLE yudao_demo03_grade ADD CONSTRAINT pk_yudao_demo03_grade PRIMARY KEY (id);
5087 5007
5088 COMMENT ON COLUMN yudao_demo03_grade.id IS '编号'; 5008 COMMENT ON COLUMN yudao_demo03_grade.id IS '编号';
5089 COMMENT ON COLUMN yudao_demo03_grade.student_id IS '学生编号'; 5009 COMMENT ON COLUMN yudao_demo03_grade.student_id IS '学生编号';
@@ -5108,31 +5028,29 @@ INSERT INTO yudao_demo03_grade (id, student_id, name, teacher, creator, create_t @@ -5108,31 +5028,29 @@ INSERT INTO yudao_demo03_grade (id, student_id, name, teacher, creator, create_t
5108 COMMIT; 5028 COMMIT;
5109 -- @formatter:on 5029 -- @formatter:on
5110 5030
5111 -DROP SEQUENCE IF EXISTS yudao_demo03_student_seq;  
5112 -CREATE SEQUENCE yudao_demo03_student_seq  
5113 - START 1; 5031 +DROP SEQUENCE IF EXISTS yudao_demo03_grade_seq;
  5032 +CREATE SEQUENCE yudao_demo03_grade_seq
  5033 + START 10;
5114 5034
5115 -- ---------------------------- 5035 -- ----------------------------
5116 -- Table structure for yudao_demo03_student 5036 -- Table structure for yudao_demo03_student
5117 -- ---------------------------- 5037 -- ----------------------------
5118 DROP TABLE IF EXISTS yudao_demo03_student; 5038 DROP TABLE IF EXISTS yudao_demo03_student;
5119 -CREATE TABLE yudao_demo03_student  
5120 -(  
5121 - id int8 NOT NULL default nextval('yudao_demo03_student_seq'),  
5122 - name varchar(100) NOT NULL DEFAULT '',  
5123 - sex int2 NOT NULL,  
5124 - birthday timestamp NOT NULL,  
5125 - description varchar(255) NOT NULL,  
5126 - creator varchar(64) NULL DEFAULT '',  
5127 - create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
5128 - updater varchar(64) NULL DEFAULT '',  
5129 - update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,  
5130 - deleted int2 NOT NULL DEFAULT 0,  
5131 - tenant_id int8 NOT NULL DEFAULT 0 5039 +CREATE TABLE yudao_demo03_student (
  5040 + id int8 NOT NULL,
  5041 + name varchar(100) NOT NULL DEFAULT '',
  5042 + sex int2 NOT NULL,
  5043 + birthday timestamp NOT NULL,
  5044 + description varchar(255) NOT NULL,
  5045 + creator varchar(64) NULL DEFAULT '',
  5046 + create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  5047 + updater varchar(64) NULL DEFAULT '',
  5048 + update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  5049 + deleted int2 NOT NULL DEFAULT 0,
  5050 + tenant_id int8 NOT NULL DEFAULT 0
5132 ); 5051 );
5133 5052
5134 -ALTER TABLE yudao_demo03_student  
5135 - ADD CONSTRAINT pk_yudao_demo03_student PRIMARY KEY (id); 5053 +ALTER TABLE yudao_demo03_student ADD CONSTRAINT pk_yudao_demo03_student PRIMARY KEY (id);
5136 5054
5137 COMMENT ON COLUMN yudao_demo03_student.id IS '编号'; 5055 COMMENT ON COLUMN yudao_demo03_student.id IS '编号';
5138 COMMENT ON COLUMN yudao_demo03_student.name IS '名字'; 5056 COMMENT ON COLUMN yudao_demo03_student.name IS '名字';
@@ -5158,3 +5076,7 @@ INSERT INTO yudao_demo03_student (id, name, sex, birthday, description, creator, @@ -5158,3 +5076,7 @@ INSERT INTO yudao_demo03_student (id, name, sex, birthday, description, creator,
5158 COMMIT; 5076 COMMIT;
5159 -- @formatter:on 5077 -- @formatter:on
5160 5078
  5079 +DROP SEQUENCE IF EXISTS yudao_demo03_student_seq;
  5080 +CREATE SEQUENCE yudao_demo03_student_seq
  5081 + START 10;
  5082 +