您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

66 行
2.2KB

  1. using Newtonsoft.Json;
  2. using SqlSugar;
  3. using SqlSugar.TDengine;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. namespace HealthMonitor.Model.Service.Mapper
  10. {
  11. [STableAttribute(STableName = "stb_hm_fetal_heart_rate_test")]
  12. public class FetalHeartRateModel
  13. {
  14. [JsonProperty("ts")]
  15. [SqlSugar.SugarColumn(IsPrimaryKey = true, ColumnName = "ts", SqlParameterDbType = typeof(DateTime19))]
  16. public DateTime Timestamp { get; set; }
  17. [JsonProperty("fetal_heart_rate_id")]
  18. [SqlSugar.SugarColumn(ColumnName= "fetal_heart_rate_id")]
  19. public string FetalHeartRateId { get; set; } = default!;
  20. [JsonProperty("message_id")]
  21. [SqlSugar.SugarColumn(ColumnName = "message_id")]
  22. public string MessageId { get; set; } = default!;
  23. [JsonProperty("person_id")]
  24. [SqlSugar.SugarColumn(ColumnName = "person_id")]
  25. public string PersonId { get; set; } = default!;
  26. [JsonProperty("serialno")]
  27. [SqlSugar.SugarColumn(ColumnName = "serialno")]
  28. public string SerialNumber { get; set; } = default!;
  29. [JsonProperty("fetal_heart_rate")]
  30. [SqlSugar.SugarColumn(ColumnName = "fetal_heart_rate")]
  31. public int FetalHeartRate { get; set; }
  32. [JsonProperty("create_time")]
  33. [SqlSugar.SugarColumn(ColumnName = "create_time")]
  34. public DateTime CreateTime { get; set; }
  35. [JsonProperty("last_update")]
  36. [SqlSugar.SugarColumn(ColumnName = "last_update")]
  37. public DateTime LastUpdate { get; set; }
  38. [JsonProperty("method")]
  39. [SqlSugar.SugarColumn(ColumnName = "method")]
  40. public byte Method { get; set; }
  41. [JsonProperty("is_display")]
  42. [SqlSugar.SugarColumn(ColumnName = "is_display")]
  43. public bool IsDisplay { get; set; }
  44. [JsonProperty("device_key")]
  45. [SqlSugar.SugarColumn(ColumnName = "device_key")]
  46. public string DeviceKey { get; set; } = default!;
  47. [JsonProperty("serial_tail_no")]
  48. [SqlSugar.SugarColumn(IsIgnore = true, ColumnName = "serial_tail_no")]
  49. public string SerialTailNumber { get; set; } = default!;
  50. }
  51. }