diff --git a/Mod%C3%A8le-logique-de-donn%C3%A9es.md b/Mod%C3%A8le-logique-de-donn%C3%A9es.md new file mode 100644 index 0000000..8b66094 --- /dev/null +++ b/Mod%C3%A8le-logique-de-donn%C3%A9es.md @@ -0,0 +1,62 @@ +```plantuml +@startuml + +title MLD + +object Bet { + id + theme + endRegistration + endBet + sentence + isPrivate + # createdBy + status + type +} + +object BetResponse { + # betId + response +} + +object User { + id + username + password + coins + email + lastGift +} + +object Participation { + id + # betId + # user + answer + stake +} + +object BetResult { + # betId + result +} + +object BetResultNotification { + # betId + # user +} + + +Bet "*" -- "1" BetResponse : responses +Bet "1" -- "*" User : creator + +Participation "1" -- "*" User : author +Participation "1" -- "*" Bet : participateTo + +BetResult "1" -- "1" Bet +BetResultNotification "1" -- "*" Bet +BetResultNotification "1" -- "*" User + +@enduml +``` \ No newline at end of file