-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.uml
39 lines (32 loc) · 1 KB
/
.uml
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
@startuml
left to right direction
skinparam roundcorner 15
skinparam shadowing true
skinparam handwritten false
skinparam class {
BackgroundColor white
ArrowColor #2688d4
BorderColor #2688d4
}
!define table(x) entity x << (T, LightSkyBlue) >>
!define primary_key(x) <b><color:#b8861b><&key></color> x</b>
!define foreign_key(x) <color:#aaaaaa><&key></color> <u>x</u>
!define column(x) <color:#efefef><&media-record></color> x
!define column_fk(x) <color:#efefef><&media-record></color> <u>x</u>
table( recipe_ingredients ) {
foreign_key( recipe_id ): INTEGER
foreign_key( ingredient_id ): INTEGER
}
table( recipe_type ) {
primary_key( type_id ): INTEGER PRIMARY KEY
column( type_name ): TEXT NOT NULL
}
table( recipes ) {
primary_key( recipe_id ): INTEGER PRIMARY KEY
column( name ): TEXT
foreign_key( type_id ): INTEGER
}
ingredient_list::ingredient_id --> recipe_ingredients::ingredient_id
recipes::recipe_id --> recipe_ingredients::recipe_id
recipe_type::type_id --> recipes::type_id
@enduml