jnpf_xxljob_init.sql 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432
  1. /*
  2. Navicat Premium Data Transfer
  3. Source Server : 0.31 - postgres
  4. Source Server Type : PostgreSQL
  5. Source Server Version : 120009
  6. Source Host : 192.168.0.220:5432
  7. Source Catalog : jnpf_xxjob_init_345
  8. Source Schema : public
  9. Target Server Type : PostgreSQL
  10. Target Server Version : 120009
  11. File Encoding : 65001
  12. Date: 12/12/2022 14:30:10
  13. */
  14. -- ----------------------------
  15. -- Table structure for base_handlername
  16. -- ----------------------------
  17. DROP TABLE IF EXISTS "public"."base_handlername";
  18. CREATE TABLE "public"."base_handlername" (
  19. "f_id" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  20. "f_handlername" varchar(50) COLLATE "pg_catalog"."default",
  21. "f_executor" varchar(50) COLLATE "pg_catalog"."default"
  22. )
  23. ;
  24. COMMENT ON COLUMN "public"."base_handlername"."f_id" IS '主键';
  25. COMMENT ON COLUMN "public"."base_handlername"."f_handlername" IS '任务名称';
  26. COMMENT ON COLUMN "public"."base_handlername"."f_executor" IS '执行器名称';
  27. -- ----------------------------
  28. -- Records of base_handlername
  29. -- ----------------------------
  30. -- ----------------------------
  31. -- Table structure for base_timetask
  32. -- ----------------------------
  33. DROP TABLE IF EXISTS "public"."base_timetask";
  34. CREATE TABLE "public"."base_timetask" (
  35. "f_id" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  36. "f_encode" varchar(50) COLLATE "pg_catalog"."default",
  37. "f_fullname" varchar(100) COLLATE "pg_catalog"."default",
  38. "f_executetype" varchar(50) COLLATE "pg_catalog"."default",
  39. "f_executecontent" text COLLATE "pg_catalog"."default",
  40. "f_executecyclejson" text COLLATE "pg_catalog"."default",
  41. "f_lastruntime" timestamp(6),
  42. "f_nextruntime" timestamp(6),
  43. "f_runcount" int4,
  44. "f_description" text COLLATE "pg_catalog"."default",
  45. "f_sortcode" int8,
  46. "f_enabledmark" int4,
  47. "f_creatortime" timestamp(6),
  48. "f_creatoruserid" varchar(50) COLLATE "pg_catalog"."default",
  49. "f_lastmodifytime" timestamp(6),
  50. "f_lastmodifyuserid" varchar(50) COLLATE "pg_catalog"."default",
  51. "f_deletemark" int4,
  52. "f_deletetime" timestamp(6),
  53. "f_deleteuserid" varchar(50) COLLATE "pg_catalog"."default",
  54. "f_executorname" varchar(50) COLLATE "pg_catalog"."default",
  55. "f_tenantid" varchar(50) COLLATE "pg_catalog"."default"
  56. )
  57. ;
  58. COMMENT ON COLUMN "public"."base_timetask"."f_id" IS '自然主键';
  59. COMMENT ON COLUMN "public"."base_timetask"."f_encode" IS '任务编码';
  60. COMMENT ON COLUMN "public"."base_timetask"."f_fullname" IS '任务名称';
  61. COMMENT ON COLUMN "public"."base_timetask"."f_executetype" IS '执行类型';
  62. COMMENT ON COLUMN "public"."base_timetask"."f_executecontent" IS '执行内容';
  63. COMMENT ON COLUMN "public"."base_timetask"."f_executecyclejson" IS '执行周期';
  64. COMMENT ON COLUMN "public"."base_timetask"."f_lastruntime" IS '最后运行时间';
  65. COMMENT ON COLUMN "public"."base_timetask"."f_nextruntime" IS '下次运行时间';
  66. COMMENT ON COLUMN "public"."base_timetask"."f_runcount" IS '运行次数';
  67. COMMENT ON COLUMN "public"."base_timetask"."f_description" IS '描述';
  68. COMMENT ON COLUMN "public"."base_timetask"."f_sortcode" IS '排序';
  69. COMMENT ON COLUMN "public"."base_timetask"."f_enabledmark" IS '有效标志';
  70. COMMENT ON COLUMN "public"."base_timetask"."f_creatortime" IS '创建时间';
  71. COMMENT ON COLUMN "public"."base_timetask"."f_creatoruserid" IS '创建用户';
  72. COMMENT ON COLUMN "public"."base_timetask"."f_lastmodifytime" IS '修改时间';
  73. COMMENT ON COLUMN "public"."base_timetask"."f_lastmodifyuserid" IS '修改用户';
  74. COMMENT ON COLUMN "public"."base_timetask"."f_deletemark" IS '删除标志';
  75. COMMENT ON COLUMN "public"."base_timetask"."f_deletetime" IS '删除时间';
  76. COMMENT ON COLUMN "public"."base_timetask"."f_deleteuserid" IS '删除用户';
  77. COMMENT ON COLUMN "public"."base_timetask"."f_executorname" IS '执行器名称';
  78. COMMENT ON COLUMN "public"."base_timetask"."f_tenantid" IS '租户id';
  79. COMMENT ON TABLE "public"."base_timetask" IS '定时任务';
  80. -- ----------------------------
  81. -- Records of base_timetask
  82. -- ----------------------------
  83. -- ----------------------------
  84. -- Table structure for base_timetasklog
  85. -- ----------------------------
  86. DROP TABLE IF EXISTS "public"."base_timetasklog";
  87. CREATE TABLE "public"."base_timetasklog" (
  88. "f_id" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  89. "f_taskid" varchar(50) COLLATE "pg_catalog"."default",
  90. "f_runtime" timestamp(6),
  91. "f_runresult" int4,
  92. "f_description" text COLLATE "pg_catalog"."default"
  93. )
  94. ;
  95. COMMENT ON COLUMN "public"."base_timetasklog"."f_id" IS '自然主键';
  96. COMMENT ON COLUMN "public"."base_timetasklog"."f_taskid" IS '定时任务主键';
  97. COMMENT ON COLUMN "public"."base_timetasklog"."f_runtime" IS '执行时间';
  98. COMMENT ON COLUMN "public"."base_timetasklog"."f_runresult" IS '执行结果';
  99. COMMENT ON COLUMN "public"."base_timetasklog"."f_description" IS '执行说明';
  100. COMMENT ON TABLE "public"."base_timetasklog" IS '定时任务记录';
  101. -- ----------------------------
  102. -- Records of base_timetasklog
  103. -- ----------------------------
  104. -- ----------------------------
  105. -- Table structure for xxl_job_group
  106. -- ----------------------------
  107. DROP TABLE IF EXISTS "public"."xxl_job_group";
  108. CREATE TABLE "public"."xxl_job_group" (
  109. "id" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  110. "app_name" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  111. "title" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
  112. "address_type" int2 NOT NULL,
  113. "address_list" text COLLATE "pg_catalog"."default",
  114. "update_time" timestamp(6)
  115. )
  116. ;
  117. COMMENT ON COLUMN "public"."xxl_job_group"."app_name" IS '执行器AppName';
  118. COMMENT ON COLUMN "public"."xxl_job_group"."title" IS '执行器名称';
  119. COMMENT ON COLUMN "public"."xxl_job_group"."address_type" IS '执行器地址类型:0=自动注册、1=手动录入';
  120. COMMENT ON COLUMN "public"."xxl_job_group"."address_list" IS '执行器地址列表,多地址逗号分隔';
  121. -- ----------------------------
  122. -- Records of xxl_job_group
  123. -- ----------------------------
  124. INSERT INTO "public"."xxl_job_group" VALUES ('8', 'xxl-job-executor-sample1', 'xxl-job-executor-sample1', 0, 'http://192.168.20.116:9999/', '2022-12-12 14:28:53');
  125. -- ----------------------------
  126. -- Table structure for xxl_job_info
  127. -- ----------------------------
  128. DROP TABLE IF EXISTS "public"."xxl_job_info";
  129. CREATE TABLE "public"."xxl_job_info" (
  130. "id" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  131. "job_group" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  132. "job_desc" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  133. "add_time" timestamp(6),
  134. "update_time" timestamp(6),
  135. "author" varchar(64) COLLATE "pg_catalog"."default",
  136. "alarm_email" varchar(255) COLLATE "pg_catalog"."default",
  137. "schedule_type" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  138. "schedule_conf" varchar(128) COLLATE "pg_catalog"."default",
  139. "misfire_strategy" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  140. "executor_route_strategy" varchar(50) COLLATE "pg_catalog"."default",
  141. "executor_handler" varchar(255) COLLATE "pg_catalog"."default",
  142. "executor_param" text COLLATE "pg_catalog"."default",
  143. "executor_block_strategy" varchar(50) COLLATE "pg_catalog"."default",
  144. "executor_timeout" int4 NOT NULL,
  145. "executor_fail_retry_count" int4 NOT NULL,
  146. "glue_type" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  147. "glue_source" text COLLATE "pg_catalog"."default",
  148. "glue_remark" varchar(128) COLLATE "pg_catalog"."default",
  149. "glue_updatetime" timestamp(6),
  150. "child_jobid" varchar(255) COLLATE "pg_catalog"."default",
  151. "trigger_status" int2 NOT NULL,
  152. "trigger_last_time" int8 NOT NULL,
  153. "trigger_next_time" int8 NOT NULL,
  154. "tenantid" varchar(50) COLLATE "pg_catalog"."default",
  155. "taskid" varchar(50) COLLATE "pg_catalog"."default"
  156. )
  157. ;
  158. COMMENT ON COLUMN "public"."xxl_job_info"."job_group" IS '执行器主键ID';
  159. COMMENT ON COLUMN "public"."xxl_job_info"."author" IS '作者';
  160. COMMENT ON COLUMN "public"."xxl_job_info"."alarm_email" IS '报警邮件';
  161. COMMENT ON COLUMN "public"."xxl_job_info"."schedule_type" IS '调度类型';
  162. COMMENT ON COLUMN "public"."xxl_job_info"."schedule_conf" IS '调度配置,值含义取决于调度类型';
  163. COMMENT ON COLUMN "public"."xxl_job_info"."misfire_strategy" IS '调度过期策略';
  164. COMMENT ON COLUMN "public"."xxl_job_info"."executor_route_strategy" IS '执行器路由策略';
  165. COMMENT ON COLUMN "public"."xxl_job_info"."executor_handler" IS '执行器任务handler';
  166. COMMENT ON COLUMN "public"."xxl_job_info"."executor_param" IS '执行器任务参数';
  167. COMMENT ON COLUMN "public"."xxl_job_info"."executor_block_strategy" IS '阻塞处理策略';
  168. COMMENT ON COLUMN "public"."xxl_job_info"."executor_timeout" IS '任务执行超时时间,单位秒';
  169. COMMENT ON COLUMN "public"."xxl_job_info"."executor_fail_retry_count" IS '失败重试次数';
  170. COMMENT ON COLUMN "public"."xxl_job_info"."glue_type" IS 'GLUE类型';
  171. COMMENT ON COLUMN "public"."xxl_job_info"."glue_source" IS 'GLUE源代码';
  172. COMMENT ON COLUMN "public"."xxl_job_info"."glue_remark" IS 'GLUE备注';
  173. COMMENT ON COLUMN "public"."xxl_job_info"."glue_updatetime" IS 'GLUE更新时间';
  174. COMMENT ON COLUMN "public"."xxl_job_info"."child_jobid" IS '子任务ID,多个逗号分隔';
  175. COMMENT ON COLUMN "public"."xxl_job_info"."trigger_status" IS '调度状态:0-停止,1-运行';
  176. COMMENT ON COLUMN "public"."xxl_job_info"."trigger_last_time" IS '上次调度时间';
  177. COMMENT ON COLUMN "public"."xxl_job_info"."trigger_next_time" IS '下次调度时间';
  178. COMMENT ON COLUMN "public"."xxl_job_info"."tenantid" IS '租户编码';
  179. COMMENT ON COLUMN "public"."xxl_job_info"."taskid" IS '任务id';
  180. -- ----------------------------
  181. -- Records of xxl_job_info
  182. -- ----------------------------
  183. -- ----------------------------
  184. -- Table structure for xxl_job_lock
  185. -- ----------------------------
  186. DROP TABLE IF EXISTS "public"."xxl_job_lock";
  187. CREATE TABLE "public"."xxl_job_lock" (
  188. "lock_name" varchar(50) COLLATE "pg_catalog"."default" NOT NULL
  189. )
  190. ;
  191. COMMENT ON COLUMN "public"."xxl_job_lock"."lock_name" IS '锁名称';
  192. -- ----------------------------
  193. -- Records of xxl_job_lock
  194. -- ----------------------------
  195. INSERT INTO "public"."xxl_job_lock" VALUES ('schedule_lock');
  196. -- ----------------------------
  197. -- Table structure for xxl_job_log
  198. -- ----------------------------
  199. DROP TABLE IF EXISTS "public"."xxl_job_log";
  200. CREATE TABLE "public"."xxl_job_log" (
  201. "id" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  202. "job_group" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  203. "job_id" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  204. "executor_address" varchar(255) COLLATE "pg_catalog"."default",
  205. "executor_handler" varchar(255) COLLATE "pg_catalog"."default",
  206. "executor_param" text COLLATE "pg_catalog"."default",
  207. "executor_sharding_param" varchar(20) COLLATE "pg_catalog"."default",
  208. "executor_fail_retry_count" int4 NOT NULL,
  209. "trigger_time" timestamp(6),
  210. "trigger_code" int4 NOT NULL,
  211. "trigger_msg" text COLLATE "pg_catalog"."default",
  212. "handle_time" timestamp(6),
  213. "handle_code" int4 NOT NULL,
  214. "handle_msg" text COLLATE "pg_catalog"."default",
  215. "alarm_status" int2 NOT NULL
  216. )
  217. ;
  218. COMMENT ON COLUMN "public"."xxl_job_log"."job_group" IS '执行器主键ID';
  219. COMMENT ON COLUMN "public"."xxl_job_log"."job_id" IS '任务,主键ID';
  220. COMMENT ON COLUMN "public"."xxl_job_log"."executor_address" IS '执行器地址,本次执行的地址';
  221. COMMENT ON COLUMN "public"."xxl_job_log"."executor_handler" IS '执行器任务handler';
  222. COMMENT ON COLUMN "public"."xxl_job_log"."executor_param" IS '执行器任务参数';
  223. COMMENT ON COLUMN "public"."xxl_job_log"."executor_sharding_param" IS '执行器任务分片参数,格式如 1/2';
  224. COMMENT ON COLUMN "public"."xxl_job_log"."executor_fail_retry_count" IS '失败重试次数';
  225. COMMENT ON COLUMN "public"."xxl_job_log"."trigger_time" IS '调度-时间';
  226. COMMENT ON COLUMN "public"."xxl_job_log"."trigger_code" IS '调度-结果';
  227. COMMENT ON COLUMN "public"."xxl_job_log"."trigger_msg" IS '调度-日志';
  228. COMMENT ON COLUMN "public"."xxl_job_log"."handle_time" IS '执行-时间';
  229. COMMENT ON COLUMN "public"."xxl_job_log"."handle_code" IS '执行-状态';
  230. COMMENT ON COLUMN "public"."xxl_job_log"."handle_msg" IS '执行-日志';
  231. COMMENT ON COLUMN "public"."xxl_job_log"."alarm_status" IS '告警状态:0-默认、1-无需告警、2-告警成功、3-告警失败';
  232. -- ----------------------------
  233. -- Records of xxl_job_log
  234. -- ----------------------------
  235. -- ----------------------------
  236. -- Table structure for xxl_job_log_report
  237. -- ----------------------------
  238. DROP TABLE IF EXISTS "public"."xxl_job_log_report";
  239. CREATE TABLE "public"."xxl_job_log_report" (
  240. "id" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  241. "trigger_day" timestamp(6),
  242. "running_count" int4 NOT NULL,
  243. "suc_count" int4 NOT NULL,
  244. "fail_count" int4 NOT NULL,
  245. "update_time" timestamp(6)
  246. )
  247. ;
  248. COMMENT ON COLUMN "public"."xxl_job_log_report"."trigger_day" IS '调度-时间';
  249. COMMENT ON COLUMN "public"."xxl_job_log_report"."running_count" IS '运行中-日志数量';
  250. COMMENT ON COLUMN "public"."xxl_job_log_report"."suc_count" IS '执行成功-日志数量';
  251. COMMENT ON COLUMN "public"."xxl_job_log_report"."fail_count" IS '执行失败-日志数量';
  252. -- ----------------------------
  253. -- Records of xxl_job_log_report
  254. -- ----------------------------
  255. INSERT INTO "public"."xxl_job_log_report" VALUES ('1602187341432389633', '2022-12-12 00:00:00', 0, 0, 0, NULL);
  256. INSERT INTO "public"."xxl_job_log_report" VALUES ('1602187341746962434', '2022-12-11 00:00:00', 0, 0, 0, NULL);
  257. INSERT INTO "public"."xxl_job_log_report" VALUES ('1602187342342553602', '2022-12-10 00:00:00', 0, 0, 0, NULL);
  258. -- ----------------------------
  259. -- Table structure for xxl_job_logglue
  260. -- ----------------------------
  261. DROP TABLE IF EXISTS "public"."xxl_job_logglue";
  262. CREATE TABLE "public"."xxl_job_logglue" (
  263. "id" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  264. "job_id" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  265. "glue_type" varchar(50) COLLATE "pg_catalog"."default",
  266. "glue_source" text COLLATE "pg_catalog"."default",
  267. "glue_remark" varchar(128) COLLATE "pg_catalog"."default" NOT NULL,
  268. "add_time" timestamp(6),
  269. "update_time" timestamp(6)
  270. )
  271. ;
  272. COMMENT ON COLUMN "public"."xxl_job_logglue"."job_id" IS '任务,主键ID';
  273. COMMENT ON COLUMN "public"."xxl_job_logglue"."glue_type" IS 'GLUE类型';
  274. COMMENT ON COLUMN "public"."xxl_job_logglue"."glue_source" IS 'GLUE源代码';
  275. COMMENT ON COLUMN "public"."xxl_job_logglue"."glue_remark" IS 'GLUE备注';
  276. -- ----------------------------
  277. -- Records of xxl_job_logglue
  278. -- ----------------------------
  279. -- ----------------------------
  280. -- Table structure for xxl_job_registry
  281. -- ----------------------------
  282. DROP TABLE IF EXISTS "public"."xxl_job_registry";
  283. CREATE TABLE "public"."xxl_job_registry" (
  284. "id" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  285. "registry_group" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  286. "registry_key" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  287. "registry_value" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  288. "update_time" timestamp(6)
  289. )
  290. ;
  291. -- ----------------------------
  292. -- Records of xxl_job_registry
  293. -- ----------------------------
  294. INSERT INTO "public"."xxl_job_registry" VALUES ('1602187332896980993', 'EXECUTOR', 'xxl-job-executor-sample1', 'http://192.168.20.116:9999/', '2022-12-12 14:28:52');
  295. -- ----------------------------
  296. -- Table structure for xxl_job_user
  297. -- ----------------------------
  298. DROP TABLE IF EXISTS "public"."xxl_job_user";
  299. CREATE TABLE "public"."xxl_job_user" (
  300. "id" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  301. "username" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  302. "password" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  303. "role" int2 NOT NULL,
  304. "permission" varchar(255) COLLATE "pg_catalog"."default"
  305. )
  306. ;
  307. COMMENT ON COLUMN "public"."xxl_job_user"."username" IS '账号';
  308. COMMENT ON COLUMN "public"."xxl_job_user"."password" IS '密码';
  309. COMMENT ON COLUMN "public"."xxl_job_user"."role" IS '角色:0-普通用户、1-管理员';
  310. COMMENT ON COLUMN "public"."xxl_job_user"."permission" IS '权限:执行器ID列表,多个逗号分割';
  311. -- ----------------------------
  312. -- Records of xxl_job_user
  313. -- ----------------------------
  314. INSERT INTO "public"."xxl_job_user" VALUES ('1', 'admin', 'e10adc3949ba59abbe56e057f20f883e', 1, NULL);
  315. -- ----------------------------
  316. -- Primary Key structure for table base_handlername
  317. -- ----------------------------
  318. ALTER TABLE "public"."base_handlername" ADD CONSTRAINT "base_handlername_pkey" PRIMARY KEY ("f_id");
  319. -- ----------------------------
  320. -- Primary Key structure for table base_timetask
  321. -- ----------------------------
  322. ALTER TABLE "public"."base_timetask" ADD CONSTRAINT "base_timetask_pkey" PRIMARY KEY ("f_id");
  323. -- ----------------------------
  324. -- Primary Key structure for table base_timetasklog
  325. -- ----------------------------
  326. ALTER TABLE "public"."base_timetasklog" ADD CONSTRAINT "base_timetasklog_pkey" PRIMARY KEY ("f_id");
  327. -- ----------------------------
  328. -- Primary Key structure for table xxl_job_group
  329. -- ----------------------------
  330. ALTER TABLE "public"."xxl_job_group" ADD CONSTRAINT "xxl_job_group_pkey" PRIMARY KEY ("id");
  331. -- ----------------------------
  332. -- Primary Key structure for table xxl_job_info
  333. -- ----------------------------
  334. ALTER TABLE "public"."xxl_job_info" ADD CONSTRAINT "xxl_job_info_pkey" PRIMARY KEY ("id");
  335. -- ----------------------------
  336. -- Primary Key structure for table xxl_job_lock
  337. -- ----------------------------
  338. ALTER TABLE "public"."xxl_job_lock" ADD CONSTRAINT "xxl_job_lock_pkey" PRIMARY KEY ("lock_name");
  339. -- ----------------------------
  340. -- Indexes structure for table xxl_job_log
  341. -- ----------------------------
  342. CREATE INDEX "i_handle_code" ON "public"."xxl_job_log" USING btree (
  343. "handle_code" "pg_catalog"."int4_ops" ASC NULLS LAST
  344. );
  345. CREATE INDEX "i_job_id" ON "public"."xxl_job_log" USING btree (
  346. "job_id" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  347. "trigger_time" "pg_catalog"."timestamp_ops" ASC NULLS LAST
  348. );
  349. CREATE INDEX "i_trigger_time" ON "public"."xxl_job_log" USING btree (
  350. "trigger_time" "pg_catalog"."timestamp_ops" ASC NULLS LAST
  351. );
  352. -- ----------------------------
  353. -- Primary Key structure for table xxl_job_log
  354. -- ----------------------------
  355. ALTER TABLE "public"."xxl_job_log" ADD CONSTRAINT "xxl_job_log_pkey" PRIMARY KEY ("id");
  356. -- ----------------------------
  357. -- Indexes structure for table xxl_job_log_report
  358. -- ----------------------------
  359. CREATE INDEX "i_trigger_day" ON "public"."xxl_job_log_report" USING btree (
  360. "trigger_day" "pg_catalog"."timestamp_ops" ASC NULLS LAST
  361. );
  362. -- ----------------------------
  363. -- Primary Key structure for table xxl_job_log_report
  364. -- ----------------------------
  365. ALTER TABLE "public"."xxl_job_log_report" ADD CONSTRAINT "xxl_job_log_report_pkey" PRIMARY KEY ("id");
  366. -- ----------------------------
  367. -- Primary Key structure for table xxl_job_logglue
  368. -- ----------------------------
  369. ALTER TABLE "public"."xxl_job_logglue" ADD CONSTRAINT "xxl_job_logglue_pkey" PRIMARY KEY ("id");
  370. -- ----------------------------
  371. -- Indexes structure for table xxl_job_registry
  372. -- ----------------------------
  373. CREATE INDEX "i_g_k_v" ON "public"."xxl_job_registry" USING btree (
  374. "registry_group" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  375. "registry_key" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST,
  376. "registry_value" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  377. );
  378. -- ----------------------------
  379. -- Primary Key structure for table xxl_job_registry
  380. -- ----------------------------
  381. ALTER TABLE "public"."xxl_job_registry" ADD CONSTRAINT "xxl_job_registry_pkey" PRIMARY KEY ("id");
  382. -- ----------------------------
  383. -- Indexes structure for table xxl_job_user
  384. -- ----------------------------
  385. CREATE INDEX "i_username" ON "public"."xxl_job_user" USING btree (
  386. "username" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
  387. );
  388. -- ----------------------------
  389. -- Primary Key structure for table xxl_job_user
  390. -- ----------------------------
  391. ALTER TABLE "public"."xxl_job_user" ADD CONSTRAINT "xxl_job_user_pkey" PRIMARY KEY ("id");