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

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.ComponentModel.DataAnnotations.Schema;
  5. using Microsoft.EntityFrameworkCore;
  6. using Volo.Abp.Domain.Entities;
  7. using Volo.Abp.Domain.Entities.Auditing;
  8. namespace Shentun.Peis.Models
  9. {
  10. /// <summary>
  11. /// 短信发送
  12. /// </summary>
  13. [Table("sms_send")]
  14. public class SmsSend : AuditedEntity<Guid>, IHasConcurrencyStamp
  15. {
  16. public SmsSend(Guid id) : base(id) { }
  17. /// <summary>
  18. /// 短信类别ID 随访-01
  19. /// </summary>
  20. [Column("sms_type_id")]
  21. [StringLength(2)]
  22. public string SmsTypeId { get; set; }
  23. /// <summary>
  24. /// 随访ID
  25. /// </summary>
  26. [Column("follow_up_id")]
  27. public Guid FollowUpId { get; set; }
  28. ///// <summary>
  29. ///// 随访计划ID
  30. ///// </summary>
  31. //[Column("follow_up_plan_id")]
  32. //public Guid? FollowUpPlanId { get; set; }
  33. /// <summary>
  34. /// 人员ID
  35. /// </summary>
  36. [Column("patient_id")]
  37. public Guid? PatientId { get; set; }
  38. /// <summary>
  39. /// 姓名
  40. /// </summary>
  41. [Column("patient_name")]
  42. [StringLength(30)]
  43. public string PatientName { get; set; } = null!;
  44. /// <summary>
  45. /// 手机号
  46. /// </summary>
  47. [Column("mobile_telephone")]
  48. [StringLength(11)]
  49. public string MobileTelephone { get; set; } = null!;
  50. /// <summary>
  51. /// 短信内容
  52. /// </summary>
  53. [Column("content")]
  54. [StringLength(200)]
  55. public string Content { get; set; } = null!;
  56. /// <summary>
  57. /// 是完成
  58. /// </summary>
  59. [Column("is_complete")]
  60. [MaxLength(1)]
  61. public char IsComplete { get; set; }
  62. /// <summary>
  63. /// 短信推送时间
  64. /// </summary>
  65. [Column("plan_send_date")]
  66. public DateTime? PlanSendDate { get; set; }
  67. [Column("concurrency_stamp")]
  68. public string ConcurrencyStamp { get; set; }
  69. //[Column("creator_id")]
  70. //public Guid CreatorId { get; set; }
  71. //[Column("creation_time", TypeName = "timestamp without time zone")]
  72. //public DateTime CreationTime { get; set; }
  73. //[Column("last_modifier_id")]
  74. //public Guid LastModifierId { get; set; }
  75. //[Column("last_modification_time", TypeName = "timestamp without time zone")]
  76. //public DateTime LastModificationTime { get; set; }
  77. //[Column("concurrency_stamp")]
  78. //[StringLength(40)]
  79. //public string ConcurrencyStamp { get; set; } = null!;
  80. //public override object[] GetKeys()
  81. //{
  82. // return new object[] { SmsSendId };
  83. //}
  84. }
  85. }