oracle.sql 15 KB

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