DamageAssessment_Backend/DamageAssesmentApi/DamageAssesment.Api.Questions/Db/Question.cs

30 lines
840 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.Questions.Db
{
2023-10-12 15:01:24 -05:00
[Table("Questions")]
2023-08-15 22:52:30 -05:00
public class Question
{
[Key]
public int Id { get; set; }
[ForeignKey("QuestionType")]
public int QuestionTypeId { get; set; }
public QuestionType? QuestionType { get; set; }
//uncomment below propertiers
public int QuestionNumber { get; set; }
public bool IsRequired { get; set; }
public bool Comment { get; set; } //if Comment is true answer has user comment (survey response)
public bool Key { get; set; }
[ForeignKey("Survey")]
public int? SurveyId { get; set; }
[ForeignKey("QuestionCategory")]
public int CategoryId { get; set; }
}
}