-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdaichi_object2_diagram.iuml
86 lines (75 loc) · 1.56 KB
/
daichi_object2_diagram.iuml
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
@startuml
title Object diagram No.2
object bank{
Name = "Tartu Bank"
}
object "bank admin" as a{
id = 1111
firstName = benjamin
lastName = franklin
username = admin
password = bankismine
email = [email protected]
}
object customer1{
name = "Alex"
username = "apple"
password = hello
email = [email protected]
}
object customer2{
name = "Bob"
username = "pear"
password = byebye
email = [email protected]
}
object customer3{
name = "Roy"
username = "pumpkin"
password = seeyou
email = [email protected]
}
object account1{
id = 23r23r234r
amount = 1000
currency_type = dollar
}
object account2{
id = veg4342f4
amount = 1000
currency_type = dollar
}
object account3{
id = 09jve0rvje0r
amount = 1000
currency_type = Euro
}
Object transaction1{
id = q349th345g93459p34
sender = Bob
reciever = Alex
amount = 1000
currency_type = dollar
title = "Paying the rent"
description = "too expensive"
}
Object transaction2{
id = 87g9o88tc65futof7
sender = Alex
reciever = Roy
amount = 500
currency_type = dollar
title = "Gift"
description = "buy something with this money"
}
bank o-- "1 .. n" a
customer1 o-- "1 .. n" account1
customer2 o-- "1 .. n" account2
customer3 o-- "1 .. n" account3
account1 *-- "0 .. n" transaction1
account2 *-- "0 .. n" transaction1
account2 *-- "0 .. n" transaction2
account3 *-- "0 .. n" transaction2
transaction1 *-- bank : converts the currency
transaction2 *-- bank : converts the currency
@enduml