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("sms_send")] public class SmsSend : AuditedEntity, IHasConcurrencyStamp { public SmsSend(Guid id) : base(id) { } /// /// 短信类别ID 随访-01 /// [Column("sms_type_id")] [StringLength(2)] public string SmsTypeId { get; set; } /// /// 随访ID /// [Column("follow_up_id")] public Guid FollowUpId { get; set; } ///// ///// 随访计划ID ///// //[Column("follow_up_plan_id")] //public Guid? FollowUpPlanId { get; set; } /// /// 人员ID /// [Column("patient_id")] public Guid? PatientId { get; set; } /// /// 姓名 /// [Column("patient_name")] [StringLength(30)] public string PatientName { get; set; } = null!; /// /// 手机号 /// [Column("mobile_telephone")] [StringLength(11)] public string MobileTelephone { get; set; } = null!; /// /// 短信内容 /// [Column("content")] [StringLength(200)] public string Content { get; set; } = null!; /// /// 是完成 /// [Column("is_complete")] [MaxLength(1)] public char IsComplete { get; set; } /// /// 短信推送时间 /// [Column("plan_send_date")] public DateTime? PlanSendDate { 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!; //public override object[] GetKeys() //{ // return new object[] { SmsSendId }; //} } }