diff --git a/EntitiesModel.puml b/EntitiesModel.puml index aa4b6ad..0d120e7 100644 --- a/EntitiesModel.puml +++ b/EntitiesModel.puml @@ -1,36 +1,32 @@ @startuml -class User extends UriEntity implements UserDetails { - username : String - password : String - email : String -} - class UriEntity { uri : String } -class Admin extends User {} -class Student extends User { - phoneNumber : String - name : String -} -class Owner extends User {} - class Property extends UriEntity { description : String } +class ApartmentDetails extends UriEntity{ + square : Float + numBathrooms : Integer + numBedrooms : Integer + hasAC : Boolean + hasElevator : Boolean +} + class Apartment extends Property { street : String number : String city : String } Owner "1" --up-- "*" Apartment : owner < +Apartment "1" --down-- "1" ApartmentDetails : details < class Room extends Property { } -Apartment "1" --left-- "*" Room : in < +Apartment "1" --right-- "*" Room : in < class Advertisement extends UriEntity { title : String @@ -45,4 +41,24 @@ class Visit extends UriEntity { Advertisement "1" --right-- "*" Visit : for < Student "1" --left-- "*" Visit : visitor < +class Review extends UriEntity { + title : String + description : String + rating : Double +} +Advertisement "1" --down-- "*" Review : about < + +class User extends UriEntity implements UserDetails { + username : String + password : String + email : String +} + +class Admin extends User {} +class Student extends User { + phoneNumber : String + name : String +} +class Owner extends User {} + @enduml diff --git a/README.md b/README.md index c28e9b7..eddbb4d 100644 --- a/README.md +++ b/README.md @@ -28,4 +28,4 @@ Spring Boot project including Spring REST, HATEOAS, JPA, etc. Additional details ## Entities Model -![EntityModelsDiagram](https://www.plantuml.com/plantuml/svg/5Sqn3i8m30NGdLF00LhlJ6Ne1X9InG5Cuf98YHFPFqBS7fZU-1O76qOjXrFMK4QKOmAwducCt_Ch8utdSB7G5AAOGwlqYDTflM_JrdPSB2Ig7-vigABmYNicazqf2KUdobbfLMHayLkBKkR-_nRH-FCB?v0) +![EntityModelsDiagram](https://www.plantuml.com/plantuml/svg/5Sqn3i8m30NGdLF00LhlJ6Ne1X9InG5Cuf98YHFPFqBS7fZU-1O76qOjXrFMK4QKOmAwducCt_Ch8utdSB7G5AAOGwlqYDTflM_JrdPSB2Ig7-vigABmYNicazqf2KUdobbfLMHayLkBKkR-_nRH-FCB?v2)