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.

91 lines
2.6 KiB

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("phone_follow_up")]
public class PhoneFollowUp : AuditedEntity<Guid>, IHasConcurrencyStamp
{
public PhoneFollowUp(Guid id) : base(id)
{
}
///// <summary>
///// 病人登记ID
///// </summary>
//[Column("patient_register_id")]
//public Guid PatientRegisterId { get; set; }
/// <summary>
/// 随访内容
/// </summary>
[Column("follow_up_content")]
[StringLength(200)]
public string FollowUpContent { get; set; } = null!;
/// <summary>
/// 回复内容
/// </summary>
[Column("reply_content")]
[StringLength(200)]
public string? ReplyContent { get; set; }
///// <summary>
///// 随访计划ID
///// </summary>
//[Column("follow_up_plan_id")]
//public Guid? FollowUpPlanId { get; set; }
/// <summary>
/// 随访ID
/// </summary>
[Column("follow_up_id")]
public Guid FollowUpId { get; set; }
/// <summary>
/// 随访日期
/// </summary>
[Column("plan_follow_date")]
public DateTime? PlanFollowDate { get; set; }
/// <summary>
/// 是否完成
/// </summary>
[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 };
//}
}
}