You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

sqlite.sql 59 kB

1 year ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853
  1. CREATE TABLE `users` (
  2. `id` integer primary key autoincrement,
  3. `username` varchar(64) not null unique,
  4. `nickname` varchar(64) not null,
  5. `password` varchar(128) not null default '',
  6. `phone` varchar(16) not null default '',
  7. `email` varchar(64) not null default '',
  8. `portrait` varchar(255) not null default '',
  9. `roles` varchar(255) not null,
  10. `contacts` varchar(1024),
  11. `maintainer` tinyint(1) not null default 0,
  12. `belong` varchar(16) not null default '',
  13. `last_active_time` bigint not null default 0,
  14. `create_at` bigint not null default 0,
  15. `create_by` varchar(64) not null default '',
  16. `update_at` bigint not null default 0,
  17. `update_by` varchar(64) not null default ''
  18. );
  19. CREATE UNIQUE INDEX idx_users_username ON `users` (username);
  20. insert into `users`(id, username, nickname, password, roles, create_at, create_by, update_at, update_by) values(1, 'root', '超管', 'root.2020', 'Admin', strftime('%s', 'now'), 'system', strftime('%s', 'now'), 'system');
  21. CREATE TABLE `user_group` (
  22. `id` integer primary key autoincrement,
  23. `name` varchar(128) not null default '',
  24. `note` varchar(255) not null default '',
  25. `create_at` bigint not null default 0,
  26. `create_by` varchar(64) not null default '',
  27. `update_at` bigint not null default 0,
  28. `update_by` varchar(64) not null default ''
  29. );
  30. CREATE INDEX `idx_user_group_create_by` ON `user_group` (`create_by` asc);
  31. CREATE INDEX `idx_user_group_update_at` ON `user_group` (`update_at` asc);
  32. insert into user_group(id, name, create_at, create_by, update_at, update_by) values(1, 'demo-root-group', strftime('%s', 'now'), 'root', strftime('%s', 'now'), 'root');
  33. CREATE TABLE `user_group_member` (
  34. `id` integer primary key autoincrement,
  35. `group_id` bigint unsigned not null,
  36. `user_id` bigint unsigned not null
  37. );
  38. CREATE INDEX `idx_user_group_member_group_id` ON `user_group_member` (`group_id` asc);
  39. CREATE INDEX `idx_user_group_member_user_id` ON `user_group_member` (`user_id` asc);
  40. insert into user_group_member(group_id, user_id) values(1, 1);
  41. CREATE TABLE `configs` (
  42. `id` integer primary key autoincrement,
  43. `ckey` varchar(191) not null,
  44. `cval` text not null,
  45. `note` varchar(1024) not null default '',
  46. `external` tinyint(1) not null default 0,
  47. `encrypted` tinyint(1) not null default 0,
  48. `create_at` bigint not null default 0,
  49. `create_by` varchar(64) not null default '',
  50. `update_at` bigint not null default 0,
  51. `update_by` varchar(64) not null default ''
  52. );
  53. CREATE TABLE `role` (
  54. `id` integer primary key autoincrement,
  55. `name` varchar(191) not null unique default '',
  56. `note` varchar(255) not null default ''
  57. );
  58. insert into `role`(name, note) values('Admin', 'Administrator role');
  59. insert into `role`(name, note) values('Standard', 'Ordinary user role');
  60. insert into `role`(name, note) values('Guest', 'Readonly user role');
  61. CREATE TABLE `role_operation`(
  62. `id` integer primary key autoincrement,
  63. `role_name` varchar(128) not null,
  64. `operation` varchar(191) not null
  65. );
  66. CREATE INDEX `idx_role_operation_role_name` ON `role_operation` (`role_name` asc);
  67. CREATE INDEX `idx_role_operation_operation` ON `role_operation` (`operation` asc);
  68. -- Admin is special, who has no concrete operation but can do anything.
  69. insert into `role_operation`(role_name, operation) values('Guest', '/metric/explorer');
  70. insert into `role_operation`(role_name, operation) values('Guest', '/object/explorer');
  71. insert into `role_operation`(role_name, operation) values('Guest', '/log/explorer');
  72. insert into `role_operation`(role_name, operation) values('Guest', '/trace/explorer');
  73. insert into `role_operation`(role_name, operation) values('Guest', '/help/version');
  74. insert into `role_operation`(role_name, operation) values('Guest', '/help/contact');
  75. insert into `role_operation`(role_name, operation) values('Standard', '/metric/explorer');
  76. insert into `role_operation`(role_name, operation) values('Standard', '/object/explorer');
  77. insert into `role_operation`(role_name, operation) values('Standard', '/log/explorer');
  78. insert into `role_operation`(role_name, operation) values('Standard', '/trace/explorer');
  79. insert into `role_operation`(role_name, operation) values('Standard', '/help/version');
  80. insert into `role_operation`(role_name, operation) values('Standard', '/help/contact');
  81. insert into `role_operation`(role_name, operation) values('Standard', '/help/servers');
  82. insert into `role_operation`(role_name, operation) values('Standard', '/help/migrate');
  83. insert into `role_operation`(role_name, operation) values('Standard', '/alert-rules-built-in');
  84. insert into `role_operation`(role_name, operation) values('Standard', '/dashboards-built-in');
  85. insert into `role_operation`(role_name, operation) values('Standard', '/trace/dependencies');
  86. insert into `role_operation`(role_name, operation) values('Admin', '/help/source');
  87. insert into `role_operation`(role_name, operation) values('Admin', '/help/sso');
  88. insert into `role_operation`(role_name, operation) values('Admin', '/help/notification-tpls');
  89. insert into `role_operation`(role_name, operation) values('Admin', '/help/notification-settings');
  90. insert into `role_operation`(role_name, operation) values('Standard', '/users');
  91. insert into `role_operation`(role_name, operation) values('Standard', '/user-groups');
  92. insert into `role_operation`(role_name, operation) values('Standard', '/user-groups/add');
  93. insert into `role_operation`(role_name, operation) values('Standard', '/user-groups/put');
  94. insert into `role_operation`(role_name, operation) values('Standard', '/user-groups/del');
  95. insert into `role_operation`(role_name, operation) values('Standard', '/busi-groups');
  96. insert into `role_operation`(role_name, operation) values('Standard', '/busi-groups/add');
  97. insert into `role_operation`(role_name, operation) values('Standard', '/busi-groups/put');
  98. insert into `role_operation`(role_name, operation) values('Standard', '/busi-groups/del');
  99. insert into `role_operation`(role_name, operation) values('Standard', '/targets');
  100. insert into `role_operation`(role_name, operation) values('Standard', '/targets/add');
  101. insert into `role_operation`(role_name, operation) values('Standard', '/targets/put');
  102. insert into `role_operation`(role_name, operation) values('Standard', '/targets/del');
  103. insert into `role_operation`(role_name, operation) values('Standard', '/dashboards');
  104. insert into `role_operation`(role_name, operation) values('Standard', '/dashboards/add');
  105. insert into `role_operation`(role_name, operation) values('Standard', '/dashboards/put');
  106. insert into `role_operation`(role_name, operation) values('Standard', '/dashboards/del');
  107. insert into `role_operation`(role_name, operation) values('Standard', '/alert-rules');
  108. insert into `role_operation`(role_name, operation) values('Standard', '/alert-rules/add');
  109. insert into `role_operation`(role_name, operation) values('Standard', '/alert-rules/put');
  110. insert into `role_operation`(role_name, operation) values('Standard', '/alert-rules/del');
  111. insert into `role_operation`(role_name, operation) values('Standard', '/alert-mutes');
  112. insert into `role_operation`(role_name, operation) values('Standard', '/alert-mutes/add');
  113. insert into `role_operation`(role_name, operation) values('Standard', '/alert-mutes/del');
  114. insert into `role_operation`(role_name, operation) values('Standard', '/alert-subscribes');
  115. insert into `role_operation`(role_name, operation) values('Standard', '/alert-subscribes/add');
  116. insert into `role_operation`(role_name, operation) values('Standard', '/alert-subscribes/put');
  117. insert into `role_operation`(role_name, operation) values('Standard', '/alert-subscribes/del');
  118. insert into `role_operation`(role_name, operation) values('Standard', '/alert-cur-events');
  119. insert into `role_operation`(role_name, operation) values('Standard', '/alert-cur-events/del');
  120. insert into `role_operation`(role_name, operation) values('Standard', '/alert-his-events');
  121. insert into `role_operation`(role_name, operation) values('Standard', '/job-tpls');
  122. insert into `role_operation`(role_name, operation) values('Standard', '/job-tpls/add');
  123. insert into `role_operation`(role_name, operation) values('Standard', '/job-tpls/put');
  124. insert into `role_operation`(role_name, operation) values('Standard', '/job-tpls/del');
  125. insert into `role_operation`(role_name, operation) values('Standard', '/job-tasks');
  126. insert into `role_operation`(role_name, operation) values('Standard', '/job-tasks/add');
  127. insert into `role_operation`(role_name, operation) values('Standard', '/job-tasks/put');
  128. insert into `role_operation`(role_name, operation) values('Standard', '/recording-rules');
  129. insert into `role_operation`(role_name, operation) values('Standard', '/recording-rules/add');
  130. insert into `role_operation`(role_name, operation) values('Standard', '/recording-rules/put');
  131. insert into `role_operation`(role_name, operation) values('Standard', '/recording-rules/del');
  132. -- for alert_rule | collect_rule | mute | dashboard grouping
  133. CREATE TABLE `busi_group` (
  134. `id` integer primary key autoincrement,
  135. `name` varchar(191) not null unique,
  136. `label_enable` tinyint(1) not null default 0,
  137. `label_value` varchar(191) not null default '',
  138. `create_at` bigint not null default 0,
  139. `create_by` varchar(64) not null default '',
  140. `update_at` bigint not null default 0,
  141. `update_by` varchar(64) not null default ''
  142. );
  143. insert into busi_group(id, name, create_at, create_by, update_at, update_by) values(1, 'Default Busi Group', strftime('%s', 'now'), 'root', strftime('%s', 'now'), 'root');
  144. CREATE TABLE `busi_group_member` (
  145. `id` integer primary key autoincrement,
  146. `busi_group_id` bigint not null,
  147. `user_group_id` bigint not null,
  148. `perm_flag` char(2) not null
  149. );
  150. CREATE INDEX `idx_busi_group_member_busi_group_id` ON `busi_group_member` (`busi_group_id` asc);
  151. CREATE INDEX `idx_busi_group_member_user_group_id` ON `busi_group_member` (`user_group_id` asc);
  152. insert into busi_group_member(busi_group_id, user_group_id, perm_flag) values(1, 1, 'rw');
  153. -- for dashboard new version
  154. CREATE TABLE `board` (
  155. `id` integer primary key autoincrement,
  156. `group_id` bigint not null default 0,
  157. `name` varchar(191) not null,
  158. `ident` varchar(200) not null default '',
  159. `tags` varchar(255) not null,
  160. `public` tinyint(1) not null default 0,
  161. `built_in` tinyint(1) not null default 0,
  162. `hide` tinyint(1) not null default 0,
  163. `create_at` bigint not null default 0,
  164. `create_by` varchar(64) not null default '',
  165. `update_at` bigint not null default 0,
  166. `update_by` varchar(64) not null default '',
  167. `public_cate` bigint not null default 0
  168. );
  169. CREATE UNIQUE INDEX idx_board_group_id_name ON `board` (group_id, name);
  170. CREATE INDEX `idx_board_ident` ON `board` (`ident` asc);
  171. -- for dashboard new version
  172. CREATE TABLE `board_payload` (
  173. `id` bigint unsigned not null unique,
  174. `payload` mediumtext not null
  175. );
  176. CREATE TABLE `chart` (
  177. `id` integer primary key autoincrement,
  178. `group_id` integer not null,
  179. `configs` text,
  180. `weight` integer not null default 0
  181. );
  182. CREATE INDEX idx_chart_group_id ON `chart` (group_id);
  183. CREATE TABLE `chart_share` (
  184. `id` integer primary key autoincrement,
  185. `cluster` varchar(128) not null,
  186. `datasource_id` bigint unsigned not null default 0,
  187. `configs` text,
  188. `create_at` bigint not null default 0,
  189. `create_by` varchar(64) not null default ''
  190. );
  191. CREATE INDEX `idx_chart_share_create_at` ON `chart_share` (`create_at` asc);
  192. CREATE TABLE `alert_rule` (
  193. `id` integer primary key autoincrement,
  194. `group_id` bigint not null default 0,
  195. `cate` varchar(128) not null,
  196. `datasource_ids` varchar(255) not null default '',
  197. `cluster` varchar(128) not null,
  198. `name` varchar(255) not null,
  199. `note` varchar(1024) not null default '',
  200. `prod` varchar(255) not null default '',
  201. `algorithm` varchar(255) not null default '',
  202. `algo_params` varchar(255),
  203. `delay` int not null default 0,
  204. `severity` tinyint(1) not null,
  205. `disabled` tinyint(1) not null,
  206. `prom_for_duration` int not null,
  207. `rule_config` text not null,
  208. `prom_ql` text not null,
  209. `prom_eval_interval` int not null,
  210. `enable_stime` varchar(255) not null default '00:00',
  211. `enable_etime` varchar(255) not null default '23:59',
  212. `enable_days_of_week` varchar(255) not null default '',
  213. `enable_in_bg` tinyint(1) not null default 0,
  214. `notify_recovered` tinyint(1) not null,
  215. `notify_channels` varchar(255) not null default '',
  216. `notify_groups` varchar(255) not null default '',
  217. `notify_repeat_step` int not null default 0,
  218. `notify_max_number` int not null default 0,
  219. `recover_duration` int not null default 0 ,
  220. `callbacks` varchar(4096) not null default '',
  221. `runbook_url` varchar(4096),
  222. `append_tags` varchar(255) not null default '',
  223. `annotations` text not null,
  224. `extra_config` text not null,
  225. `create_at` bigint not null default 0,
  226. `create_by` varchar(64) not null default '',
  227. `update_at` bigint not null default 0,
  228. `update_by` varchar(64) not null default '',
  229. `cron_pattern` varchar(64),
  230. `datasource_queries` text
  231. );
  232. CREATE INDEX `idx_alert_rule_group_id` ON `alert_rule` (`group_id` asc);
  233. CREATE INDEX `idx_alert_rule_update_at` ON `alert_rule` (`update_at` asc);
  234. CREATE TABLE `alert_mute` (
  235. `id` integer primary key autoincrement,
  236. `group_id` bigint not null default 0,
  237. `prod` varchar(255) not null default '',
  238. `note` varchar(1024) not null default '',
  239. `cate` varchar(128) not null,
  240. `cluster` varchar(128) not null,
  241. `datasource_ids` varchar(255) not null default '',
  242. `tags` varchar(4096) default '[]',
  243. `cause` varchar(255) not null default '',
  244. `btime` bigint not null default 0,
  245. `etime` bigint not null default 0,
  246. `disabled` tinyint(1) not null default 0,
  247. `mute_time_type` tinyint(1) not null default 0,
  248. `periodic_mutes` varchar(4096) not null default '',
  249. `severities` varchar(32) not null default '',
  250. `create_at` bigint not null default 0,
  251. `create_by` varchar(64) not null default '',
  252. `update_at` bigint not null default 0,
  253. `update_by` varchar(64) not null default ''
  254. );
  255. CREATE INDEX `idx_alert_mute_create_at` ON `alert_mute` (`create_at` asc);
  256. CREATE INDEX `idx_alert_mute_group_id` ON `alert_mute` (`group_id` asc);
  257. CREATE TABLE `alert_subscribe` (
  258. `id` integer primary key autoincrement,
  259. `name` varchar(255) not null default '',
  260. `disabled` tinyint(1) not null default 0,
  261. `group_id` bigint not null default 0,
  262. `prod` varchar(255) not null default '',
  263. `cate` varchar(128) not null,
  264. `datasource_ids` varchar(255) not null default '',
  265. `cluster` varchar(128) not null,
  266. `rule_id` bigint not null default 0,
  267. `severities` varchar(32) not null default '',
  268. `tags` varchar(4096) not null default '',
  269. `redefine_severity` tinyint(1) default 0,
  270. `new_severity` tinyint(1) not null,
  271. `redefine_channels` tinyint(1) default 0,
  272. `new_channels` varchar(255) not null default '',
  273. `user_group_ids` varchar(250) not null,
  274. `busi_groups` VARCHAR(4096) NOT NULL DEFAULT '[]',
  275. `note` VARCHAR(1024) DEFAULT '',
  276. `rule_ids` VARCHAR(1024) DEFAULT '',
  277. `webhooks` text not null,
  278. `extra_config` text not null,
  279. `redefine_webhooks` tinyint(1) default 0,
  280. `for_duration` bigint not null default 0,
  281. `create_at` bigint not null default 0,
  282. `create_by` varchar(64) not null default '',
  283. `update_at` bigint not null default 0,
  284. `update_by` varchar(64) not null default ''
  285. );
  286. CREATE INDEX `idx_alert_subscribe_update_at` ON `alert_subscribe` (`update_at` asc);
  287. CREATE INDEX `idx_alert_subscribe_group_id` ON `alert_subscribe` (`group_id` asc);
  288. CREATE TABLE `target` (
  289. `id` integer primary key autoincrement,
  290. `group_id` bigint not null default 0,
  291. `ident` varchar(191) not null unique,
  292. `note` varchar(255) not null default '',
  293. `tags` varchar(512) not null default '',
  294. `host_ip` varchar(15) default '',
  295. `agent_version` varchar(255) default '',
  296. `host_tags` text,
  297. `engine_name` varchar(255) default '',
  298. `os` varchar(31) default '',
  299. `update_at` bigint not null default 0
  300. );
  301. CREATE INDEX `idx_target_group_id` ON `target` (`group_id` asc);
  302. CREATE UNIQUE INDEX idx_target_ident ON `target` (ident);
  303. CREATE INDEX idx_host_ip ON `target` (host_ip);
  304. CREATE INDEX idx_agent_version ON `target` (agent_version);
  305. CREATE INDEX idx_engine_name ON `target` (engine_name);
  306. CREATE INDEX idx_os ON `target` (os);
  307. CREATE TABLE `metric_view` (
  308. `id` integer primary key autoincrement,
  309. `name` varchar(191) not null default '',
  310. `cate` tinyint(1) not null,
  311. `configs` varchar(8192) not null default '',
  312. `create_at` bigint not null default 0,
  313. `create_by` bigint not null default 0,
  314. `update_at` bigint not null default 0
  315. );
  316. CREATE INDEX `idx_metric_view_create_by` ON `metric_view` (`create_by` asc);
  317. insert into metric_view(name, cate, configs) values('Host View', 0, '{"filters":[{"oper":"=","label":"__name__","value":"cpu_usage_idle"}],"dynamicLabels":[],"dimensionLabels":[{"label":"ident","value":""}]}');
  318. CREATE TABLE `recording_rule` (
  319. `id` integer primary key autoincrement,
  320. `group_id` bigint not null default '0',
  321. `datasource_ids` varchar(255) not null default '',
  322. `cluster` varchar(128) not null,
  323. `name` varchar(255) not null,
  324. `note` varchar(255) not null,
  325. `disabled` tinyint(1) not null default 0,
  326. `prom_ql` varchar(8192) not null,
  327. `prom_eval_interval` int not null,
  328. `cron_pattern` varchar(255) default '',
  329. `append_tags` varchar(255) default '',
  330. `query_configs` text not null,
  331. `create_at` bigint default '0',
  332. `create_by` varchar(64) default '',
  333. `update_at` bigint default '0',
  334. `update_by` varchar(64) default '',
  335. `datasource_queries` text
  336. );
  337. CREATE INDEX `idx_recording_rule_group_id` ON `recording_rule` (`group_id` asc);
  338. CREATE INDEX `idx_recording_rule_update_at` ON `recording_rule` (`update_at` asc);
  339. CREATE TABLE `alert_aggr_view` (
  340. `id` integer primary key autoincrement,
  341. `name` varchar(191) not null default '',
  342. `rule` varchar(2048) not null default '',
  343. `format` varchar(2048) not null default '',
  344. `cate` tinyint(1) not null,
  345. `create_at` bigint not null default 0,
  346. `create_by` bigint not null default 0,
  347. `update_at` bigint not null default 0
  348. );
  349. CREATE INDEX `idx_alert_aggr_view_create_by` ON `alert_aggr_view` (`create_by` asc);
  350. insert into alert_aggr_view(name, rule, cate) values('By BusiGroup, Severity', 'field:group_name::field:severity', 0);
  351. insert into alert_aggr_view(name, rule, cate) values('By RuleName', 'field:rule_name', 0);
  352. CREATE TABLE `alert_cur_event` (
  353. `id` integer primary key autoincrement,
  354. `cate` varchar(128) not null,
  355. `datasource_id` bigint not null default 0,
  356. `cluster` varchar(128) not null,
  357. `group_id` bigint unsigned not null,
  358. `group_name` varchar(255) not null default '',
  359. `hash` varchar(64) not null,
  360. `rule_id` bigint unsigned not null,
  361. `rule_name` varchar(255) not null,
  362. `rule_note` varchar(2048) not null default 'alert rule note',
  363. `rule_prod` varchar(255) not null default '',
  364. `rule_algo` varchar(255) not null default '',
  365. `severity` tinyint(1) not null,
  366. `prom_for_duration` int not null,
  367. `prom_ql` varchar(8192) not null,
  368. `prom_eval_interval` int not null,
  369. `callbacks` varchar(255) not null default '',
  370. `runbook_url` varchar(255),
  371. `notify_recovered` tinyint(1) not null,
  372. `notify_channels` varchar(255) not null default '',
  373. `notify_groups` varchar(255) not null default '',
  374. `notify_repeat_next` bigint not null default 0,
  375. `notify_cur_number` int not null default 0,
  376. `target_ident` varchar(191) not null default '',
  377. `target_note` varchar(191) not null default '',
  378. `first_trigger_time` bigint,
  379. `trigger_time` bigint not null,
  380. `trigger_value` varchar(2048) not null,
  381. `annotations` text not null,
  382. `rule_config` text not null,
  383. `tags` varchar(1024) not null default ''
  384. );
  385. CREATE INDEX `idx_alert_cur_event_hash` ON `alert_cur_event` (`hash` asc);
  386. CREATE INDEX `idx_alert_cur_event_rule_id` ON `alert_cur_event` (`rule_id` asc);
  387. CREATE INDEX `idx_alert_cur_event_trigger_time_group_id` ON `alert_cur_event` (`trigger_time`, `group_id` asc);
  388. CREATE INDEX `idx_alert_cur_event_notify_repeat_next` ON `alert_cur_event` (`notify_repeat_next` asc);
  389. CREATE TABLE `alert_his_event` (
  390. `id` integer primary key autoincrement,
  391. `is_recovered` tinyint(1) not null,
  392. `cate` varchar(128) not null,
  393. `datasource_id` bigint not null default 0,
  394. `cluster` varchar(128) not null,
  395. `group_id` bigint unsigned not null,
  396. `group_name` varchar(255) not null default '',
  397. `hash` varchar(64) not null,
  398. `rule_id` bigint unsigned not null,
  399. `rule_name` varchar(255) not null,
  400. `rule_note` varchar(2048) not null default 'alert rule note',
  401. `rule_prod` varchar(255) not null default '',
  402. `rule_algo` varchar(255) not null default '',
  403. `severity` tinyint(1) not null,
  404. `prom_for_duration` int not null,
  405. `prom_ql` varchar(8192) not null,
  406. `prom_eval_interval` int not null,
  407. `callbacks` varchar(255) not null default '',
  408. `runbook_url` varchar(255),
  409. `notify_recovered` tinyint(1) not null,
  410. `notify_channels` varchar(255) not null default '',
  411. `notify_groups` varchar(255) not null default '',
  412. `notify_cur_number` int not null default 0,
  413. `target_ident` varchar(191) not null default '',
  414. `target_note` varchar(191) not null default '',
  415. `first_trigger_time` bigint,
  416. `trigger_time` bigint not null,
  417. `trigger_value` varchar(2048) not null,
  418. `recover_time` bigint not null default 0,
  419. `last_eval_time` bigint not null default 0,
  420. `original_tags` varchar(8192),
  421. `tags` varchar(1024) not null default '',
  422. `annotations` text not null,
  423. `rule_config` text not null
  424. );
  425. CREATE INDEX `idx_alert_his_event_last_eval_time` ON `alert_his_event` (`last_eval_time` asc);
  426. CREATE INDEX `idx_alert_his_event_hash` ON `alert_his_event` (`hash` asc);
  427. CREATE INDEX `idx_alert_his_event_rule_id` ON `alert_his_event` (`rule_id` asc);
  428. CREATE INDEX `idx_alert_his_event_trigger_time_group_id` ON `alert_his_event` (`trigger_time`, `group_id` asc);
  429. CREATE TABLE `board_busigroup` (
  430. `busi_group_id` bigint(20) NOT NULL DEFAULT '0',
  431. `board_id` bigint(20) NOT NULL DEFAULT '0',
  432. primary key (`busi_group_id`, `board_id`)
  433. );
  434. CREATE TABLE `builtin_components` (
  435. `id` integer primary key autoincrement,
  436. `ident` varchar(191) not null,
  437. `logo` varchar(191) not null,
  438. `readme` text not null,
  439. `created_at` bigint(20) not null default 0,
  440. `created_by` varchar(191) not null default '',
  441. `updated_at` bigint(20) not null default 0,
  442. `updated_by` varchar(191) not null default ''
  443. );
  444. CREATE INDEX `idx_builtin_components_ident` ON `builtin_components` (`ident` asc);
  445. CREATE TABLE `builtin_payloads` (
  446. `id` integer primary key autoincrement,
  447. `component_id` integer not null default 0,
  448. `uuid` integer not null,
  449. `type` varchar(191) not null,
  450. `component` varchar(191) not null,
  451. `cate` varchar(191) not null,
  452. `name` varchar(191) not null,
  453. `tags` varchar(191) not null default '',
  454. `content` longtext not null,
  455. `created_at` bigint(20) not null default 0,
  456. `created_by` varchar(191) not null default '',
  457. `updated_at` bigint(20) not null default 0,
  458. `updated_by` varchar(191) not null default ''
  459. );
  460. CREATE INDEX `idx_builtin_payloads_component` ON `builtin_payloads` (`component` asc);
  461. CREATE INDEX `idx_builtin_payloads_name` ON `builtin_payloads` (`name` asc);
  462. CREATE INDEX `idx_builtin_payloads_cate` ON `builtin_payloads` (`cate` asc);
  463. CREATE INDEX `idx_builtin_payloads_type` ON `builtin_payloads` (`type` asc);
  464. CREATE INDEX idx_uuid ON `builtin_payloads` (uuid);
  465. CREATE TABLE `notification_record` (
  466. `id` integer primary key autoincrement,
  467. `event_id` integer not null,
  468. `sub_id` integer,
  469. `channel` varchar(255) not null,
  470. `status` integer,
  471. `target` varchar(1024) not null,
  472. `details` varchar(2048) default '',
  473. `created_at` integer not null
  474. );
  475. CREATE INDEX idx_evt ON notification_record (event_id);
  476. CREATE TABLE `task_tpl` (
  477. `id` integer primary key autoincrement,
  478. `group_id` int unsigned not null,
  479. `title` varchar(255) not null default '',
  480. `account` varchar(64) not null,
  481. `batch` int unsigned not null default 0,
  482. `tolerance` int unsigned not null default 0,
  483. `timeout` int unsigned not null default 0,
  484. `pause` varchar(255) not null default '',
  485. `script` text not null,
  486. `args` varchar(512) not null default '',
  487. `tags` varchar(255) not null default '',
  488. `create_at` bigint not null default 0,
  489. `create_by` varchar(64) not null default '',
  490. `update_at` bigint not null default 0,
  491. `update_by` varchar(64) not null default ''
  492. );
  493. CREATE INDEX `idx_task_tpl_group_id` ON `task_tpl` (`group_id` asc);
  494. CREATE TABLE `task_tpl_host` (
  495. `ii` integer primary key autoincrement,
  496. `id` int unsigned not null,
  497. `host` varchar(128) not null
  498. );
  499. CREATE INDEX `idx_task_tpl_host_id_host` ON `task_tpl_host` (`id`, `host` asc);
  500. CREATE TABLE `task_record` (
  501. `id` integer primary key autoincrement,
  502. `event_id` bigint not null default 0,
  503. `group_id` bigint not null,
  504. `ibex_address` varchar(128) not null,
  505. `ibex_auth_user` varchar(128) not null default '',
  506. `ibex_auth_pass` varchar(128) not null default '',
  507. `title` varchar(255) not null default '',
  508. `account` varchar(64) not null,
  509. `batch` int unsigned not null default 0,
  510. `tolerance` int unsigned not null default 0,
  511. `timeout` int unsigned not null default 0,
  512. `pause` varchar(255) not null default '',
  513. `script` text not null,
  514. `args` varchar(512) not null default '',
  515. `create_at` bigint not null default 0,
  516. `create_by` varchar(64) not null default ''
  517. );
  518. CREATE INDEX `idx_task_record_create_at_group_id` ON `task_record` (`create_at`, `group_id` asc);
  519. CREATE INDEX `idx_task_record_create_by` ON `task_record` (`create_by` asc);
  520. CREATE INDEX `idx_task_record_event_id` ON `task_record` (`event_id` asc);
  521. CREATE TABLE `alerting_engines` (
  522. `id` integer primary key autoincrement,
  523. `instance` varchar(128) not null default '',
  524. `datasource_id` bigint not null default 0,
  525. `engine_cluster` varchar(128) not null default '',
  526. `clock` bigint not null
  527. );
  528. CREATE TABLE `datasource`
  529. (
  530. `id` integer primary key autoincrement,
  531. `name` varchar(191) not null default '' unique,
  532. `description` varchar(255) not null default '',
  533. `category` varchar(255) not null default '',
  534. `plugin_id` int unsigned not null default 0,
  535. `plugin_type` varchar(255) not null default '',
  536. `plugin_type_name` varchar(255) not null default '',
  537. `cluster_name` varchar(255) not null default '',
  538. `settings` text not null,
  539. `status` varchar(255) not null default '',
  540. `http` varchar(4096) not null default '',
  541. `auth` varchar(8192) not null default '',
  542. `is_default` tinyint not null default 0,
  543. `created_at` bigint not null default 0,
  544. `created_by` varchar(64) not null default '',
  545. `updated_at` bigint not null default 0,
  546. `updated_by` varchar(64) not null default ''
  547. );
  548. CREATE UNIQUE INDEX idx_datasource_name ON datasource (name);
  549. CREATE TABLE `builtin_cate` (
  550. `id` integer primary key autoincrement,
  551. `name` varchar(191) not null,
  552. `user_id` bigint not null default 0
  553. );
  554. CREATE TABLE `notify_tpl` (
  555. `id` integer primary key autoincrement,
  556. `channel` varchar(32) not null unique,
  557. `name` varchar(255) not null,
  558. `content` text not null,
  559. `create_at` bigint not null default 0,
  560. `create_by` varchar(64) not null default '',
  561. `update_at` bigint not null default 0,
  562. `update_by` varchar(64) not null default ''
  563. );
  564. CREATE UNIQUE INDEX idx_notify_tpl_channel ON notify_tpl (channel);
  565. CREATE TABLE `sso_config` (
  566. `id` integer primary key autoincrement,
  567. `name` varchar(191) not null unique,
  568. `content` text not null,
  569. `update_at` bigint not null default 0
  570. );
  571. CREATE UNIQUE INDEX idx_sso_config_name ON sso_config (name);
  572. CREATE TABLE `es_index_pattern` (
  573. `id` integer primary key autoincrement,
  574. `datasource_id` bigint not null default 0,
  575. `name` varchar(191) not null,
  576. `time_field` varchar(128) not null default '@timestamp',
  577. `allow_hide_system_indices` tinyint(1) not null default 0,
  578. `fields_format` varchar(4096) not null default '',
  579. `cross_cluster_enabled` int not null default 0,
  580. `create_at` bigint default '0',
  581. `create_by` varchar(64) default '',
  582. `update_at` bigint default '0',
  583. `update_by` varchar(64) default '',
  584. unique (`datasource_id`, `name`)
  585. );
  586. CREATE UNIQUE INDEX idx_es_index_pattern_datasource_id_name ON es_index_pattern (datasource_id, name);
  587. CREATE TABLE `builtin_metrics` (
  588. `id` integer primary key autoincrement,
  589. `collector` varchar(191) NOT NULL,
  590. `typ` varchar(191) NOT NULL,
  591. `name` varchar(191) NOT NULL,
  592. `unit` varchar(191) NOT NULL,
  593. `lang` varchar(191) NOT NULL DEFAULT '',
  594. `note` varchar(4096) NOT NULL,
  595. `expression` varchar(4096) NOT NULL,
  596. `created_at` bigint NOT NULL DEFAULT 0,
  597. `created_by` varchar(191) NOT NULL DEFAULT '',
  598. `updated_at` bigint NOT NULL DEFAULT 0,
  599. `updated_by` varchar(191) NOT NULL DEFAULT '',
  600. `uuid integer` not null default 0
  601. );
  602. CREATE UNIQUE INDEX idx_collector_typ_name ON builtin_metrics (lang, collector, typ, name);
  603. CREATE INDEX idx_collector ON builtin_metrics (collector);
  604. CREATE INDEX idx_typ ON builtin_metrics (typ);
  605. CREATE INDEX idx_builtinmetric_name ON builtin_metrics (name);
  606. CREATE INDEX idx_lang ON builtin_metrics (lang);
  607. CREATE TABLE `metric_filter` (
  608. `id` integer primary key autoincrement,
  609. `name` varchar(191) NOT NULL,
  610. `configs` varchar(4096) NOT NULL,
  611. `groups_perm` text,
  612. `create_at` bigint NOT NULL DEFAULT '0',
  613. `create_by` varchar(191) NOT NULL DEFAULT '',
  614. `update_at` bigint NOT NULL DEFAULT '0',
  615. `update_by` varchar(191) NOT NULL DEFAULT ''
  616. );
  617. CREATE INDEX `idx_metric_filter_name` ON `metric_filter` (`name` asc);
  618. CREATE TABLE `target_busi_group` (
  619. `id` integer primary key autoincrement,
  620. `target_ident` varchar(191) not null,
  621. `group_id` integer not null,
  622. `update_at` integer not null
  623. );
  624. CREATE UNIQUE INDEX idx_target_busi_group ON target_busi_group (target_ident, group_id);
  625. CREATE TABLE `dash_annotation` (
  626. `id` integer primary key autoincrement,
  627. `dashboard_id` bigint not null,
  628. `panel_id` varchar(191) not null,
  629. `tags` text,
  630. `description` text,
  631. `config` text,
  632. `time_start` bigint not null default 0,
  633. `time_end` bigint not null default 0,
  634. `create_at` bigint not null default 0,
  635. `create_by` varchar(64) not null default '',
  636. `update_at` bigint not null default 0,
  637. `update_by` varchar(64) not null default ''
  638. );
  639. CREATE TABLE `task_meta`
  640. (
  641. `id` integer primary key autoincrement,
  642. `title` varchar(255) not null default '',
  643. `account` varchar(64) not null,
  644. `batch` int unsigned not null default 0,
  645. `tolerance` int unsigned not null default 0,
  646. `timeout` int unsigned not null default 0,
  647. `pause` varchar(255) not null default '',
  648. `script` text not null,
  649. `args` varchar(512) not null default '',
  650. `stdin` varchar(1024) not null default '',
  651. `creator` varchar(64) not null default '',
  652. `created` timestamp not null default CURRENT_TIMESTAMP
  653. );
  654. CREATE INDEX `idx_task_meta_creator` ON `task_meta` (`creator` asc);
  655. CREATE INDEX `idx_task_meta_created` ON `task_meta` (`created` asc);
  656. /* start|cancel|kill|pause */
  657. CREATE TABLE `task_action`
  658. (
  659. `id` integer primary key autoincrement,
  660. `action` varchar(32) not null,
  661. `clock` bigint not null default 0
  662. );
  663. CREATE TABLE `task_scheduler`
  664. (
  665. `id` bigint unsigned not null,
  666. `scheduler` varchar(128) not null default ''
  667. );
  668. CREATE INDEX `idx_task_scheduler_id_scheduler` ON `task_scheduler` (`id`, `scheduler` asc);
  669. CREATE TABLE `task_scheduler_health`
  670. (
  671. `scheduler` varchar(128) not null unique,
  672. `clock` bigint not null
  673. );
  674. CREATE INDEX `idx_task_scheduler_health_clock` ON `task_scheduler_health` (`clock` asc);
  675. CREATE TABLE `task_host_doing`
  676. (
  677. `id` bigint unsigned not null,
  678. `host` varchar(128) not null,
  679. `clock` bigint not null default 0,
  680. `action` varchar(16) not null
  681. );
  682. CREATE INDEX `idx_task_host_doing_id` ON `task_host_doing` (`id` asc);
  683. CREATE INDEX `idx_task_host_doing_host` ON `task_host_doing` (`host` asc);
  684. CREATE TABLE task_host_0
  685. (
  686. `ii` integer primary key autoincrement,
  687. `id` bigint unsigned not null,
  688. `host` varchar(128) not null,
  689. `status` varchar(32) not null,
  690. `stdout` text,
  691. `stderr` text,
  692. unique (`id`, `host`)
  693. );
  694. CREATE TABLE task_host_1
  695. (
  696. `ii` integer primary key autoincrement,
  697. `id` bigint unsigned not null,
  698. `host` varchar(128) not null,
  699. `status` varchar(32) not null,
  700. `stdout` text,
  701. `stderr` text,
  702. unique (`id`, `host`)
  703. );
  704. CREATE TABLE task_host_2
  705. (
  706. `ii` integer primary key autoincrement,
  707. `id` bigint unsigned not null,
  708. `host` varchar(128) not null,
  709. `status` varchar(32) not null,
  710. `stdout` text,
  711. `stderr` text,
  712. unique (`id`, `host`)
  713. );
  714. CREATE TABLE task_host_3
  715. (
  716. `ii` integer primary key autoincrement,
  717. `id` bigint unsigned not null,
  718. `host` varchar(128) not null,
  719. `status` varchar(32) not null,
  720. `stdout` text,
  721. `stderr` text,
  722. unique (`id`, `host`)
  723. );
  724. CREATE TABLE task_host_4
  725. (
  726. `ii` integer primary key autoincrement,
  727. `id` bigint unsigned not null,
  728. `host` varchar(128) not null,
  729. `status` varchar(32) not null,
  730. `stdout` text,
  731. `stderr` text,
  732. unique (`id`, `host`)
  733. );
  734. CREATE TABLE task_host_5
  735. (
  736. `ii` integer primary key autoincrement,
  737. `id` bigint unsigned not null,
  738. `host` varchar(128) not null,
  739. `status` varchar(32) not null,
  740. `stdout` text,
  741. `stderr` text,
  742. unique (`id`, `host`)
  743. );
  744. CREATE TABLE task_host_6
  745. (
  746. `ii` integer primary key autoincrement,
  747. `id` bigint unsigned not null,
  748. `host` varchar(128) not null,
  749. `status` varchar(32) not null,
  750. `stdout` text,
  751. `stderr` text,
  752. unique (`id`, `host`)
  753. );
  754. CREATE TABLE task_host_7
  755. (
  756. `ii` integer primary key autoincrement,
  757. `id` bigint unsigned not null,
  758. `host` varchar(128) not null,
  759. `status` varchar(32) not null,
  760. `stdout` text,
  761. `stderr` text,
  762. unique (`id`, `host`)
  763. );
  764. CREATE TABLE task_host_8
  765. (
  766. `ii` integer primary key autoincrement,
  767. `id` bigint unsigned not null,
  768. `host` varchar(128) not null,
  769. `status` varchar(32) not null,
  770. `stdout` text,
  771. `stderr` text,
  772. unique (`id`, `host`)
  773. );
  774. CREATE TABLE task_host_9
  775. (
  776. `ii` integer primary key autoincrement,
  777. `id` bigint unsigned not null,
  778. `host` varchar(128) not null,
  779. `status` varchar(32) not null,
  780. `stdout` text,
  781. `stderr` text,
  782. unique (`id`, `host`)
  783. );
  784. CREATE TABLE task_host_10
  785. (
  786. `ii` integer primary key autoincrement,
  787. `id` bigint unsigned not null,
  788. `host` varchar(128) not null,
  789. `status` varchar(32) not null,
  790. `stdout` text,
  791. `stderr` text,
  792. unique (`id`, `host`)
  793. );
  794. CREATE TABLE task_host_11
  795. (
  796. `ii` integer primary key autoincrement,
  797. `id` bigint unsigned not null,
  798. `host` varchar(128) not null,
  799. `status` varchar(32) not null,
  800. `stdout` text,
  801. `stderr` text,
  802. unique (`id`, `host`)
  803. );
  804. CREATE TABLE task_host_12
  805. (
  806. `ii` integer primary key autoincrement,
  807. `id` bigint unsigned not null,
  808. `host` varchar(128) not null,
  809. `status` varchar(32) not null,
  810. `stdout` text,
  811. `stderr` text,
  812. unique (`id`, `host`)
  813. );
  814. CREATE TABLE task_host_13
  815. (
  816. `ii` integer primary key autoincrement,
  817. `id` bigint unsigned not null,
  818. `host` varchar(128) not null,
  819. `status` varchar(32) not null,
  820. `stdout` text,
  821. `stderr` text,
  822. unique (`id`, `host`)
  823. );
  824. CREATE TABLE task_host_14
  825. (
  826. `ii` integer primary key autoincrement,
  827. `id` bigint unsigned not null,
  828. `host` varchar(128) not null,
  829. `status` varchar(32) not null,
  830. `stdout` text,
  831. `stderr` text,
  832. unique (`id`, `host`)
  833. );
  834. CREATE TABLE task_host_15
  835. (
  836. `ii` integer primary key autoincrement,
  837. `id` bigint unsigned not null,
  838. `host` varchar(128) not null,
  839. `status` varchar(32) not null,
  840. `stdout` text,
  841. `stderr` text,
  842. unique (`id`, `host`)
  843. );
  844. CREATE TABLE task_host_16
  845. (
  846. `ii` integer primary key autoincrement,
  847. `id` bigint unsigned not null,
  848. `host` varchar(128) not null,
  849. `status` varchar(32) not null,
  850. `stdout` text,
  851. `stderr` text,
  852. unique (`id`, `host`)
  853. );
  854. CREATE TABLE task_host_17
  855. (
  856. `ii` integer primary key autoincrement,
  857. `id` bigint unsigned not null,
  858. `host` varchar(128) not null,
  859. `status` varchar(32) not null,
  860. `stdout` text,
  861. `stderr` text,
  862. unique (`id`, `host`)
  863. );
  864. CREATE TABLE task_host_18
  865. (
  866. `ii` integer primary key autoincrement,
  867. `id` bigint unsigned not null,
  868. `host` varchar(128) not null,
  869. `status` varchar(32) not null,
  870. `stdout` text,
  871. `stderr` text,
  872. unique (`id`, `host`)
  873. );
  874. CREATE TABLE task_host_19
  875. (
  876. `ii` integer primary key autoincrement,
  877. `id` bigint unsigned not null,
  878. `host` varchar(128) not null,
  879. `status` varchar(32) not null,
  880. `stdout` text,
  881. `stderr` text,
  882. unique (`id`, `host`)
  883. );
  884. CREATE TABLE task_host_20
  885. (
  886. `ii` integer primary key autoincrement,
  887. `id` bigint unsigned not null,
  888. `host` varchar(128) not null,
  889. `status` varchar(32) not null,
  890. `stdout` text,
  891. `stderr` text,
  892. unique (`id`, `host`)
  893. );
  894. CREATE TABLE task_host_21
  895. (
  896. `ii` integer primary key autoincrement,
  897. `id` bigint unsigned not null,
  898. `host` varchar(128) not null,
  899. `status` varchar(32) not null,
  900. `stdout` text,
  901. `stderr` text,
  902. unique (`id`, `host`)
  903. );
  904. CREATE TABLE task_host_22
  905. (
  906. `ii` integer primary key autoincrement,
  907. `id` bigint unsigned not null,
  908. `host` varchar(128) not null,
  909. `status` varchar(32) not null,
  910. `stdout` text,
  911. `stderr` text,
  912. unique (`id`, `host`)
  913. );
  914. CREATE TABLE task_host_23
  915. (
  916. `ii` integer primary key autoincrement,
  917. `id` bigint unsigned not null,
  918. `host` varchar(128) not null,
  919. `status` varchar(32) not null,
  920. `stdout` text,
  921. `stderr` text,
  922. unique (`id`, `host`)
  923. );
  924. CREATE TABLE task_host_24
  925. (
  926. `ii` integer primary key autoincrement,
  927. `id` bigint unsigned not null,
  928. `host` varchar(128) not null,
  929. `status` varchar(32) not null,
  930. `stdout` text,
  931. `stderr` text,
  932. unique (`id`, `host`)
  933. );
  934. CREATE TABLE task_host_25
  935. (
  936. `ii` integer primary key autoincrement,
  937. `id` bigint unsigned not null,
  938. `host` varchar(128) not null,
  939. `status` varchar(32) not null,
  940. `stdout` text,
  941. `stderr` text,
  942. unique (`id`, `host`)
  943. );
  944. CREATE TABLE task_host_26
  945. (
  946. `ii` integer primary key autoincrement,
  947. `id` bigint unsigned not null,
  948. `host` varchar(128) not null,
  949. `status` varchar(32) not null,
  950. `stdout` text,
  951. `stderr` text,
  952. unique (`id`, `host`)
  953. );
  954. CREATE TABLE task_host_27
  955. (
  956. `ii` integer primary key autoincrement,
  957. `id` bigint unsigned not null,
  958. `host` varchar(128) not null,
  959. `status` varchar(32) not null,
  960. `stdout` text,
  961. `stderr` text,
  962. unique (`id`, `host`)
  963. );
  964. CREATE TABLE task_host_28
  965. (
  966. `ii` integer primary key autoincrement,
  967. `id` bigint unsigned not null,
  968. `host` varchar(128) not null,
  969. `status` varchar(32) not null,
  970. `stdout` text,
  971. `stderr` text,
  972. unique (`id`, `host`)
  973. );
  974. CREATE TABLE task_host_29
  975. (
  976. `ii` integer primary key autoincrement,
  977. `id` bigint unsigned not null,
  978. `host` varchar(128) not null,
  979. `status` varchar(32) not null,
  980. `stdout` text,
  981. `stderr` text,
  982. unique (`id`, `host`)
  983. );
  984. CREATE TABLE task_host_30
  985. (
  986. `ii` integer primary key autoincrement,
  987. `id` bigint unsigned not null,
  988. `host` varchar(128) not null,
  989. `status` varchar(32) not null,
  990. `stdout` text,
  991. `stderr` text,
  992. unique (`id`, `host`)
  993. );
  994. CREATE TABLE task_host_31
  995. (
  996. `ii` integer primary key autoincrement,
  997. `id` bigint unsigned not null,
  998. `host` varchar(128) not null,
  999. `status` varchar(32) not null,
  1000. `stdout` text,
  1001. `stderr` text,
  1002. unique (`id`, `host`)
  1003. );
  1004. CREATE TABLE task_host_32
  1005. (
  1006. `ii` integer primary key autoincrement,
  1007. `id` bigint unsigned not null,
  1008. `host` varchar(128) not null,
  1009. `status` varchar(32) not null,
  1010. `stdout` text,
  1011. `stderr` text,
  1012. unique (`id`, `host`)
  1013. );
  1014. CREATE TABLE task_host_33
  1015. (
  1016. `ii` integer primary key autoincrement,
  1017. `id` bigint unsigned not null,
  1018. `host` varchar(128) not null,
  1019. `status` varchar(32) not null,
  1020. `stdout` text,
  1021. `stderr` text,
  1022. unique (`id`, `host`)
  1023. );
  1024. CREATE TABLE task_host_34
  1025. (
  1026. `ii` integer primary key autoincrement,
  1027. `id` bigint unsigned not null,
  1028. `host` varchar(128) not null,
  1029. `status` varchar(32) not null,
  1030. `stdout` text,
  1031. `stderr` text,
  1032. unique (`id`, `host`)
  1033. );
  1034. CREATE TABLE task_host_35
  1035. (
  1036. `ii` integer primary key autoincrement,
  1037. `id` bigint unsigned not null,
  1038. `host` varchar(128) not null,
  1039. `status` varchar(32) not null,
  1040. `stdout` text,
  1041. `stderr` text,
  1042. unique (`id`, `host`)
  1043. );
  1044. CREATE TABLE task_host_36
  1045. (
  1046. `ii` integer primary key autoincrement,
  1047. `id` bigint unsigned not null,
  1048. `host` varchar(128) not null,
  1049. `status` varchar(32) not null,
  1050. `stdout` text,
  1051. `stderr` text,
  1052. unique (`id`, `host`)
  1053. );
  1054. CREATE TABLE task_host_37
  1055. (
  1056. `ii` integer primary key autoincrement,
  1057. `id` bigint unsigned not null,
  1058. `host` varchar(128) not null,
  1059. `status` varchar(32) not null,
  1060. `stdout` text,
  1061. `stderr` text,
  1062. unique (`id`, `host`)
  1063. );
  1064. CREATE TABLE task_host_38
  1065. (
  1066. `ii` integer primary key autoincrement,
  1067. `id` bigint unsigned not null,
  1068. `host` varchar(128) not null,
  1069. `status` varchar(32) not null,
  1070. `stdout` text,
  1071. `stderr` text,
  1072. unique (`id`, `host`)
  1073. );
  1074. CREATE TABLE task_host_39
  1075. (
  1076. `ii` integer primary key autoincrement,
  1077. `id` bigint unsigned not null,
  1078. `host` varchar(128) not null,
  1079. `status` varchar(32) not null,
  1080. `stdout` text,
  1081. `stderr` text,
  1082. unique (`id`, `host`)
  1083. );
  1084. CREATE TABLE task_host_40
  1085. (
  1086. `ii` integer primary key autoincrement,
  1087. `id` bigint unsigned not null,
  1088. `host` varchar(128) not null,
  1089. `status` varchar(32) not null,
  1090. `stdout` text,
  1091. `stderr` text,
  1092. unique (`id`, `host`)
  1093. );
  1094. CREATE TABLE task_host_41
  1095. (
  1096. `ii` integer primary key autoincrement,
  1097. `id` bigint unsigned not null,
  1098. `host` varchar(128) not null,
  1099. `status` varchar(32) not null,
  1100. `stdout` text,
  1101. `stderr` text,
  1102. unique (`id`, `host`)
  1103. );
  1104. CREATE TABLE task_host_42
  1105. (
  1106. `ii` integer primary key autoincrement,
  1107. `id` bigint unsigned not null,
  1108. `host` varchar(128) not null,
  1109. `status` varchar(32) not null,
  1110. `stdout` text,
  1111. `stderr` text,
  1112. unique (`id`, `host`)
  1113. );
  1114. CREATE TABLE task_host_43
  1115. (
  1116. `ii` integer primary key autoincrement,
  1117. `id` bigint unsigned not null,
  1118. `host` varchar(128) not null,
  1119. `status` varchar(32) not null,
  1120. `stdout` text,
  1121. `stderr` text,
  1122. unique (`id`, `host`)
  1123. );
  1124. CREATE TABLE task_host_44
  1125. (
  1126. `ii` integer primary key autoincrement,
  1127. `id` bigint unsigned not null,
  1128. `host` varchar(128) not null,
  1129. `status` varchar(32) not null,
  1130. `stdout` text,
  1131. `stderr` text,
  1132. unique (`id`, `host`)
  1133. );
  1134. CREATE TABLE task_host_45
  1135. (
  1136. `ii` integer primary key autoincrement,
  1137. `id` bigint unsigned not null,
  1138. `host` varchar(128) not null,
  1139. `status` varchar(32) not null,
  1140. `stdout` text,
  1141. `stderr` text,
  1142. unique (`id`, `host`)
  1143. );
  1144. CREATE TABLE task_host_46
  1145. (
  1146. `ii` integer primary key autoincrement,
  1147. `id` bigint unsigned not null,
  1148. `host` varchar(128) not null,
  1149. `status` varchar(32) not null,
  1150. `stdout` text,
  1151. `stderr` text,
  1152. unique (`id`, `host`)
  1153. );
  1154. CREATE TABLE task_host_47
  1155. (
  1156. `ii` integer primary key autoincrement,
  1157. `id` bigint unsigned not null,
  1158. `host` varchar(128) not null,
  1159. `status` varchar(32) not null,
  1160. `stdout` text,
  1161. `stderr` text,
  1162. unique (`id`, `host`)
  1163. );
  1164. CREATE TABLE task_host_48
  1165. (
  1166. `ii` integer primary key autoincrement,
  1167. `id` bigint unsigned not null,
  1168. `host` varchar(128) not null,
  1169. `status` varchar(32) not null,
  1170. `stdout` text,
  1171. `stderr` text,
  1172. unique (`id`, `host`)
  1173. );
  1174. CREATE TABLE task_host_49
  1175. (
  1176. `ii` integer primary key autoincrement,
  1177. `id` bigint unsigned not null,
  1178. `host` varchar(128) not null,
  1179. `status` varchar(32) not null,
  1180. `stdout` text,
  1181. `stderr` text,
  1182. unique (`id`, `host`)
  1183. );
  1184. CREATE TABLE task_host_50
  1185. (
  1186. `ii` integer primary key autoincrement,
  1187. `id` bigint unsigned not null,
  1188. `host` varchar(128) not null,
  1189. `status` varchar(32) not null,
  1190. `stdout` text,
  1191. `stderr` text,
  1192. unique (`id`, `host`)
  1193. );
  1194. CREATE TABLE task_host_51
  1195. (
  1196. `ii` integer primary key autoincrement,
  1197. `id` bigint unsigned not null,
  1198. `host` varchar(128) not null,
  1199. `status` varchar(32) not null,
  1200. `stdout` text,
  1201. `stderr` text,
  1202. unique (`id`, `host`)
  1203. );
  1204. CREATE TABLE task_host_52
  1205. (
  1206. `ii` integer primary key autoincrement,
  1207. `id` bigint unsigned not null,
  1208. `host` varchar(128) not null,
  1209. `status` varchar(32) not null,
  1210. `stdout` text,
  1211. `stderr` text,
  1212. unique (`id`, `host`)
  1213. );
  1214. CREATE TABLE task_host_53
  1215. (
  1216. `ii` integer primary key autoincrement,
  1217. `id` bigint unsigned not null,
  1218. `host` varchar(128) not null,
  1219. `status` varchar(32) not null,
  1220. `stdout` text,
  1221. `stderr` text,
  1222. unique (`id`, `host`)
  1223. );
  1224. CREATE TABLE task_host_54
  1225. (
  1226. `ii` integer primary key autoincrement,
  1227. `id` bigint unsigned not null,
  1228. `host` varchar(128) not null,
  1229. `status` varchar(32) not null,
  1230. `stdout` text,
  1231. `stderr` text,
  1232. unique (`id`, `host`)
  1233. );
  1234. CREATE TABLE task_host_55
  1235. (
  1236. `ii` integer primary key autoincrement,
  1237. `id` bigint unsigned not null,
  1238. `host` varchar(128) not null,
  1239. `status` varchar(32) not null,
  1240. `stdout` text,
  1241. `stderr` text,
  1242. unique (`id`, `host`)
  1243. );
  1244. CREATE TABLE task_host_56
  1245. (
  1246. `ii` integer primary key autoincrement,
  1247. `id` bigint unsigned not null,
  1248. `host` varchar(128) not null,
  1249. `status` varchar(32) not null,
  1250. `stdout` text,
  1251. `stderr` text,
  1252. unique (`id`, `host`)
  1253. );
  1254. CREATE TABLE task_host_57
  1255. (
  1256. `ii` integer primary key autoincrement,
  1257. `id` bigint unsigned not null,
  1258. `host` varchar(128) not null,
  1259. `status` varchar(32) not null,
  1260. `stdout` text,
  1261. `stderr` text,
  1262. unique (`id`, `host`)
  1263. );
  1264. CREATE TABLE task_host_58
  1265. (
  1266. `ii` integer primary key autoincrement,
  1267. `id` bigint unsigned not null,
  1268. `host` varchar(128) not null,
  1269. `status` varchar(32) not null,
  1270. `stdout` text,
  1271. `stderr` text,
  1272. unique (`id`, `host`)
  1273. );
  1274. CREATE TABLE task_host_59
  1275. (
  1276. `ii` integer primary key autoincrement,
  1277. `id` bigint unsigned not null,
  1278. `host` varchar(128) not null,
  1279. `status` varchar(32) not null,
  1280. `stdout` text,
  1281. `stderr` text,
  1282. unique (`id`, `host`)
  1283. );
  1284. CREATE TABLE task_host_60
  1285. (
  1286. `ii` integer primary key autoincrement,
  1287. `id` bigint unsigned not null,
  1288. `host` varchar(128) not null,
  1289. `status` varchar(32) not null,
  1290. `stdout` text,
  1291. `stderr` text,
  1292. unique (`id`, `host`)
  1293. );
  1294. CREATE TABLE task_host_61
  1295. (
  1296. `ii` integer primary key autoincrement,
  1297. `id` bigint unsigned not null,
  1298. `host` varchar(128) not null,
  1299. `status` varchar(32) not null,
  1300. `stdout` text,
  1301. `stderr` text,
  1302. unique (`id`, `host`)
  1303. );
  1304. CREATE TABLE task_host_62
  1305. (
  1306. `ii` integer primary key autoincrement,
  1307. `id` bigint unsigned not null,
  1308. `host` varchar(128) not null,
  1309. `status` varchar(32) not null,
  1310. `stdout` text,
  1311. `stderr` text,
  1312. unique (`id`, `host`)
  1313. );
  1314. CREATE TABLE task_host_63
  1315. (
  1316. `ii` integer primary key autoincrement,
  1317. `id` bigint unsigned not null,
  1318. `host` varchar(128) not null,
  1319. `status` varchar(32) not null,
  1320. `stdout` text,
  1321. `stderr` text,
  1322. unique (`id`, `host`)
  1323. );
  1324. CREATE TABLE task_host_64
  1325. (
  1326. `ii` integer primary key autoincrement,
  1327. `id` bigint unsigned not null,
  1328. `host` varchar(128) not null,
  1329. `status` varchar(32) not null,
  1330. `stdout` text,
  1331. `stderr` text,
  1332. unique (`id`, `host`)
  1333. );
  1334. CREATE TABLE task_host_65
  1335. (
  1336. `ii` integer primary key autoincrement,
  1337. `id` bigint unsigned not null,
  1338. `host` varchar(128) not null,
  1339. `status` varchar(32) not null,
  1340. `stdout` text,
  1341. `stderr` text,
  1342. unique (`id`, `host`)
  1343. );
  1344. CREATE TABLE task_host_66
  1345. (
  1346. `ii` integer primary key autoincrement,
  1347. `id` bigint unsigned not null,
  1348. `host` varchar(128) not null,
  1349. `status` varchar(32) not null,
  1350. `stdout` text,
  1351. `stderr` text,
  1352. unique (`id`, `host`)
  1353. );
  1354. CREATE TABLE task_host_67
  1355. (
  1356. `ii` integer primary key autoincrement,
  1357. `id` bigint unsigned not null,
  1358. `host` varchar(128) not null,
  1359. `status` varchar(32) not null,
  1360. `stdout` text,
  1361. `stderr` text,
  1362. unique (`id`, `host`)
  1363. );
  1364. CREATE TABLE task_host_68
  1365. (
  1366. `ii` integer primary key autoincrement,
  1367. `id` bigint unsigned not null,
  1368. `host` varchar(128) not null,
  1369. `status` varchar(32) not null,
  1370. `stdout` text,
  1371. `stderr` text,
  1372. unique (`id`, `host`)
  1373. );
  1374. CREATE TABLE task_host_69
  1375. (
  1376. `ii` integer primary key autoincrement,
  1377. `id` bigint unsigned not null,
  1378. `host` varchar(128) not null,
  1379. `status` varchar(32) not null,
  1380. `stdout` text,
  1381. `stderr` text,
  1382. unique (`id`, `host`)
  1383. );
  1384. CREATE TABLE task_host_70
  1385. (
  1386. `ii` integer primary key autoincrement,
  1387. `id` bigint unsigned not null,
  1388. `host` varchar(128) not null,
  1389. `status` varchar(32) not null,
  1390. `stdout` text,
  1391. `stderr` text,
  1392. unique (`id`, `host`)
  1393. );
  1394. CREATE TABLE task_host_71
  1395. (
  1396. `ii` integer primary key autoincrement,
  1397. `id` bigint unsigned not null,
  1398. `host` varchar(128) not null,
  1399. `status` varchar(32) not null,
  1400. `stdout` text,
  1401. `stderr` text,
  1402. unique (`id`, `host`)
  1403. );
  1404. CREATE TABLE task_host_72
  1405. (
  1406. `ii` integer primary key autoincrement,
  1407. `id` bigint unsigned not null,
  1408. `host` varchar(128) not null,
  1409. `status` varchar(32) not null,
  1410. `stdout` text,
  1411. `stderr` text,
  1412. unique (`id`, `host`)
  1413. );
  1414. CREATE TABLE task_host_73
  1415. (
  1416. `ii` integer primary key autoincrement,
  1417. `id` bigint unsigned not null,
  1418. `host` varchar(128) not null,
  1419. `status` varchar(32) not null,
  1420. `stdout` text,
  1421. `stderr` text,
  1422. unique (`id`, `host`)
  1423. );
  1424. CREATE TABLE task_host_74
  1425. (
  1426. `ii` integer primary key autoincrement,
  1427. `id` bigint unsigned not null,
  1428. `host` varchar(128) not null,
  1429. `status` varchar(32) not null,
  1430. `stdout` text,
  1431. `stderr` text,
  1432. unique (`id`, `host`)
  1433. );
  1434. CREATE TABLE task_host_75
  1435. (
  1436. `ii` integer primary key autoincrement,
  1437. `id` bigint unsigned not null,
  1438. `host` varchar(128) not null,
  1439. `status` varchar(32) not null,
  1440. `stdout` text,
  1441. `stderr` text,
  1442. unique (`id`, `host`)
  1443. );
  1444. CREATE TABLE task_host_76
  1445. (
  1446. `ii` integer primary key autoincrement,
  1447. `id` bigint unsigned not null,
  1448. `host` varchar(128) not null,
  1449. `status` varchar(32) not null,
  1450. `stdout` text,
  1451. `stderr` text,
  1452. unique (`id`, `host`)
  1453. );
  1454. CREATE TABLE task_host_77
  1455. (
  1456. `ii` integer primary key autoincrement,
  1457. `id` bigint unsigned not null,
  1458. `host` varchar(128) not null,
  1459. `status` varchar(32) not null,
  1460. `stdout` text,
  1461. `stderr` text,
  1462. unique (`id`, `host`)
  1463. );
  1464. CREATE TABLE task_host_78
  1465. (
  1466. `ii` integer primary key autoincrement,
  1467. `id` bigint unsigned not null,
  1468. `host` varchar(128) not null,
  1469. `status` varchar(32) not null,
  1470. `stdout` text,
  1471. `stderr` text,
  1472. unique (`id`, `host`)
  1473. );
  1474. CREATE TABLE task_host_79
  1475. (
  1476. `ii` integer primary key autoincrement,
  1477. `id` bigint unsigned not null,
  1478. `host` varchar(128) not null,
  1479. `status` varchar(32) not null,
  1480. `stdout` text,
  1481. `stderr` text,
  1482. unique (`id`, `host`)
  1483. );
  1484. CREATE TABLE task_host_80
  1485. (
  1486. `ii` integer primary key autoincrement,
  1487. `id` bigint unsigned not null,
  1488. `host` varchar(128) not null,
  1489. `status` varchar(32) not null,
  1490. `stdout` text,
  1491. `stderr` text,
  1492. unique (`id`, `host`)
  1493. );
  1494. CREATE TABLE task_host_81
  1495. (
  1496. `ii` integer primary key autoincrement,
  1497. `id` bigint unsigned not null,
  1498. `host` varchar(128) not null,
  1499. `status` varchar(32) not null,
  1500. `stdout` text,
  1501. `stderr` text,
  1502. unique (`id`, `host`)
  1503. );
  1504. CREATE TABLE task_host_82
  1505. (
  1506. `ii` integer primary key autoincrement,
  1507. `id` bigint unsigned not null,
  1508. `host` varchar(128) not null,
  1509. `status` varchar(32) not null,
  1510. `stdout` text,
  1511. `stderr` text,
  1512. unique (`id`, `host`)
  1513. );
  1514. CREATE TABLE task_host_83
  1515. (
  1516. `ii` integer primary key autoincrement,
  1517. `id` bigint unsigned not null,
  1518. `host` varchar(128) not null,
  1519. `status` varchar(32) not null,
  1520. `stdout` text,
  1521. `stderr` text,
  1522. unique (`id`, `host`)
  1523. );
  1524. CREATE TABLE task_host_84
  1525. (
  1526. `ii` integer primary key autoincrement,
  1527. `id` bigint unsigned not null,
  1528. `host` varchar(128) not null,
  1529. `status` varchar(32) not null,
  1530. `stdout` text,
  1531. `stderr` text,
  1532. unique (`id`, `host`)
  1533. );
  1534. CREATE TABLE task_host_85
  1535. (
  1536. `ii` integer primary key autoincrement,
  1537. `id` bigint unsigned not null,
  1538. `host` varchar(128) not null,
  1539. `status` varchar(32) not null,
  1540. `stdout` text,
  1541. `stderr` text,
  1542. unique (`id`, `host`)
  1543. );
  1544. CREATE TABLE task_host_86
  1545. (
  1546. `ii` integer primary key autoincrement,
  1547. `id` bigint unsigned not null,
  1548. `host` varchar(128) not null,
  1549. `status` varchar(32) not null,
  1550. `stdout` text,
  1551. `stderr` text,
  1552. unique (`id`, `host`)
  1553. );
  1554. CREATE TABLE task_host_87
  1555. (
  1556. `ii` integer primary key autoincrement,
  1557. `id` bigint unsigned not null,
  1558. `host` varchar(128) not null,
  1559. `status` varchar(32) not null,
  1560. `stdout` text,
  1561. `stderr` text,
  1562. unique (`id`, `host`)
  1563. );
  1564. CREATE TABLE task_host_88
  1565. (
  1566. `ii` integer primary key autoincrement,
  1567. `id` bigint unsigned not null,
  1568. `host` varchar(128) not null,
  1569. `status` varchar(32) not null,
  1570. `stdout` text,
  1571. `stderr` text,
  1572. unique (`id`, `host`)
  1573. );
  1574. CREATE TABLE task_host_89
  1575. (
  1576. `ii` integer primary key autoincrement,
  1577. `id` bigint unsigned not null,
  1578. `host` varchar(128) not null,
  1579. `status` varchar(32) not null,
  1580. `stdout` text,
  1581. `stderr` text,
  1582. unique (`id`, `host`)
  1583. );
  1584. CREATE TABLE task_host_90
  1585. (
  1586. `ii` integer primary key autoincrement,
  1587. `id` bigint unsigned not null,
  1588. `host` varchar(128) not null,
  1589. `status` varchar(32) not null,
  1590. `stdout` text,
  1591. `stderr` text,
  1592. unique (`id`, `host`)
  1593. );
  1594. CREATE TABLE task_host_91
  1595. (
  1596. `ii` integer primary key autoincrement,
  1597. `id` bigint unsigned not null,
  1598. `host` varchar(128) not null,
  1599. `status` varchar(32) not null,
  1600. `stdout` text,
  1601. `stderr` text,
  1602. unique (`id`, `host`)
  1603. );
  1604. CREATE TABLE task_host_92
  1605. (
  1606. `ii` integer primary key autoincrement,
  1607. `id` bigint unsigned not null,
  1608. `host` varchar(128) not null,
  1609. `status` varchar(32) not null,
  1610. `stdout` text,
  1611. `stderr` text,
  1612. unique (`id`, `host`)
  1613. );
  1614. CREATE TABLE task_host_93
  1615. (
  1616. `ii` integer primary key autoincrement,
  1617. `id` bigint unsigned not null,
  1618. `host` varchar(128) not null,
  1619. `status` varchar(32) not null,
  1620. `stdout` text,
  1621. `stderr` text,
  1622. unique (`id`, `host`)
  1623. );
  1624. CREATE TABLE task_host_94
  1625. (
  1626. `ii` integer primary key autoincrement,
  1627. `id` bigint unsigned not null,
  1628. `host` varchar(128) not null,
  1629. `status` varchar(32) not null,
  1630. `stdout` text,
  1631. `stderr` text,
  1632. unique (`id`, `host`)
  1633. );
  1634. CREATE TABLE task_host_95
  1635. (
  1636. `ii` integer primary key autoincrement,
  1637. `id` bigint unsigned not null,
  1638. `host` varchar(128) not null,
  1639. `status` varchar(32) not null,
  1640. `stdout` text,
  1641. `stderr` text,
  1642. unique (`id`, `host`)
  1643. );
  1644. CREATE TABLE task_host_96
  1645. (
  1646. `ii` integer primary key autoincrement,
  1647. `id` bigint unsigned not null,
  1648. `host` varchar(128) not null,
  1649. `status` varchar(32) not null,
  1650. `stdout` text,
  1651. `stderr` text,
  1652. unique (`id`, `host`)
  1653. );
  1654. CREATE TABLE task_host_97
  1655. (
  1656. `ii` integer primary key autoincrement,
  1657. `id` bigint unsigned not null,
  1658. `host` varchar(128) not null,
  1659. `status` varchar(32) not null,
  1660. `stdout` text,
  1661. `stderr` text,
  1662. unique (`id`, `host`)
  1663. );
  1664. CREATE TABLE task_host_98
  1665. (
  1666. `ii` integer primary key autoincrement,
  1667. `id` bigint unsigned not null,
  1668. `host` varchar(128) not null,
  1669. `status` varchar(32) not null,
  1670. `stdout` text,
  1671. `stderr` text,
  1672. unique (`id`, `host`)
  1673. );
  1674. CREATE TABLE task_host_99
  1675. (
  1676. `ii` integer primary key autoincrement,
  1677. `id` bigint unsigned not null,
  1678. `host` varchar(128) not null,
  1679. `status` varchar(32) not null,
  1680. `stdout` text,
  1681. `stderr` text,
  1682. unique (`id`, `host`)
  1683. );