add data class diagram

pull/2/head
Override-6 2 years ago
parent 3e6e17d849
commit 22840a037c
Signed by untrusted user who does not match committer: maxime.batista
GPG Key ID: 8002CC4B4DD9ECA5

@ -0,0 +1,69 @@
@startuml
class Account {
- email: String
- phoneNumber: String
+ setMailAddress(String)
+ getMailAddress(): String
+ getPhoneNumber(): String
+ setPhoneNumber(String)
+ getUser(): AccountUser
}
Account --> "- user" AccountUser
Account --> "- teams *" Team
interface User {
+ getName(): String
+ getProfilePicture(): URI
+ getAge(): int
}
class AccountUser {
- name: String
- profilePicture: URI
- age: int
+ setName(String)
+ setProfilePicture(URI)
+ setAge(int)
}
AccountUser ..|> User
abstract class Member {
getUser(): User
}
Member --> "- user" User
class Coach {
'todo
}
class Player {
'todo
}
Player --|> Member
Coach --|> Member
class Team {
- name: String
- picture: URI
- mainColor: Color
- secondColor: Color
+ getName(): String
+ getPicture(): URI
+ getMainColor(): Color
+ getSecondColor(): Color
+ getCoachs(): array
+ getPlayers(): array
}
Team --> "- players *" Player
Team --> "- coachs *" Coach
@enduml
Loading…
Cancel
Save