-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathinit.sql
35 lines (32 loc) · 929 Bytes
/
init.sql
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
26
27
28
29
30
31
32
33
34
35
GRANT ALL PRIVILEGES ON DATABASE ship_ai_boa TO boa_user;
\c ship_ai_boa;
CREATE TABLE boa_entries (
id serial PRIMARY KEY,
task_id VARCHAR(255) NOT NULL,
orthanc_timestamp TIMESTAMP,
start_timestamp TIMESTAMP,
end_timestamp TIMESTAMP,
study_description VARCHAR(255),
accession_number VARCHAR(255),
series_description VARCHAR(255),
git_hash VARCHAR(255),
version VARCHAR(255),
download_time FLOAT,
inference_time FLOAT,
num_voxels INT,
num_slices INT,
num_slices_resampled INT,
bca_metrics_time FLOAT,
totalsegmentator_metrics_time FLOAT,
iv_contrast_phase INT,
git_contrast INT,
bca_regions INT,
excel_time FLOAT,
total_time FLOAT,
save_persistent_time FLOAT,
computed BOOLEAN,
UNIQUE (task_id)
);
GRANT SELECT ON boa_entries to boa_user;
GRANT INSERT,UPDATE ON boa_entries to boa_user;
GRANT USAGE,SELECT ON SEQUENCE boa_entries_id_seq to boa_user;