DamageAssessment_Backend/DamageAssesmentApi/DamageAssesment.Api.Answers/Db/Answer.cs

21 lines
520 B
C#
Raw Normal View History

2023-08-15 22:52:30 -05:00
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; }
}
}