tables_xxl_log.sql 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. # DROP TABLE IF EXISTS XXL_JOB_QRTZ_FIRED_TRIGGERS;
  2. # DROP TABLE IF EXISTS XXL_JOB_QRTZ_PAUSED_TRIGGER_GRPS;
  3. # DROP TABLE IF EXISTS XXL_JOB_QRTZ_SCHEDULER_STATE;
  4. # DROP TABLE IF EXISTS XXL_JOB_QRTZ_LOCKS;
  5. # DROP TABLE IF EXISTS XXL_JOB_QRTZ_SIMPLE_TRIGGERS;
  6. # DROP TABLE IF EXISTS XXL_JOB_QRTZ_SIMPROP_TRIGGERS;
  7. # DROP TABLE IF EXISTS XXL_JOB_QRTZ_CRON_TRIGGERS;
  8. # DROP TABLE IF EXISTS XXL_JOB_QRTZ_BLOB_TRIGGERS;
  9. # DROP TABLE IF EXISTS XXL_JOB_QRTZ_TRIGGERS;
  10. # DROP TABLE IF EXISTS XXL_JOB_QRTZ_JOB_DETAILS;
  11. # DROP TABLE IF EXISTS XXL_JOB_QRTZ_CALENDARS;
  12. # DROP TABLE IF EXISTS `xxl_job_qrtz_trigger_log`;
  13. # DROP TABLE IF EXISTS `xxl_job_qrtz_trigger_info`;
  14. CREATE TABLE XXL_JOB_QRTZ_JOB_DETAILS
  15. (
  16. SCHED_NAME VARCHAR(120) NOT NULL,
  17. JOB_NAME VARCHAR(200) NOT NULL,
  18. JOB_GROUP VARCHAR(200) NOT NULL,
  19. DESCRIPTION VARCHAR(250) NULL,
  20. JOB_CLASS_NAME VARCHAR(250) NOT NULL,
  21. IS_DURABLE VARCHAR(1) NOT NULL,
  22. IS_NONCONCURRENT VARCHAR(1) NOT NULL,
  23. IS_UPDATE_DATA VARCHAR(1) NOT NULL,
  24. REQUESTS_RECOVERY VARCHAR(1) NOT NULL,
  25. JOB_DATA BLOB NULL,
  26. PRIMARY KEY (SCHED_NAME,JOB_NAME,JOB_GROUP)
  27. );
  28. CREATE TABLE XXL_JOB_QRTZ_TRIGGERS
  29. (
  30. SCHED_NAME VARCHAR(120) NOT NULL,
  31. TRIGGER_NAME VARCHAR(200) NOT NULL,
  32. TRIGGER_GROUP VARCHAR(200) NOT NULL,
  33. JOB_NAME VARCHAR(200) NOT NULL,
  34. JOB_GROUP VARCHAR(200) NOT NULL,
  35. DESCRIPTION VARCHAR(250) NULL,
  36. NEXT_FIRE_TIME BIGINT(13) NULL,
  37. PREV_FIRE_TIME BIGINT(13) NULL,
  38. PRIORITY INTEGER NULL,
  39. TRIGGER_STATE VARCHAR(16) NOT NULL,
  40. TRIGGER_TYPE VARCHAR(8) NOT NULL,
  41. START_TIME BIGINT(13) NOT NULL,
  42. END_TIME BIGINT(13) NULL,
  43. CALENDAR_NAME VARCHAR(200) NULL,
  44. MISFIRE_INSTR SMALLINT(2) NULL,
  45. JOB_DATA BLOB NULL,
  46. PRIMARY KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP),
  47. FOREIGN KEY (SCHED_NAME,JOB_NAME,JOB_GROUP)
  48. REFERENCES XXL_JOB_QRTZ_JOB_DETAILS(SCHED_NAME,JOB_NAME,JOB_GROUP)
  49. );
  50. CREATE TABLE XXL_JOB_QRTZ_SIMPLE_TRIGGERS
  51. (
  52. SCHED_NAME VARCHAR(120) NOT NULL,
  53. TRIGGER_NAME VARCHAR(200) NOT NULL,
  54. TRIGGER_GROUP VARCHAR(200) NOT NULL,
  55. REPEAT_COUNT BIGINT(7) NOT NULL,
  56. REPEAT_INTERVAL BIGINT(12) NOT NULL,
  57. TIMES_TRIGGERED BIGINT(10) NOT NULL,
  58. PRIMARY KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP),
  59. FOREIGN KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP)
  60. REFERENCES XXL_JOB_QRTZ_TRIGGERS(SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP)
  61. );
  62. CREATE TABLE XXL_JOB_QRTZ_CRON_TRIGGERS
  63. (
  64. SCHED_NAME VARCHAR(120) NOT NULL,
  65. TRIGGER_NAME VARCHAR(200) NOT NULL,
  66. TRIGGER_GROUP VARCHAR(200) NOT NULL,
  67. CRON_EXPRESSION VARCHAR(200) NOT NULL,
  68. TIME_ZONE_ID VARCHAR(80),
  69. PRIMARY KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP),
  70. FOREIGN KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP)
  71. REFERENCES XXL_JOB_QRTZ_TRIGGERS(SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP)
  72. );
  73. CREATE TABLE XXL_JOB_QRTZ_SIMPROP_TRIGGERS
  74. (
  75. SCHED_NAME VARCHAR(120) NOT NULL,
  76. TRIGGER_NAME VARCHAR(200) NOT NULL,
  77. TRIGGER_GROUP VARCHAR(200) NOT NULL,
  78. STR_PROP_1 VARCHAR(512) NULL,
  79. STR_PROP_2 VARCHAR(512) NULL,
  80. STR_PROP_3 VARCHAR(512) NULL,
  81. INT_PROP_1 INT NULL,
  82. INT_PROP_2 INT NULL,
  83. LONG_PROP_1 BIGINT NULL,
  84. LONG_PROP_2 BIGINT NULL,
  85. DEC_PROP_1 NUMERIC(13,4) NULL,
  86. DEC_PROP_2 NUMERIC(13,4) NULL,
  87. BOOL_PROP_1 VARCHAR(1) NULL,
  88. BOOL_PROP_2 VARCHAR(1) NULL,
  89. PRIMARY KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP),
  90. FOREIGN KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP)
  91. REFERENCES XXL_JOB_QRTZ_TRIGGERS(SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP)
  92. );
  93. CREATE TABLE XXL_JOB_QRTZ_BLOB_TRIGGERS
  94. (
  95. SCHED_NAME VARCHAR(120) NOT NULL,
  96. TRIGGER_NAME VARCHAR(200) NOT NULL,
  97. TRIGGER_GROUP VARCHAR(200) NOT NULL,
  98. BLOB_DATA BLOB NULL,
  99. PRIMARY KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP),
  100. FOREIGN KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP)
  101. REFERENCES XXL_JOB_QRTZ_TRIGGERS(SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP)
  102. );
  103. CREATE TABLE XXL_JOB_QRTZ_CALENDARS
  104. (
  105. SCHED_NAME VARCHAR(120) NOT NULL,
  106. CALENDAR_NAME VARCHAR(200) NOT NULL,
  107. CALENDAR BLOB NOT NULL,
  108. PRIMARY KEY (SCHED_NAME,CALENDAR_NAME)
  109. );
  110. CREATE TABLE XXL_JOB_QRTZ_PAUSED_TRIGGER_GRPS
  111. (
  112. SCHED_NAME VARCHAR(120) NOT NULL,
  113. TRIGGER_GROUP VARCHAR(200) NOT NULL,
  114. PRIMARY KEY (SCHED_NAME,TRIGGER_GROUP)
  115. );
  116. CREATE TABLE XXL_JOB_QRTZ_FIRED_TRIGGERS
  117. (
  118. SCHED_NAME VARCHAR(120) NOT NULL,
  119. ENTRY_ID VARCHAR(95) NOT NULL,
  120. TRIGGER_NAME VARCHAR(200) NOT NULL,
  121. TRIGGER_GROUP VARCHAR(200) NOT NULL,
  122. INSTANCE_NAME VARCHAR(200) NOT NULL,
  123. FIRED_TIME BIGINT(13) NOT NULL,
  124. SCHED_TIME BIGINT(13) NOT NULL,
  125. PRIORITY INTEGER NOT NULL,
  126. STATE VARCHAR(16) NOT NULL,
  127. JOB_NAME VARCHAR(200) NULL,
  128. JOB_GROUP VARCHAR(200) NULL,
  129. IS_NONCONCURRENT VARCHAR(1) NULL,
  130. REQUESTS_RECOVERY VARCHAR(1) NULL,
  131. PRIMARY KEY (SCHED_NAME,ENTRY_ID)
  132. );
  133. CREATE TABLE XXL_JOB_QRTZ_SCHEDULER_STATE
  134. (
  135. SCHED_NAME VARCHAR(120) NOT NULL,
  136. INSTANCE_NAME VARCHAR(200) NOT NULL,
  137. LAST_CHECKIN_TIME BIGINT(13) NOT NULL,
  138. CHECKIN_INTERVAL BIGINT(13) NOT NULL,
  139. PRIMARY KEY (SCHED_NAME,INSTANCE_NAME)
  140. );
  141. CREATE TABLE XXL_JOB_QRTZ_LOCKS
  142. (
  143. SCHED_NAME VARCHAR(120) NOT NULL,
  144. LOCK_NAME VARCHAR(40) NOT NULL,
  145. PRIMARY KEY (SCHED_NAME,LOCK_NAME)
  146. );
  147. CREATE TABLE `xxl_job_qrtz_trigger_log` (
  148. `id` int(11) NOT NULL AUTO_INCREMENT,
  149. `job_group` varchar(255) NOT NULL COMMENT '任务组',
  150. `job_name` varchar(255) NOT NULL COMMENT '任务名',
  151. `job_cron` varchar(128) NOT NULL COMMENT '任务执行CORN表达式',
  152. `job_class` varchar(255) NOT NULL COMMENT '任务执行JobBean',
  153. `job_data` varchar(2048) DEFAULT NULL COMMENT '任务执行数据',
  154. `trigger_time` datetime DEFAULT NULL COMMENT '调度-时间',
  155. `trigger_status` varchar(255) DEFAULT NULL COMMENT '调度-结果',
  156. `trigger_msg` varchar(2048) DEFAULT NULL COMMENT '调度-日志',
  157. `handle_time` datetime DEFAULT NULL COMMENT '执行-时间',
  158. `handle_status` varchar(255) DEFAULT NULL COMMENT '执行-状态',
  159. `handle_msg` varchar(2048) DEFAULT NULL COMMENT '执行-日志',
  160. PRIMARY KEY (`id`)
  161. );
  162. CREATE TABLE `xxl_job_qrtz_trigger_log` (
  163. `id` int(11) NOT NULL AUTO_INCREMENT,
  164. `job_group` varchar(255) NOT NULL COMMENT '任务组',
  165. `job_name` varchar(255) NOT NULL COMMENT '任务名',
  166. `job_cron` varchar(128) NOT NULL COMMENT '任务执行CORN表达式',
  167. `job_class` varchar(255) NOT NULL COMMENT '任务执行JobBean',
  168. `job_data` varchar(2048) DEFAULT NULL COMMENT '任务执行数据',
  169. `trigger_time` datetime DEFAULT NULL COMMENT '调度-时间',
  170. `trigger_status` varchar(255) DEFAULT NULL COMMENT '调度-结果',
  171. `trigger_msg` varchar(2048) DEFAULT NULL COMMENT '调度-日志',
  172. `handle_time` datetime DEFAULT NULL COMMENT '执行-时间',
  173. `handle_status` varchar(255) DEFAULT NULL COMMENT '执行-状态',
  174. `handle_msg` varchar(2048) DEFAULT NULL COMMENT '执行-日志',
  175. PRIMARY KEY (`id`)
  176. );
  177. commit;