using System;
using System.Collections.Generic;

namespace OnlineAssessment.Domain.Models
{
    public partial class Users
    {
        public Users()
        {
            ActivityLogs = new HashSet<ActivityLogs>();
            BookmarkedExams = new HashSet<BookmarkedExams>();
            BookmarkedPractices = new HashSet<BookmarkedPractices>();
            BookmarkedQuestions = new HashSet<BookmarkedQuestions>();
            ExamAttemptsAssessment = new HashSet<ExamAttemptsAssessment>();
            ExamSections = new HashSet<ExamSections>();
            Exams = new HashSet<Exams>();
            OrderPaymentCreatedByNavigation = new HashSet<OrderPayment>();
            OrderPaymentUpdatedByNavigation = new HashSet<OrderPayment>();
            OrderPaymentUser = new HashSet<OrderPayment>();
            OrdersCreatedByNavigation = new HashSet<Orders>();
            OrdersUpdatedByNavigation = new HashSet<Orders>();
            PasswordReset = new HashSet<PasswordReset>();
            PracticeAttemptsCreatedByNavigation = new HashSet<PracticeAttempts>();
            PracticeAttemptsUpdatedByNavigation = new HashSet<PracticeAttempts>();
            PracticesCreatedByNavigation = new HashSet<Practices>();
            PracticesUpdatedByNavigation = new HashSet<Practices>();
            QuestionBugsCreatedByNavigation = new HashSet<QuestionBugs>();
            QuestionBugsUpdatedByNavigation = new HashSet<QuestionBugs>();
            Questions = new HashSet<Questions>();
            SubscribedExamsCreatedByNavigation = new HashSet<SubscribedExams>();
            SubscribedExamsUpdatedByNavigation = new HashSet<SubscribedExams>();
            SubscribedPracticesCreatedByNavigation = new HashSet<SubscribedPractices>();
            SubscribedPracticesUpdatedByNavigation = new HashSet<SubscribedPractices>();
            Subscriptions = new HashSet<Subscriptions>();
            UserGroupMembers = new HashSet<UserGroupMembers>();
            UserLogs = new HashSet<UserLogs>();
        }

        public int Id { get; set; }
        public int RoleId { get; set; }
        public int InstituteId { get; set; }
        public int? LanguageId { get; set; }
        public int? RegistrationId { get; set; }
        public DateTime? RegistrationDatetime { get; set; }
        public string FirstName { get; set; }
        public string LastName { get; set; }
        public DateTime? DateOfBirth { get; set; }
        public string Gender { get; set; }
        public string EmailId { get; set; }
        public string MobileNo { get; set; }
        public string Photo { get; set; }
        public string Address { get; set; }
        public string City { get; set; }
        public string Country { get; set; }
        public string PinCode { get; set; }
        public string Latitude { get; set; }
        public string Longitude { get; set; }
        public string UserPassword { get; set; }
        public string UserSalt { get; set; }
        public string AccessToken { 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 int? BatchId { get; set; }
        public string Uuid { get; set; }
        public string StateCode { get; set; }

        public virtual UserGroups Batch { get; set; }
        public virtual Institutes Institute { get; set; }
        public virtual Languages Language { get; set; }
        public virtual Roles Role { get; set; }
        public virtual ICollection<ActivityLogs> ActivityLogs { get; set; }
        public virtual ICollection<BookmarkedExams> BookmarkedExams { get; set; }
        public virtual ICollection<BookmarkedPractices> BookmarkedPractices { get; set; }
        public virtual ICollection<BookmarkedQuestions> BookmarkedQuestions { get; set; }
        public virtual ICollection<ExamAttemptsAssessment> ExamAttemptsAssessment { get; set; }
        public virtual ICollection<ExamSections> ExamSections { get; set; }
        public virtual ICollection<Exams> Exams { get; set; }
        public virtual ICollection<OrderPayment> OrderPaymentCreatedByNavigation { get; set; }
        public virtual ICollection<OrderPayment> OrderPaymentUpdatedByNavigation { get; set; }
        public virtual ICollection<OrderPayment> OrderPaymentUser { get; set; }
        public virtual ICollection<Orders> OrdersCreatedByNavigation { get; set; }
        public virtual ICollection<Orders> OrdersUpdatedByNavigation { get; set; }
        public virtual ICollection<PasswordReset> PasswordReset { get; set; }
        public virtual ICollection<PracticeAttempts> PracticeAttemptsCreatedByNavigation { get; set; }
        public virtual ICollection<PracticeAttempts> PracticeAttemptsUpdatedByNavigation { get; set; }
        public virtual ICollection<Practices> PracticesCreatedByNavigation { get; set; }
        public virtual ICollection<Practices> PracticesUpdatedByNavigation { get; set; }
        public virtual ICollection<QuestionBugs> QuestionBugsCreatedByNavigation { get; set; }
        public virtual ICollection<QuestionBugs> QuestionBugsUpdatedByNavigation { get; set; }
        public virtual ICollection<Questions> Questions { get; set; }
        public virtual ICollection<SubscribedExams> SubscribedExamsCreatedByNavigation { get; set; }
        public virtual ICollection<SubscribedExams> SubscribedExamsUpdatedByNavigation { get; set; }
        public virtual ICollection<SubscribedPractices> SubscribedPracticesCreatedByNavigation { get; set; }
        public virtual ICollection<SubscribedPractices> SubscribedPracticesUpdatedByNavigation { get; set; }
        public virtual ICollection<Subscriptions> Subscriptions { get; set; }
        public virtual ICollection<UserGroupMembers> UserGroupMembers { get; set; }
        public virtual ICollection<UserLogs> UserLogs { get; set; }
    }
}
