mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2024-12-27 05:49:04 +01:00
11 lines
671 B
SQL
11 lines
671 B
SQL
CREATE TABLE job ( id INTEGER PRIMARY KEY,
|
|
job_id TEXT, user_id TEXT, project_id TEXT, cluster_id TEXT,
|
|
start_time INTEGER, stop_time INTEGER, duration INTEGER,
|
|
walltime INTEGER, job_state TEXT,
|
|
num_nodes INTEGER, node_list TEXT, has_profile INTEGER,
|
|
mem_used_max REAL, flops_any_avg REAL, mem_bw_avg REAL, ib_bw_avg REAL, file_bw_avg REAL);
|
|
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 );
|