You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
70 lines
1.0 KiB
70 lines
1.0 KiB
@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
|