You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
using System;using System.Collections.Generic;using System.ComponentModel.DataAnnotations;using System.ComponentModel.DataAnnotations.Schema;using Microsoft.EntityFrameworkCore;using Volo.Abp.Domain.Entities;using Volo.Abp.Domain.Entities.Auditing;
namespace Shentun.Peis.Models{ /// <summary>
/// 团检体检登记
/// </summary>
[Table("customer_org_register")] public class CustomerOrgRegister : AuditedEntity<Guid>, IHasConcurrencyStamp { public CustomerOrgRegister(Guid id):base(id) { }
public CustomerOrgRegister() { CustomerOrgCharges = new HashSet<CustomerOrgCharge>(); CustomerOrgGroups = new HashSet<CustomerOrgGroup>(); //PatientRegisters = new HashSet<PatientRegister>();
}
//[Key]
//[Column("customer_org_register_id")]
//public Guid CustomerOrgRegisterId { get; set; }
/// <summary>
/// 单位编号
/// </summary>
[Column("customer_org_id")] public Guid CustomerOrgId { get; set; }
/// <summary>
/// 单位体检次数
/// </summary>
[Column("medical_times")] public short MedicalTimes { get; set; } /// <summary>
/// 计划号
/// </summary>
[Column("register_no")] [StringLength(12)] public string? RegisterNo { get; set; } /// <summary>
/// 计划名称
/// </summary>
[Column("register_name")] [StringLength(50)] public string RegisterName { get; set; } = null!; /// <summary>
/// 开始日期
/// </summary>
[Column("begin_time")] public DateTime BeginTime { get; set; } /// <summary>
/// 结束日期
/// </summary>
[Column("end_time")] public DateTime? EndTime { get; set; } /// <summary>
/// 完成标志
/// </summary>
[Column("is_complete")] [MaxLength(1)] public char IsComplete { get; set; }
[Column("concurrency_stamp")] public string ConcurrencyStamp { get; set; }
///// <summary>
///// 最后修改者
///// </summary>
//[Column("last_modifier_id")]
//public Guid LastModifierId { get; set; }
///// <summary>
///// 最后修改日期
///// </summary>
//[Column("last_modification_time", TypeName = "timestamp without time zone")]
//public DateTime LastModificationTime { get; set; }
//[Column("creator_id")]
//public Guid CreatorId { get; set; }
//[Column("creation_time", TypeName = "timestamp without time zone")]
//public DateTime CreationTime { get; set; }
//[Column("concurrency_stamp")]
//[StringLength(40)]
//public string ConcurrencyStamp { get; set; } = null!;
[ForeignKey(nameof(CustomerOrgId))] [InverseProperty("CustomerOrgRegisters")] public virtual CustomerOrg CustomerOrg { get; set; } = null!; [InverseProperty(nameof(CustomerOrgCharge.CustomerOrgRegister))] public virtual ICollection<CustomerOrgCharge> CustomerOrgCharges { get; set; } [InverseProperty(nameof(CustomerOrgGroup.CustomerOrgRegister))] public virtual ICollection<CustomerOrgGroup> CustomerOrgGroups { get; set; } //[InverseProperty(nameof(PatientRegister.CustomerOrgRegister))]
//public virtual ICollection<PatientRegister> PatientRegisters { get; set; }
//public override object[] GetKeys()
//{
// return new object[] { CustomerOrgRegisterId };
//}
}}
|