|
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853 |
- CREATE TABLE `users` (
- `id` integer primary key autoincrement,
- `username` varchar(64) not null unique,
- `nickname` varchar(64) not null,
- `password` varchar(128) not null default '',
- `phone` varchar(16) not null default '',
- `email` varchar(64) not null default '',
- `portrait` varchar(255) not null default '',
- `roles` varchar(255) not null,
- `contacts` varchar(1024),
- `maintainer` tinyint(1) not null default 0,
- `belong` varchar(16) not null default '',
- `last_active_time` bigint not null default 0,
- `create_at` bigint not null default 0,
- `create_by` varchar(64) not null default '',
- `update_at` bigint not null default 0,
- `update_by` varchar(64) not null default ''
- );
-
- CREATE UNIQUE INDEX idx_users_username ON `users` (username);
-
- 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');
-
- CREATE TABLE `user_group` (
- `id` integer primary key autoincrement,
- `name` varchar(128) not null default '',
- `note` varchar(255) not null default '',
- `create_at` bigint not null default 0,
- `create_by` varchar(64) not null default '',
- `update_at` bigint not null default 0,
- `update_by` varchar(64) not null default ''
- );
- CREATE INDEX `idx_user_group_create_by` ON `user_group` (`create_by` asc);
- CREATE INDEX `idx_user_group_update_at` ON `user_group` (`update_at` asc);
-
- 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');
-
- CREATE TABLE `user_group_member` (
- `id` integer primary key autoincrement,
- `group_id` bigint unsigned not null,
- `user_id` bigint unsigned not null
- );
- CREATE INDEX `idx_user_group_member_group_id` ON `user_group_member` (`group_id` asc);
- CREATE INDEX `idx_user_group_member_user_id` ON `user_group_member` (`user_id` asc);
-
- insert into user_group_member(group_id, user_id) values(1, 1);
-
- CREATE TABLE `configs` (
- `id` integer primary key autoincrement,
- `ckey` varchar(191) not null,
- `cval` text not null,
- `note` varchar(1024) not null default '',
- `external` tinyint(1) not null default 0,
- `encrypted` tinyint(1) not null default 0,
- `create_at` bigint not null default 0,
- `create_by` varchar(64) not null default '',
- `update_at` bigint not null default 0,
- `update_by` varchar(64) not null default ''
- );
-
- CREATE TABLE `role` (
- `id` integer primary key autoincrement,
- `name` varchar(191) not null unique default '',
- `note` varchar(255) not null default ''
- );
-
- insert into `role`(name, note) values('Admin', 'Administrator role');
- insert into `role`(name, note) values('Standard', 'Ordinary user role');
- insert into `role`(name, note) values('Guest', 'Readonly user role');
-
-
- CREATE TABLE `role_operation`(
- `id` integer primary key autoincrement,
- `role_name` varchar(128) not null,
- `operation` varchar(191) not null
- );
- CREATE INDEX `idx_role_operation_role_name` ON `role_operation` (`role_name` asc);
- CREATE INDEX `idx_role_operation_operation` ON `role_operation` (`operation` asc);
-
- -- Admin is special, who has no concrete operation but can do anything.
- insert into `role_operation`(role_name, operation) values('Guest', '/metric/explorer');
- insert into `role_operation`(role_name, operation) values('Guest', '/object/explorer');
- insert into `role_operation`(role_name, operation) values('Guest', '/log/explorer');
- insert into `role_operation`(role_name, operation) values('Guest', '/trace/explorer');
- insert into `role_operation`(role_name, operation) values('Guest', '/help/version');
- insert into `role_operation`(role_name, operation) values('Guest', '/help/contact');
-
- insert into `role_operation`(role_name, operation) values('Standard', '/metric/explorer');
- insert into `role_operation`(role_name, operation) values('Standard', '/object/explorer');
- insert into `role_operation`(role_name, operation) values('Standard', '/log/explorer');
- insert into `role_operation`(role_name, operation) values('Standard', '/trace/explorer');
- insert into `role_operation`(role_name, operation) values('Standard', '/help/version');
- insert into `role_operation`(role_name, operation) values('Standard', '/help/contact');
- insert into `role_operation`(role_name, operation) values('Standard', '/help/servers');
- insert into `role_operation`(role_name, operation) values('Standard', '/help/migrate');
- insert into `role_operation`(role_name, operation) values('Standard', '/alert-rules-built-in');
- insert into `role_operation`(role_name, operation) values('Standard', '/dashboards-built-in');
- insert into `role_operation`(role_name, operation) values('Standard', '/trace/dependencies');
-
- insert into `role_operation`(role_name, operation) values('Admin', '/help/source');
- insert into `role_operation`(role_name, operation) values('Admin', '/help/sso');
- insert into `role_operation`(role_name, operation) values('Admin', '/help/notification-tpls');
- insert into `role_operation`(role_name, operation) values('Admin', '/help/notification-settings');
-
- insert into `role_operation`(role_name, operation) values('Standard', '/users');
- insert into `role_operation`(role_name, operation) values('Standard', '/user-groups');
- insert into `role_operation`(role_name, operation) values('Standard', '/user-groups/add');
- insert into `role_operation`(role_name, operation) values('Standard', '/user-groups/put');
- insert into `role_operation`(role_name, operation) values('Standard', '/user-groups/del');
- insert into `role_operation`(role_name, operation) values('Standard', '/busi-groups');
- insert into `role_operation`(role_name, operation) values('Standard', '/busi-groups/add');
- insert into `role_operation`(role_name, operation) values('Standard', '/busi-groups/put');
- insert into `role_operation`(role_name, operation) values('Standard', '/busi-groups/del');
- insert into `role_operation`(role_name, operation) values('Standard', '/targets');
- insert into `role_operation`(role_name, operation) values('Standard', '/targets/add');
- insert into `role_operation`(role_name, operation) values('Standard', '/targets/put');
- insert into `role_operation`(role_name, operation) values('Standard', '/targets/del');
- insert into `role_operation`(role_name, operation) values('Standard', '/dashboards');
- insert into `role_operation`(role_name, operation) values('Standard', '/dashboards/add');
- insert into `role_operation`(role_name, operation) values('Standard', '/dashboards/put');
- insert into `role_operation`(role_name, operation) values('Standard', '/dashboards/del');
- insert into `role_operation`(role_name, operation) values('Standard', '/alert-rules');
- insert into `role_operation`(role_name, operation) values('Standard', '/alert-rules/add');
- insert into `role_operation`(role_name, operation) values('Standard', '/alert-rules/put');
- insert into `role_operation`(role_name, operation) values('Standard', '/alert-rules/del');
- insert into `role_operation`(role_name, operation) values('Standard', '/alert-mutes');
- insert into `role_operation`(role_name, operation) values('Standard', '/alert-mutes/add');
- insert into `role_operation`(role_name, operation) values('Standard', '/alert-mutes/del');
- insert into `role_operation`(role_name, operation) values('Standard', '/alert-subscribes');
- insert into `role_operation`(role_name, operation) values('Standard', '/alert-subscribes/add');
- insert into `role_operation`(role_name, operation) values('Standard', '/alert-subscribes/put');
- insert into `role_operation`(role_name, operation) values('Standard', '/alert-subscribes/del');
- insert into `role_operation`(role_name, operation) values('Standard', '/alert-cur-events');
- insert into `role_operation`(role_name, operation) values('Standard', '/alert-cur-events/del');
- insert into `role_operation`(role_name, operation) values('Standard', '/alert-his-events');
- insert into `role_operation`(role_name, operation) values('Standard', '/job-tpls');
- insert into `role_operation`(role_name, operation) values('Standard', '/job-tpls/add');
- insert into `role_operation`(role_name, operation) values('Standard', '/job-tpls/put');
- insert into `role_operation`(role_name, operation) values('Standard', '/job-tpls/del');
- insert into `role_operation`(role_name, operation) values('Standard', '/job-tasks');
- insert into `role_operation`(role_name, operation) values('Standard', '/job-tasks/add');
- insert into `role_operation`(role_name, operation) values('Standard', '/job-tasks/put');
- insert into `role_operation`(role_name, operation) values('Standard', '/recording-rules');
- insert into `role_operation`(role_name, operation) values('Standard', '/recording-rules/add');
- insert into `role_operation`(role_name, operation) values('Standard', '/recording-rules/put');
- insert into `role_operation`(role_name, operation) values('Standard', '/recording-rules/del');
-
- -- for alert_rule | collect_rule | mute | dashboard grouping
- CREATE TABLE `busi_group` (
- `id` integer primary key autoincrement,
- `name` varchar(191) not null unique,
- `label_enable` tinyint(1) not null default 0,
- `label_value` varchar(191) not null default '',
- `create_at` bigint not null default 0,
- `create_by` varchar(64) not null default '',
- `update_at` bigint not null default 0,
- `update_by` varchar(64) not null default ''
- );
-
- 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');
-
- CREATE TABLE `busi_group_member` (
- `id` integer primary key autoincrement,
- `busi_group_id` bigint not null,
- `user_group_id` bigint not null,
- `perm_flag` char(2) not null
- );
- CREATE INDEX `idx_busi_group_member_busi_group_id` ON `busi_group_member` (`busi_group_id` asc);
- CREATE INDEX `idx_busi_group_member_user_group_id` ON `busi_group_member` (`user_group_id` asc);
-
- insert into busi_group_member(busi_group_id, user_group_id, perm_flag) values(1, 1, 'rw');
-
- -- for dashboard new version
- CREATE TABLE `board` (
- `id` integer primary key autoincrement,
- `group_id` bigint not null default 0,
- `name` varchar(191) not null,
- `ident` varchar(200) not null default '',
- `tags` varchar(255) not null,
- `public` tinyint(1) not null default 0,
- `built_in` tinyint(1) not null default 0,
- `hide` tinyint(1) not null default 0,
- `create_at` bigint not null default 0,
- `create_by` varchar(64) not null default '',
- `update_at` bigint not null default 0,
- `update_by` varchar(64) not null default '',
- `public_cate` bigint not null default 0
- );
- CREATE UNIQUE INDEX idx_board_group_id_name ON `board` (group_id, name);
- CREATE INDEX `idx_board_ident` ON `board` (`ident` asc);
-
- -- for dashboard new version
- CREATE TABLE `board_payload` (
- `id` bigint unsigned not null unique,
- `payload` mediumtext not null
- );
-
- CREATE TABLE `chart` (
- `id` integer primary key autoincrement,
- `group_id` integer not null,
- `configs` text,
- `weight` integer not null default 0
- );
-
- CREATE INDEX idx_chart_group_id ON `chart` (group_id);
-
- CREATE TABLE `chart_share` (
- `id` integer primary key autoincrement,
- `cluster` varchar(128) not null,
- `datasource_id` bigint unsigned not null default 0,
- `configs` text,
- `create_at` bigint not null default 0,
- `create_by` varchar(64) not null default ''
- );
- CREATE INDEX `idx_chart_share_create_at` ON `chart_share` (`create_at` asc);
-
- CREATE TABLE `alert_rule` (
- `id` integer primary key autoincrement,
- `group_id` bigint not null default 0,
- `cate` varchar(128) not null,
- `datasource_ids` varchar(255) not null default '',
- `cluster` varchar(128) not null,
- `name` varchar(255) not null,
- `note` varchar(1024) not null default '',
- `prod` varchar(255) not null default '',
- `algorithm` varchar(255) not null default '',
- `algo_params` varchar(255),
- `delay` int not null default 0,
- `severity` tinyint(1) not null,
- `disabled` tinyint(1) not null,
- `prom_for_duration` int not null,
- `rule_config` text not null,
- `prom_ql` text not null,
- `prom_eval_interval` int not null,
- `enable_stime` varchar(255) not null default '00:00',
- `enable_etime` varchar(255) not null default '23:59',
- `enable_days_of_week` varchar(255) not null default '',
- `enable_in_bg` tinyint(1) not null default 0,
- `notify_recovered` tinyint(1) not null,
- `notify_channels` varchar(255) not null default '',
- `notify_groups` varchar(255) not null default '',
- `notify_repeat_step` int not null default 0,
- `notify_max_number` int not null default 0,
- `recover_duration` int not null default 0 ,
- `callbacks` varchar(4096) not null default '',
- `runbook_url` varchar(4096),
- `append_tags` varchar(255) not null default '',
- `annotations` text not null,
- `extra_config` text not null,
- `create_at` bigint not null default 0,
- `create_by` varchar(64) not null default '',
- `update_at` bigint not null default 0,
- `update_by` varchar(64) not null default '',
- `cron_pattern` varchar(64),
- `datasource_queries` text
- );
- CREATE INDEX `idx_alert_rule_group_id` ON `alert_rule` (`group_id` asc);
- CREATE INDEX `idx_alert_rule_update_at` ON `alert_rule` (`update_at` asc);
-
- CREATE TABLE `alert_mute` (
- `id` integer primary key autoincrement,
- `group_id` bigint not null default 0,
- `prod` varchar(255) not null default '',
- `note` varchar(1024) not null default '',
- `cate` varchar(128) not null,
- `cluster` varchar(128) not null,
- `datasource_ids` varchar(255) not null default '',
- `tags` varchar(4096) default '[]',
- `cause` varchar(255) not null default '',
- `btime` bigint not null default 0,
- `etime` bigint not null default 0,
- `disabled` tinyint(1) not null default 0,
- `mute_time_type` tinyint(1) not null default 0,
- `periodic_mutes` varchar(4096) not null default '',
- `severities` varchar(32) not null default '',
- `create_at` bigint not null default 0,
- `create_by` varchar(64) not null default '',
- `update_at` bigint not null default 0,
- `update_by` varchar(64) not null default ''
- );
- CREATE INDEX `idx_alert_mute_create_at` ON `alert_mute` (`create_at` asc);
- CREATE INDEX `idx_alert_mute_group_id` ON `alert_mute` (`group_id` asc);
-
- CREATE TABLE `alert_subscribe` (
- `id` integer primary key autoincrement,
- `name` varchar(255) not null default '',
- `disabled` tinyint(1) not null default 0,
- `group_id` bigint not null default 0,
- `prod` varchar(255) not null default '',
- `cate` varchar(128) not null,
- `datasource_ids` varchar(255) not null default '',
- `cluster` varchar(128) not null,
- `rule_id` bigint not null default 0,
- `severities` varchar(32) not null default '',
- `tags` varchar(4096) not null default '',
- `redefine_severity` tinyint(1) default 0,
- `new_severity` tinyint(1) not null,
- `redefine_channels` tinyint(1) default 0,
- `new_channels` varchar(255) not null default '',
- `user_group_ids` varchar(250) not null,
- `busi_groups` VARCHAR(4096) NOT NULL DEFAULT '[]',
- `note` VARCHAR(1024) DEFAULT '',
- `rule_ids` VARCHAR(1024) DEFAULT '',
- `webhooks` text not null,
- `extra_config` text not null,
- `redefine_webhooks` tinyint(1) default 0,
- `for_duration` bigint not null default 0,
- `create_at` bigint not null default 0,
- `create_by` varchar(64) not null default '',
- `update_at` bigint not null default 0,
- `update_by` varchar(64) not null default ''
- );
- CREATE INDEX `idx_alert_subscribe_update_at` ON `alert_subscribe` (`update_at` asc);
- CREATE INDEX `idx_alert_subscribe_group_id` ON `alert_subscribe` (`group_id` asc);
-
-
- CREATE TABLE `target` (
- `id` integer primary key autoincrement,
- `group_id` bigint not null default 0,
- `ident` varchar(191) not null unique,
- `note` varchar(255) not null default '',
- `tags` varchar(512) not null default '',
- `host_ip` varchar(15) default '',
- `agent_version` varchar(255) default '',
- `host_tags` text,
- `engine_name` varchar(255) default '',
- `os` varchar(31) default '',
- `update_at` bigint not null default 0
- );
-
- CREATE INDEX `idx_target_group_id` ON `target` (`group_id` asc);
- CREATE UNIQUE INDEX idx_target_ident ON `target` (ident);
- CREATE INDEX idx_host_ip ON `target` (host_ip);
- CREATE INDEX idx_agent_version ON `target` (agent_version);
- CREATE INDEX idx_engine_name ON `target` (engine_name);
- CREATE INDEX idx_os ON `target` (os);
-
- CREATE TABLE `metric_view` (
- `id` integer primary key autoincrement,
- `name` varchar(191) not null default '',
- `cate` tinyint(1) not null,
- `configs` varchar(8192) not null default '',
- `create_at` bigint not null default 0,
- `create_by` bigint not null default 0,
- `update_at` bigint not null default 0
- );
- CREATE INDEX `idx_metric_view_create_by` ON `metric_view` (`create_by` asc);
-
- insert into metric_view(name, cate, configs) values('Host View', 0, '{"filters":[{"oper":"=","label":"__name__","value":"cpu_usage_idle"}],"dynamicLabels":[],"dimensionLabels":[{"label":"ident","value":""}]}');
-
- CREATE TABLE `recording_rule` (
- `id` integer primary key autoincrement,
- `group_id` bigint not null default '0',
- `datasource_ids` varchar(255) not null default '',
- `cluster` varchar(128) not null,
- `name` varchar(255) not null,
- `note` varchar(255) not null,
- `disabled` tinyint(1) not null default 0,
- `prom_ql` varchar(8192) not null,
- `prom_eval_interval` int not null,
- `cron_pattern` varchar(255) default '',
- `append_tags` varchar(255) default '',
- `query_configs` text not null,
- `create_at` bigint default '0',
- `create_by` varchar(64) default '',
- `update_at` bigint default '0',
- `update_by` varchar(64) default '',
- `datasource_queries` text
- );
- CREATE INDEX `idx_recording_rule_group_id` ON `recording_rule` (`group_id` asc);
- CREATE INDEX `idx_recording_rule_update_at` ON `recording_rule` (`update_at` asc);
-
- CREATE TABLE `alert_aggr_view` (
- `id` integer primary key autoincrement,
- `name` varchar(191) not null default '',
- `rule` varchar(2048) not null default '',
- `format` varchar(2048) not null default '',
- `cate` tinyint(1) not null,
- `create_at` bigint not null default 0,
- `create_by` bigint not null default 0,
- `update_at` bigint not null default 0
- );
- CREATE INDEX `idx_alert_aggr_view_create_by` ON `alert_aggr_view` (`create_by` asc);
-
- insert into alert_aggr_view(name, rule, cate) values('By BusiGroup, Severity', 'field:group_name::field:severity', 0);
- insert into alert_aggr_view(name, rule, cate) values('By RuleName', 'field:rule_name', 0);
-
- CREATE TABLE `alert_cur_event` (
- `id` integer primary key autoincrement,
- `cate` varchar(128) not null,
- `datasource_id` bigint not null default 0,
- `cluster` varchar(128) not null,
- `group_id` bigint unsigned not null,
- `group_name` varchar(255) not null default '',
- `hash` varchar(64) not null,
- `rule_id` bigint unsigned not null,
- `rule_name` varchar(255) not null,
- `rule_note` varchar(2048) not null default 'alert rule note',
- `rule_prod` varchar(255) not null default '',
- `rule_algo` varchar(255) not null default '',
- `severity` tinyint(1) not null,
- `prom_for_duration` int not null,
- `prom_ql` varchar(8192) not null,
- `prom_eval_interval` int not null,
- `callbacks` varchar(255) not null default '',
- `runbook_url` varchar(255),
- `notify_recovered` tinyint(1) not null,
- `notify_channels` varchar(255) not null default '',
- `notify_groups` varchar(255) not null default '',
- `notify_repeat_next` bigint not null default 0,
- `notify_cur_number` int not null default 0,
- `target_ident` varchar(191) not null default '',
- `target_note` varchar(191) not null default '',
- `first_trigger_time` bigint,
- `trigger_time` bigint not null,
- `trigger_value` varchar(2048) not null,
- `annotations` text not null,
- `rule_config` text not null,
- `tags` varchar(1024) not null default ''
- );
- CREATE INDEX `idx_alert_cur_event_hash` ON `alert_cur_event` (`hash` asc);
- CREATE INDEX `idx_alert_cur_event_rule_id` ON `alert_cur_event` (`rule_id` asc);
- CREATE INDEX `idx_alert_cur_event_trigger_time_group_id` ON `alert_cur_event` (`trigger_time`, `group_id` asc);
- CREATE INDEX `idx_alert_cur_event_notify_repeat_next` ON `alert_cur_event` (`notify_repeat_next` asc);
-
- CREATE TABLE `alert_his_event` (
- `id` integer primary key autoincrement,
- `is_recovered` tinyint(1) not null,
- `cate` varchar(128) not null,
- `datasource_id` bigint not null default 0,
- `cluster` varchar(128) not null,
- `group_id` bigint unsigned not null,
- `group_name` varchar(255) not null default '',
- `hash` varchar(64) not null,
- `rule_id` bigint unsigned not null,
- `rule_name` varchar(255) not null,
- `rule_note` varchar(2048) not null default 'alert rule note',
- `rule_prod` varchar(255) not null default '',
- `rule_algo` varchar(255) not null default '',
- `severity` tinyint(1) not null,
- `prom_for_duration` int not null,
- `prom_ql` varchar(8192) not null,
- `prom_eval_interval` int not null,
- `callbacks` varchar(255) not null default '',
- `runbook_url` varchar(255),
- `notify_recovered` tinyint(1) not null,
- `notify_channels` varchar(255) not null default '',
- `notify_groups` varchar(255) not null default '',
- `notify_cur_number` int not null default 0,
- `target_ident` varchar(191) not null default '',
- `target_note` varchar(191) not null default '',
- `first_trigger_time` bigint,
- `trigger_time` bigint not null,
- `trigger_value` varchar(2048) not null,
- `recover_time` bigint not null default 0,
- `last_eval_time` bigint not null default 0,
- `original_tags` varchar(8192),
- `tags` varchar(1024) not null default '',
- `annotations` text not null,
- `rule_config` text not null
- );
- CREATE INDEX `idx_alert_his_event_last_eval_time` ON `alert_his_event` (`last_eval_time` asc);
- CREATE INDEX `idx_alert_his_event_hash` ON `alert_his_event` (`hash` asc);
- CREATE INDEX `idx_alert_his_event_rule_id` ON `alert_his_event` (`rule_id` asc);
- CREATE INDEX `idx_alert_his_event_trigger_time_group_id` ON `alert_his_event` (`trigger_time`, `group_id` asc);
-
- CREATE TABLE `board_busigroup` (
- `busi_group_id` bigint(20) NOT NULL DEFAULT '0',
- `board_id` bigint(20) NOT NULL DEFAULT '0',
- primary key (`busi_group_id`, `board_id`)
- );
-
- CREATE TABLE `builtin_components` (
- `id` integer primary key autoincrement,
- `ident` varchar(191) not null,
- `logo` varchar(191) not null,
- `readme` text not null,
- `created_at` bigint(20) not null default 0,
- `created_by` varchar(191) not null default '',
- `updated_at` bigint(20) not null default 0,
- `updated_by` varchar(191) not null default ''
- );
- CREATE INDEX `idx_builtin_components_ident` ON `builtin_components` (`ident` asc);
-
- CREATE TABLE `builtin_payloads` (
- `id` integer primary key autoincrement,
- `component_id` integer not null default 0,
- `uuid` integer not null,
- `type` varchar(191) not null,
- `component` varchar(191) not null,
- `cate` varchar(191) not null,
- `name` varchar(191) not null,
- `tags` varchar(191) not null default '',
- `content` longtext not null,
- `created_at` bigint(20) not null default 0,
- `created_by` varchar(191) not null default '',
- `updated_at` bigint(20) not null default 0,
- `updated_by` varchar(191) not null default ''
- );
- CREATE INDEX `idx_builtin_payloads_component` ON `builtin_payloads` (`component` asc);
- CREATE INDEX `idx_builtin_payloads_name` ON `builtin_payloads` (`name` asc);
- CREATE INDEX `idx_builtin_payloads_cate` ON `builtin_payloads` (`cate` asc);
- CREATE INDEX `idx_builtin_payloads_type` ON `builtin_payloads` (`type` asc);
- CREATE INDEX idx_uuid ON `builtin_payloads` (uuid);
-
-
- CREATE TABLE `notification_record` (
- `id` integer primary key autoincrement,
- `event_id` integer not null,
- `sub_id` integer,
- `channel` varchar(255) not null,
- `status` integer,
- `target` varchar(1024) not null,
- `details` varchar(2048) default '',
- `created_at` integer not null
- );
- CREATE INDEX idx_evt ON notification_record (event_id);
-
- CREATE TABLE `task_tpl` (
- `id` integer primary key autoincrement,
- `group_id` int unsigned not null,
- `title` varchar(255) not null default '',
- `account` varchar(64) not null,
- `batch` int unsigned not null default 0,
- `tolerance` int unsigned not null default 0,
- `timeout` int unsigned not null default 0,
- `pause` varchar(255) not null default '',
- `script` text not null,
- `args` varchar(512) not null default '',
- `tags` varchar(255) not null default '',
- `create_at` bigint not null default 0,
- `create_by` varchar(64) not null default '',
- `update_at` bigint not null default 0,
- `update_by` varchar(64) not null default ''
- );
- CREATE INDEX `idx_task_tpl_group_id` ON `task_tpl` (`group_id` asc);
-
- CREATE TABLE `task_tpl_host` (
- `ii` integer primary key autoincrement,
- `id` int unsigned not null,
- `host` varchar(128) not null
- );
- CREATE INDEX `idx_task_tpl_host_id_host` ON `task_tpl_host` (`id`, `host` asc);
-
- CREATE TABLE `task_record` (
- `id` integer primary key autoincrement,
- `event_id` bigint not null default 0,
- `group_id` bigint not null,
- `ibex_address` varchar(128) not null,
- `ibex_auth_user` varchar(128) not null default '',
- `ibex_auth_pass` varchar(128) not null default '',
- `title` varchar(255) not null default '',
- `account` varchar(64) not null,
- `batch` int unsigned not null default 0,
- `tolerance` int unsigned not null default 0,
- `timeout` int unsigned not null default 0,
- `pause` varchar(255) not null default '',
- `script` text not null,
- `args` varchar(512) not null default '',
- `create_at` bigint not null default 0,
- `create_by` varchar(64) not null default ''
- );
- CREATE INDEX `idx_task_record_create_at_group_id` ON `task_record` (`create_at`, `group_id` asc);
- CREATE INDEX `idx_task_record_create_by` ON `task_record` (`create_by` asc);
- CREATE INDEX `idx_task_record_event_id` ON `task_record` (`event_id` asc);
-
-
- CREATE TABLE `alerting_engines` (
- `id` integer primary key autoincrement,
- `instance` varchar(128) not null default '',
- `datasource_id` bigint not null default 0,
- `engine_cluster` varchar(128) not null default '',
- `clock` bigint not null
- );
-
- CREATE TABLE `datasource`
- (
- `id` integer primary key autoincrement,
- `name` varchar(191) not null default '' unique,
- `description` varchar(255) not null default '',
- `category` varchar(255) not null default '',
- `plugin_id` int unsigned not null default 0,
- `plugin_type` varchar(255) not null default '',
- `plugin_type_name` varchar(255) not null default '',
- `cluster_name` varchar(255) not null default '',
- `settings` text not null,
- `status` varchar(255) not null default '',
- `http` varchar(4096) not null default '',
- `auth` varchar(8192) not null default '',
- `is_default` tinyint not null default 0,
- `created_at` bigint not null default 0,
- `created_by` varchar(64) not null default '',
- `updated_at` bigint not null default 0,
- `updated_by` varchar(64) not null default ''
- );
-
- CREATE UNIQUE INDEX idx_datasource_name ON datasource (name);
-
- CREATE TABLE `builtin_cate` (
- `id` integer primary key autoincrement,
- `name` varchar(191) not null,
- `user_id` bigint not null default 0
- );
-
- CREATE TABLE `notify_tpl` (
- `id` integer primary key autoincrement,
- `channel` varchar(32) not null unique,
- `name` varchar(255) not null,
- `content` text not null,
- `create_at` bigint not null default 0,
- `create_by` varchar(64) not null default '',
- `update_at` bigint not null default 0,
- `update_by` varchar(64) not null default ''
- );
-
- CREATE UNIQUE INDEX idx_notify_tpl_channel ON notify_tpl (channel);
-
- CREATE TABLE `sso_config` (
- `id` integer primary key autoincrement,
- `name` varchar(191) not null unique,
- `content` text not null,
- `update_at` bigint not null default 0
- );
-
- CREATE UNIQUE INDEX idx_sso_config_name ON sso_config (name);
-
- CREATE TABLE `es_index_pattern` (
- `id` integer primary key autoincrement,
- `datasource_id` bigint not null default 0,
- `name` varchar(191) not null,
- `time_field` varchar(128) not null default '@timestamp',
- `allow_hide_system_indices` tinyint(1) not null default 0,
- `fields_format` varchar(4096) not null default '',
- `cross_cluster_enabled` int not null default 0,
- `create_at` bigint default '0',
- `create_by` varchar(64) default '',
- `update_at` bigint default '0',
- `update_by` varchar(64) default '',
- unique (`datasource_id`, `name`)
- );
-
- CREATE UNIQUE INDEX idx_es_index_pattern_datasource_id_name ON es_index_pattern (datasource_id, name);
-
- CREATE TABLE `builtin_metrics` (
- `id` integer primary key autoincrement,
- `collector` varchar(191) NOT NULL,
- `typ` varchar(191) NOT NULL,
- `name` varchar(191) NOT NULL,
- `unit` varchar(191) NOT NULL,
- `lang` varchar(191) NOT NULL DEFAULT '',
- `note` varchar(4096) NOT NULL,
- `expression` varchar(4096) NOT NULL,
- `created_at` bigint NOT NULL DEFAULT 0,
- `created_by` varchar(191) NOT NULL DEFAULT '',
- `updated_at` bigint NOT NULL DEFAULT 0,
- `updated_by` varchar(191) NOT NULL DEFAULT '',
- `uuid integer` not null default 0
- );
-
- CREATE UNIQUE INDEX idx_collector_typ_name ON builtin_metrics (lang, collector, typ, name);
- CREATE INDEX idx_collector ON builtin_metrics (collector);
- CREATE INDEX idx_typ ON builtin_metrics (typ);
- CREATE INDEX idx_builtinmetric_name ON builtin_metrics (name);
- CREATE INDEX idx_lang ON builtin_metrics (lang);
-
-
- CREATE TABLE `metric_filter` (
- `id` integer primary key autoincrement,
- `name` varchar(191) NOT NULL,
- `configs` varchar(4096) NOT NULL,
- `groups_perm` text,
- `create_at` bigint NOT NULL DEFAULT '0',
- `create_by` varchar(191) NOT NULL DEFAULT '',
- `update_at` bigint NOT NULL DEFAULT '0',
- `update_by` varchar(191) NOT NULL DEFAULT ''
- );
- CREATE INDEX `idx_metric_filter_name` ON `metric_filter` (`name` asc);
-
- CREATE TABLE `target_busi_group` (
- `id` integer primary key autoincrement,
- `target_ident` varchar(191) not null,
- `group_id` integer not null,
- `update_at` integer not null
- );
-
- CREATE UNIQUE INDEX idx_target_busi_group ON target_busi_group (target_ident, group_id);
-
-
- CREATE TABLE `dash_annotation` (
- `id` integer primary key autoincrement,
- `dashboard_id` bigint not null,
- `panel_id` varchar(191) not null,
- `tags` text,
- `description` text,
- `config` text,
- `time_start` bigint not null default 0,
- `time_end` bigint not null default 0,
- `create_at` bigint not null default 0,
- `create_by` varchar(64) not null default '',
- `update_at` bigint not null default 0,
- `update_by` varchar(64) not null default ''
- );
-
- CREATE TABLE `task_meta`
- (
- `id` integer primary key autoincrement,
- `title` varchar(255) not null default '',
- `account` varchar(64) not null,
- `batch` int unsigned not null default 0,
- `tolerance` int unsigned not null default 0,
- `timeout` int unsigned not null default 0,
- `pause` varchar(255) not null default '',
- `script` text not null,
- `args` varchar(512) not null default '',
- `stdin` varchar(1024) not null default '',
- `creator` varchar(64) not null default '',
- `created` timestamp not null default CURRENT_TIMESTAMP
- );
- CREATE INDEX `idx_task_meta_creator` ON `task_meta` (`creator` asc);
- CREATE INDEX `idx_task_meta_created` ON `task_meta` (`created` asc);
-
-
- /* start|cancel|kill|pause */
- CREATE TABLE `task_action`
- (
- `id` integer primary key autoincrement,
- `action` varchar(32) not null,
- `clock` bigint not null default 0
- );
-
- CREATE TABLE `task_scheduler`
- (
- `id` bigint unsigned not null,
- `scheduler` varchar(128) not null default ''
- );
- CREATE INDEX `idx_task_scheduler_id_scheduler` ON `task_scheduler` (`id`, `scheduler` asc);
-
- CREATE TABLE `task_scheduler_health`
- (
- `scheduler` varchar(128) not null unique,
- `clock` bigint not null
- );
- CREATE INDEX `idx_task_scheduler_health_clock` ON `task_scheduler_health` (`clock` asc);
-
- CREATE TABLE `task_host_doing`
- (
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `clock` bigint not null default 0,
- `action` varchar(16) not null
- );
- CREATE INDEX `idx_task_host_doing_id` ON `task_host_doing` (`id` asc);
- CREATE INDEX `idx_task_host_doing_host` ON `task_host_doing` (`host` asc);
-
- CREATE TABLE task_host_0
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_1
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_2
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_3
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_4
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_5
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_6
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_7
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_8
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_9
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_10
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_11
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_12
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_13
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_14
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_15
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_16
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_17
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_18
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_19
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_20
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_21
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_22
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_23
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_24
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_25
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_26
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_27
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_28
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_29
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_30
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_31
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_32
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_33
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_34
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_35
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_36
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_37
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_38
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_39
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_40
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_41
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_42
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_43
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_44
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_45
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_46
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_47
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_48
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_49
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_50
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_51
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_52
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_53
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_54
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_55
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_56
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_57
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_58
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_59
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_60
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_61
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_62
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_63
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_64
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_65
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_66
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_67
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_68
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_69
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_70
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_71
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_72
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_73
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_74
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_75
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_76
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_77
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_78
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_79
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_80
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_81
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_82
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_83
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_84
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_85
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_86
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_87
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_88
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_89
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_90
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_91
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_92
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_93
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_94
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_95
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_96
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_97
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_98
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_99
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
|