-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphageschema.sql
70 lines (67 loc) · 1.53 KB
/
phageschema.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
drop table if exists accounts;
create table accounts (
id integer primary key autoincrement,
username text not null,
password text not null,
firstName text not null,
lastName text not null,
studentYear text not null,
email text not null
);
drop table if exists phages;
create table phages (
id integer primary key autoincrement,
phageName text not null,
phageImage text,
googleDocImages text,
foundBy text,
author text,
yearFound text,
cityFound text,
stateFound text,
countryFound text,
gpsLat text,
gpsLong text,
soilSample text,
phageDiscovery text,
phageNaming text,
isoTemp text,
seqCompleted text,
seqFacility text,
seqMethod text,
genomeLength text,
genomeEnd text,
overhangLength text,
overhangSeq text,
gcContent text,
cluster text,
clusterLife text,
annotateStatus text,
phageMorph text,
morphType text,
phamerated text,
genBank text,
genBankLink text,
archiveStatus text,
freezerBoxNum text,
freezerBoxGridNum text,
fastaFile mediumblob,
fastqFile mediumblob,
rawsequenceFile mediumblob,
extraFile mediumblob
);
--drop table if exists phageHost;
--create table phageHost (
-- phageName text not null,
-- isolationHost text,
-- foreign key (phageName) references phages(phageName)
--);
drop table if exists activityLog;
create table activityLog (
phageName text not null,
username text,
datetime text,
activity text,
foreign key (phageName) references phages(phageName),
foreign key (username) references accounts(username)
);