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
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851
  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 INDEX idx_collector ON builtin_metrics (collector);
  602. CREATE INDEX idx_typ ON builtin_metrics (typ);
  603. CREATE INDEX idx_builtinmetric_name ON builtin_metrics (name);
  604. CREATE INDEX idx_lang ON builtin_metrics (lang);
  605. CREATE TABLE `metric_filter` (
  606. `id` integer primary key autoincrement,
  607. `name` varchar(191) NOT NULL,
  608. `configs` varchar(4096) NOT NULL,
  609. `groups_perm` text,
  610. `create_at` bigint NOT NULL DEFAULT '0',
  611. `create_by` varchar(191) NOT NULL DEFAULT '',
  612. `update_at` bigint NOT NULL DEFAULT '0',
  613. `update_by` varchar(191) NOT NULL DEFAULT ''
  614. );
  615. CREATE INDEX `idx_metric_filter_name` ON `metric_filter` (`name` asc);
  616. CREATE TABLE `target_busi_group` (
  617. `id` integer primary key autoincrement,
  618. `target_ident` varchar(191) not null,
  619. `group_id` integer not null,
  620. `update_at` integer not null
  621. );
  622. CREATE UNIQUE INDEX idx_target_busi_group ON target_busi_group (target_ident, group_id);
  623. CREATE TABLE `dash_annotation` (
  624. `id` integer primary key autoincrement,
  625. `dashboard_id` bigint not null,
  626. `panel_id` varchar(191) not null,
  627. `tags` text,
  628. `description` text,
  629. `config` text,
  630. `time_start` bigint not null default 0,
  631. `time_end` bigint not null default 0,
  632. `create_at` bigint not null default 0,
  633. `create_by` varchar(64) not null default '',
  634. `update_at` bigint not null default 0,
  635. `update_by` varchar(64) not null default ''
  636. );
  637. CREATE TABLE `task_meta`
  638. (
  639. `id` integer primary key autoincrement,
  640. `title` varchar(255) not null default '',
  641. `account` varchar(64) not null,
  642. `batch` int unsigned not null default 0,
  643. `tolerance` int unsigned not null default 0,
  644. `timeout` int unsigned not null default 0,
  645. `pause` varchar(255) not null default '',
  646. `script` text not null,
  647. `args` varchar(512) not null default '',
  648. `stdin` varchar(1024) not null default '',
  649. `creator` varchar(64) not null default '',
  650. `created` timestamp not null default CURRENT_TIMESTAMP
  651. );
  652. CREATE INDEX `idx_task_meta_creator` ON `task_meta` (`creator` asc);
  653. CREATE INDEX `idx_task_meta_created` ON `task_meta` (`created` asc);
  654. /* start|cancel|kill|pause */
  655. CREATE TABLE `task_action`
  656. (
  657. `id` integer primary key autoincrement,
  658. `action` varchar(32) not null,
  659. `clock` bigint not null default 0
  660. );
  661. CREATE TABLE `task_scheduler`
  662. (
  663. `id` bigint unsigned not null,
  664. `scheduler` varchar(128) not null default ''
  665. );
  666. CREATE INDEX `idx_task_scheduler_id_scheduler` ON `task_scheduler` (`id`, `scheduler` asc);
  667. CREATE TABLE `task_scheduler_health`
  668. (
  669. `scheduler` varchar(128) not null unique,
  670. `clock` bigint not null
  671. );
  672. CREATE INDEX `idx_task_scheduler_health_clock` ON `task_scheduler_health` (`clock` asc);
  673. CREATE TABLE `task_host_doing`
  674. (
  675. `id` bigint unsigned not null,
  676. `host` varchar(128) not null,
  677. `clock` bigint not null default 0,
  678. `action` varchar(16) not null
  679. );
  680. CREATE INDEX `idx_task_host_doing_id` ON `task_host_doing` (`id` asc);
  681. CREATE INDEX `idx_task_host_doing_host` ON `task_host_doing` (`host` asc);
  682. CREATE TABLE task_host_0
  683. (
  684. `ii` integer primary key autoincrement,
  685. `id` bigint unsigned not null,
  686. `host` varchar(128) not null,
  687. `status` varchar(32) not null,
  688. `stdout` text,
  689. `stderr` text,
  690. unique (`id`, `host`)
  691. );
  692. CREATE TABLE task_host_1
  693. (
  694. `ii` integer primary key autoincrement,
  695. `id` bigint unsigned not null,
  696. `host` varchar(128) not null,
  697. `status` varchar(32) not null,
  698. `stdout` text,
  699. `stderr` text,
  700. unique (`id`, `host`)
  701. );
  702. CREATE TABLE task_host_2
  703. (
  704. `ii` integer primary key autoincrement,
  705. `id` bigint unsigned not null,
  706. `host` varchar(128) not null,
  707. `status` varchar(32) not null,
  708. `stdout` text,
  709. `stderr` text,
  710. unique (`id`, `host`)
  711. );
  712. CREATE TABLE task_host_3
  713. (
  714. `ii` integer primary key autoincrement,
  715. `id` bigint unsigned not null,
  716. `host` varchar(128) not null,
  717. `status` varchar(32) not null,
  718. `stdout` text,
  719. `stderr` text,
  720. unique (`id`, `host`)
  721. );
  722. CREATE TABLE task_host_4
  723. (
  724. `ii` integer primary key autoincrement,
  725. `id` bigint unsigned not null,
  726. `host` varchar(128) not null,
  727. `status` varchar(32) not null,
  728. `stdout` text,
  729. `stderr` text,
  730. unique (`id`, `host`)
  731. );
  732. CREATE TABLE task_host_5
  733. (
  734. `ii` integer primary key autoincrement,
  735. `id` bigint unsigned not null,
  736. `host` varchar(128) not null,
  737. `status` varchar(32) not null,
  738. `stdout` text,
  739. `stderr` text,
  740. unique (`id`, `host`)
  741. );
  742. CREATE TABLE task_host_6
  743. (
  744. `ii` integer primary key autoincrement,
  745. `id` bigint unsigned not null,
  746. `host` varchar(128) not null,
  747. `status` varchar(32) not null,
  748. `stdout` text,
  749. `stderr` text,
  750. unique (`id`, `host`)
  751. );
  752. CREATE TABLE task_host_7
  753. (
  754. `ii` integer primary key autoincrement,
  755. `id` bigint unsigned not null,
  756. `host` varchar(128) not null,
  757. `status` varchar(32) not null,
  758. `stdout` text,
  759. `stderr` text,
  760. unique (`id`, `host`)
  761. );
  762. CREATE TABLE task_host_8
  763. (
  764. `ii` integer primary key autoincrement,
  765. `id` bigint unsigned not null,
  766. `host` varchar(128) not null,
  767. `status` varchar(32) not null,
  768. `stdout` text,
  769. `stderr` text,
  770. unique (`id`, `host`)
  771. );
  772. CREATE TABLE task_host_9
  773. (
  774. `ii` integer primary key autoincrement,
  775. `id` bigint unsigned not null,
  776. `host` varchar(128) not null,
  777. `status` varchar(32) not null,
  778. `stdout` text,
  779. `stderr` text,
  780. unique (`id`, `host`)
  781. );
  782. CREATE TABLE task_host_10
  783. (
  784. `ii` integer primary key autoincrement,
  785. `id` bigint unsigned not null,
  786. `host` varchar(128) not null,
  787. `status` varchar(32) not null,
  788. `stdout` text,
  789. `stderr` text,
  790. unique (`id`, `host`)
  791. );
  792. CREATE TABLE task_host_11
  793. (
  794. `ii` integer primary key autoincrement,
  795. `id` bigint unsigned not null,
  796. `host` varchar(128) not null,
  797. `status` varchar(32) not null,
  798. `stdout` text,
  799. `stderr` text,
  800. unique (`id`, `host`)
  801. );
  802. CREATE TABLE task_host_12
  803. (
  804. `ii` integer primary key autoincrement,
  805. `id` bigint unsigned not null,
  806. `host` varchar(128) not null,
  807. `status` varchar(32) not null,
  808. `stdout` text,
  809. `stderr` text,
  810. unique (`id`, `host`)
  811. );
  812. CREATE TABLE task_host_13
  813. (
  814. `ii` integer primary key autoincrement,
  815. `id` bigint unsigned not null,
  816. `host` varchar(128) not null,
  817. `status` varchar(32) not null,
  818. `stdout` text,
  819. `stderr` text,
  820. unique (`id`, `host`)
  821. );
  822. CREATE TABLE task_host_14
  823. (
  824. `ii` integer primary key autoincrement,
  825. `id` bigint unsigned not null,
  826. `host` varchar(128) not null,
  827. `status` varchar(32) not null,
  828. `stdout` text,
  829. `stderr` text,
  830. unique (`id`, `host`)
  831. );
  832. CREATE TABLE task_host_15
  833. (
  834. `ii` integer primary key autoincrement,
  835. `id` bigint unsigned not null,
  836. `host` varchar(128) not null,
  837. `status` varchar(32) not null,
  838. `stdout` text,
  839. `stderr` text,
  840. unique (`id`, `host`)
  841. );
  842. CREATE TABLE task_host_16
  843. (
  844. `ii` integer primary key autoincrement,
  845. `id` bigint unsigned not null,
  846. `host` varchar(128) not null,
  847. `status` varchar(32) not null,
  848. `stdout` text,
  849. `stderr` text,
  850. unique (`id`, `host`)
  851. );
  852. CREATE TABLE task_host_17
  853. (
  854. `ii` integer primary key autoincrement,
  855. `id` bigint unsigned not null,
  856. `host` varchar(128) not null,
  857. `status` varchar(32) not null,
  858. `stdout` text,
  859. `stderr` text,
  860. unique (`id`, `host`)
  861. );
  862. CREATE TABLE task_host_18
  863. (
  864. `ii` integer primary key autoincrement,
  865. `id` bigint unsigned not null,
  866. `host` varchar(128) not null,
  867. `status` varchar(32) not null,
  868. `stdout` text,
  869. `stderr` text,
  870. unique (`id`, `host`)
  871. );
  872. CREATE TABLE task_host_19
  873. (
  874. `ii` integer primary key autoincrement,
  875. `id` bigint unsigned not null,
  876. `host` varchar(128) not null,
  877. `status` varchar(32) not null,
  878. `stdout` text,
  879. `stderr` text,
  880. unique (`id`, `host`)
  881. );
  882. CREATE TABLE task_host_20
  883. (
  884. `ii` integer primary key autoincrement,
  885. `id` bigint unsigned not null,
  886. `host` varchar(128) not null,
  887. `status` varchar(32) not null,
  888. `stdout` text,
  889. `stderr` text,
  890. unique (`id`, `host`)
  891. );
  892. CREATE TABLE task_host_21
  893. (
  894. `ii` integer primary key autoincrement,
  895. `id` bigint unsigned not null,
  896. `host` varchar(128) not null,
  897. `status` varchar(32) not null,
  898. `stdout` text,
  899. `stderr` text,
  900. unique (`id`, `host`)
  901. );
  902. CREATE TABLE task_host_22
  903. (
  904. `ii` integer primary key autoincrement,
  905. `id` bigint unsigned not null,
  906. `host` varchar(128) not null,
  907. `status` varchar(32) not null,
  908. `stdout` text,
  909. `stderr` text,
  910. unique (`id`, `host`)
  911. );
  912. CREATE TABLE task_host_23
  913. (
  914. `ii` integer primary key autoincrement,
  915. `id` bigint unsigned not null,
  916. `host` varchar(128) not null,
  917. `status` varchar(32) not null,
  918. `stdout` text,
  919. `stderr` text,
  920. unique (`id`, `host`)
  921. );
  922. CREATE TABLE task_host_24
  923. (
  924. `ii` integer primary key autoincrement,
  925. `id` bigint unsigned not null,
  926. `host` varchar(128) not null,
  927. `status` varchar(32) not null,
  928. `stdout` text,
  929. `stderr` text,
  930. unique (`id`, `host`)
  931. );
  932. CREATE TABLE task_host_25
  933. (
  934. `ii` integer primary key autoincrement,
  935. `id` bigint unsigned not null,
  936. `host` varchar(128) not null,
  937. `status` varchar(32) not null,
  938. `stdout` text,
  939. `stderr` text,
  940. unique (`id`, `host`)
  941. );
  942. CREATE TABLE task_host_26
  943. (
  944. `ii` integer primary key autoincrement,
  945. `id` bigint unsigned not null,
  946. `host` varchar(128) not null,
  947. `status` varchar(32) not null,
  948. `stdout` text,
  949. `stderr` text,
  950. unique (`id`, `host`)
  951. );
  952. CREATE TABLE task_host_27
  953. (
  954. `ii` integer primary key autoincrement,
  955. `id` bigint unsigned not null,
  956. `host` varchar(128) not null,
  957. `status` varchar(32) not null,
  958. `stdout` text,
  959. `stderr` text,
  960. unique (`id`, `host`)
  961. );
  962. CREATE TABLE task_host_28
  963. (
  964. `ii` integer primary key autoincrement,
  965. `id` bigint unsigned not null,
  966. `host` varchar(128) not null,
  967. `status` varchar(32) not null,
  968. `stdout` text,
  969. `stderr` text,
  970. unique (`id`, `host`)
  971. );
  972. CREATE TABLE task_host_29
  973. (
  974. `ii` integer primary key autoincrement,
  975. `id` bigint unsigned not null,
  976. `host` varchar(128) not null,
  977. `status` varchar(32) not null,
  978. `stdout` text,
  979. `stderr` text,
  980. unique (`id`, `host`)
  981. );
  982. CREATE TABLE task_host_30
  983. (
  984. `ii` integer primary key autoincrement,
  985. `id` bigint unsigned not null,
  986. `host` varchar(128) not null,
  987. `status` varchar(32) not null,
  988. `stdout` text,
  989. `stderr` text,
  990. unique (`id`, `host`)
  991. );
  992. CREATE TABLE task_host_31
  993. (
  994. `ii` integer primary key autoincrement,
  995. `id` bigint unsigned not null,
  996. `host` varchar(128) not null,
  997. `status` varchar(32) not null,
  998. `stdout` text,
  999. `stderr` text,
  1000. unique (`id`, `host`)
  1001. );
  1002. CREATE TABLE task_host_32
  1003. (
  1004. `ii` integer primary key autoincrement,
  1005. `id` bigint unsigned not null,
  1006. `host` varchar(128) not null,
  1007. `status` varchar(32) not null,
  1008. `stdout` text,
  1009. `stderr` text,
  1010. unique (`id`, `host`)
  1011. );
  1012. CREATE TABLE task_host_33
  1013. (
  1014. `ii` integer primary key autoincrement,
  1015. `id` bigint unsigned not null,
  1016. `host` varchar(128) not null,
  1017. `status` varchar(32) not null,
  1018. `stdout` text,
  1019. `stderr` text,
  1020. unique (`id`, `host`)
  1021. );
  1022. CREATE TABLE task_host_34
  1023. (
  1024. `ii` integer primary key autoincrement,
  1025. `id` bigint unsigned not null,
  1026. `host` varchar(128) not null,
  1027. `status` varchar(32) not null,
  1028. `stdout` text,
  1029. `stderr` text,
  1030. unique (`id`, `host`)
  1031. );
  1032. CREATE TABLE task_host_35
  1033. (
  1034. `ii` integer primary key autoincrement,
  1035. `id` bigint unsigned not null,
  1036. `host` varchar(128) not null,
  1037. `status` varchar(32) not null,
  1038. `stdout` text,
  1039. `stderr` text,
  1040. unique (`id`, `host`)
  1041. );
  1042. CREATE TABLE task_host_36
  1043. (
  1044. `ii` integer primary key autoincrement,
  1045. `id` bigint unsigned not null,
  1046. `host` varchar(128) not null,
  1047. `status` varchar(32) not null,
  1048. `stdout` text,
  1049. `stderr` text,
  1050. unique (`id`, `host`)
  1051. );
  1052. CREATE TABLE task_host_37
  1053. (
  1054. `ii` integer primary key autoincrement,
  1055. `id` bigint unsigned not null,
  1056. `host` varchar(128) not null,
  1057. `status` varchar(32) not null,
  1058. `stdout` text,
  1059. `stderr` text,
  1060. unique (`id`, `host`)
  1061. );
  1062. CREATE TABLE task_host_38
  1063. (
  1064. `ii` integer primary key autoincrement,
  1065. `id` bigint unsigned not null,
  1066. `host` varchar(128) not null,
  1067. `status` varchar(32) not null,
  1068. `stdout` text,
  1069. `stderr` text,
  1070. unique (`id`, `host`)
  1071. );
  1072. CREATE TABLE task_host_39
  1073. (
  1074. `ii` integer primary key autoincrement,
  1075. `id` bigint unsigned not null,
  1076. `host` varchar(128) not null,
  1077. `status` varchar(32) not null,
  1078. `stdout` text,
  1079. `stderr` text,
  1080. unique (`id`, `host`)
  1081. );
  1082. CREATE TABLE task_host_40
  1083. (
  1084. `ii` integer primary key autoincrement,
  1085. `id` bigint unsigned not null,
  1086. `host` varchar(128) not null,
  1087. `status` varchar(32) not null,
  1088. `stdout` text,
  1089. `stderr` text,
  1090. unique (`id`, `host`)
  1091. );
  1092. CREATE TABLE task_host_41
  1093. (
  1094. `ii` integer primary key autoincrement,
  1095. `id` bigint unsigned not null,
  1096. `host` varchar(128) not null,
  1097. `status` varchar(32) not null,
  1098. `stdout` text,
  1099. `stderr` text,
  1100. unique (`id`, `host`)
  1101. );
  1102. CREATE TABLE task_host_42
  1103. (
  1104. `ii` integer primary key autoincrement,
  1105. `id` bigint unsigned not null,
  1106. `host` varchar(128) not null,
  1107. `status` varchar(32) not null,
  1108. `stdout` text,
  1109. `stderr` text,
  1110. unique (`id`, `host`)
  1111. );
  1112. CREATE TABLE task_host_43
  1113. (
  1114. `ii` integer primary key autoincrement,
  1115. `id` bigint unsigned not null,
  1116. `host` varchar(128) not null,
  1117. `status` varchar(32) not null,
  1118. `stdout` text,
  1119. `stderr` text,
  1120. unique (`id`, `host`)
  1121. );
  1122. CREATE TABLE task_host_44
  1123. (
  1124. `ii` integer primary key autoincrement,
  1125. `id` bigint unsigned not null,
  1126. `host` varchar(128) not null,
  1127. `status` varchar(32) not null,
  1128. `stdout` text,
  1129. `stderr` text,
  1130. unique (`id`, `host`)
  1131. );
  1132. CREATE TABLE task_host_45
  1133. (
  1134. `ii` integer primary key autoincrement,
  1135. `id` bigint unsigned not null,
  1136. `host` varchar(128) not null,
  1137. `status` varchar(32) not null,
  1138. `stdout` text,
  1139. `stderr` text,
  1140. unique (`id`, `host`)
  1141. );
  1142. CREATE TABLE task_host_46
  1143. (
  1144. `ii` integer primary key autoincrement,
  1145. `id` bigint unsigned not null,
  1146. `host` varchar(128) not null,
  1147. `status` varchar(32) not null,
  1148. `stdout` text,
  1149. `stderr` text,
  1150. unique (`id`, `host`)
  1151. );
  1152. CREATE TABLE task_host_47
  1153. (
  1154. `ii` integer primary key autoincrement,
  1155. `id` bigint unsigned not null,
  1156. `host` varchar(128) not null,
  1157. `status` varchar(32) not null,
  1158. `stdout` text,
  1159. `stderr` text,
  1160. unique (`id`, `host`)
  1161. );
  1162. CREATE TABLE task_host_48
  1163. (
  1164. `ii` integer primary key autoincrement,
  1165. `id` bigint unsigned not null,
  1166. `host` varchar(128) not null,
  1167. `status` varchar(32) not null,
  1168. `stdout` text,
  1169. `stderr` text,
  1170. unique (`id`, `host`)
  1171. );
  1172. CREATE TABLE task_host_49
  1173. (
  1174. `ii` integer primary key autoincrement,
  1175. `id` bigint unsigned not null,
  1176. `host` varchar(128) not null,
  1177. `status` varchar(32) not null,
  1178. `stdout` text,
  1179. `stderr` text,
  1180. unique (`id`, `host`)
  1181. );
  1182. CREATE TABLE task_host_50
  1183. (
  1184. `ii` integer primary key autoincrement,
  1185. `id` bigint unsigned not null,
  1186. `host` varchar(128) not null,
  1187. `status` varchar(32) not null,
  1188. `stdout` text,
  1189. `stderr` text,
  1190. unique (`id`, `host`)
  1191. );
  1192. CREATE TABLE task_host_51
  1193. (
  1194. `ii` integer primary key autoincrement,
  1195. `id` bigint unsigned not null,
  1196. `host` varchar(128) not null,
  1197. `status` varchar(32) not null,
  1198. `stdout` text,
  1199. `stderr` text,
  1200. unique (`id`, `host`)
  1201. );
  1202. CREATE TABLE task_host_52
  1203. (
  1204. `ii` integer primary key autoincrement,
  1205. `id` bigint unsigned not null,
  1206. `host` varchar(128) not null,
  1207. `status` varchar(32) not null,
  1208. `stdout` text,
  1209. `stderr` text,
  1210. unique (`id`, `host`)
  1211. );
  1212. CREATE TABLE task_host_53
  1213. (
  1214. `ii` integer primary key autoincrement,
  1215. `id` bigint unsigned not null,
  1216. `host` varchar(128) not null,
  1217. `status` varchar(32) not null,
  1218. `stdout` text,
  1219. `stderr` text,
  1220. unique (`id`, `host`)
  1221. );
  1222. CREATE TABLE task_host_54
  1223. (
  1224. `ii` integer primary key autoincrement,
  1225. `id` bigint unsigned not null,
  1226. `host` varchar(128) not null,
  1227. `status` varchar(32) not null,
  1228. `stdout` text,
  1229. `stderr` text,
  1230. unique (`id`, `host`)
  1231. );
  1232. CREATE TABLE task_host_55
  1233. (
  1234. `ii` integer primary key autoincrement,
  1235. `id` bigint unsigned not null,
  1236. `host` varchar(128) not null,
  1237. `status` varchar(32) not null,
  1238. `stdout` text,
  1239. `stderr` text,
  1240. unique (`id`, `host`)
  1241. );
  1242. CREATE TABLE task_host_56
  1243. (
  1244. `ii` integer primary key autoincrement,
  1245. `id` bigint unsigned not null,
  1246. `host` varchar(128) not null,
  1247. `status` varchar(32) not null,
  1248. `stdout` text,
  1249. `stderr` text,
  1250. unique (`id`, `host`)
  1251. );
  1252. CREATE TABLE task_host_57
  1253. (
  1254. `ii` integer primary key autoincrement,
  1255. `id` bigint unsigned not null,
  1256. `host` varchar(128) not null,
  1257. `status` varchar(32) not null,
  1258. `stdout` text,
  1259. `stderr` text,
  1260. unique (`id`, `host`)
  1261. );
  1262. CREATE TABLE task_host_58
  1263. (
  1264. `ii` integer primary key autoincrement,
  1265. `id` bigint unsigned not null,
  1266. `host` varchar(128) not null,
  1267. `status` varchar(32) not null,
  1268. `stdout` text,
  1269. `stderr` text,
  1270. unique (`id`, `host`)
  1271. );
  1272. CREATE TABLE task_host_59
  1273. (
  1274. `ii` integer primary key autoincrement,
  1275. `id` bigint unsigned not null,
  1276. `host` varchar(128) not null,
  1277. `status` varchar(32) not null,
  1278. `stdout` text,
  1279. `stderr` text,
  1280. unique (`id`, `host`)
  1281. );
  1282. CREATE TABLE task_host_60
  1283. (
  1284. `ii` integer primary key autoincrement,
  1285. `id` bigint unsigned not null,
  1286. `host` varchar(128) not null,
  1287. `status` varchar(32) not null,
  1288. `stdout` text,
  1289. `stderr` text,
  1290. unique (`id`, `host`)
  1291. );
  1292. CREATE TABLE task_host_61
  1293. (
  1294. `ii` integer primary key autoincrement,
  1295. `id` bigint unsigned not null,
  1296. `host` varchar(128) not null,
  1297. `status` varchar(32) not null,
  1298. `stdout` text,
  1299. `stderr` text,
  1300. unique (`id`, `host`)
  1301. );
  1302. CREATE TABLE task_host_62
  1303. (
  1304. `ii` integer primary key autoincrement,
  1305. `id` bigint unsigned not null,
  1306. `host` varchar(128) not null,
  1307. `status` varchar(32) not null,
  1308. `stdout` text,
  1309. `stderr` text,
  1310. unique (`id`, `host`)
  1311. );
  1312. CREATE TABLE task_host_63
  1313. (
  1314. `ii` integer primary key autoincrement,
  1315. `id` bigint unsigned not null,
  1316. `host` varchar(128) not null,
  1317. `status` varchar(32) not null,
  1318. `stdout` text,
  1319. `stderr` text,
  1320. unique (`id`, `host`)
  1321. );
  1322. CREATE TABLE task_host_64
  1323. (
  1324. `ii` integer primary key autoincrement,
  1325. `id` bigint unsigned not null,
  1326. `host` varchar(128) not null,
  1327. `status` varchar(32) not null,
  1328. `stdout` text,
  1329. `stderr` text,
  1330. unique (`id`, `host`)
  1331. );
  1332. CREATE TABLE task_host_65
  1333. (
  1334. `ii` integer primary key autoincrement,
  1335. `id` bigint unsigned not null,
  1336. `host` varchar(128) not null,
  1337. `status` varchar(32) not null,
  1338. `stdout` text,
  1339. `stderr` text,
  1340. unique (`id`, `host`)
  1341. );
  1342. CREATE TABLE task_host_66
  1343. (
  1344. `ii` integer primary key autoincrement,
  1345. `id` bigint unsigned not null,
  1346. `host` varchar(128) not null,
  1347. `status` varchar(32) not null,
  1348. `stdout` text,
  1349. `stderr` text,
  1350. unique (`id`, `host`)
  1351. );
  1352. CREATE TABLE task_host_67
  1353. (
  1354. `ii` integer primary key autoincrement,
  1355. `id` bigint unsigned not null,
  1356. `host` varchar(128) not null,
  1357. `status` varchar(32) not null,
  1358. `stdout` text,
  1359. `stderr` text,
  1360. unique (`id`, `host`)
  1361. );
  1362. CREATE TABLE task_host_68
  1363. (
  1364. `ii` integer primary key autoincrement,
  1365. `id` bigint unsigned not null,
  1366. `host` varchar(128) not null,
  1367. `status` varchar(32) not null,
  1368. `stdout` text,
  1369. `stderr` text,
  1370. unique (`id`, `host`)
  1371. );
  1372. CREATE TABLE task_host_69
  1373. (
  1374. `ii` integer primary key autoincrement,
  1375. `id` bigint unsigned not null,
  1376. `host` varchar(128) not null,
  1377. `status` varchar(32) not null,
  1378. `stdout` text,
  1379. `stderr` text,
  1380. unique (`id`, `host`)
  1381. );
  1382. CREATE TABLE task_host_70
  1383. (
  1384. `ii` integer primary key autoincrement,
  1385. `id` bigint unsigned not null,
  1386. `host` varchar(128) not null,
  1387. `status` varchar(32) not null,
  1388. `stdout` text,
  1389. `stderr` text,
  1390. unique (`id`, `host`)
  1391. );
  1392. CREATE TABLE task_host_71
  1393. (
  1394. `ii` integer primary key autoincrement,
  1395. `id` bigint unsigned not null,
  1396. `host` varchar(128) not null,
  1397. `status` varchar(32) not null,
  1398. `stdout` text,
  1399. `stderr` text,
  1400. unique (`id`, `host`)
  1401. );
  1402. CREATE TABLE task_host_72
  1403. (
  1404. `ii` integer primary key autoincrement,
  1405. `id` bigint unsigned not null,
  1406. `host` varchar(128) not null,
  1407. `status` varchar(32) not null,
  1408. `stdout` text,
  1409. `stderr` text,
  1410. unique (`id`, `host`)
  1411. );
  1412. CREATE TABLE task_host_73
  1413. (
  1414. `ii` integer primary key autoincrement,
  1415. `id` bigint unsigned not null,
  1416. `host` varchar(128) not null,
  1417. `status` varchar(32) not null,
  1418. `stdout` text,
  1419. `stderr` text,
  1420. unique (`id`, `host`)
  1421. );
  1422. CREATE TABLE task_host_74
  1423. (
  1424. `ii` integer primary key autoincrement,
  1425. `id` bigint unsigned not null,
  1426. `host` varchar(128) not null,
  1427. `status` varchar(32) not null,
  1428. `stdout` text,
  1429. `stderr` text,
  1430. unique (`id`, `host`)
  1431. );
  1432. CREATE TABLE task_host_75
  1433. (
  1434. `ii` integer primary key autoincrement,
  1435. `id` bigint unsigned not null,
  1436. `host` varchar(128) not null,
  1437. `status` varchar(32) not null,
  1438. `stdout` text,
  1439. `stderr` text,
  1440. unique (`id`, `host`)
  1441. );
  1442. CREATE TABLE task_host_76
  1443. (
  1444. `ii` integer primary key autoincrement,
  1445. `id` bigint unsigned not null,
  1446. `host` varchar(128) not null,
  1447. `status` varchar(32) not null,
  1448. `stdout` text,
  1449. `stderr` text,
  1450. unique (`id`, `host`)
  1451. );
  1452. CREATE TABLE task_host_77
  1453. (
  1454. `ii` integer primary key autoincrement,
  1455. `id` bigint unsigned not null,
  1456. `host` varchar(128) not null,
  1457. `status` varchar(32) not null,
  1458. `stdout` text,
  1459. `stderr` text,
  1460. unique (`id`, `host`)
  1461. );
  1462. CREATE TABLE task_host_78
  1463. (
  1464. `ii` integer primary key autoincrement,
  1465. `id` bigint unsigned not null,
  1466. `host` varchar(128) not null,
  1467. `status` varchar(32) not null,
  1468. `stdout` text,
  1469. `stderr` text,
  1470. unique (`id`, `host`)
  1471. );
  1472. CREATE TABLE task_host_79
  1473. (
  1474. `ii` integer primary key autoincrement,
  1475. `id` bigint unsigned not null,
  1476. `host` varchar(128) not null,
  1477. `status` varchar(32) not null,
  1478. `stdout` text,
  1479. `stderr` text,
  1480. unique (`id`, `host`)
  1481. );
  1482. CREATE TABLE task_host_80
  1483. (
  1484. `ii` integer primary key autoincrement,
  1485. `id` bigint unsigned not null,
  1486. `host` varchar(128) not null,
  1487. `status` varchar(32) not null,
  1488. `stdout` text,
  1489. `stderr` text,
  1490. unique (`id`, `host`)
  1491. );
  1492. CREATE TABLE task_host_81
  1493. (
  1494. `ii` integer primary key autoincrement,
  1495. `id` bigint unsigned not null,
  1496. `host` varchar(128) not null,
  1497. `status` varchar(32) not null,
  1498. `stdout` text,
  1499. `stderr` text,
  1500. unique (`id`, `host`)
  1501. );
  1502. CREATE TABLE task_host_82
  1503. (
  1504. `ii` integer primary key autoincrement,
  1505. `id` bigint unsigned not null,
  1506. `host` varchar(128) not null,
  1507. `status` varchar(32) not null,
  1508. `stdout` text,
  1509. `stderr` text,
  1510. unique (`id`, `host`)
  1511. );
  1512. CREATE TABLE task_host_83
  1513. (
  1514. `ii` integer primary key autoincrement,
  1515. `id` bigint unsigned not null,
  1516. `host` varchar(128) not null,
  1517. `status` varchar(32) not null,
  1518. `stdout` text,
  1519. `stderr` text,
  1520. unique (`id`, `host`)
  1521. );
  1522. CREATE TABLE task_host_84
  1523. (
  1524. `ii` integer primary key autoincrement,
  1525. `id` bigint unsigned not null,
  1526. `host` varchar(128) not null,
  1527. `status` varchar(32) not null,
  1528. `stdout` text,
  1529. `stderr` text,
  1530. unique (`id`, `host`)
  1531. );
  1532. CREATE TABLE task_host_85
  1533. (
  1534. `ii` integer primary key autoincrement,
  1535. `id` bigint unsigned not null,
  1536. `host` varchar(128) not null,
  1537. `status` varchar(32) not null,
  1538. `stdout` text,
  1539. `stderr` text,
  1540. unique (`id`, `host`)
  1541. );
  1542. CREATE TABLE task_host_86
  1543. (
  1544. `ii` integer primary key autoincrement,
  1545. `id` bigint unsigned not null,
  1546. `host` varchar(128) not null,
  1547. `status` varchar(32) not null,
  1548. `stdout` text,
  1549. `stderr` text,
  1550. unique (`id`, `host`)
  1551. );
  1552. CREATE TABLE task_host_87
  1553. (
  1554. `ii` integer primary key autoincrement,
  1555. `id` bigint unsigned not null,
  1556. `host` varchar(128) not null,
  1557. `status` varchar(32) not null,
  1558. `stdout` text,
  1559. `stderr` text,
  1560. unique (`id`, `host`)
  1561. );
  1562. CREATE TABLE task_host_88
  1563. (
  1564. `ii` integer primary key autoincrement,
  1565. `id` bigint unsigned not null,
  1566. `host` varchar(128) not null,
  1567. `status` varchar(32) not null,
  1568. `stdout` text,
  1569. `stderr` text,
  1570. unique (`id`, `host`)
  1571. );
  1572. CREATE TABLE task_host_89
  1573. (
  1574. `ii` integer primary key autoincrement,
  1575. `id` bigint unsigned not null,
  1576. `host` varchar(128) not null,
  1577. `status` varchar(32) not null,
  1578. `stdout` text,
  1579. `stderr` text,
  1580. unique (`id`, `host`)
  1581. );
  1582. CREATE TABLE task_host_90
  1583. (
  1584. `ii` integer primary key autoincrement,
  1585. `id` bigint unsigned not null,
  1586. `host` varchar(128) not null,
  1587. `status` varchar(32) not null,
  1588. `stdout` text,
  1589. `stderr` text,
  1590. unique (`id`, `host`)
  1591. );
  1592. CREATE TABLE task_host_91
  1593. (
  1594. `ii` integer primary key autoincrement,
  1595. `id` bigint unsigned not null,
  1596. `host` varchar(128) not null,
  1597. `status` varchar(32) not null,
  1598. `stdout` text,
  1599. `stderr` text,
  1600. unique (`id`, `host`)
  1601. );
  1602. CREATE TABLE task_host_92
  1603. (
  1604. `ii` integer primary key autoincrement,
  1605. `id` bigint unsigned not null,
  1606. `host` varchar(128) not null,
  1607. `status` varchar(32) not null,
  1608. `stdout` text,
  1609. `stderr` text,
  1610. unique (`id`, `host`)
  1611. );
  1612. CREATE TABLE task_host_93
  1613. (
  1614. `ii` integer primary key autoincrement,
  1615. `id` bigint unsigned not null,
  1616. `host` varchar(128) not null,
  1617. `status` varchar(32) not null,
  1618. `stdout` text,
  1619. `stderr` text,
  1620. unique (`id`, `host`)
  1621. );
  1622. CREATE TABLE task_host_94
  1623. (
  1624. `ii` integer primary key autoincrement,
  1625. `id` bigint unsigned not null,
  1626. `host` varchar(128) not null,
  1627. `status` varchar(32) not null,
  1628. `stdout` text,
  1629. `stderr` text,
  1630. unique (`id`, `host`)
  1631. );
  1632. CREATE TABLE task_host_95
  1633. (
  1634. `ii` integer primary key autoincrement,
  1635. `id` bigint unsigned not null,
  1636. `host` varchar(128) not null,
  1637. `status` varchar(32) not null,
  1638. `stdout` text,
  1639. `stderr` text,
  1640. unique (`id`, `host`)
  1641. );
  1642. CREATE TABLE task_host_96
  1643. (
  1644. `ii` integer primary key autoincrement,
  1645. `id` bigint unsigned not null,
  1646. `host` varchar(128) not null,
  1647. `status` varchar(32) not null,
  1648. `stdout` text,
  1649. `stderr` text,
  1650. unique (`id`, `host`)
  1651. );
  1652. CREATE TABLE task_host_97
  1653. (
  1654. `ii` integer primary key autoincrement,
  1655. `id` bigint unsigned not null,
  1656. `host` varchar(128) not null,
  1657. `status` varchar(32) not null,
  1658. `stdout` text,
  1659. `stderr` text,
  1660. unique (`id`, `host`)
  1661. );
  1662. CREATE TABLE task_host_98
  1663. (
  1664. `ii` integer primary key autoincrement,
  1665. `id` bigint unsigned not null,
  1666. `host` varchar(128) not null,
  1667. `status` varchar(32) not null,
  1668. `stdout` text,
  1669. `stderr` text,
  1670. unique (`id`, `host`)
  1671. );
  1672. CREATE TABLE task_host_99
  1673. (
  1674. `ii` integer primary key autoincrement,
  1675. `id` bigint unsigned not null,
  1676. `host` varchar(128) not null,
  1677. `status` varchar(32) not null,
  1678. `stdout` text,
  1679. `stderr` text,
  1680. unique (`id`, `host`)
  1681. );