SurveyVista/Model/Response.cs
2026-03-07 02:37:33 +01:00

29 lines
1,007 B
C#

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Model
{
public class Response
{
public int Id { get; set; }
public int QuestionnaireId { get; set; } // Foreign Key to Questionnaire
[ForeignKey("QuestionnaireId")]
public Questionnaire? Questionnaire { get; set; }
public string? UserName { get; set; } // To store the user's name
public string? UserEmail { get; set; } // To store the user's email
public DateTime SubmissionDate { get; set; }
public List<ResponseDetail> ResponseDetails { get; set; } = new List<ResponseDetail>();
public List<CaseNote> CaseNotes { get; set; } = new List<CaseNote>();
public List<CaseStatusEntry> StatusHistory { get; set; } = new List<CaseStatusEntry>();
public List<ActionPlan> ActionPlans { get; set; } = new List<ActionPlan>();
}
}