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.

51 line
1.1KB

  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. }