Skip to content

Commit

Permalink
Update entities model with Review and ApartmentDetails
Browse files Browse the repository at this point in the history
  • Loading branch information
rogargon committed Oct 13, 2024
1 parent c69d272 commit aac7163
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 15 deletions.
44 changes: 30 additions & 14 deletions EntitiesModel.puml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit aac7163

Please sign in to comment.