-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.puml
72 lines (63 loc) · 1.2 KB
/
schema.puml
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
71
72
@startuml
hide circle
entity "Genomic Island" as gi {
id : int <<generated>>
--
name : text !null unique
role : text
}
entity "Genomic Island Type" as gi_type {
--
gi : int !null <<FK>>
type : text !null
}
entity "Alternate Names" as an {
--
gi : int !null <<FK>>
name : text !null
}
entity "Sequence" as seq {
id : int <<generated>>
--
gi : int !null <<FK>>
gbuid : text unique
start : int
end : int
gc : float
length : int
path : text unique
}
entity "Source" as src {
id : int <<generated>>
--
gi : int !null <<FK>>
strain : int !null <<FK>>
start : int
end : int
seq : int unique <<FK>>
}
entity "Strain" as strain {
id : int <<generated>>
--
gbuid : text unique
name : text !null unique
}
entity "Publications" as pub {
id : int <<generated>>
--
publication : text !null unique
doi : text unique
}
entity "Source-Publication Assoc" as srcpub {
source : int !null <<FK>>
publication : int !null <<FK>>
}
seq::gi --> gi::id
an::gi --> gi::id
gi_type::gi --> gi::id
src::seq --> seq::id
src::gi --> gi::id
src::strain --> strain::id
srcpub::source --> src::id
srcpub::publication --> pub::id
@enduml