using System;
using System.Collections.Generic;

#nullable disable

namespace Ropin.Inspection.Model.Entities
{
    public partial class TSYS_Org
    {
        public TSYS_Org()
        {
            InverseC_ParentCodeNavigation = new HashSet<TSYS_Org>();
            TPNT_StoreOrgs = new HashSet<TPNT_StoreOrg>();
            TSYS_Users = new HashSet<TSYS_User>();
        }

        public int K_ID { get; set; }
        public string C_LicenseCode { get; set; }
        public Guid C_Code { get; set; }
        public string C_Name { get; set; }
        public string C_SName { get; set; }
        public string C_LName { get; set; }
        public string C_Level { get; set; }
        public Guid? C_ParentCode { get; set; }
        public string C_Type { get; set; }
        public string C_Phone { get; set; }
        public string C_Linker { get; set; }
        public string C_GIS { get; set; }
        public int? I_Sort { get; set; }
        public string C_Remark { get; set; }
        public Guid C_CreateBy { get; set; }
        public DateTime D_CreateOn { get; set; }
        public Guid? C_LastUpdatedBy { get; set; }
        public DateTime? D_LastUpdatedOn { get; set; }
        public string C_Status { get; set; }

        public virtual TSYS_User C_CreateByNavigation { get; set; }
        public virtual TSYS_User C_LastUpdatedByNavigation { get; set; }
        public virtual TSYS_License C_LicenseCodeNavigation { get; set; }
        public virtual TSYS_Org C_ParentCodeNavigation { get; set; }
        public virtual ICollection<TSYS_Org> InverseC_ParentCodeNavigation { get; set; }
        public virtual ICollection<TPNT_StoreOrg> TPNT_StoreOrgs { get; set; }
        public virtual ICollection<TSYS_User> TSYS_Users { get; set; }
    }
}