GpsBloodPressReferenceValue.cs 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.ComponentModel.DataAnnotations.Schema;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. using HealthMonitor.Util.Entities.Base;
  9. using HealthMonitor.Util.Entities.Interfaces;
  10. namespace HealthMonitor.Util.Entities.GpsCard
  11. {
  12. public partial class GpsBloodPressReferenceValue : GpsCardEntityBase, IKeyIntType
  13. {
  14. [Key]
  15. [Required]
  16. public int Id { get; set; }
  17. [Required]
  18. // [ForeignKey(nameof(SubjectId))]
  19. public int Age { get; set; }
  20. [Required]
  21. public int Gender { get; set; }
  22. [Required]
  23. public int Systolic { get; set; }
  24. [Required]
  25. public int Diastolic { get; set; }
  26. public bool Hypertension { get; set; }
  27. /// <summary>
  28. /// 创建时间
  29. /// </summary>
  30. [Required]
  31. public DateTime CreateTime { get; set; } = DateTime.Now;
  32. /// <summary>
  33. /// 修改时间
  34. /// </summary>
  35. [Required]
  36. public DateTime UpdateTime { get; set; } = DateTime.Now;
  37. }
  38. }