2019-10-21 14:50:16 +02:00
|
|
|
CREATE TABLE job ( id INTEGER PRIMARY KEY,
|
|
|
|
job_id TEXT, user_id TEXT, project_id TEXT, cluster_id TEXT,
|
2021-02-17 14:13:50 +01:00
|
|
|
start_time INTEGER, duration INTEGER,
|
2019-10-21 14:50:16 +02:00
|
|
|
walltime INTEGER, job_state TEXT,
|
|
|
|
num_nodes INTEGER, node_list TEXT, has_profile INTEGER,
|
2021-02-17 14:13:50 +01:00
|
|
|
mem_used_max REAL, flops_any_avg REAL, mem_bw_avg REAL, net_bw_avg REAL, file_bw_avg REAL);
|
2019-10-21 14:50:16 +02:00
|
|
|
CREATE TABLE tag ( id INTEGER PRIMARY KEY, tag_type TEXT, tag_name TEXT);
|
|
|
|
CREATE TABLE jobtag ( job_id INTEGER, tag_id INTEGER, PRIMARY KEY (job_id, tag_id),
|
|
|
|
FOREIGN KEY (job_id) REFERENCES job (id) ON DELETE CASCADE ON UPDATE NO ACTION,
|
|
|
|
FOREIGN KEY (tag_id) REFERENCES tag (id) ON DELETE CASCADE ON UPDATE NO ACTION );
|