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

22 lines
543 B
C#
Raw Permalink 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
{
2023-10-12 15:01:24 -05:00
[Table("Answers")]
2023-08-15 22:52:30 -05:00
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; }
}
}