DamageAssessment_Backend/DamageAssesmentApi/DamageAssesment.Api.Answers/Db/Answer.cs
2023-10-12 16:01:24 -04:00

22 lines
543 B
C#

using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace DamageAssesment.Api.Answers.Db
{
[Table("Answers")]
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; }
}
}