//------------------------------------------------------------------------------
// <auto-generated>
//    이 코드는 템플릿에서 생성되었습니다.
//
//    이 파일을 수동으로 변경하면 응용 프로그램에 예기치 않은 동작이 발생할 수 있습니다.
//    코드가 다시 생성되면 이 파일에 대한 수동 변경 사항을 덮어씁니다.
// </auto-generated>
//------------------------------------------------------------------------------

namespace iBemsDataService.Model
{
    using System;
    using System.Collections.Generic;
    
    public partial class CmUser
    {
        public CmUser()
        {
            this.CmAnnouncement = new HashSet<CmAnnouncement>();
            this.CmUserToLicense = new HashSet<CmUserToLicense>();
            this.FmsDrawingHistory = new HashSet<FmsDrawingHistory>();
            this.FmsMaterialPurchaseOrder = new HashSet<FmsMaterialPurchaseOrder>();
            this.FmsMaterialPurchaseRequest = new HashSet<FmsMaterialPurchaseRequest>();
            this.FmsMaterialPurchaseRequest1 = new HashSet<FmsMaterialPurchaseRequest>();
            this.FmsMaterialStored = new HashSet<FmsMaterialStored>();
            this.FmsMaterialStored1 = new HashSet<FmsMaterialStored>();
            this.FmsWorkOrder = new HashSet<FmsWorkOrder>();
            this.FmsWorkRequest = new HashSet<FmsWorkRequest>();
            this.FmsWorkRequest1 = new HashSet<FmsWorkRequest>();
            this.FmsWorkResult = new HashSet<FmsWorkResult>();
            this.FmsWorkResult1 = new HashSet<FmsWorkResult>();
            this.FmsWorkSchedule = new HashSet<FmsWorkSchedule>();
            this.CmUserLoginHistory = new HashSet<CmUserLoginHistory>();
            this.FmsConstructionEstimation = new HashSet<FmsConstructionEstimation>();
            this.FmsManualHistory = new HashSet<FmsManualHistory>();
            this.FmsDailyCheckReport = new HashSet<FmsDailyCheckReport>();
            this.FmsFacilityOperationReport = new HashSet<FmsFacilityOperationReport>();
            this.FmsMonthlyReport = new HashSet<FmsMonthlyReport>();
            this.FmsMaterialRelease = new HashSet<FmsMaterialRelease>();
            this.FmsMaterialRelease1 = new HashSet<FmsMaterialRelease>();
            this.CmPatrolGroupUser = new HashSet<CmPatrolGroupUser>();
            this.FmsReport = new HashSet<FmsReport>();
            this.FmsReport1 = new HashSet<FmsReport>();
            this.FmsReport2 = new HashSet<FmsReport>();
            this.FmsEquipmentRentInfo = new HashSet<FmsEquipmentRentInfo>();
            this.FmsEquipmentRentInfo1 = new HashSet<FmsEquipmentRentInfo>();
            this.CmFacility = new HashSet<CmFacility>();
            this.CmFacility1 = new HashSet<CmFacility>();
            this.CmFacility2 = new HashSet<CmFacility>();
            this.CmFacility3 = new HashSet<CmFacility>();
            this.FmsDailyReport = new HashSet<FmsDailyReport>();
            this.FmsEquipment = new HashSet<FmsEquipment>();
        }
    
        public int SiteId { get; set; }
        public string UserId { get; set; }
        public Nullable<int> CompanyId { get; set; }
        public Nullable<int> DepartmentId { get; set; }
        public Nullable<int> PositionId { get; set; }
        public Nullable<int> BusinessFieldId { get; set; }
        public Nullable<int> UserGroupId { get; set; }
        public string Name { get; set; }
        public string Passwd { get; set; }
        public Nullable<System.DateTime> Birthday { get; set; }
        public Nullable<bool> Lunar { get; set; }
        public Nullable<int> StateId { get; set; }
        public Nullable<int> EmploymentType { get; set; }
        public Nullable<int> EmploymentStatus { get; set; }
        public string OfficePhoneNo { get; set; }
        public string HomePhoneNo { get; set; }
        public string MobilePhoneNo { get; set; }
        public string HomeZip1 { get; set; }
        public string HomeZip2 { get; set; }
        public string HomeAddress1 { get; set; }
        public string HomeAdderss2 { get; set; }
        public string Email { get; set; }
        public Nullable<System.DateTime> EnterDate { get; set; }
        public Nullable<System.DateTime> RetireDate { get; set; }
        public string Comment { get; set; }
        public string Rfcsn { get; set; }
        public Nullable<System.DateTime> PasswordUpdatedDate { get; set; }
        public Nullable<int> FileId { get; set; }
        public Nullable<bool> IsBems { get; set; }
        public Nullable<bool> IsUse { get; set; }
        public string Certificated { get; set; }
        public Nullable<bool> IsScheduleUser { get; set; }
        public Nullable<bool> IsSI { get; set; }
        public Nullable<bool> IsMobile { get; set; }
        public string Devicetoken { get; set; }
    
        public virtual ICollection<CmAnnouncement> CmAnnouncement { get; set; }
        public virtual CmBusinessField CmBusinessField { get; set; }
        public virtual CmCompany CmCompany { get; set; }
        public virtual CmDepartment CmDepartment { get; set; }
        public virtual CmPosition CmPosition { get; set; }
        public virtual ICollection<CmUserToLicense> CmUserToLicense { get; set; }
        public virtual ICollection<FmsDrawingHistory> FmsDrawingHistory { get; set; }
        public virtual ICollection<FmsMaterialPurchaseOrder> FmsMaterialPurchaseOrder { get; set; }
        public virtual ICollection<FmsMaterialPurchaseRequest> FmsMaterialPurchaseRequest { get; set; }
        public virtual ICollection<FmsMaterialPurchaseRequest> FmsMaterialPurchaseRequest1 { get; set; }
        public virtual ICollection<FmsMaterialStored> FmsMaterialStored { get; set; }
        public virtual ICollection<FmsMaterialStored> FmsMaterialStored1 { get; set; }
        public virtual ICollection<FmsWorkOrder> FmsWorkOrder { get; set; }
        public virtual ICollection<FmsWorkRequest> FmsWorkRequest { get; set; }
        public virtual ICollection<FmsWorkRequest> FmsWorkRequest1 { get; set; }
        public virtual ICollection<FmsWorkResult> FmsWorkResult { get; set; }
        public virtual ICollection<FmsWorkResult> FmsWorkResult1 { get; set; }
        public virtual ICollection<FmsWorkSchedule> FmsWorkSchedule { get; set; }
        public virtual CmUserGroup CmUserGroup { get; set; }
        public virtual ICollection<CmUserLoginHistory> CmUserLoginHistory { get; set; }
        public virtual ICollection<FmsConstructionEstimation> FmsConstructionEstimation { get; set; }
        public virtual ICollection<FmsManualHistory> FmsManualHistory { get; set; }
        public virtual ICollection<FmsDailyCheckReport> FmsDailyCheckReport { get; set; }
        public virtual ICollection<FmsFacilityOperationReport> FmsFacilityOperationReport { get; set; }
        public virtual ICollection<FmsMonthlyReport> FmsMonthlyReport { get; set; }
        public virtual ICollection<FmsMaterialRelease> FmsMaterialRelease { get; set; }
        public virtual ICollection<FmsMaterialRelease> FmsMaterialRelease1 { get; set; }
        public virtual ICollection<CmPatrolGroupUser> CmPatrolGroupUser { get; set; }
        public virtual ICollection<FmsReport> FmsReport { get; set; }
        public virtual ICollection<FmsReport> FmsReport1 { get; set; }
        public virtual ICollection<FmsReport> FmsReport2 { get; set; }
        public virtual ICollection<FmsEquipmentRentInfo> FmsEquipmentRentInfo { get; set; }
        public virtual ICollection<FmsEquipmentRentInfo> FmsEquipmentRentInfo1 { get; set; }
        public virtual ICollection<CmFacility> CmFacility { get; set; }
        public virtual ICollection<CmFacility> CmFacility1 { get; set; }
        public virtual ICollection<CmFacility> CmFacility2 { get; set; }
        public virtual ICollection<CmFacility> CmFacility3 { get; set; }
        public virtual ICollection<FmsDailyReport> FmsDailyReport { get; set; }
        public virtual ICollection<FmsEquipment> FmsEquipment { get; set; }
    }
}