DamageAssessment_Backend/DamageAssesmentApi/DamageAssesment.Api.Answers/Db/Answer.cs
2023-08-15 23:52:30 -04:00

21 lines
520 B
C#

using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace DamageAssesment.Api.Answers.Db
{
public class Answer
{
[Key]
public int Id { get; set; }
[ForeignKey("Question")]
public int QuestionId { get; set; }
[StringLength(250)]
public string AnswerText { get; set; }
public string Comment { get; set; }
[ForeignKey("SurveyResponse")]
public int? SurveyResponseId { get; set; }
}
}