From 9e5f7be1c5142b1cdafc7e7c79d88d8538265d36 Mon Sep 17 00:00:00 2001 From: 疯狂的狮子Li <15040126243@163.com> Date: 星期二, 30 四月 2024 15:52:12 +0800 Subject: [PATCH] update 增加 job 测试demo数据 --- script/sql/postgres/postgres_ry_vue_5.X.sql | 68 ++++++++++++--------------------- 1 files changed, 25 insertions(+), 43 deletions(-) diff --git a/script/sql/postgres/postgres_ry_vue_5.X.sql b/script/sql/postgres/postgres_ry_vue_5.X.sql index e6f6bac..2e92d46 100644 --- a/script/sql/postgres/postgres_ry_vue_5.X.sql +++ b/script/sql/postgres/postgres_ry_vue_5.X.sql @@ -69,7 +69,6 @@ -- ---------------------------- -- 绉熸埛琛� -- ---------------------------- -drop table if exists sys_tenant; create table if not exists sys_tenant ( id int8, @@ -128,7 +127,6 @@ -- ---------------------------- -- 绉熸埛濂楅琛� -- ---------------------------- -drop table if exists sys_tenant_package; create table if not exists sys_tenant_package ( package_id int8, @@ -164,7 +162,6 @@ -- ---------------------------- -- 1銆侀儴闂ㄨ〃 -- ---------------------------- -drop table if exists sys_dept; create table if not exists sys_dept ( dept_id int8, @@ -172,6 +169,7 @@ parent_id int8 default 0, ancestors varchar(500)default ''::varchar, dept_name varchar(30) default ''::varchar, + dept_category varchar(100) default null::varchar, order_num int4 default 0, leader int8 default null, phone varchar(11) default null::varchar, @@ -192,6 +190,7 @@ comment on column sys_dept.parent_id is '鐖堕儴闂↖D'; comment on column sys_dept.ancestors is '绁栫骇鍒楄〃'; comment on column sys_dept.dept_name is '閮ㄩ棬鍚嶇О'; +comment on column sys_dept.dept_category is '閮ㄩ棬绫诲埆缂栫爜'; comment on column sys_dept.order_num is '鏄剧ず椤哄簭'; comment on column sys_dept.leader is '璐熻矗浜�'; comment on column sys_dept.phone is '鑱旂郴鐢佃瘽'; @@ -207,21 +206,20 @@ -- ---------------------------- -- 鍒濆鍖�-閮ㄩ棬琛ㄦ暟鎹� -- ---------------------------- -insert into sys_dept values(100, '000000', 0, '0', 'XXX绉戞妧', 0, null, '15888888888', 'xxx@qq.com', '0', '0', 103, 1, now(), null, null); -insert into sys_dept values(101, '000000', 100, '0,100', '娣卞湷鎬诲叕鍙�', 1, null, '15888888888', 'xxx@qq.com', '0', '0', 103, 1, now(), null, null); -insert into sys_dept values(102, '000000', 100, '0,100', '闀挎矙鍒嗗叕鍙�', 2, null, '15888888888', 'xxx@qq.com', '0', '0', 103, 1, now(), null, null); -insert into sys_dept values(103, '000000', 101, '0,100,101', '鐮斿彂閮ㄩ棬', 1, 1, '15888888888', 'xxx@qq.com', '0', '0', 103, 1, now(), null, null); -insert into sys_dept values(104, '000000', 101, '0,100,101', '甯傚満閮ㄩ棬', 2, null, '15888888888', 'xxx@qq.com', '0', '0', 103, 1, now(), null, null); -insert into sys_dept values(105, '000000', 101, '0,100,101', '娴嬭瘯閮ㄩ棬', 3, null, '15888888888', 'xxx@qq.com', '0', '0', 103, 1, now(), null, null); -insert into sys_dept values(106, '000000', 101, '0,100,101', '璐㈠姟閮ㄩ棬', 4, null, '15888888888', 'xxx@qq.com', '0', '0', 103, 1, now(), null, null); -insert into sys_dept values(107, '000000', 101, '0,100,101', '杩愮淮閮ㄩ棬', 5, null, '15888888888', 'xxx@qq.com', '0', '0', 103, 1, now(), null, null); -insert into sys_dept values(108, '000000', 102, '0,100,102', '甯傚満閮ㄩ棬', 1, null, '15888888888', 'xxx@qq.com', '0', '0', 103, 1, now(), null, null); -insert into sys_dept values(109, '000000', 102, '0,100,102', '璐㈠姟閮ㄩ棬', 2, null, '15888888888', 'xxx@qq.com', '0', '0', 103, 1, now(), null, null); +insert into sys_dept values(100, '000000', 0, '0', 'XXX绉戞妧', null,0, null, '15888888888', 'xxx@qq.com', '0', '0', 103, 1, now(), null, null); +insert into sys_dept values(101, '000000', 100, '0,100', '娣卞湷鎬诲叕鍙�', null,1, null, '15888888888', 'xxx@qq.com', '0', '0', 103, 1, now(), null, null); +insert into sys_dept values(102, '000000', 100, '0,100', '闀挎矙鍒嗗叕鍙�', null,2, null, '15888888888', 'xxx@qq.com', '0', '0', 103, 1, now(), null, null); +insert into sys_dept values(103, '000000', 101, '0,100,101', '鐮斿彂閮ㄩ棬', null,1, 1, '15888888888', 'xxx@qq.com', '0', '0', 103, 1, now(), null, null); +insert into sys_dept values(104, '000000', 101, '0,100,101', '甯傚満閮ㄩ棬', null,2, null, '15888888888', 'xxx@qq.com', '0', '0', 103, 1, now(), null, null); +insert into sys_dept values(105, '000000', 101, '0,100,101', '娴嬭瘯閮ㄩ棬', null,3, null, '15888888888', 'xxx@qq.com', '0', '0', 103, 1, now(), null, null); +insert into sys_dept values(106, '000000', 101, '0,100,101', '璐㈠姟閮ㄩ棬', null,4, null, '15888888888', 'xxx@qq.com', '0', '0', 103, 1, now(), null, null); +insert into sys_dept values(107, '000000', 101, '0,100,101', '杩愮淮閮ㄩ棬', null,5, null, '15888888888', 'xxx@qq.com', '0', '0', 103, 1, now(), null, null); +insert into sys_dept values(108, '000000', 102, '0,100,102', '甯傚満閮ㄩ棬', null,1, null, '15888888888', 'xxx@qq.com', '0', '0', 103, 1, now(), null, null); +insert into sys_dept values(109, '000000', 102, '0,100,102', '璐㈠姟閮ㄩ棬', null,2, null, '15888888888', 'xxx@qq.com', '0', '0', 103, 1, now(), null, null); -- ---------------------------- -- 2銆佺敤鎴蜂俊鎭〃 -- ---------------------------- -drop table if exists sys_user; create table if not exists sys_user ( user_id int8, @@ -282,12 +280,13 @@ -- ---------------------------- -- 3銆佸矖浣嶄俊鎭〃 -- ---------------------------- -drop table if exists sys_post; create table if not exists sys_post ( post_id int8, tenant_id varchar(20) default '000000'::varchar, + dept_id int8, post_code varchar(64) not null, + post_category varchar(100) default null, post_name varchar(50) not null, post_sort int4 not null, status char not null, @@ -303,7 +302,9 @@ comment on table sys_post is '宀椾綅淇℃伅琛�'; comment on column sys_post.post_id is '宀椾綅ID'; comment on column sys_post.tenant_id is '绉熸埛缂栧彿'; +comment on column sys_post.dept_id is '閮ㄩ棬id'; comment on column sys_post.post_code is '宀椾綅缂栫爜'; +comment on column sys_post.post_category is '宀椾綅绫诲埆缂栫爜'; comment on column sys_post.post_name is '宀椾綅鍚嶇О'; comment on column sys_post.post_sort is '鏄剧ず椤哄簭'; comment on column sys_post.status is '鐘舵�侊紙0姝e父 1鍋滅敤锛�'; @@ -317,15 +318,14 @@ -- ---------------------------- -- 鍒濆鍖�-宀椾綅淇℃伅琛ㄦ暟鎹� -- ---------------------------- -insert into sys_post values(1, '000000', 'ceo', '钁d簨闀�', 1, '0', 103, 1, now(), null, null, ''); -insert into sys_post values(2, '000000', 'se', '椤圭洰缁忕悊', 2, '0', 103, 1, now(), null, null, ''); -insert into sys_post values(3, '000000', 'hr', '浜哄姏璧勬簮', 3, '0', 103, 1, now(), null, null, ''); -insert into sys_post values(4, '000000', 'user', '鏅�氬憳宸�', 4, '0', 103, 1, now(), null, null, ''); +insert into sys_post values(1, '000000', 103, 'ceo', null, '钁d簨闀�', 1, '0', 103, 1, now(), null, null, ''); +insert into sys_post values(2, '000000', 100, 'se', null, '椤圭洰缁忕悊', 2, '0', 103, 1, now(), null, null, ''); +insert into sys_post values(3, '000000', 100, 'hr', null, '浜哄姏璧勬簮', 3, '0', 103, 1, now(), null, null, ''); +insert into sys_post values(4, '000000', 100, 'user', null, '鏅�氬憳宸�', 4, '0', 103, 1, now(), null, null, ''); -- ---------------------------- -- 4銆佽鑹蹭俊鎭〃 -- ---------------------------- -drop table if exists sys_role; create table if not exists sys_role ( role_id int8, @@ -375,7 +375,6 @@ -- ---------------------------- -- 5銆佽彍鍗曟潈闄愯〃 -- ---------------------------- -drop table if exists sys_menu; create table if not exists sys_menu ( menu_id int8, @@ -432,7 +431,7 @@ insert into sys_menu values('2', '绯荤粺鐩戞帶', '0', '3', 'monitor', null, '', '1', '0', 'M', '0', '0', '', 'monitor', 103, 1, now(), null, null, '绯荤粺鐩戞帶鐩綍'); insert into sys_menu values('3', '绯荤粺宸ュ叿', '0', '4', 'tool', null, '', '1', '0', 'M', '0', '0', '', 'tool', 103, 1, now(), null, null, '绯荤粺宸ュ叿鐩綍'); insert into sys_menu values('4', 'PLUS瀹樼綉', '0', '5', 'https://gitee.com/dromara/RuoYi-Vue-Plus', null, '', '0', '0', 'M', '0', '0', '', 'guide', 103, 1, now(), null, null, 'RuoYi-Vue-Plus瀹樼綉鍦板潃'); -insert into sys_menu VALUES('5', '娴嬭瘯鑿滃崟', '0', '5', 'demo', null, '1', '0', 'M', '0', '0', null, 'star', 103, 1, now(), null, null, '娴嬭瘯鑿滃崟'); +insert into sys_menu VALUES('5', '娴嬭瘯鑿滃崟', '0', '5', 'demo', null, '', '1', '0', 'M', '0', '0', null, 'star', 103, 1, now(), null, null, '娴嬭瘯鑿滃崟'); -- 浜岀骇鑿滃崟 insert into sys_menu values('100', '鐢ㄦ埛绠$悊', '1', '1', 'user', 'system/user/index', '', '1', '0', 'C', '0', '0', 'system:user:list', 'user', 103, 1, now(), null, null, '鐢ㄦ埛绠$悊鑿滃崟'); insert into sys_menu values('101', '瑙掕壊绠$悊', '1', '2', 'role', 'system/role/index', '', '1', '0', 'C', '0', '0', 'system:role:list', 'peoples', 103, 1, now(), null, null, '瑙掕壊绠$悊鑿滃崟'); @@ -560,8 +559,8 @@ -- 娴嬭瘯鑿滃崟 INSERT INTO sys_menu VALUES('1500', '娴嬭瘯鍗曡〃', '5', '1', 'demo', 'demo/demo/index', '', '1', '0', 'C', '0', '0', 'demo:demo:list', '#', 103, 1, now(), NULL, NULL, '娴嬭瘯鍗曡〃鑿滃崟'); INSERT INTO sys_menu VALUES('1501', '娴嬭瘯鍗曡〃鏌ヨ', '1500', '1', '#', '', '', '1', '0', 'F', '0', '0', 'demo:demo:query', '#', 103, 1, now(), NULL, NULL, ''); -INSERT INTO sys_menu VALUES('1502', '娴嬭瘯鍗曡〃鏂板', '1500', '2,' '#', '', '', '1', '0', 'F', '0', '0', 'demo:demo:add', '#', 103, 1, now(), NULL, NULL, ''); -INSERT INTO sys_menu VALUES('1503', '娴嬭瘯鍗曡〃淇敼', '1500', '3', '#', '', '', '1', '0,' 'F', '0', '0', 'demo:demo:edit', '#', 103, 1, now(), NULL, NULL, ''); +INSERT INTO sys_menu VALUES('1502', '娴嬭瘯鍗曡〃鏂板', '1500', '2', '#', '', '', '1', '0', 'F', '0', '0', 'demo:demo:add', '#', 103, 1, now(), NULL, NULL, ''); +INSERT INTO sys_menu VALUES('1503', '娴嬭瘯鍗曡〃淇敼', '1500', '3', '#', '', '', '1', '0', 'F', '0', '0', 'demo:demo:edit', '#', 103, 1, now(), NULL, NULL, ''); INSERT INTO sys_menu VALUES('1504', '娴嬭瘯鍗曡〃鍒犻櫎', '1500', '4', '#', '', '', '1', '0', 'F', '0', '0', 'demo:demo:remove', '#', 103, 1, now(), NULL, NULL, ''); INSERT INTO sys_menu VALUES('1505', '娴嬭瘯鍗曡〃瀵煎嚭', '1500', '5', '#', '', '', '1', '0', 'F', '0', '0', 'demo:demo:export', '#', 103, 1, now(), NULL, NULL, ''); INSERT INTO sys_menu VALUES('1506', '娴嬭瘯鏍戣〃', '5', '1', 'tree', 'demo/tree/index', '', '1', '0', 'C', '0', '0', 'demo:tree:list', '#', 103, 1, now(), NULL, NULL, '娴嬭瘯鏍戣〃鑿滃崟'); @@ -575,7 +574,6 @@ -- ---------------------------- -- 6銆佺敤鎴峰拰瑙掕壊鍏宠仈琛� 鐢ㄦ埛N-1瑙掕壊 -- ---------------------------- -drop table if exists sys_user_role; create table if not exists sys_user_role ( user_id int8 not null, @@ -597,7 +595,6 @@ -- ---------------------------- -- 7銆佽鑹插拰鑿滃崟鍏宠仈琛� 瑙掕壊1-N鑿滃崟 -- ---------------------------- -drop table if exists sys_role_menu; create table if not exists sys_role_menu ( role_id int8 not null, @@ -699,7 +696,6 @@ -- ---------------------------- -- 8銆佽鑹插拰閮ㄩ棬鍏宠仈琛� 瑙掕壊1-N閮ㄩ棬 -- ---------------------------- -drop table if exists sys_role_dept; create table if not exists sys_role_dept ( role_id int8 not null, @@ -715,7 +711,6 @@ -- ---------------------------- -- 9銆佺敤鎴蜂笌宀椾綅鍏宠仈琛� 鐢ㄦ埛1-N宀椾綅 -- ---------------------------- -drop table if exists sys_user_post; create table if not exists sys_user_post ( user_id int8 not null, @@ -735,7 +730,6 @@ -- ---------------------------- -- 10銆佹搷浣滄棩蹇楄褰� -- ---------------------------- -drop table if exists sys_oper_log; create table if not exists sys_oper_log ( oper_id int8, @@ -786,7 +780,6 @@ -- ---------------------------- -- 11銆佸瓧鍏哥被鍨嬭〃 -- ---------------------------- -drop table if exists sys_dict_type; create table if not exists sys_dict_type ( dict_id int8, @@ -830,7 +823,6 @@ -- ---------------------------- -- 12銆佸瓧鍏告暟鎹〃 -- ---------------------------- -drop table if exists sys_dict_data; create table if not exists sys_dict_data ( dict_code int8, @@ -907,7 +899,6 @@ -- ---------------------------- -- 13銆佸弬鏁伴厤缃〃 -- ---------------------------- -drop table if exists sys_config; create table if not exists sys_config ( config_id int8, @@ -949,7 +940,6 @@ -- ---------------------------- -- 14銆佺郴缁熻闂褰� -- ---------------------------- -drop table if exists sys_logininfor; create table if not exists sys_logininfor ( info_id int8, @@ -987,7 +977,6 @@ -- ---------------------------- -- 17銆侀�氱煡鍏憡琛� -- ---------------------------- -drop table if exists sys_notice; create table if not exists sys_notice ( notice_id int8, @@ -1029,7 +1018,6 @@ -- ---------------------------- -- 18銆佷唬鐮佺敓鎴愪笟鍔¤〃 -- ---------------------------- -drop table if exists gen_table; create table if not exists gen_table ( table_id int8, @@ -1084,7 +1072,6 @@ -- ---------------------------- -- 19銆佷唬鐮佺敓鎴愪笟鍔¤〃瀛楁 -- ---------------------------- -drop table if exists gen_table_column; create table if not exists gen_table_column ( column_id int8, @@ -1141,7 +1128,6 @@ -- ---------------------------- -- OSS瀵硅薄瀛樺偍琛� -- ---------------------------- -drop table if exists sys_oss; create table if not exists sys_oss ( oss_id int8, @@ -1176,7 +1162,6 @@ -- ---------------------------- -- OSS瀵硅薄瀛樺偍鍔ㄦ�侀厤缃〃 -- ---------------------------- -drop table if exists sys_oss_config; create table if not exists sys_oss_config ( oss_config_id int8, @@ -1233,7 +1218,6 @@ -- ---------------------------- -- 绯荤粺鎺堟潈琛� -- ---------------------------- -drop table if exists sys_client; create table sys_client ( id int8, client_id varchar(64) default ''::varchar, @@ -1273,7 +1257,6 @@ insert into sys_client values (1, 'e5cd7e4891bf95d1d19206ce24a7b32e', 'pc', 'pc123', 'password,social', 'pc', 1800, 604800, 0, 0, 103, 1, now(), 1, now()); insert into sys_client values (2, '428a8310cd442757ae699df5d894f051', 'app', 'app123', 'password,sms,social', 'android', 1800, 604800, 0, 0, 103, 1, now(), 1, now()); -DROP TABLE if EXISTS test_demo; create table if not exists test_demo ( id int8, @@ -1284,8 +1267,8 @@ test_key varchar(255), value varchar(255), version int4 default 0, - create_time timestamp, create_dept int8, + create_time timestamp, create_by int8, update_time timestamp, update_by int8, @@ -1308,7 +1291,6 @@ comment on column test_demo.update_by is '鏇存柊浜�'; comment on column test_demo.del_flag is '鍒犻櫎鏍囧織'; -DROP TABLE if EXISTS test_tree; create table if not exists test_tree ( id int8, @@ -1318,8 +1300,8 @@ user_id int8, tree_name varchar(255), version int4 default 0, - create_time timestamp, create_dept int8, + create_time timestamp, create_by int8, update_time timestamp, update_by int8, -- Gitblit v1.9.3