using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using Abp.Domain.Entities.Auditing; using ContractService.Authorization.Users; using ContractService.Configuration; using ContractService.LawFirm; namespace ContractService.Client { /// /// 客户组织结构 /// [Table("Cs_ClientOrganizations")] public class OrganizationInfo : CreationAuditedEntity { [MaxLength(IwbConsts.PrimaryKey)] public string ParentNo { get; set; } [ForeignKey("ParentNo")] public OrganizationInfo ParentInfo { get; set; } /// /// 组织名称 /// [MaxLength(50)] public string Name { get; set; } /// /// 组织描述 /// [MaxLength(500)] public string Description { get; set; } /// /// 路径 /// [MaxLength(1000)] public string Path { get; set; } /// /// 排序序号 /// public int Sort { get; set; } /// /// 公司信息 /// [MaxLength(IwbConsts.PrimaryKey)] public string CompanyNo { get; set; } [ForeignKey("CompanyNo")] public ClientCompanyInfo CompanyInfo { get; set; } /// /// 律所信息 /// [MaxLength(IwbConsts.PrimaryKey)] public string LawFirmNo { get; set; } [ForeignKey("LawFirmNo")] public LawFirmInfo LawFirmInfo { get; set; } } }