# Проєктування бази даних
## BE модель
@startuml
entity Account
entity Account.username <>
entity Account.password <>
entity Survey
entity Survey.name <>
entity Survey.duration <>
entity Survey.isPaused <>
entity Survey.isNamed <>
entity Question
entity Question.text <>
entity Responce
entity Responce.value <>
Account.username --* Account
Account.password --* Account
Survey.name --* Survey
Survey.duration --* Survey
Survey.isPaused --* Survey
Survey.isNamed --* Survey
Responce.value -u-* Responce
Question.text -u-* Question
Account "1,1" -- "0,*" Survey
Survey "1,1" -- "0,*" Question
Question "1,1" -r- "0,*" Responce
Account "0,1" -r- "0,*" Responce
@enduml