using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using Abp.Domain.Entities.Auditing; using ContractService.Authorization.Users; using ContractService.Configuration; namespace ContractService.LegalContract { /// /// 补充合同 /// [Table("Ls_LegalContractSupplements")] public class LegalContractSupplementInfo : CreationAuditedEntity { /// /// 补充合同编号 /// [MaxLength(50)] public string Code { get; set; } /// /// 补充合同名称 /// [MaxLength(50)] public string Name { get; set; } /// /// 合同信息 /// [MaxLength(IwbConsts.PrimaryKey)] public string ContractNo { get; set; } [ForeignKey("ContractNo")] public LegalContractInfo ContractInfo { get; set; } /// /// 关键点信息 /// [MaxLength(IwbConsts.PrimaryKey)] public string KeyPointNo { get; set; } [ForeignKey("KeyPointNo")] public LegalContractKeyPointInfo KeyPointInfo { get; set; } /// /// 内容信息 /// [NotMapped] //不映射到数据库,内容存储到 LegalContractContentInfo public string ContentInfo { get; set; } [MaxLength(1000)] public string Remark { get; set; } } }