WashRecord.cs 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. using FreeSql.DataAnnotations;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace xicheji
  8. {
  9. /// <summary>
  10. /// 洗车记录
  11. /// </summary>
  12. public class WashRecord
  13. {
  14. /// <summary>
  15. /// 数据库主键Id, 自增, 无需赋值
  16. /// </summary>
  17. [Column(IsIdentity = true)]
  18. public int Id { get; set; }
  19. /// <summary>
  20. /// 洗车机器mac地址
  21. /// </summary>
  22. public string DeviceId { get; set; } = string.Empty;
  23. /// <summary>
  24. /// 车牌号
  25. /// </summary>
  26. public string CarNum { get; set; } = string.Empty;
  27. /// <summary>
  28. /// 开始时间
  29. /// </summary>
  30. public DateTime StartTime { get; set; }
  31. /// <summary>
  32. /// 结束时间
  33. /// </summary>
  34. public DateTime EndTime { get; set; }
  35. /// <summary>
  36. /// 洗车时长
  37. /// </summary>
  38. public int WashTime { get; set; }
  39. /// <summary>
  40. /// 风干时长
  41. /// </summary>
  42. public int DryTime { get; set; }
  43. /// <summary>
  44. /// 用水量
  45. /// </summary>
  46. public int TotalWater { get; set; }
  47. /// <summary>
  48. /// 用电量
  49. /// </summary>
  50. public int TotalElectricity { get; set; }
  51. /// <summary>
  52. /// 水压
  53. /// </summary>
  54. public int WaterPressure { get; set; }
  55. [Column(ServerTime = DateTimeKind.Local, CanUpdate = false)]
  56. public DateTime CreateTime { get; set; }
  57. }
  58. }