dolphinscheduler_mysql.sql 116 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961
  1. /*
  2. * Licensed to the Apache Software Foundation (ASF) under one or more
  3. * contributor license agreements. See the NOTICE file distributed with
  4. * this work for additional information regarding copyright ownership.
  5. * The ASF licenses this file to You under the Apache License, Version 2.0
  6. * (the "License"); you may not use this file except in compliance with
  7. * the License. You may obtain a copy of the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS,
  13. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. * See the License for the specific language governing permissions and
  15. * limitations under the License.
  16. */
  17. SET FOREIGN_KEY_CHECKS=0;
  18. -- ----------------------------
  19. -- Table structure for QRTZ_BLOB_TRIGGERS
  20. -- ----------------------------
  21. DROP TABLE IF EXISTS `QRTZ_BLOB_TRIGGERS`;
  22. CREATE TABLE `QRTZ_BLOB_TRIGGERS` (
  23. `SCHED_NAME` varchar(120) NOT NULL,
  24. `TRIGGER_NAME` varchar(200) NOT NULL,
  25. `TRIGGER_GROUP` varchar(200) NOT NULL,
  26. `BLOB_DATA` blob,
  27. PRIMARY KEY (`SCHED_NAME`,`TRIGGER_NAME`,`TRIGGER_GROUP`),
  28. KEY `SCHED_NAME` (`SCHED_NAME`,`TRIGGER_NAME`,`TRIGGER_GROUP`),
  29. CONSTRAINT `QRTZ_BLOB_TRIGGERS_ibfk_1` FOREIGN KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) REFERENCES `QRTZ_TRIGGERS` (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`)
  30. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  31. -- ----------------------------
  32. -- Records of QRTZ_BLOB_TRIGGERS
  33. -- ----------------------------
  34. -- ----------------------------
  35. -- Table structure for QRTZ_CALENDARS
  36. -- ----------------------------
  37. DROP TABLE IF EXISTS `QRTZ_CALENDARS`;
  38. CREATE TABLE `QRTZ_CALENDARS` (
  39. `SCHED_NAME` varchar(120) NOT NULL,
  40. `CALENDAR_NAME` varchar(200) NOT NULL,
  41. `CALENDAR` blob NOT NULL,
  42. PRIMARY KEY (`SCHED_NAME`,`CALENDAR_NAME`)
  43. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  44. -- ----------------------------
  45. -- Records of QRTZ_CALENDARS
  46. -- ----------------------------
  47. -- ----------------------------
  48. -- Table structure for QRTZ_CRON_TRIGGERS
  49. -- ----------------------------
  50. DROP TABLE IF EXISTS `QRTZ_CRON_TRIGGERS`;
  51. CREATE TABLE `QRTZ_CRON_TRIGGERS` (
  52. `SCHED_NAME` varchar(120) NOT NULL,
  53. `TRIGGER_NAME` varchar(200) NOT NULL,
  54. `TRIGGER_GROUP` varchar(200) NOT NULL,
  55. `CRON_EXPRESSION` varchar(120) NOT NULL,
  56. `TIME_ZONE_ID` varchar(80) DEFAULT NULL,
  57. PRIMARY KEY (`SCHED_NAME`,`TRIGGER_NAME`,`TRIGGER_GROUP`),
  58. CONSTRAINT `QRTZ_CRON_TRIGGERS_ibfk_1` FOREIGN KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) REFERENCES `QRTZ_TRIGGERS` (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`)
  59. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  60. -- ----------------------------
  61. -- Records of QRTZ_CRON_TRIGGERS
  62. -- ----------------------------
  63. -- ----------------------------
  64. -- Table structure for QRTZ_FIRED_TRIGGERS
  65. -- ----------------------------
  66. DROP TABLE IF EXISTS `QRTZ_FIRED_TRIGGERS`;
  67. CREATE TABLE `QRTZ_FIRED_TRIGGERS` (
  68. `SCHED_NAME` varchar(120) NOT NULL,
  69. `ENTRY_ID` varchar(200) NOT NULL,
  70. `TRIGGER_NAME` varchar(200) NOT NULL,
  71. `TRIGGER_GROUP` varchar(200) NOT NULL,
  72. `INSTANCE_NAME` varchar(200) NOT NULL,
  73. `FIRED_TIME` bigint(13) NOT NULL,
  74. `SCHED_TIME` bigint(13) NOT NULL,
  75. `PRIORITY` int(11) NOT NULL,
  76. `STATE` varchar(16) NOT NULL,
  77. `JOB_NAME` varchar(200) DEFAULT NULL,
  78. `JOB_GROUP` varchar(200) DEFAULT NULL,
  79. `IS_NONCONCURRENT` varchar(1) DEFAULT NULL,
  80. `REQUESTS_RECOVERY` varchar(1) DEFAULT NULL,
  81. PRIMARY KEY (`SCHED_NAME`,`ENTRY_ID`),
  82. KEY `IDX_QRTZ_FT_TRIG_INST_NAME` (`SCHED_NAME`,`INSTANCE_NAME`),
  83. KEY `IDX_QRTZ_FT_INST_JOB_REQ_RCVRY` (`SCHED_NAME`,`INSTANCE_NAME`,`REQUESTS_RECOVERY`),
  84. KEY `IDX_QRTZ_FT_J_G` (`SCHED_NAME`,`JOB_NAME`,`JOB_GROUP`),
  85. KEY `IDX_QRTZ_FT_JG` (`SCHED_NAME`,`JOB_GROUP`),
  86. KEY `IDX_QRTZ_FT_T_G` (`SCHED_NAME`,`TRIGGER_NAME`,`TRIGGER_GROUP`),
  87. KEY `IDX_QRTZ_FT_TG` (`SCHED_NAME`,`TRIGGER_GROUP`)
  88. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  89. -- ----------------------------
  90. -- Records of QRTZ_FIRED_TRIGGERS
  91. -- ----------------------------
  92. -- ----------------------------
  93. -- Table structure for QRTZ_JOB_DETAILS
  94. -- ----------------------------
  95. DROP TABLE IF EXISTS `QRTZ_JOB_DETAILS`;
  96. CREATE TABLE `QRTZ_JOB_DETAILS` (
  97. `SCHED_NAME` varchar(120) NOT NULL,
  98. `JOB_NAME` varchar(200) NOT NULL,
  99. `JOB_GROUP` varchar(200) NOT NULL,
  100. `DESCRIPTION` varchar(250) DEFAULT NULL,
  101. `JOB_CLASS_NAME` varchar(250) NOT NULL,
  102. `IS_DURABLE` varchar(1) NOT NULL,
  103. `IS_NONCONCURRENT` varchar(1) NOT NULL,
  104. `IS_UPDATE_DATA` varchar(1) NOT NULL,
  105. `REQUESTS_RECOVERY` varchar(1) NOT NULL,
  106. `JOB_DATA` blob,
  107. PRIMARY KEY (`SCHED_NAME`,`JOB_NAME`,`JOB_GROUP`),
  108. KEY `IDX_QRTZ_J_REQ_RECOVERY` (`SCHED_NAME`,`REQUESTS_RECOVERY`),
  109. KEY `IDX_QRTZ_J_GRP` (`SCHED_NAME`,`JOB_GROUP`)
  110. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  111. -- ----------------------------
  112. -- Records of QRTZ_JOB_DETAILS
  113. -- ----------------------------
  114. -- ----------------------------
  115. -- Table structure for QRTZ_LOCKS
  116. -- ----------------------------
  117. DROP TABLE IF EXISTS `QRTZ_LOCKS`;
  118. CREATE TABLE `QRTZ_LOCKS` (
  119. `SCHED_NAME` varchar(120) NOT NULL,
  120. `LOCK_NAME` varchar(40) NOT NULL,
  121. PRIMARY KEY (`SCHED_NAME`,`LOCK_NAME`)
  122. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  123. -- ----------------------------
  124. -- Records of QRTZ_LOCKS
  125. -- ----------------------------
  126. -- ----------------------------
  127. -- Table structure for QRTZ_PAUSED_TRIGGER_GRPS
  128. -- ----------------------------
  129. DROP TABLE IF EXISTS `QRTZ_PAUSED_TRIGGER_GRPS`;
  130. CREATE TABLE `QRTZ_PAUSED_TRIGGER_GRPS` (
  131. `SCHED_NAME` varchar(120) NOT NULL,
  132. `TRIGGER_GROUP` varchar(200) NOT NULL,
  133. PRIMARY KEY (`SCHED_NAME`,`TRIGGER_GROUP`)
  134. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  135. -- ----------------------------
  136. -- Records of QRTZ_PAUSED_TRIGGER_GRPS
  137. -- ----------------------------
  138. -- ----------------------------
  139. -- Table structure for QRTZ_SCHEDULER_STATE
  140. -- ----------------------------
  141. DROP TABLE IF EXISTS `QRTZ_SCHEDULER_STATE`;
  142. CREATE TABLE `QRTZ_SCHEDULER_STATE` (
  143. `SCHED_NAME` varchar(120) NOT NULL,
  144. `INSTANCE_NAME` varchar(200) NOT NULL,
  145. `LAST_CHECKIN_TIME` bigint(13) NOT NULL,
  146. `CHECKIN_INTERVAL` bigint(13) NOT NULL,
  147. PRIMARY KEY (`SCHED_NAME`,`INSTANCE_NAME`)
  148. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  149. -- ----------------------------
  150. -- Records of QRTZ_SCHEDULER_STATE
  151. -- ----------------------------
  152. -- ----------------------------
  153. -- Table structure for QRTZ_SIMPLE_TRIGGERS
  154. -- ----------------------------
  155. DROP TABLE IF EXISTS `QRTZ_SIMPLE_TRIGGERS`;
  156. CREATE TABLE `QRTZ_SIMPLE_TRIGGERS` (
  157. `SCHED_NAME` varchar(120) NOT NULL,
  158. `TRIGGER_NAME` varchar(200) NOT NULL,
  159. `TRIGGER_GROUP` varchar(200) NOT NULL,
  160. `REPEAT_COUNT` bigint(7) NOT NULL,
  161. `REPEAT_INTERVAL` bigint(12) NOT NULL,
  162. `TIMES_TRIGGERED` bigint(10) NOT NULL,
  163. PRIMARY KEY (`SCHED_NAME`,`TRIGGER_NAME`,`TRIGGER_GROUP`),
  164. CONSTRAINT `QRTZ_SIMPLE_TRIGGERS_ibfk_1` FOREIGN KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) REFERENCES `QRTZ_TRIGGERS` (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`)
  165. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  166. -- ----------------------------
  167. -- Records of QRTZ_SIMPLE_TRIGGERS
  168. -- ----------------------------
  169. -- ----------------------------
  170. -- Table structure for QRTZ_SIMPROP_TRIGGERS
  171. -- ----------------------------
  172. DROP TABLE IF EXISTS `QRTZ_SIMPROP_TRIGGERS`;
  173. CREATE TABLE `QRTZ_SIMPROP_TRIGGERS` (
  174. `SCHED_NAME` varchar(120) NOT NULL,
  175. `TRIGGER_NAME` varchar(200) NOT NULL,
  176. `TRIGGER_GROUP` varchar(200) NOT NULL,
  177. `STR_PROP_1` varchar(512) DEFAULT NULL,
  178. `STR_PROP_2` varchar(512) DEFAULT NULL,
  179. `STR_PROP_3` varchar(512) DEFAULT NULL,
  180. `INT_PROP_1` int(11) DEFAULT NULL,
  181. `INT_PROP_2` int(11) DEFAULT NULL,
  182. `LONG_PROP_1` bigint(20) DEFAULT NULL,
  183. `LONG_PROP_2` bigint(20) DEFAULT NULL,
  184. `DEC_PROP_1` decimal(13,4) DEFAULT NULL,
  185. `DEC_PROP_2` decimal(13,4) DEFAULT NULL,
  186. `BOOL_PROP_1` varchar(1) DEFAULT NULL,
  187. `BOOL_PROP_2` varchar(1) DEFAULT NULL,
  188. PRIMARY KEY (`SCHED_NAME`,`TRIGGER_NAME`,`TRIGGER_GROUP`),
  189. CONSTRAINT `QRTZ_SIMPROP_TRIGGERS_ibfk_1` FOREIGN KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) REFERENCES `QRTZ_TRIGGERS` (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`)
  190. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  191. -- ----------------------------
  192. -- Records of QRTZ_SIMPROP_TRIGGERS
  193. -- ----------------------------
  194. -- ----------------------------
  195. -- Table structure for QRTZ_TRIGGERS
  196. -- ----------------------------
  197. DROP TABLE IF EXISTS `QRTZ_TRIGGERS`;
  198. CREATE TABLE `QRTZ_TRIGGERS` (
  199. `SCHED_NAME` varchar(120) NOT NULL,
  200. `TRIGGER_NAME` varchar(200) NOT NULL,
  201. `TRIGGER_GROUP` varchar(200) NOT NULL,
  202. `JOB_NAME` varchar(200) NOT NULL,
  203. `JOB_GROUP` varchar(200) NOT NULL,
  204. `DESCRIPTION` varchar(250) DEFAULT NULL,
  205. `NEXT_FIRE_TIME` bigint(13) DEFAULT NULL,
  206. `PREV_FIRE_TIME` bigint(13) DEFAULT NULL,
  207. `PRIORITY` int(11) DEFAULT NULL,
  208. `TRIGGER_STATE` varchar(16) NOT NULL,
  209. `TRIGGER_TYPE` varchar(8) NOT NULL,
  210. `START_TIME` bigint(13) NOT NULL,
  211. `END_TIME` bigint(13) DEFAULT NULL,
  212. `CALENDAR_NAME` varchar(200) DEFAULT NULL,
  213. `MISFIRE_INSTR` smallint(2) DEFAULT NULL,
  214. `JOB_DATA` blob,
  215. PRIMARY KEY (`SCHED_NAME`,`TRIGGER_NAME`,`TRIGGER_GROUP`),
  216. KEY `IDX_QRTZ_T_J` (`SCHED_NAME`,`JOB_NAME`,`JOB_GROUP`),
  217. KEY `IDX_QRTZ_T_JG` (`SCHED_NAME`,`JOB_GROUP`),
  218. KEY `IDX_QRTZ_T_C` (`SCHED_NAME`,`CALENDAR_NAME`),
  219. KEY `IDX_QRTZ_T_G` (`SCHED_NAME`,`TRIGGER_GROUP`),
  220. KEY `IDX_QRTZ_T_STATE` (`SCHED_NAME`,`TRIGGER_STATE`),
  221. KEY `IDX_QRTZ_T_N_STATE` (`SCHED_NAME`,`TRIGGER_NAME`,`TRIGGER_GROUP`,`TRIGGER_STATE`),
  222. KEY `IDX_QRTZ_T_N_G_STATE` (`SCHED_NAME`,`TRIGGER_GROUP`,`TRIGGER_STATE`),
  223. KEY `IDX_QRTZ_T_NEXT_FIRE_TIME` (`SCHED_NAME`,`NEXT_FIRE_TIME`),
  224. KEY `IDX_QRTZ_T_NFT_ST` (`SCHED_NAME`,`TRIGGER_STATE`,`NEXT_FIRE_TIME`),
  225. KEY `IDX_QRTZ_T_NFT_MISFIRE` (`SCHED_NAME`,`MISFIRE_INSTR`,`NEXT_FIRE_TIME`),
  226. KEY `IDX_QRTZ_T_NFT_ST_MISFIRE` (`SCHED_NAME`,`MISFIRE_INSTR`,`NEXT_FIRE_TIME`,`TRIGGER_STATE`),
  227. KEY `IDX_QRTZ_T_NFT_ST_MISFIRE_GRP` (`SCHED_NAME`,`MISFIRE_INSTR`,`NEXT_FIRE_TIME`,`TRIGGER_GROUP`,`TRIGGER_STATE`),
  228. CONSTRAINT `QRTZ_TRIGGERS_ibfk_1` FOREIGN KEY (`SCHED_NAME`, `JOB_NAME`, `JOB_GROUP`) REFERENCES `QRTZ_JOB_DETAILS` (`SCHED_NAME`, `JOB_NAME`, `JOB_GROUP`)
  229. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  230. -- ----------------------------
  231. -- Records of QRTZ_TRIGGERS
  232. -- ----------------------------
  233. -- ----------------------------
  234. -- Table structure for t_ds_access_token
  235. -- ----------------------------
  236. DROP TABLE IF EXISTS `t_ds_access_token`;
  237. CREATE TABLE `t_ds_access_token` (
  238. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'key',
  239. `user_id` int(11) DEFAULT NULL COMMENT 'user id',
  240. `token` varchar(64) DEFAULT NULL COMMENT 'token',
  241. `expire_time` datetime DEFAULT NULL COMMENT 'end time of token ',
  242. `create_time` datetime DEFAULT NULL COMMENT 'create time',
  243. `update_time` datetime DEFAULT NULL COMMENT 'update time',
  244. PRIMARY KEY (`id`)
  245. ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
  246. -- ----------------------------
  247. -- Records of t_ds_access_token
  248. -- ----------------------------
  249. -- ----------------------------
  250. -- Table structure for t_ds_alert
  251. -- ----------------------------
  252. DROP TABLE IF EXISTS `t_ds_alert`;
  253. CREATE TABLE `t_ds_alert` (
  254. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'key',
  255. `title` varchar(64) DEFAULT NULL COMMENT 'title',
  256. `sign` char(40) NOT NULL DEFAULT '' COMMENT 'sign=sha1(content)',
  257. `content` text COMMENT 'Message content (can be email, can be SMS. Mail is stored in JSON map, and SMS is string)',
  258. `alert_status` tinyint(4) DEFAULT '0' COMMENT '0:wait running,1:success,2:failed',
  259. `warning_type` tinyint(4) DEFAULT '2' COMMENT '1 process is successfully, 2 process/task is failed',
  260. `log` text COMMENT 'log',
  261. `alertgroup_id` int(11) DEFAULT NULL COMMENT 'alert group id',
  262. `create_time` datetime DEFAULT NULL COMMENT 'create time',
  263. `update_time` datetime DEFAULT NULL COMMENT 'update time',
  264. `project_code` bigint(20) DEFAULT NULL COMMENT 'project_code',
  265. `process_definition_code` bigint(20) DEFAULT NULL COMMENT 'process_definition_code',
  266. `process_instance_id` int(11) DEFAULT NULL COMMENT 'process_instance_id',
  267. `alert_type` int(11) DEFAULT NULL COMMENT 'alert_type',
  268. PRIMARY KEY (`id`),
  269. KEY `idx_status` (`alert_status`) USING BTREE,
  270. KEY `idx_sign` (`sign`) USING BTREE
  271. ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
  272. -- ----------------------------
  273. -- Records of t_ds_alert
  274. -- ----------------------------
  275. -- ----------------------------
  276. -- Table structure for t_ds_alertgroup
  277. -- ----------------------------
  278. DROP TABLE IF EXISTS `t_ds_alertgroup`;
  279. CREATE TABLE `t_ds_alertgroup`(
  280. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'key',
  281. `alert_instance_ids` varchar (255) DEFAULT NULL COMMENT 'alert instance ids',
  282. `create_user_id` int(11) DEFAULT NULL COMMENT 'create user id',
  283. `group_name` varchar(255) DEFAULT NULL COMMENT 'group name',
  284. `description` varchar(255) DEFAULT NULL,
  285. `create_time` datetime DEFAULT NULL COMMENT 'create time',
  286. `update_time` datetime DEFAULT NULL COMMENT 'update time',
  287. PRIMARY KEY (`id`),
  288. UNIQUE KEY `t_ds_alertgroup_name_un` (`group_name`)
  289. ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
  290. -- ----------------------------
  291. -- Records of t_ds_alertgroup
  292. -- ----------------------------
  293. -- ----------------------------
  294. -- Table structure for t_ds_command
  295. -- ----------------------------
  296. DROP TABLE IF EXISTS `t_ds_command`;
  297. CREATE TABLE `t_ds_command` (
  298. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'key',
  299. `command_type` tinyint(4) DEFAULT NULL COMMENT 'Command type: 0 start workflow, 1 start execution from current node, 2 resume fault-tolerant workflow, 3 resume pause process, 4 start execution from failed node, 5 complement, 6 schedule, 7 rerun, 8 pause, 9 stop, 10 resume waiting thread',
  300. `process_definition_code` bigint(20) NOT NULL COMMENT 'process definition code',
  301. `process_definition_version` int(11) DEFAULT '0' COMMENT 'process definition version',
  302. `process_instance_id` int(11) DEFAULT '0' COMMENT 'process instance id',
  303. `command_param` text COMMENT 'json command parameters',
  304. `task_depend_type` tinyint(4) DEFAULT NULL COMMENT 'Node dependency type: 0 current node, 1 forward, 2 backward',
  305. `failure_strategy` tinyint(4) DEFAULT '0' COMMENT 'Failed policy: 0 end, 1 continue',
  306. `warning_type` tinyint(4) DEFAULT '0' COMMENT 'Alarm type: 0 is not sent, 1 process is sent successfully, 2 process is sent failed, 3 process is sent successfully and all failures are sent',
  307. `warning_group_id` int(11) DEFAULT NULL COMMENT 'warning group',
  308. `schedule_time` datetime DEFAULT NULL COMMENT 'schedule time',
  309. `start_time` datetime DEFAULT NULL COMMENT 'start time',
  310. `executor_id` int(11) DEFAULT NULL COMMENT 'executor id',
  311. `update_time` datetime DEFAULT NULL COMMENT 'update time',
  312. `process_instance_priority` int(11) DEFAULT NULL COMMENT 'process instance priority: 0 Highest,1 High,2 Medium,3 Low,4 Lowest',
  313. `worker_group` varchar(64) COMMENT 'worker group',
  314. `environment_code` bigint(20) DEFAULT '-1' COMMENT 'environment code',
  315. `dry_run` tinyint(4) DEFAULT '0' COMMENT 'dry run flag:0 normal, 1 dry run',
  316. PRIMARY KEY (`id`),
  317. KEY `priority_id_index` (`process_instance_priority`,`id`) USING BTREE
  318. ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
  319. -- ----------------------------
  320. -- Records of t_ds_command
  321. -- ----------------------------
  322. -- ----------------------------
  323. -- Table structure for t_ds_datasource
  324. -- ----------------------------
  325. DROP TABLE IF EXISTS `t_ds_datasource`;
  326. CREATE TABLE `t_ds_datasource` (
  327. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'key',
  328. `name` varchar(64) NOT NULL COMMENT 'data source name',
  329. `note` varchar(255) DEFAULT NULL COMMENT 'description',
  330. `type` tinyint(4) NOT NULL COMMENT 'data source type: 0:mysql,1:postgresql,2:hive,3:spark',
  331. `user_id` int(11) NOT NULL COMMENT 'the creator id',
  332. `connection_params` text NOT NULL COMMENT 'json connection params',
  333. `create_time` datetime NOT NULL COMMENT 'create time',
  334. `update_time` datetime DEFAULT NULL COMMENT 'update time',
  335. PRIMARY KEY (`id`),
  336. UNIQUE KEY `t_ds_datasource_name_un` (`name`, `type`)
  337. ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
  338. -- ----------------------------
  339. -- Records of t_ds_datasource
  340. -- ----------------------------
  341. -- ----------------------------
  342. -- Table structure for t_ds_error_command
  343. -- ----------------------------
  344. DROP TABLE IF EXISTS `t_ds_error_command`;
  345. CREATE TABLE `t_ds_error_command` (
  346. `id` int(11) NOT NULL COMMENT 'key',
  347. `command_type` tinyint(4) DEFAULT NULL COMMENT 'command type',
  348. `executor_id` int(11) DEFAULT NULL COMMENT 'executor id',
  349. `process_definition_code` bigint(20) NOT NULL COMMENT 'process definition code',
  350. `process_definition_version` int(11) DEFAULT '0' COMMENT 'process definition version',
  351. `process_instance_id` int(11) DEFAULT '0' COMMENT 'process instance id: 0',
  352. `command_param` text COMMENT 'json command parameters',
  353. `task_depend_type` tinyint(4) DEFAULT NULL COMMENT 'task depend type',
  354. `failure_strategy` tinyint(4) DEFAULT '0' COMMENT 'failure strategy',
  355. `warning_type` tinyint(4) DEFAULT '0' COMMENT 'warning type',
  356. `warning_group_id` int(11) DEFAULT NULL COMMENT 'warning group id',
  357. `schedule_time` datetime DEFAULT NULL COMMENT 'scheduler time',
  358. `start_time` datetime DEFAULT NULL COMMENT 'start time',
  359. `update_time` datetime DEFAULT NULL COMMENT 'update time',
  360. `process_instance_priority` int(11) DEFAULT NULL COMMENT 'process instance priority, 0 Highest,1 High,2 Medium,3 Low,4 Lowest',
  361. `worker_group` varchar(64) COMMENT 'worker group',
  362. `environment_code` bigint(20) DEFAULT '-1' COMMENT 'environment code',
  363. `message` text COMMENT 'message',
  364. `dry_run` tinyint(4) DEFAULT '0' COMMENT 'dry run flag: 0 normal, 1 dry run',
  365. PRIMARY KEY (`id`) USING BTREE
  366. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
  367. -- ----------------------------
  368. -- Records of t_ds_error_command
  369. -- ----------------------------
  370. -- ----------------------------
  371. -- Table structure for t_ds_process_definition
  372. -- ----------------------------
  373. DROP TABLE IF EXISTS `t_ds_process_definition`;
  374. CREATE TABLE `t_ds_process_definition` (
  375. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'self-increasing id',
  376. `code` bigint(20) NOT NULL COMMENT 'encoding',
  377. `name` varchar(255) DEFAULT NULL COMMENT 'process definition name',
  378. `version` int(11) DEFAULT '0' COMMENT 'process definition version',
  379. `description` text COMMENT 'description',
  380. `project_code` bigint(20) NOT NULL COMMENT 'project code',
  381. `release_state` tinyint(4) DEFAULT NULL COMMENT 'process definition release state:0:offline,1:online',
  382. `user_id` int(11) DEFAULT NULL COMMENT 'process definition creator id',
  383. `global_params` text COMMENT 'global parameters',
  384. `flag` tinyint(4) DEFAULT NULL COMMENT '0 not available, 1 available',
  385. `locations` text COMMENT 'Node location information',
  386. `warning_group_id` int(11) DEFAULT NULL COMMENT 'alert group id',
  387. `timeout` int(11) DEFAULT '0' COMMENT 'time out, unit: minute',
  388. `tenant_id` int(11) NOT NULL DEFAULT '-1' COMMENT 'tenant id',
  389. `execution_type` tinyint(4) DEFAULT '0' COMMENT 'execution_type 0:parallel,1:serial wait,2:serial discard,3:serial priority',
  390. `create_time` datetime NOT NULL COMMENT 'create time',
  391. `update_time` datetime NOT NULL COMMENT 'update time',
  392. PRIMARY KEY (`id`,`code`),
  393. UNIQUE KEY `process_unique` (`name`,`project_code`) USING BTREE
  394. ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
  395. -- ----------------------------
  396. -- Records of t_ds_process_definition
  397. -- ----------------------------
  398. -- ----------------------------
  399. -- Table structure for t_ds_process_definition_log
  400. -- ----------------------------
  401. DROP TABLE IF EXISTS `t_ds_process_definition_log`;
  402. CREATE TABLE `t_ds_process_definition_log` (
  403. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'self-increasing id',
  404. `code` bigint(20) NOT NULL COMMENT 'encoding',
  405. `name` varchar(200) DEFAULT NULL COMMENT 'process definition name',
  406. `version` int(11) DEFAULT '0' COMMENT 'process definition version',
  407. `description` text COMMENT 'description',
  408. `project_code` bigint(20) NOT NULL COMMENT 'project code',
  409. `release_state` tinyint(4) DEFAULT NULL COMMENT 'process definition release state:0:offline,1:online',
  410. `user_id` int(11) DEFAULT NULL COMMENT 'process definition creator id',
  411. `global_params` text COMMENT 'global parameters',
  412. `flag` tinyint(4) DEFAULT NULL COMMENT '0 not available, 1 available',
  413. `locations` text COMMENT 'Node location information',
  414. `warning_group_id` int(11) DEFAULT NULL COMMENT 'alert group id',
  415. `timeout` int(11) DEFAULT '0' COMMENT 'time out,unit: minute',
  416. `tenant_id` int(11) NOT NULL DEFAULT '-1' COMMENT 'tenant id',
  417. `execution_type` tinyint(4) DEFAULT '0' COMMENT 'execution_type 0:parallel,1:serial wait,2:serial discard,3:serial priority',
  418. `operator` int(11) DEFAULT NULL COMMENT 'operator user id',
  419. `operate_time` datetime DEFAULT NULL COMMENT 'operate time',
  420. `create_time` datetime NOT NULL COMMENT 'create time',
  421. `update_time` datetime NOT NULL COMMENT 'update time',
  422. PRIMARY KEY (`id`)
  423. ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
  424. -- ----------------------------
  425. -- Table structure for t_ds_task_definition
  426. -- ----------------------------
  427. DROP TABLE IF EXISTS `t_ds_task_definition`;
  428. CREATE TABLE `t_ds_task_definition` (
  429. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'self-increasing id',
  430. `code` bigint(20) NOT NULL COMMENT 'encoding',
  431. `name` varchar(200) DEFAULT NULL COMMENT 'task definition name',
  432. `version` int(11) DEFAULT '0' COMMENT 'task definition version',
  433. `description` text COMMENT 'description',
  434. `project_code` bigint(20) NOT NULL COMMENT 'project code',
  435. `user_id` int(11) DEFAULT NULL COMMENT 'task definition creator id',
  436. `task_type` varchar(50) NOT NULL COMMENT 'task type',
  437. `task_params` longtext COMMENT 'job custom parameters',
  438. `flag` tinyint(2) DEFAULT NULL COMMENT '0 not available, 1 available',
  439. `task_priority` tinyint(4) DEFAULT NULL COMMENT 'job priority',
  440. `worker_group` varchar(200) DEFAULT NULL COMMENT 'worker grouping',
  441. `environment_code` bigint(20) DEFAULT '-1' COMMENT 'environment code',
  442. `fail_retry_times` int(11) DEFAULT NULL COMMENT 'number of failed retries',
  443. `fail_retry_interval` int(11) DEFAULT NULL COMMENT 'failed retry interval',
  444. `timeout_flag` tinyint(2) DEFAULT '0' COMMENT 'timeout flag:0 close, 1 open',
  445. `timeout_notify_strategy` tinyint(4) DEFAULT NULL COMMENT 'timeout notification policy: 0 warning, 1 fail',
  446. `timeout` int(11) DEFAULT '0' COMMENT 'timeout length,unit: minute',
  447. `delay_time` int(11) DEFAULT '0' COMMENT 'delay execution time,unit: minute',
  448. `resource_ids` text COMMENT 'resource id, separated by comma',
  449. `task_group_id` int(11) DEFAULT NULL COMMENT 'task group id',
  450. `task_group_priority` tinyint(4) DEFAULT '0' COMMENT 'task group priority',
  451. `cpu_quota` int(11) DEFAULT '-1' NOT NULL COMMENT 'cpuQuota(%): -1:Infinity',
  452. `memory_max` int(11) DEFAULT '-1' NOT NULL COMMENT 'MemoryMax(MB): -1:Infinity',
  453. `create_time` datetime NOT NULL COMMENT 'create time',
  454. `update_time` datetime NOT NULL COMMENT 'update time',
  455. PRIMARY KEY (`id`,`code`)
  456. ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
  457. -- ----------------------------
  458. -- Table structure for t_ds_task_definition_log
  459. -- ----------------------------
  460. DROP TABLE IF EXISTS `t_ds_task_definition_log`;
  461. CREATE TABLE `t_ds_task_definition_log` (
  462. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'self-increasing id',
  463. `code` bigint(20) NOT NULL COMMENT 'encoding',
  464. `name` varchar(200) DEFAULT NULL COMMENT 'task definition name',
  465. `version` int(11) DEFAULT '0' COMMENT 'task definition version',
  466. `description` text COMMENT 'description',
  467. `project_code` bigint(20) NOT NULL COMMENT 'project code',
  468. `user_id` int(11) DEFAULT NULL COMMENT 'task definition creator id',
  469. `task_type` varchar(50) NOT NULL COMMENT 'task type',
  470. `task_params` longtext COMMENT 'job custom parameters',
  471. `flag` tinyint(2) DEFAULT NULL COMMENT '0 not available, 1 available',
  472. `task_priority` tinyint(4) DEFAULT NULL COMMENT 'job priority',
  473. `worker_group` varchar(200) DEFAULT NULL COMMENT 'worker grouping',
  474. `environment_code` bigint(20) DEFAULT '-1' COMMENT 'environment code',
  475. `fail_retry_times` int(11) DEFAULT NULL COMMENT 'number of failed retries',
  476. `fail_retry_interval` int(11) DEFAULT NULL COMMENT 'failed retry interval',
  477. `timeout_flag` tinyint(2) DEFAULT '0' COMMENT 'timeout flag:0 close, 1 open',
  478. `timeout_notify_strategy` tinyint(4) DEFAULT NULL COMMENT 'timeout notification policy: 0 warning, 1 fail',
  479. `timeout` int(11) DEFAULT '0' COMMENT 'timeout length,unit: minute',
  480. `delay_time` int(11) DEFAULT '0' COMMENT 'delay execution time,unit: minute',
  481. `resource_ids` text DEFAULT NULL COMMENT 'resource id, separated by comma',
  482. `operator` int(11) DEFAULT NULL COMMENT 'operator user id',
  483. `task_group_id` int(11) DEFAULT NULL COMMENT 'task group id',
  484. `task_group_priority` tinyint(4) DEFAULT 0 COMMENT 'task group priority',
  485. `operate_time` datetime DEFAULT NULL COMMENT 'operate time',
  486. `cpu_quota` int(11) DEFAULT '-1' NOT NULL COMMENT 'cpuQuota(%): -1:Infinity',
  487. `memory_max` int(11) DEFAULT '-1' NOT NULL COMMENT 'MemoryMax(MB): -1:Infinity',
  488. `create_time` datetime NOT NULL COMMENT 'create time',
  489. `update_time` datetime NOT NULL COMMENT 'update time',
  490. PRIMARY KEY (`id`),
  491. KEY `idx_code_version` (`code`,`version`),
  492. KEY `idx_project_code` (`project_code`)
  493. ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
  494. -- ----------------------------
  495. -- Table structure for t_ds_process_task_relation
  496. -- ----------------------------
  497. DROP TABLE IF EXISTS `t_ds_process_task_relation`;
  498. CREATE TABLE `t_ds_process_task_relation` (
  499. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'self-increasing id',
  500. `name` varchar(200) DEFAULT NULL COMMENT 'relation name',
  501. `project_code` bigint(20) NOT NULL COMMENT 'project code',
  502. `process_definition_code` bigint(20) NOT NULL COMMENT 'process code',
  503. `process_definition_version` int(11) NOT NULL COMMENT 'process version',
  504. `pre_task_code` bigint(20) NOT NULL COMMENT 'pre task code',
  505. `pre_task_version` int(11) NOT NULL COMMENT 'pre task version',
  506. `post_task_code` bigint(20) NOT NULL COMMENT 'post task code',
  507. `post_task_version` int(11) NOT NULL COMMENT 'post task version',
  508. `condition_type` tinyint(2) DEFAULT NULL COMMENT 'condition type : 0 none, 1 judge 2 delay',
  509. `condition_params` text COMMENT 'condition params(json)',
  510. `create_time` datetime NOT NULL COMMENT 'create time',
  511. `update_time` datetime NOT NULL COMMENT 'update time',
  512. PRIMARY KEY (`id`),
  513. KEY `idx_code` (`project_code`,`process_definition_code`),
  514. KEY `idx_pre_task_code_version` (`pre_task_code`,`pre_task_version`),
  515. KEY `idx_post_task_code_version` (`post_task_code`,`post_task_version`)
  516. ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
  517. -- ----------------------------
  518. -- Table structure for t_ds_process_task_relation_log
  519. -- ----------------------------
  520. DROP TABLE IF EXISTS `t_ds_process_task_relation_log`;
  521. CREATE TABLE `t_ds_process_task_relation_log` (
  522. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'self-increasing id',
  523. `name` varchar(200) DEFAULT NULL COMMENT 'relation name',
  524. `project_code` bigint(20) NOT NULL COMMENT 'project code',
  525. `process_definition_code` bigint(20) NOT NULL COMMENT 'process code',
  526. `process_definition_version` int(11) NOT NULL COMMENT 'process version',
  527. `pre_task_code` bigint(20) NOT NULL COMMENT 'pre task code',
  528. `pre_task_version` int(11) NOT NULL COMMENT 'pre task version',
  529. `post_task_code` bigint(20) NOT NULL COMMENT 'post task code',
  530. `post_task_version` int(11) NOT NULL COMMENT 'post task version',
  531. `condition_type` tinyint(2) DEFAULT NULL COMMENT 'condition type : 0 none, 1 judge 2 delay',
  532. `condition_params` text COMMENT 'condition params(json)',
  533. `operator` int(11) DEFAULT NULL COMMENT 'operator user id',
  534. `operate_time` datetime DEFAULT NULL COMMENT 'operate time',
  535. `create_time` datetime NOT NULL COMMENT 'create time',
  536. `update_time` datetime NOT NULL COMMENT 'update time',
  537. PRIMARY KEY (`id`),
  538. KEY `idx_process_code_version` (`process_definition_code`,`process_definition_version`)
  539. ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
  540. -- ----------------------------
  541. -- Table structure for t_ds_process_instance
  542. -- ----------------------------
  543. DROP TABLE IF EXISTS `t_ds_process_instance`;
  544. CREATE TABLE `t_ds_process_instance` (
  545. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'key',
  546. `name` varchar(255) DEFAULT NULL COMMENT 'process instance name',
  547. `process_definition_code` bigint(20) NOT NULL COMMENT 'process definition code',
  548. `process_definition_version` int(11) DEFAULT '0' COMMENT 'process definition version',
  549. `state` tinyint(4) DEFAULT NULL COMMENT 'process instance Status: 0 commit succeeded, 1 running, 2 prepare to pause, 3 pause, 4 prepare to stop, 5 stop, 6 fail, 7 succeed, 8 need fault tolerance, 9 kill, 10 wait for thread, 11 wait for dependency to complete',
  550. `recovery` tinyint(4) DEFAULT NULL COMMENT 'process instance failover flag:0:normal,1:failover instance',
  551. `start_time` datetime DEFAULT NULL COMMENT 'process instance start time',
  552. `end_time` datetime DEFAULT NULL COMMENT 'process instance end time',
  553. `run_times` int(11) DEFAULT NULL COMMENT 'process instance run times',
  554. `host` varchar(135) DEFAULT NULL COMMENT 'process instance host',
  555. `command_type` tinyint(4) DEFAULT NULL COMMENT 'command type',
  556. `command_param` text COMMENT 'json command parameters',
  557. `task_depend_type` tinyint(4) DEFAULT NULL COMMENT 'task depend type. 0: only current node,1:before the node,2:later nodes',
  558. `max_try_times` tinyint(4) DEFAULT '0' COMMENT 'max try times',
  559. `failure_strategy` tinyint(4) DEFAULT '0' COMMENT 'failure strategy. 0:end the process when node failed,1:continue running the other nodes when node failed',
  560. `warning_type` tinyint(4) DEFAULT '0' COMMENT 'warning type. 0:no warning,1:warning if process success,2:warning if process failed,3:warning if success',
  561. `warning_group_id` int(11) DEFAULT NULL COMMENT 'warning group id',
  562. `schedule_time` datetime DEFAULT NULL COMMENT 'schedule time',
  563. `command_start_time` datetime DEFAULT NULL COMMENT 'command start time',
  564. `global_params` text COMMENT 'global parameters',
  565. `flag` tinyint(4) DEFAULT '1' COMMENT 'flag',
  566. `update_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  567. `is_sub_process` int(11) DEFAULT '0' COMMENT 'flag, whether the process is sub process',
  568. `executor_id` int(11) NOT NULL COMMENT 'executor id',
  569. `history_cmd` text COMMENT 'history commands of process instance operation',
  570. `process_instance_priority` int(11) DEFAULT NULL COMMENT 'process instance priority. 0 Highest,1 High,2 Medium,3 Low,4 Lowest',
  571. `worker_group` varchar(64) DEFAULT NULL COMMENT 'worker group id',
  572. `environment_code` bigint(20) DEFAULT '-1' COMMENT 'environment code',
  573. `timeout` int(11) DEFAULT '0' COMMENT 'time out',
  574. `tenant_id` int(11) NOT NULL DEFAULT '-1' COMMENT 'tenant id',
  575. `var_pool` longtext COMMENT 'var_pool',
  576. `dry_run` tinyint(4) DEFAULT '0' COMMENT 'dry run flag:0 normal, 1 dry run',
  577. `next_process_instance_id` int(11) DEFAULT '0' COMMENT 'serial queue next processInstanceId',
  578. `restart_time` datetime DEFAULT NULL COMMENT 'process instance restart time',
  579. PRIMARY KEY (`id`),
  580. KEY `process_instance_index` (`process_definition_code`,`id`) USING BTREE,
  581. KEY `start_time_index` (`start_time`,`end_time`) USING BTREE
  582. ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
  583. -- ----------------------------
  584. -- Records of t_ds_process_instance
  585. -- ----------------------------
  586. -- ----------------------------
  587. -- Table structure for t_ds_project
  588. -- ----------------------------
  589. DROP TABLE IF EXISTS `t_ds_project`;
  590. CREATE TABLE `t_ds_project` (
  591. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'key',
  592. `name` varchar(100) DEFAULT NULL COMMENT 'project name',
  593. `code` bigint(20) NOT NULL COMMENT 'encoding',
  594. `description` varchar(200) DEFAULT NULL,
  595. `user_id` int(11) DEFAULT NULL COMMENT 'creator id',
  596. `flag` tinyint(4) DEFAULT '1' COMMENT '0 not available, 1 available',
  597. `create_time` datetime NOT NULL COMMENT 'create time',
  598. `update_time` datetime DEFAULT NULL COMMENT 'update time',
  599. PRIMARY KEY (`id`),
  600. KEY `user_id_index` (`user_id`) USING BTREE
  601. ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
  602. -- ----------------------------
  603. -- Records of t_ds_project
  604. -- ----------------------------
  605. -- ----------------------------
  606. -- Table structure for t_ds_queue
  607. -- ----------------------------
  608. DROP TABLE IF EXISTS `t_ds_queue`;
  609. CREATE TABLE `t_ds_queue` (
  610. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'key',
  611. `queue_name` varchar(64) DEFAULT NULL COMMENT 'queue name',
  612. `queue` varchar(64) DEFAULT NULL COMMENT 'yarn queue name',
  613. `create_time` datetime DEFAULT NULL COMMENT 'create time',
  614. `update_time` datetime DEFAULT NULL COMMENT 'update time',
  615. PRIMARY KEY (`id`)
  616. ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
  617. -- ----------------------------
  618. -- Records of t_ds_queue
  619. -- ----------------------------
  620. INSERT INTO `t_ds_queue` VALUES ('1', 'default', 'default', null, null);
  621. -- ----------------------------
  622. -- Table structure for t_ds_relation_datasource_user
  623. -- ----------------------------
  624. DROP TABLE IF EXISTS `t_ds_relation_datasource_user`;
  625. CREATE TABLE `t_ds_relation_datasource_user` (
  626. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'key',
  627. `user_id` int(11) NOT NULL COMMENT 'user id',
  628. `datasource_id` int(11) DEFAULT NULL COMMENT 'data source id',
  629. `perm` int(11) DEFAULT '1' COMMENT 'limits of authority',
  630. `create_time` datetime DEFAULT NULL COMMENT 'create time',
  631. `update_time` datetime DEFAULT NULL COMMENT 'update time',
  632. PRIMARY KEY (`id`)
  633. ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
  634. -- ----------------------------
  635. -- Records of t_ds_relation_datasource_user
  636. -- ----------------------------
  637. -- ----------------------------
  638. -- Table structure for t_ds_relation_process_instance
  639. -- ----------------------------
  640. DROP TABLE IF EXISTS `t_ds_relation_process_instance`;
  641. CREATE TABLE `t_ds_relation_process_instance` (
  642. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'key',
  643. `parent_process_instance_id` int(11) DEFAULT NULL COMMENT 'parent process instance id',
  644. `parent_task_instance_id` int(11) DEFAULT NULL COMMENT 'parent process instance id',
  645. `process_instance_id` int(11) DEFAULT NULL COMMENT 'child process instance id',
  646. PRIMARY KEY (`id`),
  647. KEY `idx_parent_process_task` (`parent_process_instance_id`,`parent_task_instance_id`) ,
  648. KEY `idx_process_instance_id` (`process_instance_id`)
  649. ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
  650. -- ----------------------------
  651. -- Records of t_ds_relation_process_instance
  652. -- ----------------------------
  653. -- ----------------------------
  654. -- Table structure for t_ds_relation_project_user
  655. -- ----------------------------
  656. DROP TABLE IF EXISTS `t_ds_relation_project_user`;
  657. CREATE TABLE `t_ds_relation_project_user` (
  658. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'key',
  659. `user_id` int(11) NOT NULL COMMENT 'user id',
  660. `project_id` int(11) DEFAULT NULL COMMENT 'project id',
  661. `perm` int(11) DEFAULT '1' COMMENT 'limits of authority',
  662. `create_time` datetime DEFAULT NULL COMMENT 'create time',
  663. `update_time` datetime DEFAULT NULL COMMENT 'update time',
  664. PRIMARY KEY (`id`),
  665. UNIQUE KEY uniq_uid_pid(user_id,project_id)
  666. ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
  667. -- ----------------------------
  668. -- Records of t_ds_relation_project_user
  669. -- ----------------------------
  670. -- ----------------------------
  671. -- Table structure for t_ds_relation_resources_user
  672. -- ----------------------------
  673. DROP TABLE IF EXISTS `t_ds_relation_resources_user`;
  674. CREATE TABLE `t_ds_relation_resources_user` (
  675. `id` int(11) NOT NULL AUTO_INCREMENT,
  676. `user_id` int(11) NOT NULL COMMENT 'user id',
  677. `resources_id` int(11) DEFAULT NULL COMMENT 'resource id',
  678. `perm` int(11) DEFAULT '1' COMMENT 'limits of authority',
  679. `create_time` datetime DEFAULT NULL COMMENT 'create time',
  680. `update_time` datetime DEFAULT NULL COMMENT 'update time',
  681. PRIMARY KEY (`id`)
  682. ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
  683. -- ----------------------------
  684. -- Records of t_ds_relation_resources_user
  685. -- ----------------------------
  686. -- ----------------------------
  687. -- Table structure for t_ds_relation_udfs_user
  688. -- ----------------------------
  689. DROP TABLE IF EXISTS `t_ds_relation_udfs_user`;
  690. CREATE TABLE `t_ds_relation_udfs_user` (
  691. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'key',
  692. `user_id` int(11) NOT NULL COMMENT 'userid',
  693. `udf_id` int(11) DEFAULT NULL COMMENT 'udf id',
  694. `perm` int(11) DEFAULT '1' COMMENT 'limits of authority',
  695. `create_time` datetime DEFAULT NULL COMMENT 'create time',
  696. `update_time` datetime DEFAULT NULL COMMENT 'update time',
  697. PRIMARY KEY (`id`)
  698. ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
  699. -- ----------------------------
  700. -- Table structure for t_ds_resources
  701. -- ----------------------------
  702. DROP TABLE IF EXISTS `t_ds_resources`;
  703. CREATE TABLE `t_ds_resources` (
  704. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'key',
  705. `alias` varchar(64) DEFAULT NULL COMMENT 'alias',
  706. `file_name` varchar(64) DEFAULT NULL COMMENT 'file name',
  707. `description` varchar(255) DEFAULT NULL,
  708. `user_id` int(11) DEFAULT NULL COMMENT 'user id',
  709. `type` tinyint(4) DEFAULT NULL COMMENT 'resource type,0:FILE,1:UDF',
  710. `size` bigint(20) DEFAULT NULL COMMENT 'resource size',
  711. `create_time` datetime DEFAULT NULL COMMENT 'create time',
  712. `update_time` datetime DEFAULT NULL COMMENT 'update time',
  713. `pid` int(11) DEFAULT NULL,
  714. `full_name` varchar(128) DEFAULT NULL,
  715. `is_directory` tinyint(4) DEFAULT NULL,
  716. PRIMARY KEY (`id`),
  717. UNIQUE KEY `t_ds_resources_un` (`full_name`,`type`)
  718. ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
  719. -- ----------------------------
  720. -- Records of t_ds_resources
  721. -- ----------------------------
  722. -- ----------------------------
  723. -- Table structure for t_ds_schedules
  724. -- ----------------------------
  725. DROP TABLE IF EXISTS `t_ds_schedules`;
  726. CREATE TABLE `t_ds_schedules` (
  727. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'key',
  728. `process_definition_code` bigint(20) NOT NULL COMMENT 'process definition code',
  729. `start_time` datetime NOT NULL COMMENT 'start time',
  730. `end_time` datetime NOT NULL COMMENT 'end time',
  731. `timezone_id` varchar(40) DEFAULT NULL COMMENT 'schedule timezone id',
  732. `crontab` varchar(255) NOT NULL COMMENT 'crontab description',
  733. `failure_strategy` tinyint(4) NOT NULL COMMENT 'failure strategy. 0:end,1:continue',
  734. `user_id` int(11) NOT NULL COMMENT 'user id',
  735. `release_state` tinyint(4) NOT NULL COMMENT 'release state. 0:offline,1:online ',
  736. `warning_type` tinyint(4) NOT NULL COMMENT 'Alarm type: 0 is not sent, 1 process is sent successfully, 2 process is sent failed, 3 process is sent successfully and all failures are sent',
  737. `warning_group_id` int(11) DEFAULT NULL COMMENT 'alert group id',
  738. `process_instance_priority` int(11) DEFAULT NULL COMMENT 'process instance priority:0 Highest,1 High,2 Medium,3 Low,4 Lowest',
  739. `worker_group` varchar(64) DEFAULT '' COMMENT 'worker group id',
  740. `environment_code` bigint(20) DEFAULT '-1' COMMENT 'environment code',
  741. `create_time` datetime NOT NULL COMMENT 'create time',
  742. `update_time` datetime NOT NULL COMMENT 'update time',
  743. PRIMARY KEY (`id`)
  744. ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
  745. -- ----------------------------
  746. -- Records of t_ds_schedules
  747. -- ----------------------------
  748. -- ----------------------------
  749. -- Table structure for t_ds_session
  750. -- ----------------------------
  751. DROP TABLE IF EXISTS `t_ds_session`;
  752. CREATE TABLE `t_ds_session` (
  753. `id` varchar(64) NOT NULL COMMENT 'key',
  754. `user_id` int(11) DEFAULT NULL COMMENT 'user id',
  755. `ip` varchar(45) DEFAULT NULL COMMENT 'ip',
  756. `last_login_time` datetime DEFAULT NULL COMMENT 'last login time',
  757. PRIMARY KEY (`id`)
  758. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  759. -- ----------------------------
  760. -- Records of t_ds_session
  761. -- ----------------------------
  762. -- ----------------------------
  763. -- Table structure for t_ds_task_instance
  764. -- ----------------------------
  765. DROP TABLE IF EXISTS `t_ds_task_instance`;
  766. CREATE TABLE `t_ds_task_instance` (
  767. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'key',
  768. `name` varchar(255) DEFAULT NULL COMMENT 'task name',
  769. `task_type` varchar(50) NOT NULL COMMENT 'task type',
  770. `task_code` bigint(20) NOT NULL COMMENT 'task definition code',
  771. `task_definition_version` int(11) DEFAULT '0' COMMENT 'task definition version',
  772. `process_instance_id` int(11) DEFAULT NULL COMMENT 'process instance id',
  773. `state` tinyint(4) DEFAULT NULL COMMENT 'Status: 0 commit succeeded, 1 running, 2 prepare to pause, 3 pause, 4 prepare to stop, 5 stop, 6 fail, 7 succeed, 8 need fault tolerance, 9 kill, 10 wait for thread, 11 wait for dependency to complete',
  774. `submit_time` datetime DEFAULT NULL COMMENT 'task submit time',
  775. `start_time` datetime DEFAULT NULL COMMENT 'task start time',
  776. `end_time` datetime DEFAULT NULL COMMENT 'task end time',
  777. `host` varchar(135) DEFAULT NULL COMMENT 'host of task running on',
  778. `execute_path` varchar(200) DEFAULT NULL COMMENT 'task execute path in the host',
  779. `log_path` varchar(200) DEFAULT NULL COMMENT 'task log path',
  780. `alert_flag` tinyint(4) DEFAULT NULL COMMENT 'whether alert',
  781. `retry_times` int(4) DEFAULT '0' COMMENT 'task retry times',
  782. `pid` int(4) DEFAULT NULL COMMENT 'pid of task',
  783. `app_link` text COMMENT 'yarn app id',
  784. `task_params` longtext COMMENT 'job custom parameters',
  785. `flag` tinyint(4) DEFAULT '1' COMMENT '0 not available, 1 available',
  786. `retry_interval` int(4) DEFAULT NULL COMMENT 'retry interval when task failed ',
  787. `max_retry_times` int(2) DEFAULT NULL COMMENT 'max retry times',
  788. `task_instance_priority` int(11) DEFAULT NULL COMMENT 'task instance priority:0 Highest,1 High,2 Medium,3 Low,4 Lowest',
  789. `worker_group` varchar(64) DEFAULT NULL COMMENT 'worker group id',
  790. `environment_code` bigint(20) DEFAULT '-1' COMMENT 'environment code',
  791. `environment_config` text COMMENT 'this config contains many environment variables config',
  792. `executor_id` int(11) DEFAULT NULL,
  793. `first_submit_time` datetime DEFAULT NULL COMMENT 'task first submit time',
  794. `delay_time` int(4) DEFAULT '0' COMMENT 'task delay execution time',
  795. `var_pool` longtext COMMENT 'var_pool',
  796. `task_group_id` int(11) DEFAULT NULL COMMENT 'task group id',
  797. `dry_run` tinyint(4) DEFAULT '0' COMMENT 'dry run flag: 0 normal, 1 dry run',
  798. `cpu_quota` int(11) DEFAULT '-1' NOT NULL COMMENT 'cpuQuota(%): -1:Infinity',
  799. `memory_max` int(11) DEFAULT '-1' NOT NULL COMMENT 'MemoryMax(MB): -1:Infinity',
  800. PRIMARY KEY (`id`),
  801. KEY `process_instance_id` (`process_instance_id`) USING BTREE,
  802. KEY `idx_code_version` (`task_code`, `task_definition_version`) USING BTREE,
  803. CONSTRAINT `foreign_key_instance_id` FOREIGN KEY (`process_instance_id`) REFERENCES `t_ds_process_instance` (`id`) ON DELETE CASCADE
  804. ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
  805. -- ----------------------------
  806. -- Records of t_ds_task_instance
  807. -- ----------------------------
  808. -- ----------------------------
  809. -- Table structure for t_ds_tenant
  810. -- ----------------------------
  811. DROP TABLE IF EXISTS `t_ds_tenant`;
  812. CREATE TABLE `t_ds_tenant` (
  813. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'key',
  814. `tenant_code` varchar(64) DEFAULT NULL COMMENT 'tenant code',
  815. `description` varchar(255) DEFAULT NULL,
  816. `queue_id` int(11) DEFAULT NULL COMMENT 'queue id',
  817. `create_time` datetime DEFAULT NULL COMMENT 'create time',
  818. `update_time` datetime DEFAULT NULL COMMENT 'update time',
  819. PRIMARY KEY (`id`)
  820. ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
  821. -- ----------------------------
  822. -- Records of t_ds_tenant
  823. -- ----------------------------
  824. -- ----------------------------
  825. -- Table structure for t_ds_udfs
  826. -- ----------------------------
  827. DROP TABLE IF EXISTS `t_ds_udfs`;
  828. CREATE TABLE `t_ds_udfs` (
  829. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'key',
  830. `user_id` int(11) NOT NULL COMMENT 'user id',
  831. `func_name` varchar(100) NOT NULL COMMENT 'UDF function name',
  832. `class_name` varchar(255) NOT NULL COMMENT 'class of udf',
  833. `type` tinyint(4) NOT NULL COMMENT 'Udf function type',
  834. `arg_types` varchar(255) DEFAULT NULL COMMENT 'arguments types',
  835. `database` varchar(255) DEFAULT NULL COMMENT 'data base',
  836. `description` varchar(255) DEFAULT NULL,
  837. `resource_id` int(11) NOT NULL COMMENT 'resource id',
  838. `resource_name` varchar(255) NOT NULL COMMENT 'resource name',
  839. `create_time` datetime NOT NULL COMMENT 'create time',
  840. `update_time` datetime NOT NULL COMMENT 'update time',
  841. PRIMARY KEY (`id`)
  842. ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
  843. -- ----------------------------
  844. -- Records of t_ds_udfs
  845. -- ----------------------------
  846. -- ----------------------------
  847. -- Table structure for t_ds_user
  848. -- ----------------------------
  849. DROP TABLE IF EXISTS `t_ds_user`;
  850. CREATE TABLE `t_ds_user` (
  851. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'user id',
  852. `user_name` varchar(64) DEFAULT NULL COMMENT 'user name',
  853. `user_password` varchar(64) DEFAULT NULL COMMENT 'user password',
  854. `user_type` tinyint(4) DEFAULT NULL COMMENT 'user type, 0:administrator,1:ordinary user',
  855. `email` varchar(64) DEFAULT NULL COMMENT 'email',
  856. `phone` varchar(11) DEFAULT NULL COMMENT 'phone',
  857. `tenant_id` int(11) DEFAULT NULL COMMENT 'tenant id',
  858. `create_time` datetime DEFAULT NULL COMMENT 'create time',
  859. `update_time` datetime DEFAULT NULL COMMENT 'update time',
  860. `queue` varchar(64) DEFAULT NULL COMMENT 'queue',
  861. `state` tinyint(4) DEFAULT '1' COMMENT 'state 0:disable 1:enable',
  862. `time_zone` varchar(32) DEFAULT NULL COMMENT 'time zone',
  863. PRIMARY KEY (`id`),
  864. UNIQUE KEY `user_name_unique` (`user_name`)
  865. ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
  866. -- ----------------------------
  867. -- Records of t_ds_user
  868. -- ----------------------------
  869. -- ----------------------------
  870. -- Table structure for t_ds_worker_group
  871. -- ----------------------------
  872. DROP TABLE IF EXISTS `t_ds_worker_group`;
  873. CREATE TABLE `t_ds_worker_group` (
  874. `id` bigint(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  875. `name` varchar(255) NOT NULL COMMENT 'worker group name',
  876. `addr_list` text NULL DEFAULT NULL COMMENT 'worker addr list. split by [,]',
  877. `create_time` datetime NULL DEFAULT NULL COMMENT 'create time',
  878. `update_time` datetime NULL DEFAULT NULL COMMENT 'update time',
  879. PRIMARY KEY (`id`),
  880. UNIQUE KEY `name_unique` (`name`)
  881. ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
  882. -- ----------------------------
  883. -- Records of t_ds_worker_group
  884. -- ----------------------------
  885. -- ----------------------------
  886. -- Table structure for t_ds_version
  887. -- ----------------------------
  888. DROP TABLE IF EXISTS `t_ds_version`;
  889. CREATE TABLE `t_ds_version` (
  890. `id` int(11) NOT NULL AUTO_INCREMENT,
  891. `version` varchar(200) NOT NULL,
  892. PRIMARY KEY (`id`),
  893. UNIQUE KEY `version_UNIQUE` (`version`)
  894. ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='version';
  895. -- ----------------------------
  896. -- Records of t_ds_version
  897. -- ----------------------------
  898. INSERT INTO `t_ds_version` VALUES ('1', '2.0.2');
  899. -- ----------------------------
  900. -- Records of t_ds_alertgroup
  901. -- ----------------------------
  902. INSERT INTO `t_ds_alertgroup`(alert_instance_ids, create_user_id, group_name, description, create_time, update_time)
  903. VALUES ('1,2', 1, 'default admin warning group', 'default admin warning group', '2018-11-29 10:20:39', '2018-11-29 10:20:39');
  904. -- ----------------------------
  905. -- Records of t_ds_user
  906. -- ----------------------------
  907. INSERT INTO `t_ds_user`
  908. VALUES ('1', 'admin', '7ad2410b2f4c074479a8937a28a22b8f', '0', 'xxx@qq.com', '', '0', '2018-03-27 15:48:50', '2018-10-24 17:40:22', null, 1, null);
  909. -- ----------------------------
  910. -- Table structure for t_ds_plugin_define
  911. -- ----------------------------
  912. SET sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''));
  913. DROP TABLE IF EXISTS `t_ds_plugin_define`;
  914. CREATE TABLE `t_ds_plugin_define` (
  915. `id` int NOT NULL AUTO_INCREMENT,
  916. `plugin_name` varchar(100) NOT NULL COMMENT 'the name of plugin eg: email',
  917. `plugin_type` varchar(100) NOT NULL COMMENT 'plugin type . alert=alert plugin, job=job plugin',
  918. `plugin_params` text COMMENT 'plugin params',
  919. `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  920. `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  921. PRIMARY KEY (`id`),
  922. UNIQUE KEY `t_ds_plugin_define_UN` (`plugin_name`,`plugin_type`)
  923. ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
  924. -- ----------------------------
  925. -- Table structure for t_ds_alert_plugin_instance
  926. -- ----------------------------
  927. DROP TABLE IF EXISTS `t_ds_alert_plugin_instance`;
  928. CREATE TABLE `t_ds_alert_plugin_instance` (
  929. `id` int NOT NULL AUTO_INCREMENT,
  930. `plugin_define_id` int NOT NULL,
  931. `plugin_instance_params` text COMMENT 'plugin instance params. Also contain the params value which user input in web ui.',
  932. `create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  933. `update_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  934. `instance_name` varchar(200) DEFAULT NULL COMMENT 'alert instance name',
  935. PRIMARY KEY (`id`)
  936. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  937. --
  938. -- Table structure for table `t_ds_dq_comparison_type`
  939. --
  940. DROP TABLE IF EXISTS `t_ds_dq_comparison_type`;
  941. CREATE TABLE `t_ds_dq_comparison_type` (
  942. `id` int(11) NOT NULL AUTO_INCREMENT,
  943. `type` varchar(100) NOT NULL,
  944. `execute_sql` text DEFAULT NULL,
  945. `output_table` varchar(100) DEFAULT NULL,
  946. `name` varchar(100) DEFAULT NULL,
  947. `create_time` datetime DEFAULT NULL,
  948. `update_time` datetime DEFAULT NULL,
  949. `is_inner_source` tinyint(1) DEFAULT '0',
  950. PRIMARY KEY (`id`)
  951. )ENGINE=InnoDB DEFAULT CHARSET=utf8;
  952. INSERT INTO `t_ds_dq_comparison_type`
  953. (`id`, `type`, `execute_sql`, `output_table`, `name`, `create_time`, `update_time`, `is_inner_source`)
  954. VALUES(1, 'FixValue', NULL, NULL, NULL, '2021-06-30 00:00:00.000', '2021-06-30 00:00:00.000', false);
  955. INSERT INTO `t_ds_dq_comparison_type`
  956. (`id`, `type`, `execute_sql`, `output_table`, `name`, `create_time`, `update_time`, `is_inner_source`)
  957. VALUES(2, 'DailyAvg', 'select round(avg(statistics_value),2) as day_avg from t_ds_dq_task_statistics_value where data_time >=date_trunc(''DAY'', ${data_time}) and data_time < date_add(date_trunc(''day'', ${data_time}),1) and unique_code = ${unique_code} and statistics_name = ''${statistics_name}''', 'day_range', 'day_range.day_avg', '2021-06-30 00:00:00.000', '2021-06-30 00:00:00.000', true);
  958. INSERT INTO `t_ds_dq_comparison_type`
  959. (`id`, `type`, `execute_sql`, `output_table`, `name`, `create_time`, `update_time`, `is_inner_source`)
  960. VALUES(3, 'WeeklyAvg', 'select round(avg(statistics_value),2) as week_avg from t_ds_dq_task_statistics_value where data_time >= date_trunc(''WEEK'', ${data_time}) and data_time <date_trunc(''day'', ${data_time}) and unique_code = ${unique_code} and statistics_name = ''${statistics_name}''', 'week_range', 'week_range.week_avg', '2021-06-30 00:00:00.000', '2021-06-30 00:00:00.000', true);
  961. INSERT INTO `t_ds_dq_comparison_type`
  962. (`id`, `type`, `execute_sql`, `output_table`, `name`, `create_time`, `update_time`, `is_inner_source`)
  963. VALUES(4, 'MonthlyAvg', 'select round(avg(statistics_value),2) as month_avg from t_ds_dq_task_statistics_value where data_time >= date_trunc(''MONTH'', ${data_time}) and data_time <date_trunc(''day'', ${data_time}) and unique_code = ${unique_code} and statistics_name = ''${statistics_name}''', 'month_range', 'month_range.month_avg', '2021-06-30 00:00:00.000', '2021-06-30 00:00:00.000', true);
  964. INSERT INTO `t_ds_dq_comparison_type`
  965. (`id`, `type`, `execute_sql`, `output_table`, `name`, `create_time`, `update_time`, `is_inner_source`)
  966. VALUES(5, 'Last7DayAvg', 'select round(avg(statistics_value),2) as last_7_avg from t_ds_dq_task_statistics_value where data_time >= date_add(date_trunc(''day'', ${data_time}),-7) and data_time <date_trunc(''day'', ${data_time}) and unique_code = ${unique_code} and statistics_name = ''${statistics_name}''', 'last_seven_days', 'last_seven_days.last_7_avg', '2021-06-30 00:00:00.000', '2021-06-30 00:00:00.000', true);
  967. INSERT INTO `t_ds_dq_comparison_type`
  968. (`id`, `type`, `execute_sql`, `output_table`, `name`, `create_time`, `update_time`, `is_inner_source`)
  969. VALUES(6, 'Last30DayAvg', 'select round(avg(statistics_value),2) as last_30_avg from t_ds_dq_task_statistics_value where data_time >= date_add(date_trunc(''day'', ${data_time}),-30) and data_time < date_trunc(''day'', ${data_time}) and unique_code = ${unique_code} and statistics_name = ''${statistics_name}''', 'last_thirty_days', 'last_thirty_days.last_30_avg', '2021-06-30 00:00:00.000', '2021-06-30 00:00:00.000', true);
  970. INSERT INTO `t_ds_dq_comparison_type`
  971. (`id`, `type`, `execute_sql`, `output_table`, `name`, `create_time`, `update_time`, `is_inner_source`)
  972. VALUES(7, 'SrcTableTotalRows', 'SELECT COUNT(*) AS total FROM ${src_table} WHERE (${src_filter})', 'total_count', 'total_count.total', '2021-06-30 00:00:00.000', '2021-06-30 00:00:00.000', false);
  973. INSERT INTO `t_ds_dq_comparison_type`
  974. (`id`, `type`, `execute_sql`, `output_table`, `name`, `create_time`, `update_time`, `is_inner_source`)
  975. VALUES(8, 'TargetTableTotalRows', 'SELECT COUNT(*) AS total FROM ${target_table} WHERE (${target_filter})', 'total_count', 'total_count.total', '2021-06-30 00:00:00.000', '2021-06-30 00:00:00.000', false);
  976. --
  977. -- Table structure for table `t_ds_dq_execute_result`
  978. --
  979. DROP TABLE IF EXISTS `t_ds_dq_execute_result`;
  980. CREATE TABLE `t_ds_dq_execute_result` (
  981. `id` int(11) NOT NULL AUTO_INCREMENT,
  982. `process_definition_id` int(11) DEFAULT NULL,
  983. `process_instance_id` int(11) DEFAULT NULL,
  984. `task_instance_id` int(11) DEFAULT NULL,
  985. `rule_type` int(11) DEFAULT NULL,
  986. `rule_name` varchar(255) DEFAULT NULL,
  987. `statistics_value` double DEFAULT NULL,
  988. `comparison_value` double DEFAULT NULL,
  989. `check_type` int(11) DEFAULT NULL,
  990. `threshold` double DEFAULT NULL,
  991. `operator` int(11) DEFAULT NULL,
  992. `failure_strategy` int(11) DEFAULT NULL,
  993. `state` int(11) DEFAULT NULL,
  994. `user_id` int(11) DEFAULT NULL,
  995. `comparison_type` int(11) DEFAULT NULL,
  996. `error_output_path` text DEFAULT NULL,
  997. `create_time` datetime DEFAULT NULL,
  998. `update_time` datetime DEFAULT NULL,
  999. PRIMARY KEY (`id`)
  1000. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  1001. --
  1002. -- Table structure for table t_ds_dq_rule
  1003. --
  1004. DROP TABLE IF EXISTS `t_ds_dq_rule`;
  1005. CREATE TABLE `t_ds_dq_rule` (
  1006. `id` int(11) NOT NULL AUTO_INCREMENT,
  1007. `name` varchar(100) DEFAULT NULL,
  1008. `type` int(11) DEFAULT NULL,
  1009. `user_id` int(11) DEFAULT NULL,
  1010. `create_time` datetime DEFAULT NULL,
  1011. `update_time` datetime DEFAULT NULL,
  1012. PRIMARY KEY (`id`)
  1013. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  1014. INSERT INTO `t_ds_dq_rule`
  1015. (`id`, `name`, `type`, `user_id`, `create_time`, `update_time`)
  1016. VALUES(1, '$t(null_check)', 0, 1, '2020-01-12 00:00:00.000', '2020-01-12 00:00:00.000');
  1017. INSERT INTO `t_ds_dq_rule`
  1018. (`id`, `name`, `type`, `user_id`, `create_time`, `update_time`)
  1019. VALUES(2, '$t(custom_sql)', 1, 1, '2020-01-12 00:00:00.000', '2020-01-12 00:00:00.000');
  1020. INSERT INTO `t_ds_dq_rule`
  1021. (`id`, `name`, `type`, `user_id`, `create_time`, `update_time`)
  1022. VALUES(3, '$t(multi_table_accuracy)', 2, 1, '2020-01-12 00:00:00.000', '2020-01-12 00:00:00.000');
  1023. INSERT INTO `t_ds_dq_rule`
  1024. (`id`, `name`, `type`, `user_id`, `create_time`, `update_time`)
  1025. VALUES(4, '$t(multi_table_value_comparison)', 3, 1, '2020-01-12 00:00:00.000', '2020-01-12 00:00:00.000');
  1026. INSERT INTO `t_ds_dq_rule`
  1027. (`id`, `name`, `type`, `user_id`, `create_time`, `update_time`)
  1028. VALUES(5, '$t(field_length_check)', 0, 1, '2020-01-12 00:00:00.000', '2020-01-12 00:00:00.000');
  1029. INSERT INTO `t_ds_dq_rule`
  1030. (`id`, `name`, `type`, `user_id`, `create_time`, `update_time`)
  1031. VALUES(6, '$t(uniqueness_check)', 0, 1, '2020-01-12 00:00:00.000', '2020-01-12 00:00:00.000');
  1032. INSERT INTO `t_ds_dq_rule`
  1033. (`id`, `name`, `type`, `user_id`, `create_time`, `update_time`)
  1034. VALUES(7, '$t(regexp_check)', 0, 1, '2020-01-12 00:00:00.000', '2020-01-12 00:00:00.000');
  1035. INSERT INTO `t_ds_dq_rule`
  1036. (`id`, `name`, `type`, `user_id`, `create_time`, `update_time`)
  1037. VALUES(8, '$t(timeliness_check)', 0, 1, '2020-01-12 00:00:00.000', '2020-01-12 00:00:00.000');
  1038. INSERT INTO `t_ds_dq_rule`
  1039. (`id`, `name`, `type`, `user_id`, `create_time`, `update_time`)
  1040. VALUES(9, '$t(enumeration_check)', 0, 1, '2020-01-12 00:00:00.000', '2020-01-12 00:00:00.000');
  1041. INSERT INTO `t_ds_dq_rule`
  1042. (`id`, `name`, `type`, `user_id`, `create_time`, `update_time`)
  1043. VALUES(10, '$t(table_count_check)', 0, 1, '2020-01-12 00:00:00.000', '2020-01-12 00:00:00.000');
  1044. --
  1045. -- Table structure for table `t_ds_dq_rule_execute_sql`
  1046. --
  1047. DROP TABLE IF EXISTS `t_ds_dq_rule_execute_sql`;
  1048. CREATE TABLE `t_ds_dq_rule_execute_sql` (
  1049. `id` int(11) NOT NULL AUTO_INCREMENT,
  1050. `index` int(11) DEFAULT NULL,
  1051. `sql` text DEFAULT NULL,
  1052. `table_alias` varchar(255) DEFAULT NULL,
  1053. `type` int(11) DEFAULT NULL,
  1054. `is_error_output_sql` tinyint(1) DEFAULT '0',
  1055. `create_time` datetime DEFAULT NULL,
  1056. `update_time` datetime DEFAULT NULL,
  1057. PRIMARY KEY (`id`)
  1058. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  1059. INSERT INTO `t_ds_dq_rule_execute_sql`
  1060. (`id`, `index`, `sql`, `table_alias`, `type`, `is_error_output_sql`, `create_time`, `update_time`)
  1061. VALUES(1, 1, 'SELECT COUNT(*) AS nulls FROM null_items', 'null_count', 1, false, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1062. INSERT INTO `t_ds_dq_rule_execute_sql`
  1063. (`id`, `index`, `sql`, `table_alias`, `type`, `is_error_output_sql`, `create_time`, `update_time`)
  1064. VALUES(2, 1, 'SELECT COUNT(*) AS total FROM ${src_table} WHERE (${src_filter})', 'total_count', 2, false, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1065. INSERT INTO `t_ds_dq_rule_execute_sql`
  1066. (`id`, `index`, `sql`, `table_alias`, `type`, `is_error_output_sql`, `create_time`, `update_time`)
  1067. VALUES(3, 1, 'SELECT COUNT(*) AS miss from miss_items', 'miss_count', 1, false, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1068. INSERT INTO `t_ds_dq_rule_execute_sql`
  1069. (`id`, `index`, `sql`, `table_alias`, `type`, `is_error_output_sql`, `create_time`, `update_time`)
  1070. VALUES(4, 1, 'SELECT COUNT(*) AS valids FROM invalid_length_items', 'invalid_length_count', 1, false, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1071. INSERT INTO `t_ds_dq_rule_execute_sql`
  1072. (`id`, `index`, `sql`, `table_alias`, `type`, `is_error_output_sql`, `create_time`, `update_time`)
  1073. VALUES(5, 1, 'SELECT COUNT(*) AS total FROM ${target_table} WHERE (${target_filter})', 'total_count', 2, false, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1074. INSERT INTO `t_ds_dq_rule_execute_sql`
  1075. (`id`, `index`, `sql`, `table_alias`, `type`, `is_error_output_sql`, `create_time`, `update_time`)
  1076. VALUES(6, 1, 'SELECT ${src_field} FROM ${src_table} group by ${src_field} having count(*) > 1', 'duplicate_items', 0, true, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1077. INSERT INTO `t_ds_dq_rule_execute_sql`
  1078. (`id`, `index`, `sql`, `table_alias`, `type`, `is_error_output_sql`, `create_time`, `update_time`)
  1079. VALUES(7, 1, 'SELECT COUNT(*) AS duplicates FROM duplicate_items', 'duplicate_count', 1, false, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1080. INSERT INTO `t_ds_dq_rule_execute_sql`
  1081. (`id`, `index`, `sql`, `table_alias`, `type`, `is_error_output_sql`, `create_time`, `update_time`)
  1082. VALUES(8, 1, 'SELECT ${src_table}.* FROM (SELECT * FROM ${src_table} WHERE (${src_filter})) ${src_table} LEFT JOIN (SELECT * FROM ${target_table} WHERE (${target_filter})) ${target_table} ON ${on_clause} WHERE ${where_clause}', 'miss_items', 0, true, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1083. INSERT INTO `t_ds_dq_rule_execute_sql`
  1084. (`id`, `index`, `sql`, `table_alias`, `type`, `is_error_output_sql`, `create_time`, `update_time`)
  1085. VALUES(9, 1, 'SELECT * FROM ${src_table} WHERE (${src_field} not regexp ''${regexp_pattern}'') AND (${src_filter}) ', 'regexp_items', 0, true, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1086. INSERT INTO `t_ds_dq_rule_execute_sql`
  1087. (`id`, `index`, `sql`, `table_alias`, `type`, `is_error_output_sql`, `create_time`, `update_time`)
  1088. VALUES(10, 1, 'SELECT COUNT(*) AS regexps FROM regexp_items', 'regexp_count', 1, false, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1089. INSERT INTO `t_ds_dq_rule_execute_sql`
  1090. (`id`, `index`, `sql`, `table_alias`, `type`, `is_error_output_sql`, `create_time`, `update_time`)
  1091. VALUES(11, 1, 'SELECT * FROM ${src_table} WHERE (to_unix_timestamp(${src_field}, ''${datetime_format}'')-to_unix_timestamp(''${deadline}'', ''${datetime_format}'') <= 0) AND (to_unix_timestamp(${src_field}, ''${datetime_format}'')-to_unix_timestamp(''${begin_time}'', ''${datetime_format}'') >= 0) AND (${src_filter}) ', 'timeliness_items', 0, 1, '2021-03-03 11:31:24.0', '2021-03-03 11:31:24.0');
  1092. INSERT INTO `t_ds_dq_rule_execute_sql`
  1093. (`id`, `index`, `sql`, `table_alias`, `type`, `is_error_output_sql`, `create_time`, `update_time`)
  1094. VALUES(12, 1, 'SELECT COUNT(*) AS timeliness FROM timeliness_items', 'timeliness_count', 1, false, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1095. INSERT INTO `t_ds_dq_rule_execute_sql`
  1096. (`id`, `index`, `sql`, `table_alias`, `type`, `is_error_output_sql`, `create_time`, `update_time`)
  1097. VALUES(13, 1, 'SELECT * FROM ${src_table} where (${src_field} not in ( ${enum_list} ) or ${src_field} is null) AND (${src_filter}) ', 'enum_items', 0, true, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1098. INSERT INTO `t_ds_dq_rule_execute_sql`
  1099. (`id`, `index`, `sql`, `table_alias`, `type`, `is_error_output_sql`, `create_time`, `update_time`)
  1100. VALUES(14, 1, 'SELECT COUNT(*) AS enums FROM enum_items', 'enum_count', 1, false, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1101. INSERT INTO `t_ds_dq_rule_execute_sql`
  1102. (`id`, `index`, `sql`, `table_alias`, `type`, `is_error_output_sql`, `create_time`, `update_time`)
  1103. VALUES(15, 1, 'SELECT COUNT(*) AS total FROM ${src_table} WHERE (${src_filter})', 'table_count', 1, false, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1104. INSERT INTO `t_ds_dq_rule_execute_sql`
  1105. (`id`, `index`, `sql`, `table_alias`, `type`, `is_error_output_sql`, `create_time`, `update_time`)
  1106. VALUES(16, 1, 'SELECT * FROM ${src_table} WHERE (${src_field} is null or ${src_field} = '''') AND (${src_filter})', 'null_items', 0, true, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1107. INSERT INTO `t_ds_dq_rule_execute_sql`
  1108. (`id`, `index`, `sql`, `table_alias`, `type`, `is_error_output_sql`, `create_time`, `update_time`)
  1109. VALUES(17, 1, 'SELECT * FROM ${src_table} WHERE (length(${src_field}) ${logic_operator} ${field_length}) AND (${src_filter})', 'invalid_length_items', 0, true, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1110. --
  1111. -- Table structure for table `t_ds_dq_rule_input_entry`
  1112. --
  1113. DROP TABLE IF EXISTS `t_ds_dq_rule_input_entry`;
  1114. CREATE TABLE `t_ds_dq_rule_input_entry` (
  1115. `id` int(11) NOT NULL AUTO_INCREMENT,
  1116. `field` varchar(255) DEFAULT NULL,
  1117. `type` varchar(255) DEFAULT NULL,
  1118. `title` varchar(255) DEFAULT NULL,
  1119. `value` varchar(255) DEFAULT NULL,
  1120. `options` text DEFAULT NULL,
  1121. `placeholder` varchar(255) DEFAULT NULL,
  1122. `option_source_type` int(11) DEFAULT NULL,
  1123. `value_type` int(11) DEFAULT NULL,
  1124. `input_type` int(11) DEFAULT NULL,
  1125. `is_show` tinyint(1) DEFAULT '1',
  1126. `can_edit` tinyint(1) DEFAULT '1',
  1127. `is_emit` tinyint(1) DEFAULT '0',
  1128. `is_validate` tinyint(1) DEFAULT '1',
  1129. `create_time` datetime DEFAULT NULL,
  1130. `update_time` datetime DEFAULT NULL,
  1131. PRIMARY KEY (`id`)
  1132. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  1133. INSERT INTO `t_ds_dq_rule_input_entry`
  1134. (`id`, `field`, `type`, `title`, `value`, `options`, `placeholder`, `option_source_type`, `value_type`, `input_type`, `is_show`, `can_edit`, `is_emit`, `is_validate`, `create_time`, `update_time`)
  1135. VALUES(1, 'src_connector_type', 'select', '$t(src_connector_type)', '', '[{"label":"HIVE","value":"HIVE"},{"label":"JDBC","value":"JDBC"}]', 'please select source connector type', 2, 2, 0, 1, 1, 1, 0, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1136. INSERT INTO `t_ds_dq_rule_input_entry`
  1137. (`id`, `field`, `type`, `title`, `value`, `options`, `placeholder`, `option_source_type`, `value_type`, `input_type`, `is_show`, `can_edit`, `is_emit`, `is_validate`, `create_time`, `update_time`)
  1138. VALUES(2, 'src_datasource_id', 'select', '$t(src_datasource_id)', '', NULL, 'please select source datasource id', 1, 2, 0, 1, 1, 1, 0, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1139. INSERT INTO `t_ds_dq_rule_input_entry`
  1140. (`id`, `field`, `type`, `title`, `value`, `options`, `placeholder`, `option_source_type`, `value_type`, `input_type`, `is_show`, `can_edit`, `is_emit`, `is_validate`, `create_time`, `update_time`)
  1141. VALUES(3, 'src_table', 'select', '$t(src_table)', NULL, NULL, 'Please enter source table name', 0, 0, 0, 1, 1, 1, 1, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1142. INSERT INTO `t_ds_dq_rule_input_entry`
  1143. (`id`, `field`, `type`, `title`, `value`, `options`, `placeholder`, `option_source_type`, `value_type`, `input_type`, `is_show`, `can_edit`, `is_emit`, `is_validate`, `create_time`, `update_time`)
  1144. VALUES(4, 'src_filter', 'input', '$t(src_filter)', NULL, NULL, 'Please enter filter expression', 0, 3, 0, 1, 1, 0, 0, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1145. INSERT INTO `t_ds_dq_rule_input_entry`
  1146. (`id`, `field`, `type`, `title`, `value`, `options`, `placeholder`, `option_source_type`, `value_type`, `input_type`, `is_show`, `can_edit`, `is_emit`, `is_validate`, `create_time`, `update_time`)
  1147. VALUES(5, 'src_field', 'select', '$t(src_field)', NULL, NULL, 'Please enter column, only single column is supported', 0, 0, 0, 1, 1, 0, 1, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1148. INSERT INTO `t_ds_dq_rule_input_entry`
  1149. (`id`, `field`, `type`, `title`, `value`, `options`, `placeholder`, `option_source_type`, `value_type`, `input_type`, `is_show`, `can_edit`, `is_emit`, `is_validate`, `create_time`, `update_time`)
  1150. VALUES(6, 'statistics_name', 'input', '$t(statistics_name)', NULL, NULL, 'Please enter statistics name, the alias in statistics execute sql', 0, 0, 1, 0, 0, 0, 1, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1151. INSERT INTO `t_ds_dq_rule_input_entry`
  1152. (`id`, `field`, `type`, `title`, `value`, `options`, `placeholder`, `option_source_type`, `value_type`, `input_type`, `is_show`, `can_edit`, `is_emit`, `is_validate`, `create_time`, `update_time`)
  1153. VALUES(7, 'check_type', 'select', '$t(check_type)', '0', '[{"label":"Expected - Actual","value":"0"},{"label":"Actual - Expected","value":"1"},{"label":"Actual / Expected","value":"2"},{"label":"(Expected - Actual) / Expected","value":"3"}]', 'please select check type', 0, 0, 3, 1, 1, 1, 0, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1154. INSERT INTO `t_ds_dq_rule_input_entry`
  1155. (`id`, `field`, `type`, `title`, `value`, `options`, `placeholder`, `option_source_type`, `value_type`, `input_type`, `is_show`, `can_edit`, `is_emit`, `is_validate`, `create_time`, `update_time`)
  1156. VALUES(8, 'operator', 'select', '$t(operator)', '0', '[{"label":"=","value":"0"},{"label":"<","value":"1"},{"label":"<=","value":"2"},{"label":">","value":"3"},{"label":">=","value":"4"},{"label":"!=","value":"5"}]', 'please select operator', 0, 0, 3, 1, 1, 0, 0, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1157. INSERT INTO `t_ds_dq_rule_input_entry`
  1158. (`id`, `field`, `type`, `title`, `value`, `options`, `placeholder`, `option_source_type`, `value_type`, `input_type`, `is_show`, `can_edit`, `is_emit`, `is_validate`, `create_time`, `update_time`)
  1159. VALUES(9, 'threshold', 'input', '$t(threshold)', NULL, NULL, 'Please enter threshold, number is needed', 0, 2, 3, 1, 1, 0, 1, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1160. INSERT INTO `t_ds_dq_rule_input_entry`
  1161. (`id`, `field`, `type`, `title`, `value`, `options`, `placeholder`, `option_source_type`, `value_type`, `input_type`, `is_show`, `can_edit`, `is_emit`, `is_validate`, `create_time`, `update_time`)
  1162. VALUES(10, 'failure_strategy', 'select', '$t(failure_strategy)', '0', '[{"label":"Alert","value":"0"},{"label":"Block","value":"1"}]', 'please select failure strategy', 0, 0, 3, 1, 1, 0, 0, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1163. INSERT INTO `t_ds_dq_rule_input_entry`
  1164. (`id`, `field`, `type`, `title`, `value`, `options`, `placeholder`, `option_source_type`, `value_type`, `input_type`, `is_show`, `can_edit`, `is_emit`, `is_validate`, `create_time`, `update_time`)
  1165. VALUES(11, 'target_connector_type', 'select', '$t(target_connector_type)', '', '[{"label":"HIVE","value":"HIVE"},{"label":"JDBC","value":"JDBC"}]', 'Please select target connector type', 2, 0, 0, 1, 1, 1, 0, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1166. INSERT INTO `t_ds_dq_rule_input_entry`
  1167. (`id`, `field`, `type`, `title`, `value`, `options`, `placeholder`, `option_source_type`, `value_type`, `input_type`, `is_show`, `can_edit`, `is_emit`, `is_validate`, `create_time`, `update_time`)
  1168. VALUES(12, 'target_datasource_id', 'select', '$t(target_datasource_id)', '', NULL, 'Please select target datasource', 1, 2, 0, 1, 1, 1, 0, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1169. INSERT INTO `t_ds_dq_rule_input_entry`
  1170. (`id`, `field`, `type`, `title`, `value`, `options`, `placeholder`, `option_source_type`, `value_type`, `input_type`, `is_show`, `can_edit`, `is_emit`, `is_validate`, `create_time`, `update_time`)
  1171. VALUES(13, 'target_table', 'select', '$t(target_table)', NULL, NULL, 'Please enter target table', 0, 0, 0, 1, 1, 1, 1, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1172. INSERT INTO `t_ds_dq_rule_input_entry`
  1173. (`id`, `field`, `type`, `title`, `value`, `options`, `placeholder`, `option_source_type`, `value_type`, `input_type`, `is_show`, `can_edit`, `is_emit`, `is_validate`, `create_time`, `update_time`)
  1174. VALUES(14, 'target_filter', 'input', '$t(target_filter)', NULL, NULL, 'Please enter target filter expression', 0, 3, 0, 1, 1, 0, 0, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1175. INSERT INTO `t_ds_dq_rule_input_entry`
  1176. (`id`, `field`, `type`, `title`, `value`, `options`, `placeholder`, `option_source_type`, `value_type`, `input_type`, `is_show`, `can_edit`, `is_emit`, `is_validate`, `create_time`, `update_time`)
  1177. VALUES(15, 'mapping_columns', 'group', '$t(mapping_columns)', NULL, '[{"field":"src_field","props":{"placeholder":"Please input src field","rows":0,"disabled":false,"size":"small"},"type":"input","title":"src_field"},{"field":"operator","props":{"placeholder":"Please input operator","rows":0,"disabled":false,"size":"small"},"type":"input","title":"operator"},{"field":"target_field","props":{"placeholder":"Please input target field","rows":0,"disabled":false,"size":"small"},"type":"input","title":"target_field"}]', 'please enter mapping columns', 0, 0, 0, 1, 1, 0, 0, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1178. INSERT INTO `t_ds_dq_rule_input_entry`
  1179. (`id`, `field`, `type`, `title`, `value`, `options`, `placeholder`, `option_source_type`, `value_type`, `input_type`, `is_show`, `can_edit`, `is_emit`, `is_validate`, `create_time`, `update_time`)
  1180. VALUES(16, 'statistics_execute_sql', 'textarea', '$t(statistics_execute_sql)', NULL, NULL, 'Please enter statistics execute sql', 0, 3, 0, 1, 1, 0, 1, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1181. INSERT INTO `t_ds_dq_rule_input_entry`
  1182. (`id`, `field`, `type`, `title`, `value`, `options`, `placeholder`, `option_source_type`, `value_type`, `input_type`, `is_show`, `can_edit`, `is_emit`, `is_validate`, `create_time`, `update_time`)
  1183. VALUES(17, 'comparison_name', 'input', '$t(comparison_name)', NULL, NULL, 'Please enter comparison name, the alias in comparison execute sql', 0, 0, 0, 0, 0, 0, 1, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1184. INSERT INTO `t_ds_dq_rule_input_entry`
  1185. (`id`, `field`, `type`, `title`, `value`, `options`, `placeholder`, `option_source_type`, `value_type`, `input_type`, `is_show`, `can_edit`, `is_emit`, `is_validate`, `create_time`, `update_time`)
  1186. VALUES(18, 'comparison_execute_sql', 'textarea', '$t(comparison_execute_sql)', NULL, NULL, 'Please enter comparison execute sql', 0, 3, 0, 1, 1, 0, 1, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1187. INSERT INTO `t_ds_dq_rule_input_entry`
  1188. (`id`, `field`, `type`, `title`, `value`, `options`, `placeholder`, `option_source_type`, `value_type`, `input_type`, `is_show`, `can_edit`, `is_emit`, `is_validate`, `create_time`, `update_time`)
  1189. VALUES(19, 'comparison_type', 'select', '$t(comparison_type)', '', NULL, 'Please enter comparison title', 3, 0, 2, 1, 0, 1, 0, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1190. INSERT INTO `t_ds_dq_rule_input_entry`
  1191. (`id`, `field`, `type`, `title`, `value`, `options`, `placeholder`, `option_source_type`, `value_type`, `input_type`, `is_show`, `can_edit`, `is_emit`, `is_validate`, `create_time`, `update_time`)
  1192. VALUES(20, 'writer_connector_type', 'select', '$t(writer_connector_type)', '', '[{"label":"MYSQL","value":"0"},{"label":"POSTGRESQL","value":"1"}]', 'please select writer connector type', 0, 2, 0, 1, 1, 1, 0, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1193. INSERT INTO `t_ds_dq_rule_input_entry`
  1194. (`id`, `field`, `type`, `title`, `value`, `options`, `placeholder`, `option_source_type`, `value_type`, `input_type`, `is_show`, `can_edit`, `is_emit`, `is_validate`, `create_time`, `update_time`)
  1195. VALUES(21, 'writer_datasource_id', 'select', '$t(writer_datasource_id)', '', NULL, 'please select writer datasource id', 1, 2, 0, 1, 1, 0, 0, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1196. INSERT INTO `t_ds_dq_rule_input_entry`
  1197. (`id`, `field`, `type`, `title`, `value`, `options`, `placeholder`, `option_source_type`, `value_type`, `input_type`, `is_show`, `can_edit`, `is_emit`, `is_validate`, `create_time`, `update_time`)
  1198. VALUES(22, 'target_field', 'select', '$t(target_field)', NULL, NULL, 'Please enter column, only single column is supported', 0, 0, 0, 1, 1, 0, 0, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1199. INSERT INTO `t_ds_dq_rule_input_entry`
  1200. (`id`, `field`, `type`, `title`, `value`, `options`, `placeholder`, `option_source_type`, `value_type`, `input_type`, `is_show`, `can_edit`, `is_emit`, `is_validate`, `create_time`, `update_time`)
  1201. VALUES(23, 'field_length', 'input', '$t(field_length)', NULL, NULL, 'Please enter length limit', 0, 3, 0, 1, 1, 0, 0, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1202. INSERT INTO `t_ds_dq_rule_input_entry`
  1203. (`id`, `field`, `type`, `title`, `value`, `options`, `placeholder`, `option_source_type`, `value_type`, `input_type`, `is_show`, `can_edit`, `is_emit`, `is_validate`, `create_time`, `update_time`)
  1204. VALUES(24, 'logic_operator', 'select', '$t(logic_operator)', '=', '[{"label":"=","value":"="},{"label":"<","value":"<"},{"label":"<=","value":"<="},{"label":">","value":">"},{"label":">=","value":">="},{"label":"<>","value":"<>"}]', 'please select logic operator', 0, 0, 3, 1, 1, 0, 0, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1205. INSERT INTO `t_ds_dq_rule_input_entry`
  1206. (`id`, `field`, `type`, `title`, `value`, `options`, `placeholder`, `option_source_type`, `value_type`, `input_type`, `is_show`, `can_edit`, `is_emit`, `is_validate`, `create_time`, `update_time`)
  1207. VALUES(25, 'regexp_pattern', 'input', '$t(regexp_pattern)', NULL, NULL, 'Please enter regexp pattern', 0, 0, 0, 1, 1, 0, 0, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1208. INSERT INTO `t_ds_dq_rule_input_entry`
  1209. (`id`, `field`, `type`, `title`, `value`, `options`, `placeholder`, `option_source_type`, `value_type`, `input_type`, `is_show`, `can_edit`, `is_emit`, `is_validate`, `create_time`, `update_time`)
  1210. VALUES(26, 'deadline', 'input', '$t(deadline)', NULL, NULL, 'Please enter deadline', 0, 0, 0, 1, 1, 0, 0, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1211. INSERT INTO `t_ds_dq_rule_input_entry`
  1212. (`id`, `field`, `type`, `title`, `value`, `options`, `placeholder`, `option_source_type`, `value_type`, `input_type`, `is_show`, `can_edit`, `is_emit`, `is_validate`, `create_time`, `update_time`)
  1213. VALUES(27, 'datetime_format', 'input', '$t(datetime_format)', NULL, NULL, 'Please enter datetime format', 0, 0, 0, 1, 1, 0, 0, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1214. INSERT INTO `t_ds_dq_rule_input_entry`
  1215. (`id`, `field`, `type`, `title`, `value`, `options`, `placeholder`, `option_source_type`, `value_type`, `input_type`, `is_show`, `can_edit`, `is_emit`, `is_validate`, `create_time`, `update_time`)
  1216. VALUES(28, 'enum_list', 'input', '$t(enum_list)', NULL, NULL, 'Please enter enumeration', 0, 0, 0, 1, 1, 0, 0, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1217. INSERT INTO `t_ds_dq_rule_input_entry`
  1218. (`id`, `field`, `type`, `title`, `value`, `options`, `placeholder`, `option_source_type`, `value_type`, `input_type`, `is_show`, `can_edit`, `is_emit`, `is_validate`, `create_time`, `update_time`)
  1219. VALUES(29, 'begin_time', 'input', '$t(begin_time)', NULL, NULL, 'Please enter begin time', 0, 0, 0, 1, 1, 0, 0, '2021-03-03 11:31:24.0', '2021-03-03 11:31:24.0');
  1220. --
  1221. -- Table structure for table `t_ds_dq_task_statistics_value`
  1222. --
  1223. DROP TABLE IF EXISTS `t_ds_dq_task_statistics_value`;
  1224. CREATE TABLE `t_ds_dq_task_statistics_value` (
  1225. `id` int(11) NOT NULL AUTO_INCREMENT,
  1226. `process_definition_id` int(11) DEFAULT NULL,
  1227. `task_instance_id` int(11) DEFAULT NULL,
  1228. `rule_id` int(11) NOT NULL,
  1229. `unique_code` varchar(255) NULL,
  1230. `statistics_name` varchar(255) NULL,
  1231. `statistics_value` double NULL,
  1232. `data_time` datetime DEFAULT NULL,
  1233. `create_time` datetime DEFAULT NULL,
  1234. `update_time` datetime DEFAULT NULL,
  1235. PRIMARY KEY (`id`)
  1236. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  1237. --
  1238. -- Table structure for table `t_ds_relation_rule_execute_sql`
  1239. --
  1240. DROP TABLE IF EXISTS `t_ds_relation_rule_execute_sql`;
  1241. CREATE TABLE `t_ds_relation_rule_execute_sql` (
  1242. `id` int(11) NOT NULL AUTO_INCREMENT,
  1243. `rule_id` int(11) DEFAULT NULL,
  1244. `execute_sql_id` int(11) DEFAULT NULL,
  1245. `create_time` datetime NULL,
  1246. `update_time` datetime NULL,
  1247. PRIMARY KEY (`id`)
  1248. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  1249. INSERT INTO `t_ds_relation_rule_execute_sql`
  1250. (`id`, `rule_id`, `execute_sql_id`, `create_time`, `update_time`)
  1251. VALUES(1, 1, 1, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1252. INSERT INTO `t_ds_relation_rule_execute_sql`
  1253. (`id`, `rule_id`, `execute_sql_id`, `create_time`, `update_time`)
  1254. VALUES(3, 5, 4, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1255. INSERT INTO `t_ds_relation_rule_execute_sql`
  1256. (`id`, `rule_id`, `execute_sql_id`, `create_time`, `update_time`)
  1257. VALUES(2, 3, 3, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1258. INSERT INTO `t_ds_relation_rule_execute_sql`
  1259. (`id`, `rule_id`, `execute_sql_id`, `create_time`, `update_time`)
  1260. VALUES(4, 3, 8, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1261. INSERT INTO `t_ds_relation_rule_execute_sql`
  1262. (`id`, `rule_id`, `execute_sql_id`, `create_time`, `update_time`)
  1263. VALUES(5, 6, 6, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1264. INSERT INTO `t_ds_relation_rule_execute_sql`
  1265. (`id`, `rule_id`, `execute_sql_id`, `create_time`, `update_time`)
  1266. VALUES(6, 6, 7, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1267. INSERT INTO `t_ds_relation_rule_execute_sql`
  1268. (`id`, `rule_id`, `execute_sql_id`, `create_time`, `update_time`)
  1269. VALUES(7, 7, 9, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1270. INSERT INTO `t_ds_relation_rule_execute_sql`
  1271. (`id`, `rule_id`, `execute_sql_id`, `create_time`, `update_time`)
  1272. VALUES(8, 7, 10, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1273. INSERT INTO `t_ds_relation_rule_execute_sql`
  1274. (`id`, `rule_id`, `execute_sql_id`, `create_time`, `update_time`)
  1275. VALUES(9, 8, 11, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1276. INSERT INTO `t_ds_relation_rule_execute_sql`
  1277. (`id`, `rule_id`, `execute_sql_id`, `create_time`, `update_time`)
  1278. VALUES(10, 8, 12, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1279. INSERT INTO `t_ds_relation_rule_execute_sql`
  1280. (`id`, `rule_id`, `execute_sql_id`, `create_time`, `update_time`)
  1281. VALUES(11, 9, 13, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1282. INSERT INTO `t_ds_relation_rule_execute_sql`
  1283. (`id`, `rule_id`, `execute_sql_id`, `create_time`, `update_time`)
  1284. VALUES(12, 9, 14, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1285. INSERT INTO `t_ds_relation_rule_execute_sql`
  1286. (`id`, `rule_id`, `execute_sql_id`, `create_time`, `update_time`)
  1287. VALUES(13, 10, 15, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1288. INSERT INTO `t_ds_relation_rule_execute_sql`
  1289. (`id`, `rule_id`, `execute_sql_id`, `create_time`, `update_time`)
  1290. VALUES(14, 1, 16, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1291. INSERT INTO `t_ds_relation_rule_execute_sql`
  1292. (`id`, `rule_id`, `execute_sql_id`, `create_time`, `update_time`)
  1293. VALUES(15, 5, 17, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1294. --
  1295. -- Table structure for table `t_ds_relation_rule_input_entry`
  1296. --
  1297. DROP TABLE IF EXISTS `t_ds_relation_rule_input_entry`;
  1298. CREATE TABLE `t_ds_relation_rule_input_entry` (
  1299. `id` int(11) NOT NULL AUTO_INCREMENT,
  1300. `rule_id` int(11) DEFAULT NULL,
  1301. `rule_input_entry_id` int(11) DEFAULT NULL,
  1302. `values_map` text DEFAULT NULL,
  1303. `index` int(11) DEFAULT NULL,
  1304. `create_time` datetime DEFAULT NULL,
  1305. `update_time` datetime DEFAULT NULL,
  1306. PRIMARY KEY (`id`)
  1307. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  1308. INSERT INTO `t_ds_relation_rule_input_entry`
  1309. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1310. VALUES(1, 1, 1, NULL, 1, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1311. INSERT INTO `t_ds_relation_rule_input_entry`
  1312. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1313. VALUES(2, 1, 2, NULL, 2, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1314. INSERT INTO `t_ds_relation_rule_input_entry`
  1315. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1316. VALUES(3, 1, 3, NULL, 3, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1317. INSERT INTO `t_ds_relation_rule_input_entry`
  1318. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1319. VALUES(4, 1, 4, NULL, 4, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1320. INSERT INTO `t_ds_relation_rule_input_entry`
  1321. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1322. VALUES(5, 1, 5, NULL, 5, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1323. INSERT INTO `t_ds_relation_rule_input_entry`
  1324. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1325. VALUES(6, 1, 6, '{"statistics_name":"null_count.nulls"}', 6, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1326. INSERT INTO `t_ds_relation_rule_input_entry`
  1327. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1328. VALUES(7, 1, 7, NULL, 7, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1329. INSERT INTO `t_ds_relation_rule_input_entry`
  1330. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1331. VALUES(8, 1, 8, NULL, 8, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1332. INSERT INTO `t_ds_relation_rule_input_entry`
  1333. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1334. VALUES(9, 1, 9, NULL, 9, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1335. INSERT INTO `t_ds_relation_rule_input_entry`
  1336. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1337. VALUES(10, 1, 10, NULL, 10, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1338. INSERT INTO `t_ds_relation_rule_input_entry`
  1339. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1340. VALUES(11, 1, 17, '', 11, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1341. INSERT INTO `t_ds_relation_rule_input_entry`
  1342. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1343. VALUES(12, 1, 19, NULL, 12, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1344. INSERT INTO `t_ds_relation_rule_input_entry`
  1345. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1346. VALUES(13, 2, 1, NULL, 1, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1347. INSERT INTO `t_ds_relation_rule_input_entry`
  1348. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1349. VALUES(14, 2, 2, NULL, 2, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1350. INSERT INTO `t_ds_relation_rule_input_entry`
  1351. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1352. VALUES(15, 2, 3, NULL, 3, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1353. INSERT INTO `t_ds_relation_rule_input_entry`
  1354. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1355. VALUES(16, 2, 6, '{"is_show":"true","can_edit":"true"}', 4, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1356. INSERT INTO `t_ds_relation_rule_input_entry`
  1357. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1358. VALUES(17, 2, 16, NULL, 5, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1359. INSERT INTO `t_ds_relation_rule_input_entry`
  1360. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1361. VALUES(18, 2, 4, NULL, 6, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1362. INSERT INTO `t_ds_relation_rule_input_entry`
  1363. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1364. VALUES(19, 2, 7, NULL, 7, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1365. INSERT INTO `t_ds_relation_rule_input_entry`
  1366. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1367. VALUES(20, 2, 8, NULL, 8, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1368. INSERT INTO `t_ds_relation_rule_input_entry`
  1369. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1370. VALUES(21, 2, 9, NULL, 9, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1371. INSERT INTO `t_ds_relation_rule_input_entry`
  1372. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1373. VALUES(22, 2, 10, NULL, 10, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1374. INSERT INTO `t_ds_relation_rule_input_entry`
  1375. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1376. VALUES(24, 2, 19, NULL, 12, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1377. INSERT INTO `t_ds_relation_rule_input_entry`
  1378. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1379. VALUES(25, 3, 1, NULL, 1, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1380. INSERT INTO `t_ds_relation_rule_input_entry`
  1381. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1382. VALUES(26, 3, 2, NULL, 2, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1383. INSERT INTO `t_ds_relation_rule_input_entry`
  1384. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1385. VALUES(27, 3, 3, NULL, 3, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1386. INSERT INTO `t_ds_relation_rule_input_entry`
  1387. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1388. VALUES(28, 3, 4, NULL, 4, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1389. INSERT INTO `t_ds_relation_rule_input_entry`
  1390. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1391. VALUES(29, 3, 11, NULL, 5, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1392. INSERT INTO `t_ds_relation_rule_input_entry`
  1393. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1394. VALUES(30, 3, 12, NULL, 6, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1395. INSERT INTO `t_ds_relation_rule_input_entry`
  1396. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1397. VALUES(31, 3, 13, NULL, 7, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1398. INSERT INTO `t_ds_relation_rule_input_entry`
  1399. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1400. VALUES(32, 3, 14, NULL, 8, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1401. INSERT INTO `t_ds_relation_rule_input_entry`
  1402. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1403. VALUES(33, 3, 15, NULL, 9, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1404. INSERT INTO `t_ds_relation_rule_input_entry`
  1405. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1406. VALUES(34, 3, 7, NULL, 10, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1407. INSERT INTO `t_ds_relation_rule_input_entry`
  1408. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1409. VALUES(35, 3, 8, NULL, 11, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1410. INSERT INTO `t_ds_relation_rule_input_entry`
  1411. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1412. VALUES(36, 3, 9, NULL, 12, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1413. INSERT INTO `t_ds_relation_rule_input_entry`
  1414. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1415. VALUES(37, 3, 10, NULL, 13, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1416. INSERT INTO `t_ds_relation_rule_input_entry`
  1417. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1418. VALUES(38, 3, 17, '{"comparison_name":"total_count.total"}', 14, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1419. INSERT INTO `t_ds_relation_rule_input_entry`
  1420. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1421. VALUES(39, 3, 19, NULL, 15, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1422. INSERT INTO `t_ds_relation_rule_input_entry`
  1423. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1424. VALUES(40, 4, 1, NULL, 1, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1425. INSERT INTO `t_ds_relation_rule_input_entry`
  1426. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1427. VALUES(41, 4, 2, NULL, 2, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1428. INSERT INTO `t_ds_relation_rule_input_entry`
  1429. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1430. VALUES(42, 4, 3, NULL, 3, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1431. INSERT INTO `t_ds_relation_rule_input_entry`
  1432. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1433. VALUES(43, 4, 6, '{"is_show":"true","can_edit":"true"}', 4, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1434. INSERT INTO `t_ds_relation_rule_input_entry`
  1435. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1436. VALUES(44, 4, 16, NULL, 5, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1437. INSERT INTO `t_ds_relation_rule_input_entry`
  1438. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1439. VALUES(45, 4, 11, NULL, 6, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1440. INSERT INTO `t_ds_relation_rule_input_entry`
  1441. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1442. VALUES(46, 4, 12, NULL, 7, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1443. INSERT INTO `t_ds_relation_rule_input_entry`
  1444. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1445. VALUES(47, 4, 13, NULL, 8, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1446. INSERT INTO `t_ds_relation_rule_input_entry`
  1447. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1448. VALUES(48, 4, 17, '{"is_show":"true","can_edit":"true"}', 9, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1449. INSERT INTO `t_ds_relation_rule_input_entry`
  1450. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1451. VALUES(49, 4, 18, NULL, 10, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1452. INSERT INTO `t_ds_relation_rule_input_entry`
  1453. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1454. VALUES(50, 4, 7, NULL, 11, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1455. INSERT INTO `t_ds_relation_rule_input_entry`
  1456. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1457. VALUES(51, 4, 8, NULL, 12, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1458. INSERT INTO `t_ds_relation_rule_input_entry`
  1459. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1460. VALUES(52, 4, 9, NULL, 13, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1461. INSERT INTO `t_ds_relation_rule_input_entry`
  1462. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1463. VALUES(53, 4, 10, NULL, 14, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1464. INSERT INTO `t_ds_relation_rule_input_entry`
  1465. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1466. VALUES(62, 3, 6, '{"statistics_name":"miss_count.miss"}', 18, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1467. INSERT INTO `t_ds_relation_rule_input_entry`
  1468. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1469. VALUES(63, 5, 1, NULL, 1, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1470. INSERT INTO `t_ds_relation_rule_input_entry`
  1471. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1472. VALUES(64, 5, 2, NULL, 2, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1473. INSERT INTO `t_ds_relation_rule_input_entry`
  1474. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1475. VALUES(65, 5, 3, NULL, 3, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1476. INSERT INTO `t_ds_relation_rule_input_entry`
  1477. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1478. VALUES(66, 5, 4, NULL, 4, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1479. INSERT INTO `t_ds_relation_rule_input_entry`
  1480. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1481. VALUES(67, 5, 5, NULL, 5, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1482. INSERT INTO `t_ds_relation_rule_input_entry`
  1483. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1484. VALUES(68, 5, 6, '{"statistics_name":"invalid_length_count.valids"}', 6, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1485. INSERT INTO `t_ds_relation_rule_input_entry`
  1486. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1487. VALUES(69, 5, 24, NULL, 7, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1488. INSERT INTO `t_ds_relation_rule_input_entry`
  1489. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1490. VALUES(70, 5, 23, NULL, 8, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1491. INSERT INTO `t_ds_relation_rule_input_entry`
  1492. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1493. VALUES(71, 5, 7, NULL, 9, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1494. INSERT INTO `t_ds_relation_rule_input_entry`
  1495. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1496. VALUES(72, 5, 8, NULL, 10, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1497. INSERT INTO `t_ds_relation_rule_input_entry`
  1498. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1499. VALUES(73, 5, 9, NULL, 11, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1500. INSERT INTO `t_ds_relation_rule_input_entry`
  1501. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1502. VALUES(74, 5, 10, NULL, 12, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1503. INSERT INTO `t_ds_relation_rule_input_entry`
  1504. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1505. VALUES(75, 5, 17, '', 13, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1506. INSERT INTO `t_ds_relation_rule_input_entry`
  1507. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1508. VALUES(76, 5, 19, NULL, 14, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1509. INSERT INTO `t_ds_relation_rule_input_entry`
  1510. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1511. VALUES(79, 6, 1, NULL, 1, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1512. INSERT INTO `t_ds_relation_rule_input_entry`
  1513. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1514. VALUES(80, 6, 2, NULL, 2, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1515. INSERT INTO `t_ds_relation_rule_input_entry`
  1516. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1517. VALUES(81, 6, 3, NULL, 3, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1518. INSERT INTO `t_ds_relation_rule_input_entry`
  1519. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1520. VALUES(82, 6, 4, NULL, 4, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1521. INSERT INTO `t_ds_relation_rule_input_entry`
  1522. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1523. VALUES(83, 6, 5, NULL, 5, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1524. INSERT INTO `t_ds_relation_rule_input_entry`
  1525. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1526. VALUES(84, 6, 6, '{"statistics_name":"duplicate_count.duplicates"}', 6, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1527. INSERT INTO `t_ds_relation_rule_input_entry`
  1528. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1529. VALUES(85, 6, 7, NULL, 7, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1530. INSERT INTO `t_ds_relation_rule_input_entry`
  1531. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1532. VALUES(86, 6, 8, NULL, 8, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1533. INSERT INTO `t_ds_relation_rule_input_entry`
  1534. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1535. VALUES(87, 6, 9, NULL, 9, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1536. INSERT INTO `t_ds_relation_rule_input_entry`
  1537. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1538. VALUES(88, 6, 10, NULL, 10, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1539. INSERT INTO `t_ds_relation_rule_input_entry`
  1540. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1541. VALUES(89, 6, 17, '', 11, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1542. INSERT INTO `t_ds_relation_rule_input_entry`
  1543. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1544. VALUES(90, 6, 19, NULL, 12, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1545. INSERT INTO `t_ds_relation_rule_input_entry`
  1546. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1547. VALUES(93, 7, 1, NULL, 1, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1548. INSERT INTO `t_ds_relation_rule_input_entry`
  1549. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1550. VALUES(94, 7, 2, NULL, 2, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1551. INSERT INTO `t_ds_relation_rule_input_entry`
  1552. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1553. VALUES(95, 7, 3, NULL, 3, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1554. INSERT INTO `t_ds_relation_rule_input_entry`
  1555. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1556. VALUES(96, 7, 4, NULL, 4, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1557. INSERT INTO `t_ds_relation_rule_input_entry`
  1558. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1559. VALUES(97, 7, 5, NULL, 5, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1560. INSERT INTO `t_ds_relation_rule_input_entry`
  1561. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1562. VALUES(98, 7, 6, '{"statistics_name":"regexp_count.regexps"}', 6, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1563. INSERT INTO `t_ds_relation_rule_input_entry`
  1564. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1565. VALUES(99, 7, 25, NULL, 5, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1566. INSERT INTO `t_ds_relation_rule_input_entry`
  1567. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1568. VALUES(100, 7, 7, NULL, 7, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1569. INSERT INTO `t_ds_relation_rule_input_entry`
  1570. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1571. VALUES(101, 7, 8, NULL, 8, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1572. INSERT INTO `t_ds_relation_rule_input_entry`
  1573. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1574. VALUES(102, 7, 9, NULL, 9, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1575. INSERT INTO `t_ds_relation_rule_input_entry`
  1576. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1577. VALUES(103, 7, 10, NULL, 10, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1578. INSERT INTO `t_ds_relation_rule_input_entry`
  1579. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1580. VALUES(104, 7, 17, NULL, 11, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1581. INSERT INTO `t_ds_relation_rule_input_entry`
  1582. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1583. VALUES(105, 7, 19, NULL, 12, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1584. INSERT INTO `t_ds_relation_rule_input_entry`
  1585. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1586. VALUES(108, 8, 1, NULL, 1, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1587. INSERT INTO `t_ds_relation_rule_input_entry`
  1588. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1589. VALUES(109, 8, 2, NULL, 2, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1590. INSERT INTO `t_ds_relation_rule_input_entry`
  1591. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1592. VALUES(110, 8, 3, NULL, 3, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1593. INSERT INTO `t_ds_relation_rule_input_entry`
  1594. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1595. VALUES(111, 8, 4, NULL, 4, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1596. INSERT INTO `t_ds_relation_rule_input_entry`
  1597. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1598. VALUES(112, 8, 5, NULL, 5, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1599. INSERT INTO `t_ds_relation_rule_input_entry`
  1600. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1601. VALUES(113, 8, 6, '{"statistics_name":"timeliness_count.timeliness"}', 6, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1602. INSERT INTO `t_ds_relation_rule_input_entry`
  1603. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1604. VALUES(114, 8, 26, NULL, 8, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1605. INSERT INTO `t_ds_relation_rule_input_entry`
  1606. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1607. VALUES(115, 8, 27, NULL, 9, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1608. INSERT INTO `t_ds_relation_rule_input_entry`
  1609. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1610. VALUES(116, 8, 7, NULL, 10, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1611. INSERT INTO `t_ds_relation_rule_input_entry`
  1612. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1613. VALUES(117, 8, 8, NULL, 11, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1614. INSERT INTO `t_ds_relation_rule_input_entry`
  1615. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1616. VALUES(118, 8, 9, NULL, 12, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1617. INSERT INTO `t_ds_relation_rule_input_entry`
  1618. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1619. VALUES(119, 8, 10, NULL, 13, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1620. INSERT INTO `t_ds_relation_rule_input_entry`
  1621. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1622. VALUES(120, 8, 17, NULL, 14, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1623. INSERT INTO `t_ds_relation_rule_input_entry`
  1624. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1625. VALUES(121, 8, 19, NULL, 15, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1626. INSERT INTO `t_ds_relation_rule_input_entry`
  1627. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1628. VALUES(124, 9, 1, NULL, 1, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1629. INSERT INTO `t_ds_relation_rule_input_entry`
  1630. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1631. VALUES(125, 9, 2, NULL, 2, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1632. INSERT INTO `t_ds_relation_rule_input_entry`
  1633. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1634. VALUES(126, 9, 3, NULL, 3, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1635. INSERT INTO `t_ds_relation_rule_input_entry`
  1636. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1637. VALUES(127, 9, 4, NULL, 4, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1638. INSERT INTO `t_ds_relation_rule_input_entry`
  1639. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1640. VALUES(128, 9, 5, NULL, 5, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1641. INSERT INTO `t_ds_relation_rule_input_entry`
  1642. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1643. VALUES(129, 9, 6, '{"statistics_name":"enum_count.enums"}', 6, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1644. INSERT INTO `t_ds_relation_rule_input_entry`
  1645. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1646. VALUES(130, 9, 28, NULL, 7, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1647. INSERT INTO `t_ds_relation_rule_input_entry`
  1648. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1649. VALUES(131, 9, 7, NULL, 8, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1650. INSERT INTO `t_ds_relation_rule_input_entry`
  1651. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1652. VALUES(132, 9, 8, NULL, 9, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1653. INSERT INTO `t_ds_relation_rule_input_entry`
  1654. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1655. VALUES(133, 9, 9, NULL, 10, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1656. INSERT INTO `t_ds_relation_rule_input_entry`
  1657. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1658. VALUES(134, 9, 10, NULL, 11, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1659. INSERT INTO `t_ds_relation_rule_input_entry`
  1660. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1661. VALUES(135, 9, 17, NULL, 12, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1662. INSERT INTO `t_ds_relation_rule_input_entry`
  1663. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1664. VALUES(136, 9, 19, NULL, 13, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1665. INSERT INTO `t_ds_relation_rule_input_entry`
  1666. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1667. VALUES(139, 10, 1, NULL, 1, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1668. INSERT INTO `t_ds_relation_rule_input_entry`
  1669. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1670. VALUES(140, 10, 2, NULL, 2, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1671. INSERT INTO `t_ds_relation_rule_input_entry`
  1672. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1673. VALUES(141, 10, 3, NULL, 3, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1674. INSERT INTO `t_ds_relation_rule_input_entry`
  1675. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1676. VALUES(142, 10, 4, NULL, 4, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1677. INSERT INTO `t_ds_relation_rule_input_entry`
  1678. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1679. VALUES(143, 10, 6, '{"statistics_name":"table_count.total"}', 6, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1680. INSERT INTO `t_ds_relation_rule_input_entry`
  1681. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1682. VALUES(144, 10, 7, NULL, 7, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1683. INSERT INTO `t_ds_relation_rule_input_entry`
  1684. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1685. VALUES(145, 10, 8, NULL, 8, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1686. INSERT INTO `t_ds_relation_rule_input_entry`
  1687. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1688. VALUES(146, 10, 9, NULL, 9, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1689. INSERT INTO `t_ds_relation_rule_input_entry`
  1690. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1691. VALUES(147, 10, 10, NULL, 10, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1692. INSERT INTO `t_ds_relation_rule_input_entry`
  1693. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1694. VALUES(148, 10, 17, NULL, 11, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1695. INSERT INTO `t_ds_relation_rule_input_entry`
  1696. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1697. VALUES(149, 10, 19, NULL, 12, '2021-03-03 11:31:24.000', '2021-03-03 11:31:24.000');
  1698. INSERT INTO t_ds_relation_rule_input_entry
  1699. (`id`, `rule_id`, `rule_input_entry_id`, `values_map`, `index`, `create_time`, `update_time`)
  1700. VALUES(150, 8, 29, NULL, 7, '2021-03-03 11:31:24.0', '2021-03-03 11:31:24.0');
  1701. -- ----------------------------
  1702. -- Table structure for t_ds_environment
  1703. -- ----------------------------
  1704. DROP TABLE IF EXISTS `t_ds_environment`;
  1705. CREATE TABLE `t_ds_environment` (
  1706. `id` bigint(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  1707. `code` bigint(20) DEFAULT NULL COMMENT 'encoding',
  1708. `name` varchar(100) NOT NULL COMMENT 'environment name',
  1709. `config` text NULL DEFAULT NULL COMMENT 'this config contains many environment variables config',
  1710. `description` text NULL DEFAULT NULL COMMENT 'the details',
  1711. `operator` int(11) DEFAULT NULL COMMENT 'operator user id',
  1712. `create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  1713. `update_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  1714. PRIMARY KEY (`id`),
  1715. UNIQUE KEY `environment_name_unique` (`name`),
  1716. UNIQUE KEY `environment_code_unique` (`code`)
  1717. ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
  1718. -- ----------------------------
  1719. -- Table structure for t_ds_environment_worker_group_relation
  1720. -- ----------------------------
  1721. DROP TABLE IF EXISTS `t_ds_environment_worker_group_relation`;
  1722. CREATE TABLE `t_ds_environment_worker_group_relation` (
  1723. `id` bigint(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  1724. `environment_code` bigint(20) NOT NULL COMMENT 'environment code',
  1725. `worker_group` varchar(255) NOT NULL COMMENT 'worker group id',
  1726. `operator` int(11) DEFAULT NULL COMMENT 'operator user id',
  1727. `create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  1728. `update_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  1729. PRIMARY KEY (`id`),
  1730. UNIQUE KEY `environment_worker_group_unique` (`environment_code`,`worker_group`)
  1731. ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
  1732. -- ----------------------------
  1733. -- Table structure for t_ds_task_group_queue
  1734. -- ----------------------------
  1735. DROP TABLE IF EXISTS `t_ds_task_group_queue`;
  1736. CREATE TABLE `t_ds_task_group_queue` (
  1737. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT'key',
  1738. `task_id` int(11) DEFAULT NULL COMMENT 'taskintanceid',
  1739. `task_name` varchar(100) DEFAULT NULL COMMENT 'TaskInstance name',
  1740. `group_id` int(11) DEFAULT NULL COMMENT 'taskGroup id',
  1741. `process_id` int(11) DEFAULT NULL COMMENT 'processInstace id',
  1742. `priority` int(8) DEFAULT '0' COMMENT 'priority',
  1743. `status` tinyint(4) DEFAULT '-1' COMMENT '-1: waiting 1: running 2: finished',
  1744. `force_start` tinyint(4) DEFAULT '0' COMMENT 'is force start 0 NO ,1 YES',
  1745. `in_queue` tinyint(4) DEFAULT '0' COMMENT 'ready to get the queue by other task finish 0 NO ,1 YES',
  1746. `create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  1747. `update_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  1748. PRIMARY KEY( `id` )
  1749. )ENGINE= INNODB AUTO_INCREMENT= 1 DEFAULT CHARSET= utf8;
  1750. -- ----------------------------
  1751. -- Table structure for t_ds_task_group
  1752. -- ----------------------------
  1753. DROP TABLE IF EXISTS `t_ds_task_group`;
  1754. CREATE TABLE `t_ds_task_group` (
  1755. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT'key',
  1756. `name` varchar(100) DEFAULT NULL COMMENT 'task_group name',
  1757. `description` varchar(200) DEFAULT NULL,
  1758. `group_size` int (11) NOT NULL COMMENT'group size',
  1759. `use_size` int (11) DEFAULT '0' COMMENT 'used size',
  1760. `user_id` int(11) DEFAULT NULL COMMENT 'creator id',
  1761. `project_code` bigint(20) DEFAULT 0 COMMENT 'project code',
  1762. `status` tinyint(4) DEFAULT '1' COMMENT '0 not available, 1 available',
  1763. `create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  1764. `update_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  1765. PRIMARY KEY(`id`)
  1766. ) ENGINE= INNODB AUTO_INCREMENT= 1 DEFAULT CHARSET= utf8;
  1767. -- ----------------------------
  1768. -- Table structure for t_ds_audit_log
  1769. -- ----------------------------
  1770. DROP TABLE IF EXISTS `t_ds_audit_log`;
  1771. CREATE TABLE `t_ds_audit_log` (
  1772. `id` bigint(11) NOT NULL AUTO_INCREMENT COMMENT'key',
  1773. `user_id` int(11) NOT NULL COMMENT 'user id',
  1774. `resource_type` int(11) NOT NULL COMMENT 'resource type',
  1775. `operation` int(11) NOT NULL COMMENT 'operation',
  1776. `time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT 'create time',
  1777. `resource_id` int(11) NULL DEFAULT NULL COMMENT 'resource id',
  1778. PRIMARY KEY (`id`)
  1779. ) ENGINE=InnoDB AUTO_INCREMENT= 1 DEFAULT CHARSET=utf8;
  1780. -- ----------------------------
  1781. -- Table structure for t_ds_k8s
  1782. -- ----------------------------
  1783. DROP TABLE IF EXISTS `t_ds_k8s`;
  1784. CREATE TABLE `t_ds_k8s` (
  1785. `id` int(11) NOT NULL AUTO_INCREMENT,
  1786. `k8s_name` varchar(100) DEFAULT NULL,
  1787. `k8s_config` text DEFAULT NULL,
  1788. `create_time` datetime DEFAULT NULL COMMENT 'create time',
  1789. `update_time` datetime DEFAULT NULL COMMENT 'update time',
  1790. PRIMARY KEY (`id`)
  1791. ) ENGINE= INNODB AUTO_INCREMENT= 1 DEFAULT CHARSET= utf8;
  1792. -- ----------------------------
  1793. -- Table structure for t_ds_k8s_namespace
  1794. -- ----------------------------
  1795. DROP TABLE IF EXISTS `t_ds_k8s_namespace`;
  1796. CREATE TABLE `t_ds_k8s_namespace` (
  1797. `id` int(11) NOT NULL AUTO_INCREMENT,
  1798. `limits_memory` int(11) DEFAULT NULL,
  1799. `namespace` varchar(100) DEFAULT NULL,
  1800. `online_job_num` int(11) DEFAULT NULL,
  1801. `user_id` int(11) DEFAULT NULL,
  1802. `pod_replicas` int(11) DEFAULT NULL,
  1803. `pod_request_cpu` decimal(14,3) DEFAULT NULL,
  1804. `pod_request_memory` int(11) DEFAULT NULL,
  1805. `limits_cpu` decimal(14,3) DEFAULT NULL,
  1806. `k8s` varchar(100) DEFAULT NULL,
  1807. `create_time` datetime DEFAULT NULL COMMENT 'create time',
  1808. `update_time` datetime DEFAULT NULL COMMENT 'update time',
  1809. PRIMARY KEY (`id`),
  1810. UNIQUE KEY `k8s_namespace_unique` (`namespace`,`k8s`)
  1811. ) ENGINE= INNODB AUTO_INCREMENT= 1 DEFAULT CHARSET= utf8;
  1812. -- ----------------------------
  1813. -- Table structure for t_ds_relation_namespace_user
  1814. -- ----------------------------
  1815. DROP TABLE IF EXISTS `t_ds_relation_namespace_user`;
  1816. CREATE TABLE `t_ds_relation_namespace_user` (
  1817. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'key',
  1818. `user_id` int(11) NOT NULL COMMENT 'user id',
  1819. `namespace_id` int(11) DEFAULT NULL COMMENT 'namespace id',
  1820. `perm` int(11) DEFAULT '1' COMMENT 'limits of authority',
  1821. `create_time` datetime DEFAULT NULL COMMENT 'create time',
  1822. `update_time` datetime DEFAULT NULL COMMENT 'update time',
  1823. PRIMARY KEY (`id`),
  1824. UNIQUE KEY `namespace_user_unique` (`user_id`,`namespace_id`)
  1825. ) ENGINE=InnoDB AUTO_INCREMENT= 1 DEFAULT CHARSET= utf8;
  1826. -- ----------------------------
  1827. -- Table structure for t_ds_alert_send_status
  1828. -- ----------------------------
  1829. DROP TABLE IF EXISTS t_ds_alert_send_status;
  1830. CREATE TABLE t_ds_alert_send_status (
  1831. `id` int(11) NOT NULL AUTO_INCREMENT,
  1832. `alert_id` int(11) NOT NULL,
  1833. `alert_plugin_instance_id` int(11) NOT NULL,
  1834. `send_status` tinyint(4) DEFAULT '0',
  1835. `log` text,
  1836. `create_time` datetime DEFAULT NULL COMMENT 'create time',
  1837. PRIMARY KEY (`id`),
  1838. UNIQUE KEY `alert_send_status_unique` (`alert_id`,`alert_plugin_instance_id`)
  1839. ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
  1840. -- ----------------------------
  1841. -- Table structure for t_ds_cluster
  1842. -- ----------------------------
  1843. DROP TABLE IF EXISTS `t_ds_cluster`;
  1844. CREATE TABLE `t_ds_cluster` (
  1845. `id` bigint(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  1846. `code` bigint(20) DEFAULT NULL COMMENT 'encoding',
  1847. `name` varchar(100) NOT NULL COMMENT 'cluster name',
  1848. `config` text NULL DEFAULT NULL COMMENT 'this config contains many cluster variables config',
  1849. `description` text NULL DEFAULT NULL COMMENT 'the details',
  1850. `operator` int(11) DEFAULT NULL COMMENT 'operator user id',
  1851. `create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  1852. `update_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  1853. PRIMARY KEY (`id`),
  1854. UNIQUE KEY `cluster_name_unique` (`name`),
  1855. UNIQUE KEY `cluster_code_unique` (`code`)
  1856. ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;