-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclass-diagram.puml
More file actions
57 lines (45 loc) · 890 Bytes
/
class-diagram.puml
File metadata and controls
57 lines (45 loc) · 890 Bytes
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
@startuml
class Recipe {
+ Id: Guid
+ Name: string
+ IsLiked: bool
+ Difficulty: uint
+ TotalEstimatedTime: TimeSpan
}
class Step {
+ Id: Guid
+ Name: string
+ Instruction: string
+ EstimatedTime: TimeSpan
}
class Ingredient {
+ Id: Guid
+ Quantity: uint
}
class Product {
+ Id: Guid
+ Name: string
}
class ProductType {
+ Id: Guid
+ Name: string
}
class Unit {
+ Id: Guid
+ Name: string
+ Symbol: string
}
class Stock {
+ Id: Guid
+ Quantity: uint
+ BestBeforeDate: Date
+ PurchaseDate: Date
}
Recipe "*" *--> "1" Step : + Steps
Recipe "*" *--> "1" Ingredient : + Ingredients
Ingredient "1" o--> "*" Product : + Product
Ingredient "1" o--> "*" Unit : + Unit
Product "1" o--> "*" ProductType : + ProductType
Stock "1" o--> "*" Product : + Product
Stock "1" o--> "*" Unit : + Unit
@enduml