Skip to content

Commit

Permalink
Merge pull request #33 from bardia-p/milestone1_issue16_schema_diagram
Browse files Browse the repository at this point in the history
Added ER diagrams for OpinionOwl.
  • Loading branch information
dorothytran authored Nov 11, 2023
2 parents 54c2074 + d75516a commit a3602b3
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 0 deletions.
Binary file added diagrams/Milestone1_ER_Diagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added diagrams/Milestone1_ER_Diagram_Intellij.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
51 changes: 51 additions & 0 deletions plantUmlFiles/ERDiagram.plantuml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
@startuml
entity "Answer" as answer {
*id : Long
*content : String
*description: String
}

entity "Response" as response {
*id : Long
}

entity "AppUser" as user{
*id : Long
*password : String
*username: String
}

entity "Survey" as survey {
*id : Long
*closed : boolean
*title: String
}

entity "Question" as question {
*id : Long
*prompt : String
*type: QuestionType
}

entity "RadioChoiceQuestion" as rcq {
*choices : String[]
}

entity "LongAnswerQuestion" as laq {
*charLimit : int
}

entity "RangeQuestion" as rq {
*increment: int
*lower: int
*upper: int
}

user ||--|{ survey
survey ||--|{ question
survey ||--|{ response
response||--|{ answer
question <|-- laq
question <|-- rcq
question <|-- rq
@enduml

0 comments on commit a3602b3

Please sign in to comment.