1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
-- Deploy reports
BEGIN;
CREATE TABLE reports (
id int not null auto_increment,
run_id varchar(36) not null,
node_name varchar(255),
organization_id int not null default 1,
start_time datetime,
end_time datetime,
total_res_count int default 0,
status enum("started", "success", "failure"),
run_list text,
resources blob,
data blob,
created_at datetime not null,
updated_at datetime not null,
primary key(id),
unique index(run_id),
index(organization_id),
index(node_name, organization_id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPRESSED;
COMMIT;
|