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 { /// /// 电话随访 /// [Table("phone_follow_up")] public class PhoneFollowUp : AuditedEntity, IHasConcurrencyStamp { public PhoneFollowUp(Guid id) : base(id) { } ///// ///// 病人登记ID ///// //[Column("patient_register_id")] //public Guid PatientRegisterId { get; set; } /// /// 随访内容 /// [Column("follow_up_content")] [StringLength(200)] public string FollowUpContent { get; set; } = null!; /// /// 回复内容 /// [Column("reply_content")] [StringLength(200)] public string? ReplyContent { get; set; } ///// ///// 随访计划ID ///// //[Column("follow_up_plan_id")] //public Guid? FollowUpPlanId { get; set; } /// /// 随访ID /// [Column("follow_up_id")] public Guid FollowUpId { get; set; } /// /// 随访日期 /// [Column("plan_follow_date")] public DateTime? PlanFollowDate { get; set; } /// /// 是否完成 /// [Column("is_complete")] [MaxLength(1)] public char IsComplete { get; set; } [Column("concurrency_stamp")] public string ConcurrencyStamp { get; set; } //[Column("creator_id")] //public Guid CreatorId { get; set; } //[Column("creation_time", TypeName = "timestamp without time zone")] //public DateTime CreationTime { get; set; } //[Column("last_modifier_id")] //public Guid LastModifierId { get; set; } //[Column("last_modification_time", TypeName = "timestamp without time zone")] //public DateTime LastModificationTime { get; set; } //[Column("concurrency_stamp")] //[StringLength(40)] //public string ConcurrencyStamp { get; set; } = null!; [ForeignKey(nameof(FollowUpId))] [InverseProperty("PhoneFollowUps")] public virtual FollowUp FollowUp { get; set; } = null!; //public override object[] GetKeys() //{ // return new object[] { PhoneFollowId }; //} } }