added Answer.cs

This commit is contained in:
Вячеслав 2025-03-12 23:57:50 +05:00
parent 23a97fb900
commit 9b4670ab99
3 changed files with 14 additions and 0 deletions

View file

@ -0,0 +1,12 @@
namespace SurveyLib.Core.Models;
public class Answer
{
public int TryId { get; set; }
public int SurveyId { get; set; }
public int QuestionId { get; set; }
public string AnswerText { get; set; }
public Survey Survey { get; set; }
public QuestionBase Question { get; set; }
}

View file

@ -7,4 +7,5 @@ public class QuestionBase
public string Title { get; set; }
public Survey Survey { get; set; }
public ICollection<Answer> Answers { get; set; }
}

View file

@ -7,4 +7,5 @@ public class Survey
public string Description { get; set; }
public ICollection<QuestionBase> Questions { get; set; }
public ICollection<Answer> Answers { get; set; }
}