feat: Implement database schema, relationships and models for survey application

- Designed an ERD (Entity-Relationship Diagram) for the survey system.
- Defined entities: User, Survey, Question, Choice, Response, and Answer.
- Established relationships:
  - Users can author multiple surveys.
  - Surveys contain multiple questions.
  - Questions have multiple choices.
  - Surveys can have multiple responses from participants.
  - Responses are linked to answers, questions, and choices.
- Ensured compliance with best practices for relational database design.
Note : no migration yet
This commit is contained in:
2025-01-19 12:45:19 -08:00
commit 2fa9c6fa80
15 changed files with 276 additions and 0 deletions

25
survey-beta.sln Normal file
View File

@@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.11.35312.102
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "survey-beta", "survey-beta\survey-beta.csproj", "{7A5087A4-5EFE-49C8-AD7A-A2AC9F815C32}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{7A5087A4-5EFE-49C8-AD7A-A2AC9F815C32}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{7A5087A4-5EFE-49C8-AD7A-A2AC9F815C32}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7A5087A4-5EFE-49C8-AD7A-A2AC9F815C32}.Release|Any CPU.ActiveCfg = Release|Any CPU
{7A5087A4-5EFE-49C8-AD7A-A2AC9F815C32}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {AD3F914F-11E0-46E6-A86F-6C7743255DC4}
EndGlobalSection
EndGlobal