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

30 lines
865 B
C#

using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace DamageAssesment.Api.Questions.Db
{
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; }
public string QuestionGroup { get; set; }
[ForeignKey("QuestionCategory")]
public int CategoryId { get; set; }
}
}