-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDDL
More file actions
23 lines (18 loc) · 643 Bytes
/
DDL
File metadata and controls
23 lines (18 loc) · 643 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#Phenol Explorer Data.. Compounds & classification
CREATE TABLE classification
(class VARCHAR,subclass VARCHAR,compound_name VARCHAR,compound_id INTEGER PRIMARY KEY);
CREATE TABLE compounds
(id INT PRIMARY KEY,
class VARCHAR,subclass VARCHAR,
compound_name VARCHAR,
mol_wt DECIMAL,synonyms VARCHAR,
formula VARCHAR,
cas_number VARCHAR,
chebi_id INTEGER,
pubchem_id INTEGER,
aglycones VARCHAR,
created_on TIMESTAMP,
updated_on TIMESTAMP);
ALTER TABLE compounds RENAME compound_id TO phenol_id;
ALTER TABLE phenol_rels RENAME compound_id TO phenol_id;
ALTER TABLE classification RENAME compound_id TO phenol_id;