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.

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