using System;
using System.Collections.Generic;

namespace OnlineAssessment.Domain.Models
{
    public partial class ExamAttempts
    {
        public ExamAttempts()
        {
            ExamAttemptsAnswer = new HashSet<ExamAttemptsAnswer>();
        }

        public int Id { get; set; }
        public int ExamId { get; set; }
        public int UserId { get; set; }
        public int RemainingTimeMinutes { get; set; }
        public string AssessmentStatus { get; set; }
        public short? Score { get; set; }
        public short? AverageTimeTaken { get; set; }
        public DateTime? StartedOn { get; set; }
        public DateTime? CompletedOn { get; set; }
        public string Status { get; set; }
        public DateTime? CreatedOn { get; set; }
        public int? CreatedBy { get; set; }
        public DateTime? UpdatedOn { get; set; }
        public int? UpdatedBy { get; set; }
        public bool? IsActive { get; set; }

        public virtual Exams Exam { get; set; }
        public virtual Users User { get; set; }
        public virtual ICollection<ExamAttemptsAnswer> ExamAttemptsAnswer { get; set; }
    }
}
