-
Notifications
You must be signed in to change notification settings - Fork 0
/
spisywarka.puml
54 lines (48 loc) · 945 Bytes
/
spisywarka.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
@startuml
title Spisywarka
hide empty methods
hide empty members
class Item {
- id : Uuid
- name : string
- category : Category
- year : ?integer
- format : ?string
- author : ?string
- publisher : ?string
- description : ?string
- store : ?string
- url : ?string
- slug : string
+ Loan[] getLoaned()
+ ItemCollection[] getCollections()
+ Collection[] getItemCollections()
+ void addCollection(ItemCollection)
+ bool isInCollection(Collection)
}
class Collection {
- id : Uuid
- name : string
- description : string
}
class Category {
- id : Uuid
- name : string
- description : string
}
class ItemCollection {
- item : Item
- collection : Collection
}
class Loan {
- id : Uuid
- item : Item
- loaner : ?string
- loanDate : ?DateTime
- returnDate : ?DateTime
}
Item "1" -- "*" Loan
Item "1" -- "1" Category
Item "1" - "*" ItemCollection
ItemCollection "1" -- "1" Collection
@enduml