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

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("phone_follow_up")]
  14. public class PhoneFollowUp : AuditedEntity<Guid>, IHasConcurrencyStamp
  15. {
  16. public PhoneFollowUp(Guid id) : base(id)
  17. {
  18. }
  19. ///// <summary>
  20. ///// 病人登记ID
  21. ///// </summary>
  22. //[Column("patient_register_id")]
  23. //public Guid PatientRegisterId { get; set; }
  24. /// <summary>
  25. /// 随访内容
  26. /// </summary>
  27. [Column("follow_up_content")]
  28. [StringLength(200)]
  29. public string FollowUpContent { get; set; } = null!;
  30. /// <summary>
  31. /// 回复内容
  32. /// </summary>
  33. [Column("reply_content")]
  34. [StringLength(200)]
  35. public string? ReplyContent { get; set; }
  36. ///// <summary>
  37. ///// 随访计划ID
  38. ///// </summary>
  39. //[Column("follow_up_plan_id")]
  40. //public Guid? FollowUpPlanId { get; set; }
  41. /// <summary>
  42. /// 随访ID
  43. /// </summary>
  44. [Column("follow_up_id")]
  45. public Guid FollowUpId { get; set; }
  46. /// <summary>
  47. /// 随访日期
  48. /// </summary>
  49. [Column("plan_follow_date")]
  50. public DateTime? PlanFollowDate { get; set; }
  51. /// <summary>
  52. /// 是否完成
  53. /// </summary>
  54. [Column("is_complete")]
  55. [MaxLength(1)]
  56. public char IsComplete { get; set; }
  57. [Column("concurrency_stamp")]
  58. public string ConcurrencyStamp { get; set; }
  59. //[Column("creator_id")]
  60. //public Guid CreatorId { get; set; }
  61. //[Column("creation_time", TypeName = "timestamp without time zone")]
  62. //public DateTime CreationTime { get; set; }
  63. //[Column("last_modifier_id")]
  64. //public Guid LastModifierId { get; set; }
  65. //[Column("last_modification_time", TypeName = "timestamp without time zone")]
  66. //public DateTime LastModificationTime { get; set; }
  67. //[Column("concurrency_stamp")]
  68. //[StringLength(40)]
  69. //public string ConcurrencyStamp { get; set; } = null!;
  70. [ForeignKey(nameof(FollowUpId))]
  71. [InverseProperty("PhoneFollowUps")]
  72. public virtual FollowUp FollowUp { get; set; } = null!;
  73. //public override object[] GetKeys()
  74. //{
  75. // return new object[] { PhoneFollowId };
  76. //}
  77. }
  78. }