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
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852
  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. `cate` tinyint(1) not null,
  344. `create_at` bigint not null default 0,
  345. `create_by` bigint not null default 0,
  346. `update_at` bigint not null default 0
  347. );
  348. CREATE INDEX `idx_alert_aggr_view_create_by` ON `alert_aggr_view` (`create_by` asc);
  349. insert into alert_aggr_view(name, rule, cate) values('By BusiGroup, Severity', 'field:group_name::field:severity', 0);
  350. insert into alert_aggr_view(name, rule, cate) values('By RuleName', 'field:rule_name', 0);
  351. CREATE TABLE `alert_cur_event` (
  352. `id` integer primary key autoincrement,
  353. `cate` varchar(128) not null,
  354. `datasource_id` bigint not null default 0,
  355. `cluster` varchar(128) not null,
  356. `group_id` bigint unsigned not null,
  357. `group_name` varchar(255) not null default '',
  358. `hash` varchar(64) not null,
  359. `rule_id` bigint unsigned not null,
  360. `rule_name` varchar(255) not null,
  361. `rule_note` varchar(2048) not null default 'alert rule note',
  362. `rule_prod` varchar(255) not null default '',
  363. `rule_algo` varchar(255) not null default '',
  364. `severity` tinyint(1) not null,
  365. `prom_for_duration` int not null,
  366. `prom_ql` varchar(8192) not null,
  367. `prom_eval_interval` int not null,
  368. `callbacks` varchar(255) not null default '',
  369. `runbook_url` varchar(255),
  370. `notify_recovered` tinyint(1) not null,
  371. `notify_channels` varchar(255) not null default '',
  372. `notify_groups` varchar(255) not null default '',
  373. `notify_repeat_next` bigint not null default 0,
  374. `notify_cur_number` int not null default 0,
  375. `target_ident` varchar(191) not null default '',
  376. `target_note` varchar(191) not null default '',
  377. `first_trigger_time` bigint,
  378. `trigger_time` bigint not null,
  379. `trigger_value` varchar(2048) not null,
  380. `annotations` text not null,
  381. `rule_config` text not null,
  382. `tags` varchar(1024) not null default ''
  383. );
  384. CREATE INDEX `idx_alert_cur_event_hash` ON `alert_cur_event` (`hash` asc);
  385. CREATE INDEX `idx_alert_cur_event_rule_id` ON `alert_cur_event` (`rule_id` asc);
  386. CREATE INDEX `idx_alert_cur_event_trigger_time_group_id` ON `alert_cur_event` (`trigger_time`, `group_id` asc);
  387. CREATE INDEX `idx_alert_cur_event_notify_repeat_next` ON `alert_cur_event` (`notify_repeat_next` asc);
  388. CREATE TABLE `alert_his_event` (
  389. `id` integer primary key autoincrement,
  390. `is_recovered` tinyint(1) not null,
  391. `cate` varchar(128) not null,
  392. `datasource_id` bigint not null default 0,
  393. `cluster` varchar(128) not null,
  394. `group_id` bigint unsigned not null,
  395. `group_name` varchar(255) not null default '',
  396. `hash` varchar(64) not null,
  397. `rule_id` bigint unsigned not null,
  398. `rule_name` varchar(255) not null,
  399. `rule_note` varchar(2048) not null default 'alert rule note',
  400. `rule_prod` varchar(255) not null default '',
  401. `rule_algo` varchar(255) not null default '',
  402. `severity` tinyint(1) not null,
  403. `prom_for_duration` int not null,
  404. `prom_ql` varchar(8192) not null,
  405. `prom_eval_interval` int not null,
  406. `callbacks` varchar(255) not null default '',
  407. `runbook_url` varchar(255),
  408. `notify_recovered` tinyint(1) not null,
  409. `notify_channels` varchar(255) not null default '',
  410. `notify_groups` varchar(255) not null default '',
  411. `notify_cur_number` int not null default 0,
  412. `target_ident` varchar(191) not null default '',
  413. `target_note` varchar(191) not null default '',
  414. `first_trigger_time` bigint,
  415. `trigger_time` bigint not null,
  416. `trigger_value` varchar(2048) not null,
  417. `recover_time` bigint not null default 0,
  418. `last_eval_time` bigint not null default 0,
  419. `original_tags` varchar(8192),
  420. `tags` varchar(1024) not null default '',
  421. `annotations` text not null,
  422. `rule_config` text not null
  423. );
  424. CREATE INDEX `idx_alert_his_event_last_eval_time` ON `alert_his_event` (`last_eval_time` asc);
  425. CREATE INDEX `idx_alert_his_event_hash` ON `alert_his_event` (`hash` asc);
  426. CREATE INDEX `idx_alert_his_event_rule_id` ON `alert_his_event` (`rule_id` asc);
  427. CREATE INDEX `idx_alert_his_event_trigger_time_group_id` ON `alert_his_event` (`trigger_time`, `group_id` asc);
  428. CREATE TABLE `board_busigroup` (
  429. `busi_group_id` bigint(20) NOT NULL DEFAULT '0',
  430. `board_id` bigint(20) NOT NULL DEFAULT '0',
  431. primary key (`busi_group_id`, `board_id`)
  432. );
  433. CREATE TABLE `builtin_components` (
  434. `id` integer primary key autoincrement,
  435. `ident` varchar(191) not null,
  436. `logo` varchar(191) not null,
  437. `readme` text not null,
  438. `created_at` bigint(20) not null default 0,
  439. `created_by` varchar(191) not null default '',
  440. `updated_at` bigint(20) not null default 0,
  441. `updated_by` varchar(191) not null default ''
  442. );
  443. CREATE INDEX `idx_builtin_components_ident` ON `builtin_components` (`ident` asc);
  444. CREATE TABLE `builtin_payloads` (
  445. `id` integer primary key autoincrement,
  446. `component_id` integer not null default 0,
  447. `uuid` integer not null,
  448. `type` varchar(191) not null,
  449. `component` varchar(191) not null,
  450. `cate` varchar(191) not null,
  451. `name` varchar(191) not null,
  452. `tags` varchar(191) not null default '',
  453. `content` longtext not null,
  454. `created_at` bigint(20) not null default 0,
  455. `created_by` varchar(191) not null default '',
  456. `updated_at` bigint(20) not null default 0,
  457. `updated_by` varchar(191) not null default ''
  458. );
  459. CREATE INDEX `idx_builtin_payloads_component` ON `builtin_payloads` (`component` asc);
  460. CREATE INDEX `idx_builtin_payloads_name` ON `builtin_payloads` (`name` asc);
  461. CREATE INDEX `idx_builtin_payloads_cate` ON `builtin_payloads` (`cate` asc);
  462. CREATE INDEX `idx_builtin_payloads_type` ON `builtin_payloads` (`type` asc);
  463. CREATE INDEX idx_uuid ON `builtin_payloads` (uuid);
  464. CREATE TABLE `notification_record` (
  465. `id` integer primary key autoincrement,
  466. `event_id` integer not null,
  467. `sub_id` integer,
  468. `channel` varchar(255) not null,
  469. `status` integer,
  470. `target` varchar(1024) not null,
  471. `details` varchar(2048) default '',
  472. `created_at` integer not null
  473. );
  474. CREATE INDEX idx_evt ON notification_record (event_id);
  475. CREATE TABLE `task_tpl` (
  476. `id` integer primary key autoincrement,
  477. `group_id` int unsigned not null,
  478. `title` varchar(255) not null default '',
  479. `account` varchar(64) not null,
  480. `batch` int unsigned not null default 0,
  481. `tolerance` int unsigned not null default 0,
  482. `timeout` int unsigned not null default 0,
  483. `pause` varchar(255) not null default '',
  484. `script` text not null,
  485. `args` varchar(512) not null default '',
  486. `tags` varchar(255) not null default '',
  487. `create_at` bigint not null default 0,
  488. `create_by` varchar(64) not null default '',
  489. `update_at` bigint not null default 0,
  490. `update_by` varchar(64) not null default ''
  491. );
  492. CREATE INDEX `idx_task_tpl_group_id` ON `task_tpl` (`group_id` asc);
  493. CREATE TABLE `task_tpl_host` (
  494. `ii` integer primary key autoincrement,
  495. `id` int unsigned not null,
  496. `host` varchar(128) not null
  497. );
  498. CREATE INDEX `idx_task_tpl_host_id_host` ON `task_tpl_host` (`id`, `host` asc);
  499. CREATE TABLE `task_record` (
  500. `id` integer primary key autoincrement,
  501. `event_id` bigint not null default 0,
  502. `group_id` bigint not null,
  503. `ibex_address` varchar(128) not null,
  504. `ibex_auth_user` varchar(128) not null default '',
  505. `ibex_auth_pass` varchar(128) not null default '',
  506. `title` varchar(255) not null default '',
  507. `account` varchar(64) not null,
  508. `batch` int unsigned not null default 0,
  509. `tolerance` int unsigned not null default 0,
  510. `timeout` int unsigned not null default 0,
  511. `pause` varchar(255) not null default '',
  512. `script` text not null,
  513. `args` varchar(512) not null default '',
  514. `create_at` bigint not null default 0,
  515. `create_by` varchar(64) not null default ''
  516. );
  517. CREATE INDEX `idx_task_record_create_at_group_id` ON `task_record` (`create_at`, `group_id` asc);
  518. CREATE INDEX `idx_task_record_create_by` ON `task_record` (`create_by` asc);
  519. CREATE INDEX `idx_task_record_event_id` ON `task_record` (`event_id` asc);
  520. CREATE TABLE `alerting_engines` (
  521. `id` integer primary key autoincrement,
  522. `instance` varchar(128) not null default '',
  523. `datasource_id` bigint not null default 0,
  524. `engine_cluster` varchar(128) not null default '',
  525. `clock` bigint not null
  526. );
  527. CREATE TABLE `datasource`
  528. (
  529. `id` integer primary key autoincrement,
  530. `name` varchar(191) not null default '' unique,
  531. `description` varchar(255) not null default '',
  532. `category` varchar(255) not null default '',
  533. `plugin_id` int unsigned not null default 0,
  534. `plugin_type` varchar(255) not null default '',
  535. `plugin_type_name` varchar(255) not null default '',
  536. `cluster_name` varchar(255) not null default '',
  537. `settings` text not null,
  538. `status` varchar(255) not null default '',
  539. `http` varchar(4096) not null default '',
  540. `auth` varchar(8192) not null default '',
  541. `is_default` tinyint not null default 0,
  542. `created_at` bigint not null default 0,
  543. `created_by` varchar(64) not null default '',
  544. `updated_at` bigint not null default 0,
  545. `updated_by` varchar(64) not null default ''
  546. );
  547. CREATE UNIQUE INDEX idx_datasource_name ON datasource (name);
  548. CREATE TABLE `builtin_cate` (
  549. `id` integer primary key autoincrement,
  550. `name` varchar(191) not null,
  551. `user_id` bigint not null default 0
  552. );
  553. CREATE TABLE `notify_tpl` (
  554. `id` integer primary key autoincrement,
  555. `channel` varchar(32) not null unique,
  556. `name` varchar(255) not null,
  557. `content` text not null,
  558. `create_at` bigint not null default 0,
  559. `create_by` varchar(64) not null default '',
  560. `update_at` bigint not null default 0,
  561. `update_by` varchar(64) not null default ''
  562. );
  563. CREATE UNIQUE INDEX idx_notify_tpl_channel ON notify_tpl (channel);
  564. CREATE TABLE `sso_config` (
  565. `id` integer primary key autoincrement,
  566. `name` varchar(191) not null unique,
  567. `content` text not null,
  568. `update_at` bigint not null default 0
  569. );
  570. CREATE UNIQUE INDEX idx_sso_config_name ON sso_config (name);
  571. CREATE TABLE `es_index_pattern` (
  572. `id` integer primary key autoincrement,
  573. `datasource_id` bigint not null default 0,
  574. `name` varchar(191) not null,
  575. `time_field` varchar(128) not null default '@timestamp',
  576. `allow_hide_system_indices` tinyint(1) not null default 0,
  577. `fields_format` varchar(4096) not null default '',
  578. `cross_cluster_enabled` int not null default 0,
  579. `create_at` bigint default '0',
  580. `create_by` varchar(64) default '',
  581. `update_at` bigint default '0',
  582. `update_by` varchar(64) default '',
  583. unique (`datasource_id`, `name`)
  584. );
  585. CREATE UNIQUE INDEX idx_es_index_pattern_datasource_id_name ON es_index_pattern (datasource_id, name);
  586. CREATE TABLE `builtin_metrics` (
  587. `id` integer primary key autoincrement,
  588. `collector` varchar(191) NOT NULL,
  589. `typ` varchar(191) NOT NULL,
  590. `name` varchar(191) NOT NULL,
  591. `unit` varchar(191) NOT NULL,
  592. `lang` varchar(191) NOT NULL DEFAULT '',
  593. `note` varchar(4096) NOT NULL,
  594. `expression` varchar(4096) NOT NULL,
  595. `created_at` bigint NOT NULL DEFAULT 0,
  596. `created_by` varchar(191) NOT NULL DEFAULT '',
  597. `updated_at` bigint NOT NULL DEFAULT 0,
  598. `updated_by` varchar(191) NOT NULL DEFAULT '',
  599. `uuid integer` not null default 0
  600. );
  601. CREATE UNIQUE INDEX idx_collector_typ_name ON builtin_metrics (lang, collector, typ, name);
  602. CREATE INDEX idx_collector ON builtin_metrics (collector);
  603. CREATE INDEX idx_typ ON builtin_metrics (typ);
  604. CREATE INDEX idx_builtinmetric_name ON builtin_metrics (name);
  605. CREATE INDEX idx_lang ON builtin_metrics (lang);
  606. CREATE TABLE `metric_filter` (
  607. `id` integer primary key autoincrement,
  608. `name` varchar(191) NOT NULL,
  609. `configs` varchar(4096) NOT NULL,
  610. `groups_perm` text,
  611. `create_at` bigint NOT NULL DEFAULT '0',
  612. `create_by` varchar(191) NOT NULL DEFAULT '',
  613. `update_at` bigint NOT NULL DEFAULT '0',
  614. `update_by` varchar(191) NOT NULL DEFAULT ''
  615. );
  616. CREATE INDEX `idx_metric_filter_name` ON `metric_filter` (`name` asc);
  617. CREATE TABLE `target_busi_group` (
  618. `id` integer primary key autoincrement,
  619. `target_ident` varchar(191) not null,
  620. `group_id` integer not null,
  621. `update_at` integer not null
  622. );
  623. CREATE UNIQUE INDEX idx_target_busi_group ON target_busi_group (target_ident, group_id);
  624. CREATE TABLE `dash_annotation` (
  625. `id` integer primary key autoincrement,
  626. `dashboard_id` bigint not null,
  627. `panel_id` varchar(191) not null,
  628. `tags` text,
  629. `description` text,
  630. `config` text,
  631. `time_start` bigint not null default 0,
  632. `time_end` bigint not null default 0,
  633. `create_at` bigint not null default 0,
  634. `create_by` varchar(64) not null default '',
  635. `update_at` bigint not null default 0,
  636. `update_by` varchar(64) not null default ''
  637. );
  638. CREATE TABLE `task_meta`
  639. (
  640. `id` integer primary key autoincrement,
  641. `title` varchar(255) not null default '',
  642. `account` varchar(64) not null,
  643. `batch` int unsigned not null default 0,
  644. `tolerance` int unsigned not null default 0,
  645. `timeout` int unsigned not null default 0,
  646. `pause` varchar(255) not null default '',
  647. `script` text not null,
  648. `args` varchar(512) not null default '',
  649. `stdin` varchar(1024) not null default '',
  650. `creator` varchar(64) not null default '',
  651. `created` timestamp not null default CURRENT_TIMESTAMP
  652. );
  653. CREATE INDEX `idx_task_meta_creator` ON `task_meta` (`creator` asc);
  654. CREATE INDEX `idx_task_meta_created` ON `task_meta` (`created` asc);
  655. /* start|cancel|kill|pause */
  656. CREATE TABLE `task_action`
  657. (
  658. `id` integer primary key autoincrement,
  659. `action` varchar(32) not null,
  660. `clock` bigint not null default 0
  661. );
  662. CREATE TABLE `task_scheduler`
  663. (
  664. `id` bigint unsigned not null,
  665. `scheduler` varchar(128) not null default ''
  666. );
  667. CREATE INDEX `idx_task_scheduler_id_scheduler` ON `task_scheduler` (`id`, `scheduler` asc);
  668. CREATE TABLE `task_scheduler_health`
  669. (
  670. `scheduler` varchar(128) not null unique,
  671. `clock` bigint not null
  672. );
  673. CREATE INDEX `idx_task_scheduler_health_clock` ON `task_scheduler_health` (`clock` asc);
  674. CREATE TABLE `task_host_doing`
  675. (
  676. `id` bigint unsigned not null,
  677. `host` varchar(128) not null,
  678. `clock` bigint not null default 0,
  679. `action` varchar(16) not null
  680. );
  681. CREATE INDEX `idx_task_host_doing_id` ON `task_host_doing` (`id` asc);
  682. CREATE INDEX `idx_task_host_doing_host` ON `task_host_doing` (`host` asc);
  683. CREATE TABLE task_host_0
  684. (
  685. `ii` integer primary key autoincrement,
  686. `id` bigint unsigned not null,
  687. `host` varchar(128) not null,
  688. `status` varchar(32) not null,
  689. `stdout` text,
  690. `stderr` text,
  691. unique (`id`, `host`)
  692. );
  693. CREATE TABLE task_host_1
  694. (
  695. `ii` integer primary key autoincrement,
  696. `id` bigint unsigned not null,
  697. `host` varchar(128) not null,
  698. `status` varchar(32) not null,
  699. `stdout` text,
  700. `stderr` text,
  701. unique (`id`, `host`)
  702. );
  703. CREATE TABLE task_host_2
  704. (
  705. `ii` integer primary key autoincrement,
  706. `id` bigint unsigned not null,
  707. `host` varchar(128) not null,
  708. `status` varchar(32) not null,
  709. `stdout` text,
  710. `stderr` text,
  711. unique (`id`, `host`)
  712. );
  713. CREATE TABLE task_host_3
  714. (
  715. `ii` integer primary key autoincrement,
  716. `id` bigint unsigned not null,
  717. `host` varchar(128) not null,
  718. `status` varchar(32) not null,
  719. `stdout` text,
  720. `stderr` text,
  721. unique (`id`, `host`)
  722. );
  723. CREATE TABLE task_host_4
  724. (
  725. `ii` integer primary key autoincrement,
  726. `id` bigint unsigned not null,
  727. `host` varchar(128) not null,
  728. `status` varchar(32) not null,
  729. `stdout` text,
  730. `stderr` text,
  731. unique (`id`, `host`)
  732. );
  733. CREATE TABLE task_host_5
  734. (
  735. `ii` integer primary key autoincrement,
  736. `id` bigint unsigned not null,
  737. `host` varchar(128) not null,
  738. `status` varchar(32) not null,
  739. `stdout` text,
  740. `stderr` text,
  741. unique (`id`, `host`)
  742. );
  743. CREATE TABLE task_host_6
  744. (
  745. `ii` integer primary key autoincrement,
  746. `id` bigint unsigned not null,
  747. `host` varchar(128) not null,
  748. `status` varchar(32) not null,
  749. `stdout` text,
  750. `stderr` text,
  751. unique (`id`, `host`)
  752. );
  753. CREATE TABLE task_host_7
  754. (
  755. `ii` integer primary key autoincrement,
  756. `id` bigint unsigned not null,
  757. `host` varchar(128) not null,
  758. `status` varchar(32) not null,
  759. `stdout` text,
  760. `stderr` text,
  761. unique (`id`, `host`)
  762. );
  763. CREATE TABLE task_host_8
  764. (
  765. `ii` integer primary key autoincrement,
  766. `id` bigint unsigned not null,
  767. `host` varchar(128) not null,
  768. `status` varchar(32) not null,
  769. `stdout` text,
  770. `stderr` text,
  771. unique (`id`, `host`)
  772. );
  773. CREATE TABLE task_host_9
  774. (
  775. `ii` integer primary key autoincrement,
  776. `id` bigint unsigned not null,
  777. `host` varchar(128) not null,
  778. `status` varchar(32) not null,
  779. `stdout` text,
  780. `stderr` text,
  781. unique (`id`, `host`)
  782. );
  783. CREATE TABLE task_host_10
  784. (
  785. `ii` integer primary key autoincrement,
  786. `id` bigint unsigned not null,
  787. `host` varchar(128) not null,
  788. `status` varchar(32) not null,
  789. `stdout` text,
  790. `stderr` text,
  791. unique (`id`, `host`)
  792. );
  793. CREATE TABLE task_host_11
  794. (
  795. `ii` integer primary key autoincrement,
  796. `id` bigint unsigned not null,
  797. `host` varchar(128) not null,
  798. `status` varchar(32) not null,
  799. `stdout` text,
  800. `stderr` text,
  801. unique (`id`, `host`)
  802. );
  803. CREATE TABLE task_host_12
  804. (
  805. `ii` integer primary key autoincrement,
  806. `id` bigint unsigned not null,
  807. `host` varchar(128) not null,
  808. `status` varchar(32) not null,
  809. `stdout` text,
  810. `stderr` text,
  811. unique (`id`, `host`)
  812. );
  813. CREATE TABLE task_host_13
  814. (
  815. `ii` integer primary key autoincrement,
  816. `id` bigint unsigned not null,
  817. `host` varchar(128) not null,
  818. `status` varchar(32) not null,
  819. `stdout` text,
  820. `stderr` text,
  821. unique (`id`, `host`)
  822. );
  823. CREATE TABLE task_host_14
  824. (
  825. `ii` integer primary key autoincrement,
  826. `id` bigint unsigned not null,
  827. `host` varchar(128) not null,
  828. `status` varchar(32) not null,
  829. `stdout` text,
  830. `stderr` text,
  831. unique (`id`, `host`)
  832. );
  833. CREATE TABLE task_host_15
  834. (
  835. `ii` integer primary key autoincrement,
  836. `id` bigint unsigned not null,
  837. `host` varchar(128) not null,
  838. `status` varchar(32) not null,
  839. `stdout` text,
  840. `stderr` text,
  841. unique (`id`, `host`)
  842. );
  843. CREATE TABLE task_host_16
  844. (
  845. `ii` integer primary key autoincrement,
  846. `id` bigint unsigned not null,
  847. `host` varchar(128) not null,
  848. `status` varchar(32) not null,
  849. `stdout` text,
  850. `stderr` text,
  851. unique (`id`, `host`)
  852. );
  853. CREATE TABLE task_host_17
  854. (
  855. `ii` integer primary key autoincrement,
  856. `id` bigint unsigned not null,
  857. `host` varchar(128) not null,
  858. `status` varchar(32) not null,
  859. `stdout` text,
  860. `stderr` text,
  861. unique (`id`, `host`)
  862. );
  863. CREATE TABLE task_host_18
  864. (
  865. `ii` integer primary key autoincrement,
  866. `id` bigint unsigned not null,
  867. `host` varchar(128) not null,
  868. `status` varchar(32) not null,
  869. `stdout` text,
  870. `stderr` text,
  871. unique (`id`, `host`)
  872. );
  873. CREATE TABLE task_host_19
  874. (
  875. `ii` integer primary key autoincrement,
  876. `id` bigint unsigned not null,
  877. `host` varchar(128) not null,
  878. `status` varchar(32) not null,
  879. `stdout` text,
  880. `stderr` text,
  881. unique (`id`, `host`)
  882. );
  883. CREATE TABLE task_host_20
  884. (
  885. `ii` integer primary key autoincrement,
  886. `id` bigint unsigned not null,
  887. `host` varchar(128) not null,
  888. `status` varchar(32) not null,
  889. `stdout` text,
  890. `stderr` text,
  891. unique (`id`, `host`)
  892. );
  893. CREATE TABLE task_host_21
  894. (
  895. `ii` integer primary key autoincrement,
  896. `id` bigint unsigned not null,
  897. `host` varchar(128) not null,
  898. `status` varchar(32) not null,
  899. `stdout` text,
  900. `stderr` text,
  901. unique (`id`, `host`)
  902. );
  903. CREATE TABLE task_host_22
  904. (
  905. `ii` integer primary key autoincrement,
  906. `id` bigint unsigned not null,
  907. `host` varchar(128) not null,
  908. `status` varchar(32) not null,
  909. `stdout` text,
  910. `stderr` text,
  911. unique (`id`, `host`)
  912. );
  913. CREATE TABLE task_host_23
  914. (
  915. `ii` integer primary key autoincrement,
  916. `id` bigint unsigned not null,
  917. `host` varchar(128) not null,
  918. `status` varchar(32) not null,
  919. `stdout` text,
  920. `stderr` text,
  921. unique (`id`, `host`)
  922. );
  923. CREATE TABLE task_host_24
  924. (
  925. `ii` integer primary key autoincrement,
  926. `id` bigint unsigned not null,
  927. `host` varchar(128) not null,
  928. `status` varchar(32) not null,
  929. `stdout` text,
  930. `stderr` text,
  931. unique (`id`, `host`)
  932. );
  933. CREATE TABLE task_host_25
  934. (
  935. `ii` integer primary key autoincrement,
  936. `id` bigint unsigned not null,
  937. `host` varchar(128) not null,
  938. `status` varchar(32) not null,
  939. `stdout` text,
  940. `stderr` text,
  941. unique (`id`, `host`)
  942. );
  943. CREATE TABLE task_host_26
  944. (
  945. `ii` integer primary key autoincrement,
  946. `id` bigint unsigned not null,
  947. `host` varchar(128) not null,
  948. `status` varchar(32) not null,
  949. `stdout` text,
  950. `stderr` text,
  951. unique (`id`, `host`)
  952. );
  953. CREATE TABLE task_host_27
  954. (
  955. `ii` integer primary key autoincrement,
  956. `id` bigint unsigned not null,
  957. `host` varchar(128) not null,
  958. `status` varchar(32) not null,
  959. `stdout` text,
  960. `stderr` text,
  961. unique (`id`, `host`)
  962. );
  963. CREATE TABLE task_host_28
  964. (
  965. `ii` integer primary key autoincrement,
  966. `id` bigint unsigned not null,
  967. `host` varchar(128) not null,
  968. `status` varchar(32) not null,
  969. `stdout` text,
  970. `stderr` text,
  971. unique (`id`, `host`)
  972. );
  973. CREATE TABLE task_host_29
  974. (
  975. `ii` integer primary key autoincrement,
  976. `id` bigint unsigned not null,
  977. `host` varchar(128) not null,
  978. `status` varchar(32) not null,
  979. `stdout` text,
  980. `stderr` text,
  981. unique (`id`, `host`)
  982. );
  983. CREATE TABLE task_host_30
  984. (
  985. `ii` integer primary key autoincrement,
  986. `id` bigint unsigned not null,
  987. `host` varchar(128) not null,
  988. `status` varchar(32) not null,
  989. `stdout` text,
  990. `stderr` text,
  991. unique (`id`, `host`)
  992. );
  993. CREATE TABLE task_host_31
  994. (
  995. `ii` integer primary key autoincrement,
  996. `id` bigint unsigned not null,
  997. `host` varchar(128) not null,
  998. `status` varchar(32) not null,
  999. `stdout` text,
  1000. `stderr` text,
  1001. unique (`id`, `host`)
  1002. );
  1003. CREATE TABLE task_host_32
  1004. (
  1005. `ii` integer primary key autoincrement,
  1006. `id` bigint unsigned not null,
  1007. `host` varchar(128) not null,
  1008. `status` varchar(32) not null,
  1009. `stdout` text,
  1010. `stderr` text,
  1011. unique (`id`, `host`)
  1012. );
  1013. CREATE TABLE task_host_33
  1014. (
  1015. `ii` integer primary key autoincrement,
  1016. `id` bigint unsigned not null,
  1017. `host` varchar(128) not null,
  1018. `status` varchar(32) not null,
  1019. `stdout` text,
  1020. `stderr` text,
  1021. unique (`id`, `host`)
  1022. );
  1023. CREATE TABLE task_host_34
  1024. (
  1025. `ii` integer primary key autoincrement,
  1026. `id` bigint unsigned not null,
  1027. `host` varchar(128) not null,
  1028. `status` varchar(32) not null,
  1029. `stdout` text,
  1030. `stderr` text,
  1031. unique (`id`, `host`)
  1032. );
  1033. CREATE TABLE task_host_35
  1034. (
  1035. `ii` integer primary key autoincrement,
  1036. `id` bigint unsigned not null,
  1037. `host` varchar(128) not null,
  1038. `status` varchar(32) not null,
  1039. `stdout` text,
  1040. `stderr` text,
  1041. unique (`id`, `host`)
  1042. );
  1043. CREATE TABLE task_host_36
  1044. (
  1045. `ii` integer primary key autoincrement,
  1046. `id` bigint unsigned not null,
  1047. `host` varchar(128) not null,
  1048. `status` varchar(32) not null,
  1049. `stdout` text,
  1050. `stderr` text,
  1051. unique (`id`, `host`)
  1052. );
  1053. CREATE TABLE task_host_37
  1054. (
  1055. `ii` integer primary key autoincrement,
  1056. `id` bigint unsigned not null,
  1057. `host` varchar(128) not null,
  1058. `status` varchar(32) not null,
  1059. `stdout` text,
  1060. `stderr` text,
  1061. unique (`id`, `host`)
  1062. );
  1063. CREATE TABLE task_host_38
  1064. (
  1065. `ii` integer primary key autoincrement,
  1066. `id` bigint unsigned not null,
  1067. `host` varchar(128) not null,
  1068. `status` varchar(32) not null,
  1069. `stdout` text,
  1070. `stderr` text,
  1071. unique (`id`, `host`)
  1072. );
  1073. CREATE TABLE task_host_39
  1074. (
  1075. `ii` integer primary key autoincrement,
  1076. `id` bigint unsigned not null,
  1077. `host` varchar(128) not null,
  1078. `status` varchar(32) not null,
  1079. `stdout` text,
  1080. `stderr` text,
  1081. unique (`id`, `host`)
  1082. );
  1083. CREATE TABLE task_host_40
  1084. (
  1085. `ii` integer primary key autoincrement,
  1086. `id` bigint unsigned not null,
  1087. `host` varchar(128) not null,
  1088. `status` varchar(32) not null,
  1089. `stdout` text,
  1090. `stderr` text,
  1091. unique (`id`, `host`)
  1092. );
  1093. CREATE TABLE task_host_41
  1094. (
  1095. `ii` integer primary key autoincrement,
  1096. `id` bigint unsigned not null,
  1097. `host` varchar(128) not null,
  1098. `status` varchar(32) not null,
  1099. `stdout` text,
  1100. `stderr` text,
  1101. unique (`id`, `host`)
  1102. );
  1103. CREATE TABLE task_host_42
  1104. (
  1105. `ii` integer primary key autoincrement,
  1106. `id` bigint unsigned not null,
  1107. `host` varchar(128) not null,
  1108. `status` varchar(32) not null,
  1109. `stdout` text,
  1110. `stderr` text,
  1111. unique (`id`, `host`)
  1112. );
  1113. CREATE TABLE task_host_43
  1114. (
  1115. `ii` integer primary key autoincrement,
  1116. `id` bigint unsigned not null,
  1117. `host` varchar(128) not null,
  1118. `status` varchar(32) not null,
  1119. `stdout` text,
  1120. `stderr` text,
  1121. unique (`id`, `host`)
  1122. );
  1123. CREATE TABLE task_host_44
  1124. (
  1125. `ii` integer primary key autoincrement,
  1126. `id` bigint unsigned not null,
  1127. `host` varchar(128) not null,
  1128. `status` varchar(32) not null,
  1129. `stdout` text,
  1130. `stderr` text,
  1131. unique (`id`, `host`)
  1132. );
  1133. CREATE TABLE task_host_45
  1134. (
  1135. `ii` integer primary key autoincrement,
  1136. `id` bigint unsigned not null,
  1137. `host` varchar(128) not null,
  1138. `status` varchar(32) not null,
  1139. `stdout` text,
  1140. `stderr` text,
  1141. unique (`id`, `host`)
  1142. );
  1143. CREATE TABLE task_host_46
  1144. (
  1145. `ii` integer primary key autoincrement,
  1146. `id` bigint unsigned not null,
  1147. `host` varchar(128) not null,
  1148. `status` varchar(32) not null,
  1149. `stdout` text,
  1150. `stderr` text,
  1151. unique (`id`, `host`)
  1152. );
  1153. CREATE TABLE task_host_47
  1154. (
  1155. `ii` integer primary key autoincrement,
  1156. `id` bigint unsigned not null,
  1157. `host` varchar(128) not null,
  1158. `status` varchar(32) not null,
  1159. `stdout` text,
  1160. `stderr` text,
  1161. unique (`id`, `host`)
  1162. );
  1163. CREATE TABLE task_host_48
  1164. (
  1165. `ii` integer primary key autoincrement,
  1166. `id` bigint unsigned not null,
  1167. `host` varchar(128) not null,
  1168. `status` varchar(32) not null,
  1169. `stdout` text,
  1170. `stderr` text,
  1171. unique (`id`, `host`)
  1172. );
  1173. CREATE TABLE task_host_49
  1174. (
  1175. `ii` integer primary key autoincrement,
  1176. `id` bigint unsigned not null,
  1177. `host` varchar(128) not null,
  1178. `status` varchar(32) not null,
  1179. `stdout` text,
  1180. `stderr` text,
  1181. unique (`id`, `host`)
  1182. );
  1183. CREATE TABLE task_host_50
  1184. (
  1185. `ii` integer primary key autoincrement,
  1186. `id` bigint unsigned not null,
  1187. `host` varchar(128) not null,
  1188. `status` varchar(32) not null,
  1189. `stdout` text,
  1190. `stderr` text,
  1191. unique (`id`, `host`)
  1192. );
  1193. CREATE TABLE task_host_51
  1194. (
  1195. `ii` integer primary key autoincrement,
  1196. `id` bigint unsigned not null,
  1197. `host` varchar(128) not null,
  1198. `status` varchar(32) not null,
  1199. `stdout` text,
  1200. `stderr` text,
  1201. unique (`id`, `host`)
  1202. );
  1203. CREATE TABLE task_host_52
  1204. (
  1205. `ii` integer primary key autoincrement,
  1206. `id` bigint unsigned not null,
  1207. `host` varchar(128) not null,
  1208. `status` varchar(32) not null,
  1209. `stdout` text,
  1210. `stderr` text,
  1211. unique (`id`, `host`)
  1212. );
  1213. CREATE TABLE task_host_53
  1214. (
  1215. `ii` integer primary key autoincrement,
  1216. `id` bigint unsigned not null,
  1217. `host` varchar(128) not null,
  1218. `status` varchar(32) not null,
  1219. `stdout` text,
  1220. `stderr` text,
  1221. unique (`id`, `host`)
  1222. );
  1223. CREATE TABLE task_host_54
  1224. (
  1225. `ii` integer primary key autoincrement,
  1226. `id` bigint unsigned not null,
  1227. `host` varchar(128) not null,
  1228. `status` varchar(32) not null,
  1229. `stdout` text,
  1230. `stderr` text,
  1231. unique (`id`, `host`)
  1232. );
  1233. CREATE TABLE task_host_55
  1234. (
  1235. `ii` integer primary key autoincrement,
  1236. `id` bigint unsigned not null,
  1237. `host` varchar(128) not null,
  1238. `status` varchar(32) not null,
  1239. `stdout` text,
  1240. `stderr` text,
  1241. unique (`id`, `host`)
  1242. );
  1243. CREATE TABLE task_host_56
  1244. (
  1245. `ii` integer primary key autoincrement,
  1246. `id` bigint unsigned not null,
  1247. `host` varchar(128) not null,
  1248. `status` varchar(32) not null,
  1249. `stdout` text,
  1250. `stderr` text,
  1251. unique (`id`, `host`)
  1252. );
  1253. CREATE TABLE task_host_57
  1254. (
  1255. `ii` integer primary key autoincrement,
  1256. `id` bigint unsigned not null,
  1257. `host` varchar(128) not null,
  1258. `status` varchar(32) not null,
  1259. `stdout` text,
  1260. `stderr` text,
  1261. unique (`id`, `host`)
  1262. );
  1263. CREATE TABLE task_host_58
  1264. (
  1265. `ii` integer primary key autoincrement,
  1266. `id` bigint unsigned not null,
  1267. `host` varchar(128) not null,
  1268. `status` varchar(32) not null,
  1269. `stdout` text,
  1270. `stderr` text,
  1271. unique (`id`, `host`)
  1272. );
  1273. CREATE TABLE task_host_59
  1274. (
  1275. `ii` integer primary key autoincrement,
  1276. `id` bigint unsigned not null,
  1277. `host` varchar(128) not null,
  1278. `status` varchar(32) not null,
  1279. `stdout` text,
  1280. `stderr` text,
  1281. unique (`id`, `host`)
  1282. );
  1283. CREATE TABLE task_host_60
  1284. (
  1285. `ii` integer primary key autoincrement,
  1286. `id` bigint unsigned not null,
  1287. `host` varchar(128) not null,
  1288. `status` varchar(32) not null,
  1289. `stdout` text,
  1290. `stderr` text,
  1291. unique (`id`, `host`)
  1292. );
  1293. CREATE TABLE task_host_61
  1294. (
  1295. `ii` integer primary key autoincrement,
  1296. `id` bigint unsigned not null,
  1297. `host` varchar(128) not null,
  1298. `status` varchar(32) not null,
  1299. `stdout` text,
  1300. `stderr` text,
  1301. unique (`id`, `host`)
  1302. );
  1303. CREATE TABLE task_host_62
  1304. (
  1305. `ii` integer primary key autoincrement,
  1306. `id` bigint unsigned not null,
  1307. `host` varchar(128) not null,
  1308. `status` varchar(32) not null,
  1309. `stdout` text,
  1310. `stderr` text,
  1311. unique (`id`, `host`)
  1312. );
  1313. CREATE TABLE task_host_63
  1314. (
  1315. `ii` integer primary key autoincrement,
  1316. `id` bigint unsigned not null,
  1317. `host` varchar(128) not null,
  1318. `status` varchar(32) not null,
  1319. `stdout` text,
  1320. `stderr` text,
  1321. unique (`id`, `host`)
  1322. );
  1323. CREATE TABLE task_host_64
  1324. (
  1325. `ii` integer primary key autoincrement,
  1326. `id` bigint unsigned not null,
  1327. `host` varchar(128) not null,
  1328. `status` varchar(32) not null,
  1329. `stdout` text,
  1330. `stderr` text,
  1331. unique (`id`, `host`)
  1332. );
  1333. CREATE TABLE task_host_65
  1334. (
  1335. `ii` integer primary key autoincrement,
  1336. `id` bigint unsigned not null,
  1337. `host` varchar(128) not null,
  1338. `status` varchar(32) not null,
  1339. `stdout` text,
  1340. `stderr` text,
  1341. unique (`id`, `host`)
  1342. );
  1343. CREATE TABLE task_host_66
  1344. (
  1345. `ii` integer primary key autoincrement,
  1346. `id` bigint unsigned not null,
  1347. `host` varchar(128) not null,
  1348. `status` varchar(32) not null,
  1349. `stdout` text,
  1350. `stderr` text,
  1351. unique (`id`, `host`)
  1352. );
  1353. CREATE TABLE task_host_67
  1354. (
  1355. `ii` integer primary key autoincrement,
  1356. `id` bigint unsigned not null,
  1357. `host` varchar(128) not null,
  1358. `status` varchar(32) not null,
  1359. `stdout` text,
  1360. `stderr` text,
  1361. unique (`id`, `host`)
  1362. );
  1363. CREATE TABLE task_host_68
  1364. (
  1365. `ii` integer primary key autoincrement,
  1366. `id` bigint unsigned not null,
  1367. `host` varchar(128) not null,
  1368. `status` varchar(32) not null,
  1369. `stdout` text,
  1370. `stderr` text,
  1371. unique (`id`, `host`)
  1372. );
  1373. CREATE TABLE task_host_69
  1374. (
  1375. `ii` integer primary key autoincrement,
  1376. `id` bigint unsigned not null,
  1377. `host` varchar(128) not null,
  1378. `status` varchar(32) not null,
  1379. `stdout` text,
  1380. `stderr` text,
  1381. unique (`id`, `host`)
  1382. );
  1383. CREATE TABLE task_host_70
  1384. (
  1385. `ii` integer primary key autoincrement,
  1386. `id` bigint unsigned not null,
  1387. `host` varchar(128) not null,
  1388. `status` varchar(32) not null,
  1389. `stdout` text,
  1390. `stderr` text,
  1391. unique (`id`, `host`)
  1392. );
  1393. CREATE TABLE task_host_71
  1394. (
  1395. `ii` integer primary key autoincrement,
  1396. `id` bigint unsigned not null,
  1397. `host` varchar(128) not null,
  1398. `status` varchar(32) not null,
  1399. `stdout` text,
  1400. `stderr` text,
  1401. unique (`id`, `host`)
  1402. );
  1403. CREATE TABLE task_host_72
  1404. (
  1405. `ii` integer primary key autoincrement,
  1406. `id` bigint unsigned not null,
  1407. `host` varchar(128) not null,
  1408. `status` varchar(32) not null,
  1409. `stdout` text,
  1410. `stderr` text,
  1411. unique (`id`, `host`)
  1412. );
  1413. CREATE TABLE task_host_73
  1414. (
  1415. `ii` integer primary key autoincrement,
  1416. `id` bigint unsigned not null,
  1417. `host` varchar(128) not null,
  1418. `status` varchar(32) not null,
  1419. `stdout` text,
  1420. `stderr` text,
  1421. unique (`id`, `host`)
  1422. );
  1423. CREATE TABLE task_host_74
  1424. (
  1425. `ii` integer primary key autoincrement,
  1426. `id` bigint unsigned not null,
  1427. `host` varchar(128) not null,
  1428. `status` varchar(32) not null,
  1429. `stdout` text,
  1430. `stderr` text,
  1431. unique (`id`, `host`)
  1432. );
  1433. CREATE TABLE task_host_75
  1434. (
  1435. `ii` integer primary key autoincrement,
  1436. `id` bigint unsigned not null,
  1437. `host` varchar(128) not null,
  1438. `status` varchar(32) not null,
  1439. `stdout` text,
  1440. `stderr` text,
  1441. unique (`id`, `host`)
  1442. );
  1443. CREATE TABLE task_host_76
  1444. (
  1445. `ii` integer primary key autoincrement,
  1446. `id` bigint unsigned not null,
  1447. `host` varchar(128) not null,
  1448. `status` varchar(32) not null,
  1449. `stdout` text,
  1450. `stderr` text,
  1451. unique (`id`, `host`)
  1452. );
  1453. CREATE TABLE task_host_77
  1454. (
  1455. `ii` integer primary key autoincrement,
  1456. `id` bigint unsigned not null,
  1457. `host` varchar(128) not null,
  1458. `status` varchar(32) not null,
  1459. `stdout` text,
  1460. `stderr` text,
  1461. unique (`id`, `host`)
  1462. );
  1463. CREATE TABLE task_host_78
  1464. (
  1465. `ii` integer primary key autoincrement,
  1466. `id` bigint unsigned not null,
  1467. `host` varchar(128) not null,
  1468. `status` varchar(32) not null,
  1469. `stdout` text,
  1470. `stderr` text,
  1471. unique (`id`, `host`)
  1472. );
  1473. CREATE TABLE task_host_79
  1474. (
  1475. `ii` integer primary key autoincrement,
  1476. `id` bigint unsigned not null,
  1477. `host` varchar(128) not null,
  1478. `status` varchar(32) not null,
  1479. `stdout` text,
  1480. `stderr` text,
  1481. unique (`id`, `host`)
  1482. );
  1483. CREATE TABLE task_host_80
  1484. (
  1485. `ii` integer primary key autoincrement,
  1486. `id` bigint unsigned not null,
  1487. `host` varchar(128) not null,
  1488. `status` varchar(32) not null,
  1489. `stdout` text,
  1490. `stderr` text,
  1491. unique (`id`, `host`)
  1492. );
  1493. CREATE TABLE task_host_81
  1494. (
  1495. `ii` integer primary key autoincrement,
  1496. `id` bigint unsigned not null,
  1497. `host` varchar(128) not null,
  1498. `status` varchar(32) not null,
  1499. `stdout` text,
  1500. `stderr` text,
  1501. unique (`id`, `host`)
  1502. );
  1503. CREATE TABLE task_host_82
  1504. (
  1505. `ii` integer primary key autoincrement,
  1506. `id` bigint unsigned not null,
  1507. `host` varchar(128) not null,
  1508. `status` varchar(32) not null,
  1509. `stdout` text,
  1510. `stderr` text,
  1511. unique (`id`, `host`)
  1512. );
  1513. CREATE TABLE task_host_83
  1514. (
  1515. `ii` integer primary key autoincrement,
  1516. `id` bigint unsigned not null,
  1517. `host` varchar(128) not null,
  1518. `status` varchar(32) not null,
  1519. `stdout` text,
  1520. `stderr` text,
  1521. unique (`id`, `host`)
  1522. );
  1523. CREATE TABLE task_host_84
  1524. (
  1525. `ii` integer primary key autoincrement,
  1526. `id` bigint unsigned not null,
  1527. `host` varchar(128) not null,
  1528. `status` varchar(32) not null,
  1529. `stdout` text,
  1530. `stderr` text,
  1531. unique (`id`, `host`)
  1532. );
  1533. CREATE TABLE task_host_85
  1534. (
  1535. `ii` integer primary key autoincrement,
  1536. `id` bigint unsigned not null,
  1537. `host` varchar(128) not null,
  1538. `status` varchar(32) not null,
  1539. `stdout` text,
  1540. `stderr` text,
  1541. unique (`id`, `host`)
  1542. );
  1543. CREATE TABLE task_host_86
  1544. (
  1545. `ii` integer primary key autoincrement,
  1546. `id` bigint unsigned not null,
  1547. `host` varchar(128) not null,
  1548. `status` varchar(32) not null,
  1549. `stdout` text,
  1550. `stderr` text,
  1551. unique (`id`, `host`)
  1552. );
  1553. CREATE TABLE task_host_87
  1554. (
  1555. `ii` integer primary key autoincrement,
  1556. `id` bigint unsigned not null,
  1557. `host` varchar(128) not null,
  1558. `status` varchar(32) not null,
  1559. `stdout` text,
  1560. `stderr` text,
  1561. unique (`id`, `host`)
  1562. );
  1563. CREATE TABLE task_host_88
  1564. (
  1565. `ii` integer primary key autoincrement,
  1566. `id` bigint unsigned not null,
  1567. `host` varchar(128) not null,
  1568. `status` varchar(32) not null,
  1569. `stdout` text,
  1570. `stderr` text,
  1571. unique (`id`, `host`)
  1572. );
  1573. CREATE TABLE task_host_89
  1574. (
  1575. `ii` integer primary key autoincrement,
  1576. `id` bigint unsigned not null,
  1577. `host` varchar(128) not null,
  1578. `status` varchar(32) not null,
  1579. `stdout` text,
  1580. `stderr` text,
  1581. unique (`id`, `host`)
  1582. );
  1583. CREATE TABLE task_host_90
  1584. (
  1585. `ii` integer primary key autoincrement,
  1586. `id` bigint unsigned not null,
  1587. `host` varchar(128) not null,
  1588. `status` varchar(32) not null,
  1589. `stdout` text,
  1590. `stderr` text,
  1591. unique (`id`, `host`)
  1592. );
  1593. CREATE TABLE task_host_91
  1594. (
  1595. `ii` integer primary key autoincrement,
  1596. `id` bigint unsigned not null,
  1597. `host` varchar(128) not null,
  1598. `status` varchar(32) not null,
  1599. `stdout` text,
  1600. `stderr` text,
  1601. unique (`id`, `host`)
  1602. );
  1603. CREATE TABLE task_host_92
  1604. (
  1605. `ii` integer primary key autoincrement,
  1606. `id` bigint unsigned not null,
  1607. `host` varchar(128) not null,
  1608. `status` varchar(32) not null,
  1609. `stdout` text,
  1610. `stderr` text,
  1611. unique (`id`, `host`)
  1612. );
  1613. CREATE TABLE task_host_93
  1614. (
  1615. `ii` integer primary key autoincrement,
  1616. `id` bigint unsigned not null,
  1617. `host` varchar(128) not null,
  1618. `status` varchar(32) not null,
  1619. `stdout` text,
  1620. `stderr` text,
  1621. unique (`id`, `host`)
  1622. );
  1623. CREATE TABLE task_host_94
  1624. (
  1625. `ii` integer primary key autoincrement,
  1626. `id` bigint unsigned not null,
  1627. `host` varchar(128) not null,
  1628. `status` varchar(32) not null,
  1629. `stdout` text,
  1630. `stderr` text,
  1631. unique (`id`, `host`)
  1632. );
  1633. CREATE TABLE task_host_95
  1634. (
  1635. `ii` integer primary key autoincrement,
  1636. `id` bigint unsigned not null,
  1637. `host` varchar(128) not null,
  1638. `status` varchar(32) not null,
  1639. `stdout` text,
  1640. `stderr` text,
  1641. unique (`id`, `host`)
  1642. );
  1643. CREATE TABLE task_host_96
  1644. (
  1645. `ii` integer primary key autoincrement,
  1646. `id` bigint unsigned not null,
  1647. `host` varchar(128) not null,
  1648. `status` varchar(32) not null,
  1649. `stdout` text,
  1650. `stderr` text,
  1651. unique (`id`, `host`)
  1652. );
  1653. CREATE TABLE task_host_97
  1654. (
  1655. `ii` integer primary key autoincrement,
  1656. `id` bigint unsigned not null,
  1657. `host` varchar(128) not null,
  1658. `status` varchar(32) not null,
  1659. `stdout` text,
  1660. `stderr` text,
  1661. unique (`id`, `host`)
  1662. );
  1663. CREATE TABLE task_host_98
  1664. (
  1665. `ii` integer primary key autoincrement,
  1666. `id` bigint unsigned not null,
  1667. `host` varchar(128) not null,
  1668. `status` varchar(32) not null,
  1669. `stdout` text,
  1670. `stderr` text,
  1671. unique (`id`, `host`)
  1672. );
  1673. CREATE TABLE task_host_99
  1674. (
  1675. `ii` integer primary key autoincrement,
  1676. `id` bigint unsigned not null,
  1677. `host` varchar(128) not null,
  1678. `status` varchar(32) not null,
  1679. `stdout` text,
  1680. `stderr` text,
  1681. unique (`id`, `host`)
  1682. );