oracle.sql 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396
  1. -- 菜单
  2. CREATE TABLE sys_menu
  3. (
  4. menu_id NUMBER(20, 0) NOT NULL,
  5. parent_id NUMBER(20, 0) NOT NULL,
  6. name varchar2(50),
  7. url varchar2(200),
  8. perms varchar2(500),
  9. type NUMBER(2, 0),
  10. icon varchar2(50),
  11. order_num NUMBER(8, 0),
  12. PRIMARY KEY (menu_id)
  13. );
  14. -- 系统用户
  15. CREATE TABLE sys_user
  16. (
  17. user_id NUMBER(20, 0) NOT NULL,
  18. username varchar2(50) NOT NULL,
  19. password varchar2(100),
  20. salt varchar2(20),
  21. email varchar2(100),
  22. mobile varchar2(100),
  23. status NUMBER(2, 0) NOT NULL,
  24. create_user_id NUMBER(20, 0) NOT NULL,
  25. create_time timestamp,
  26. PRIMARY KEY (user_id)
  27. );
  28. CREATE UNIQUE INDEX index_sys_user_username on sys_user (username);
  29. -- 系统用户Token
  30. CREATE TABLE sys_user_token
  31. (
  32. user_id NUMBER(20, 0) NOT NULL,
  33. token varchar2(100) NOT NULL,
  34. expire_time timestamp,
  35. update_time timestamp,
  36. PRIMARY KEY (user_id)
  37. );
  38. CREATE UNIQUE INDEX index_token on sys_user_token (token);
  39. -- 系统验证码
  40. CREATE TABLE sys_captcha
  41. (
  42. uuid varchar2(36) NOT NULL,
  43. code varchar2(6) NOT NULL,
  44. expire_time timestamp,
  45. PRIMARY KEY (uuid)
  46. );
  47. -- 角色
  48. CREATE TABLE sys_role
  49. (
  50. role_id NUMBER(20, 0) NOT NULL,
  51. role_name varchar2(100),
  52. remark varchar2(100),
  53. create_user_id NUMBER(20, 0) NOT NULL,
  54. create_time timestamp,
  55. PRIMARY KEY (role_id)
  56. );
  57. -- 用户与角色对应关系
  58. CREATE TABLE sys_user_role
  59. (
  60. id NUMBER(20, 0) NOT NULL,
  61. user_id NUMBER(20, 0) NOT NULL,
  62. role_id NUMBER(20, 0) NOT NULL,
  63. PRIMARY KEY (id)
  64. );
  65. -- 角色与菜单对应关系
  66. CREATE TABLE sys_role_menu
  67. (
  68. id NUMBER(20, 0) NOT NULL,
  69. role_id NUMBER(20, 0) NOT NULL,
  70. menu_id NUMBER(20, 0) NOT NULL,
  71. PRIMARY KEY (id)
  72. );
  73. -- 系统配置信息
  74. CREATE TABLE sys_config
  75. (
  76. id NUMBER(20, 0) NOT NULL,
  77. param_key varchar2(50),
  78. param_value varchar2(4000),
  79. status NUMBER(2, 0) DEFAULT 1 NOT NULL,
  80. remark varchar2(500),
  81. PRIMARY KEY (id)
  82. );
  83. CREATE UNIQUE INDEX index_param_key on sys_config (param_key);
  84. -- 系统日志
  85. CREATE TABLE sys_log
  86. (
  87. id NUMBER(20, 0) NOT NULL,
  88. username varchar2(50),
  89. operation varchar2(50),
  90. method varchar2(200),
  91. params clob,
  92. time NUMBER(20, 0) NOT NULL,
  93. ip varchar2(64),
  94. create_date timestamp,
  95. PRIMARY KEY (id)
  96. );
  97. -- 文件上传
  98. CREATE TABLE sys_oss
  99. (
  100. id NUMBER(20, 0) NOT NULL,
  101. url varchar2(200),
  102. create_date timestamp,
  103. PRIMARY KEY (id)
  104. );
  105. -- 定时任务
  106. CREATE TABLE schedule_job
  107. (
  108. job_id NUMBER(20, 0) NOT NULL,
  109. bean_name varchar2(200),
  110. params varchar2(2000),
  111. cron_expression varchar2(100),
  112. status NUMBER(2, 0) NOT NULL,
  113. remark varchar2(255),
  114. create_time timestamp,
  115. PRIMARY KEY (job_id)
  116. );
  117. -- 定时任务日志
  118. CREATE TABLE schedule_job_log
  119. (
  120. log_id NUMBER(20, 0) NOT NULL,
  121. job_id NUMBER(20, 0) NOT NULL,
  122. bean_name varchar2(200),
  123. params varchar2(2000),
  124. status NUMBER(2, 0) NOT NULL,
  125. error varchar2(2000),
  126. times NUMBER(10, 0) NOT NULL,
  127. create_time timestamp,
  128. PRIMARY KEY (log_id)
  129. );
  130. CREATE INDEX index_job_id on schedule_job_log (job_id);
  131. -- 用户表
  132. CREATE TABLE tb_user
  133. (
  134. user_id NUMBER(20, 0) NOT NULL,
  135. username varchar2(50) NOT NULL,
  136. mobile varchar2(20) NOT NULL,
  137. password varchar2(64),
  138. create_time timestamp,
  139. PRIMARY KEY (user_id)
  140. );
  141. CREATE UNIQUE INDEX index_tb_user_username on tb_user (username);
  142. INSERT INTO sys_user (user_id, username, password, salt, email, mobile, status, create_user_id, create_time)
  143. VALUES ('1', 'admin', '9ec9750e709431dad22365cabc5c625482e574c74adaebba7dd02f1129e4ce1d', 'YzcmCZNvbXocrsz9dm8e',
  144. 'root@renren.io', '13612345678', '1', '1', CURRENT_DATE);
  145. INSERT INTO sys_menu(menu_id, parent_id, name, url, perms, type, icon, order_num)
  146. VALUES (1, 0, '系统管理', NULL, NULL, 0, 'system', 0);
  147. INSERT INTO sys_menu(menu_id, parent_id, name, url, perms, type, icon, order_num)
  148. VALUES (2, 1, '管理员列表', 'sys/user', NULL, 1, 'admin', 1);
  149. INSERT INTO sys_menu(menu_id, parent_id, name, url, perms, type, icon, order_num)
  150. VALUES (3, 1, '角色管理', 'sys/role', NULL, 1, 'role', 2);
  151. INSERT INTO sys_menu(menu_id, parent_id, name, url, perms, type, icon, order_num)
  152. VALUES (4, 1, '菜单管理', 'sys/menu', NULL, 1, 'menu', 3);
  153. INSERT INTO sys_menu(menu_id, parent_id, name, url, perms, type, icon, order_num)
  154. -- VALUES (5, 1, 'SQL监控', 'http://localhost:8080/renren-fast/druid/sql.html', NULL, 1, 'sql', 4);
  155. VALUES (5, 1, 'SQL监控', 'http://localhost:8080/mkcloud/druid/sql.html', NULL, 1, 'sql', 4);
  156. INSERT INTO sys_menu(menu_id, parent_id, name, url, perms, type, icon, order_num)
  157. VALUES (6, 1, '定时任务', 'job/schedule', NULL, 1, 'job', 5);
  158. INSERT INTO sys_menu(menu_id, parent_id, name, url, perms, type, icon, order_num)
  159. VALUES (7, 6, '查看', NULL, 'sys:schedule:list,sys:schedule:info', 2, NULL, 0);
  160. INSERT INTO sys_menu(menu_id, parent_id, name, url, perms, type, icon, order_num)
  161. VALUES (8, 6, '新增', NULL, 'sys:schedule:save', 2, NULL, 0);
  162. INSERT INTO sys_menu(menu_id, parent_id, name, url, perms, type, icon, order_num)
  163. VALUES (9, 6, '修改', NULL, 'sys:schedule:update', 2, NULL, 0);
  164. INSERT INTO sys_menu(menu_id, parent_id, name, url, perms, type, icon, order_num)
  165. VALUES (10, 6, '删除', NULL, 'sys:schedule:delete', 2, NULL, 0);
  166. INSERT INTO sys_menu(menu_id, parent_id, name, url, perms, type, icon, order_num)
  167. VALUES (11, 6, '暂停', NULL, 'sys:schedule:pause', 2, NULL, 0);
  168. INSERT INTO sys_menu(menu_id, parent_id, name, url, perms, type, icon, order_num)
  169. VALUES (12, 6, '恢复', NULL, 'sys:schedule:resume', 2, NULL, 0);
  170. INSERT INTO sys_menu(menu_id, parent_id, name, url, perms, type, icon, order_num)
  171. VALUES (13, 6, '立即执行', NULL, 'sys:schedule:run', 2, NULL, 0);
  172. INSERT INTO sys_menu(menu_id, parent_id, name, url, perms, type, icon, order_num)
  173. VALUES (14, 6, '日志列表', NULL, 'sys:schedule:log', 2, NULL, 0);
  174. INSERT INTO sys_menu(menu_id, parent_id, name, url, perms, type, icon, order_num)
  175. VALUES (15, 2, '查看', NULL, 'sys:user:list,sys:user:info', 2, NULL, 0);
  176. INSERT INTO sys_menu(menu_id, parent_id, name, url, perms, type, icon, order_num)
  177. VALUES (16, 2, '新增', NULL, 'sys:user:save,sys:role:select', 2, NULL, 0);
  178. INSERT INTO sys_menu(menu_id, parent_id, name, url, perms, type, icon, order_num)
  179. VALUES (17, 2, '修改', NULL, 'sys:user:update,sys:role:select', 2, NULL, 0);
  180. INSERT INTO sys_menu(menu_id, parent_id, name, url, perms, type, icon, order_num)
  181. VALUES (18, 2, '删除', NULL, 'sys:user:delete', 2, NULL, 0);
  182. INSERT INTO sys_menu(menu_id, parent_id, name, url, perms, type, icon, order_num)
  183. VALUES (19, 3, '查看', NULL, 'sys:role:list,sys:role:info', 2, NULL, 0);
  184. INSERT INTO sys_menu(menu_id, parent_id, name, url, perms, type, icon, order_num)
  185. VALUES (20, 3, '新增', NULL, 'sys:role:save,sys:menu:list', 2, NULL, 0);
  186. INSERT INTO sys_menu(menu_id, parent_id, name, url, perms, type, icon, order_num)
  187. VALUES (21, 3, '修改', NULL, 'sys:role:update,sys:menu:list', 2, NULL, 0);
  188. INSERT INTO sys_menu(menu_id, parent_id, name, url, perms, type, icon, order_num)
  189. VALUES (22, 3, '删除', NULL, 'sys:role:delete', 2, NULL, 0);
  190. INSERT INTO sys_menu(menu_id, parent_id, name, url, perms, type, icon, order_num)
  191. VALUES (23, 4, '查看', NULL, 'sys:menu:list,sys:menu:info', 2, NULL, 0);
  192. INSERT INTO sys_menu(menu_id, parent_id, name, url, perms, type, icon, order_num)
  193. VALUES (24, 4, '新增', NULL, 'sys:menu:save,sys:menu:select', 2, NULL, 0);
  194. INSERT INTO sys_menu(menu_id, parent_id, name, url, perms, type, icon, order_num)
  195. VALUES (25, 4, '修改', NULL, 'sys:menu:update,sys:menu:select', 2, NULL, 0);
  196. INSERT INTO sys_menu(menu_id, parent_id, name, url, perms, type, icon, order_num)
  197. VALUES (26, 4, '删除', NULL, 'sys:menu:delete', 2, NULL, 0);
  198. INSERT INTO sys_menu(menu_id, parent_id, name, url, perms, type, icon, order_num)
  199. VALUES (27, 1, '参数管理', 'sys/config',
  200. 'sys:config:list,sys:config:info,sys:config:save,sys:config:update,sys:config:delete', 1, 'config', 6);
  201. INSERT INTO sys_menu(menu_id, parent_id, name, url, perms, type, icon, order_num)
  202. VALUES (29, 1, '系统日志', 'sys/log', 'sys:log:list', 1, 'log', 7);
  203. INSERT INTO sys_menu(menu_id, parent_id, name, url, perms, type, icon, order_num)
  204. VALUES (30, 1, '文件上传', 'oss/oss', 'sys:oss:all', 1, 'oss', 6);
  205. INSERT INTO sys_config (id, param_key, param_value, status, remark)
  206. VALUES (1, 'CLOUD_STORAGE_CONFIG_KEY',
  207. '{"aliyunAccessKeyId":"","aliyunAccessKeySecret":"","aliyunBucketName":"","aliyunDomain":"","aliyunEndPoint":"","aliyunPrefix":"","qcloudBucketName":"","qcloudDomain":"","qcloudPrefix":"","qcloudSecretId":"","qcloudSecretKey":"","qiniuAccessKey":"NrgMfABZxWLo5B-YYSjoE8-AZ1EISdi1Z3ubLOeZ","qiniuBucketName":"ios-app","qiniuDomain":"http://7xlij2.com1.z0.glb.clouddn.com","qiniuPrefix":"upload","qiniuSecretKey":"uIwJHevMRWU0VLxFvgy0tAcOdGqasdtVlJkdy6vV","type":1}',
  208. '0', '云存储配置信息');
  209. INSERT INTO schedule_job (job_id, bean_name, params, cron_expression, status, remark, create_time)
  210. VALUES (1, 'testTask', 'renren', '0 0/30 * * * ?', '0', '参数测试', CURRENT_DATE);
  211. -- 账号:13612345678 密码:admin
  212. INSERT INTO tb_user (user_id, username, mobile, password, create_time)
  213. VALUES (1, 'mark', '13612345678', '8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918', CURRENT_DATE);
  214. -- quartz自带表结构
  215. CREATE TABLE qrtz_job_details
  216. (
  217. SCHED_NAME VARCHAR2(120) NOT NULL,
  218. JOB_NAME VARCHAR2(200) NOT NULL,
  219. JOB_GROUP VARCHAR2(200) NOT NULL,
  220. DESCRIPTION VARCHAR2(250) NULL,
  221. JOB_CLASS_NAME VARCHAR2(250) NOT NULL,
  222. IS_DURABLE VARCHAR2(1) NOT NULL,
  223. IS_NONCONCURRENT VARCHAR2(1) NOT NULL,
  224. IS_UPDATE_DATA VARCHAR2(1) NOT NULL,
  225. REQUESTS_RECOVERY VARCHAR2(1) NOT NULL,
  226. JOB_DATA BLOB NULL,
  227. CONSTRAINT QRTZ_JOB_DETAILS_PK PRIMARY KEY (SCHED_NAME, JOB_NAME, JOB_GROUP)
  228. );
  229. CREATE TABLE qrtz_triggers
  230. (
  231. SCHED_NAME VARCHAR2(120) NOT NULL,
  232. TRIGGER_NAME VARCHAR2(200) NOT NULL,
  233. TRIGGER_GROUP VARCHAR2(200) NOT NULL,
  234. JOB_NAME VARCHAR2(200) NOT NULL,
  235. JOB_GROUP VARCHAR2(200) NOT NULL,
  236. DESCRIPTION VARCHAR2(250) NULL,
  237. NEXT_FIRE_TIME NUMBER(13) NULL,
  238. PREV_FIRE_TIME NUMBER(13) NULL,
  239. PRIORITY NUMBER(13) NULL,
  240. TRIGGER_STATE VARCHAR2(16) NOT NULL,
  241. TRIGGER_TYPE VARCHAR2(8) NOT NULL,
  242. START_TIME NUMBER(13) NOT NULL,
  243. END_TIME NUMBER(13) NULL,
  244. CALENDAR_NAME VARCHAR2(200) NULL,
  245. MISFIRE_INSTR NUMBER(2) NULL,
  246. JOB_DATA BLOB NULL,
  247. CONSTRAINT QRTZ_TRIGGERS_PK PRIMARY KEY (SCHED_NAME, TRIGGER_NAME, TRIGGER_GROUP),
  248. CONSTRAINT QRTZ_TRIGGER_TO_JOBS_FK FOREIGN KEY (SCHED_NAME, JOB_NAME, JOB_GROUP)
  249. REFERENCES QRTZ_JOB_DETAILS (SCHED_NAME, JOB_NAME, JOB_GROUP)
  250. );
  251. CREATE TABLE qrtz_simple_triggers
  252. (
  253. SCHED_NAME VARCHAR2(120) NOT NULL,
  254. TRIGGER_NAME VARCHAR2(200) NOT NULL,
  255. TRIGGER_GROUP VARCHAR2(200) NOT NULL,
  256. REPEAT_COUNT NUMBER(7) NOT NULL,
  257. REPEAT_INTERVAL NUMBER(12) NOT NULL,
  258. TIMES_TRIGGERED NUMBER(10) NOT NULL,
  259. CONSTRAINT QRTZ_SIMPLE_TRIG_PK PRIMARY KEY (SCHED_NAME, TRIGGER_NAME, TRIGGER_GROUP),
  260. CONSTRAINT QRTZ_SIMPLE_TRIG_TO_TRIG_FK FOREIGN KEY (SCHED_NAME, TRIGGER_NAME, TRIGGER_GROUP)
  261. REFERENCES QRTZ_TRIGGERS (SCHED_NAME, TRIGGER_NAME, TRIGGER_GROUP)
  262. );
  263. CREATE TABLE qrtz_cron_triggers
  264. (
  265. SCHED_NAME VARCHAR2(120) NOT NULL,
  266. TRIGGER_NAME VARCHAR2(200) NOT NULL,
  267. TRIGGER_GROUP VARCHAR2(200) NOT NULL,
  268. CRON_EXPRESSION VARCHAR2(120) NOT NULL,
  269. TIME_ZONE_ID VARCHAR2(80),
  270. CONSTRAINT QRTZ_CRON_TRIG_PK PRIMARY KEY (SCHED_NAME, TRIGGER_NAME, TRIGGER_GROUP),
  271. CONSTRAINT QRTZ_CRON_TRIG_TO_TRIG_FK FOREIGN KEY (SCHED_NAME, TRIGGER_NAME, TRIGGER_GROUP)
  272. REFERENCES QRTZ_TRIGGERS (SCHED_NAME, TRIGGER_NAME, TRIGGER_GROUP)
  273. );
  274. CREATE TABLE qrtz_simprop_triggers
  275. (
  276. SCHED_NAME VARCHAR2(120) NOT NULL,
  277. TRIGGER_NAME VARCHAR2(200) NOT NULL,
  278. TRIGGER_GROUP VARCHAR2(200) NOT NULL,
  279. STR_PROP_1 VARCHAR2(512) NULL,
  280. STR_PROP_2 VARCHAR2(512) NULL,
  281. STR_PROP_3 VARCHAR2(512) NULL,
  282. INT_PROP_1 NUMBER(10) NULL,
  283. INT_PROP_2 NUMBER(10) NULL,
  284. LONG_PROP_1 NUMBER(13) NULL,
  285. LONG_PROP_2 NUMBER(13) NULL,
  286. DEC_PROP_1 NUMERIC(13, 4) NULL,
  287. DEC_PROP_2 NUMERIC(13, 4) NULL,
  288. BOOL_PROP_1 VARCHAR2(1) NULL,
  289. BOOL_PROP_2 VARCHAR2(1) NULL,
  290. CONSTRAINT QRTZ_SIMPROP_TRIG_PK PRIMARY KEY (SCHED_NAME, TRIGGER_NAME, TRIGGER_GROUP),
  291. CONSTRAINT QRTZ_SIMPROP_TRIG_TO_TRIG_FK FOREIGN KEY (SCHED_NAME, TRIGGER_NAME, TRIGGER_GROUP)
  292. REFERENCES QRTZ_TRIGGERS (SCHED_NAME, TRIGGER_NAME, TRIGGER_GROUP)
  293. );
  294. CREATE TABLE qrtz_blob_triggers
  295. (
  296. SCHED_NAME VARCHAR2(120) NOT NULL,
  297. TRIGGER_NAME VARCHAR2(200) NOT NULL,
  298. TRIGGER_GROUP VARCHAR2(200) NOT NULL,
  299. BLOB_DATA BLOB NULL,
  300. CONSTRAINT QRTZ_BLOB_TRIG_PK PRIMARY KEY (SCHED_NAME, TRIGGER_NAME, TRIGGER_GROUP),
  301. CONSTRAINT QRTZ_BLOB_TRIG_TO_TRIG_FK FOREIGN KEY (SCHED_NAME, TRIGGER_NAME, TRIGGER_GROUP)
  302. REFERENCES QRTZ_TRIGGERS (SCHED_NAME, TRIGGER_NAME, TRIGGER_GROUP)
  303. );
  304. CREATE TABLE qrtz_calendars
  305. (
  306. SCHED_NAME VARCHAR2(120) NOT NULL,
  307. CALENDAR_NAME VARCHAR2(200) NOT NULL,
  308. CALENDAR BLOB NOT NULL,
  309. CONSTRAINT QRTZ_CALENDARS_PK PRIMARY KEY (SCHED_NAME, CALENDAR_NAME)
  310. );
  311. CREATE TABLE qrtz_paused_trigger_grps
  312. (
  313. SCHED_NAME VARCHAR2(120) NOT NULL,
  314. TRIGGER_GROUP VARCHAR2(200) NOT NULL,
  315. CONSTRAINT QRTZ_PAUSED_TRIG_GRPS_PK PRIMARY KEY (SCHED_NAME, TRIGGER_GROUP)
  316. );
  317. CREATE TABLE qrtz_fired_triggers
  318. (
  319. SCHED_NAME VARCHAR2(120) NOT NULL,
  320. ENTRY_ID VARCHAR2(95) NOT NULL,
  321. TRIGGER_NAME VARCHAR2(200) NOT NULL,
  322. TRIGGER_GROUP VARCHAR2(200) NOT NULL,
  323. INSTANCE_NAME VARCHAR2(200) NOT NULL,
  324. FIRED_TIME NUMBER(13) NOT NULL,
  325. SCHED_TIME NUMBER(13) NOT NULL,
  326. PRIORITY NUMBER(13) NOT NULL,
  327. STATE VARCHAR2(16) NOT NULL,
  328. JOB_NAME VARCHAR2(200) NULL,
  329. JOB_GROUP VARCHAR2(200) NULL,
  330. IS_NONCONCURRENT VARCHAR2(1) NULL,
  331. REQUESTS_RECOVERY VARCHAR2(1) NULL,
  332. CONSTRAINT QRTZ_FIRED_TRIGGER_PK PRIMARY KEY (SCHED_NAME, ENTRY_ID)
  333. );
  334. CREATE TABLE qrtz_scheduler_state
  335. (
  336. SCHED_NAME VARCHAR2(120) NOT NULL,
  337. INSTANCE_NAME VARCHAR2(200) NOT NULL,
  338. LAST_CHECKIN_TIME NUMBER(13) NOT NULL,
  339. CHECKIN_INTERVAL NUMBER(13) NOT NULL,
  340. CONSTRAINT QRTZ_SCHEDULER_STATE_PK PRIMARY KEY (SCHED_NAME, INSTANCE_NAME)
  341. );
  342. CREATE TABLE qrtz_locks
  343. (
  344. SCHED_NAME VARCHAR2(120) NOT NULL,
  345. LOCK_NAME VARCHAR2(40) NOT NULL,
  346. CONSTRAINT QRTZ_LOCKS_PK PRIMARY KEY (SCHED_NAME, LOCK_NAME)
  347. );
  348. create index idx_qrtz_j_req_recovery on qrtz_job_details (SCHED_NAME, REQUESTS_RECOVERY);
  349. create index idx_qrtz_j_grp on qrtz_job_details (SCHED_NAME, JOB_GROUP);
  350. create index idx_qrtz_t_j on qrtz_triggers (SCHED_NAME, JOB_NAME, JOB_GROUP);
  351. create index idx_qrtz_t_jg on qrtz_triggers (SCHED_NAME, JOB_GROUP);
  352. create index idx_qrtz_t_c on qrtz_triggers (SCHED_NAME, CALENDAR_NAME);
  353. create index idx_qrtz_t_g on qrtz_triggers (SCHED_NAME, TRIGGER_GROUP);
  354. create index idx_qrtz_t_state on qrtz_triggers (SCHED_NAME, TRIGGER_STATE);
  355. create index idx_qrtz_t_n_state on qrtz_triggers (SCHED_NAME, TRIGGER_NAME, TRIGGER_GROUP, TRIGGER_STATE);
  356. create index idx_qrtz_t_n_g_state on qrtz_triggers (SCHED_NAME, TRIGGER_GROUP, TRIGGER_STATE);
  357. create index idx_qrtz_t_next_fire_time on qrtz_triggers (SCHED_NAME, NEXT_FIRE_TIME);
  358. create index idx_qrtz_t_nft_st on qrtz_triggers (SCHED_NAME, TRIGGER_STATE, NEXT_FIRE_TIME);
  359. create index idx_qrtz_t_nft_misfire on qrtz_triggers (SCHED_NAME, MISFIRE_INSTR, NEXT_FIRE_TIME);
  360. create index idx_qrtz_t_nft_st_misfire on qrtz_triggers (SCHED_NAME, MISFIRE_INSTR, NEXT_FIRE_TIME, TRIGGER_STATE);
  361. create index idx_qrtz_t_nft_st_misfire_grp on qrtz_triggers (SCHED_NAME, MISFIRE_INSTR, NEXT_FIRE_TIME, TRIGGER_GROUP,
  362. TRIGGER_STATE);
  363. create index idx_qrtz_ft_trig_inst_name on qrtz_fired_triggers (SCHED_NAME, INSTANCE_NAME);
  364. create index idx_qrtz_ft_inst_job_req_rcvry on qrtz_fired_triggers (SCHED_NAME, INSTANCE_NAME, REQUESTS_RECOVERY);
  365. create index idx_qrtz_ft_j_g on qrtz_fired_triggers (SCHED_NAME, JOB_NAME, JOB_GROUP);
  366. create index idx_qrtz_ft_jg on qrtz_fired_triggers (SCHED_NAME, JOB_GROUP);
  367. create index idx_qrtz_ft_t_g on qrtz_fired_triggers (SCHED_NAME, TRIGGER_NAME, TRIGGER_GROUP);
  368. create index idx_qrtz_ft_tg on qrtz_fired_triggers (SCHED_NAME, TRIGGER_GROUP);