TracksDTO.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using System;
  2. using dodohold.core;
  3. namespace molilian.core
  4. {
  5. [Table("track_links")]
  6. public class TrackLinkDTO
  7. {
  8. [Key]
  9. public int id { get; set; }
  10. public string event_type { get; set; } = string.Empty;
  11. public string platform { get; set; } = string.Empty;
  12. public string typename
  13. {
  14. get => platform;
  15. set => platform = value;
  16. }
  17. public string scene { get; set; } = string.Empty;
  18. public string unique_id { get; set; } = string.Empty;
  19. public string path { get; set; } = string.Empty;
  20. public string description { get; set; } = string.Empty;
  21. public DateTime create_time { get; set; } = DateTime.Now;
  22. public DateTime update_time { get; set; } = DateTime.Now;
  23. }
  24. [Table("track_daily_report")]
  25. public class TrackDailyReportDTO
  26. {
  27. [Key]
  28. public int id { get; set; }
  29. public DateTime report_date { get; set; } = DateTime.Now.Date;
  30. public string event_type { get; set; } = string.Empty;
  31. public string platform { get; set; } = string.Empty;
  32. public string scene { get; set; } = string.Empty;
  33. public string unique_id { get; set; } = string.Empty;
  34. public int track_link_id { get; set; } = 0;
  35. public int event_count { get; set; } = 0;
  36. public DateTime create_time { get; set; } = DateTime.Now;
  37. public DateTime update_time { get; set; } = DateTime.Now;
  38. }
  39. }