TracksDTO.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  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 scene { get; set; } = string.Empty;
  13. public string unique_id { get; set; } = string.Empty;
  14. public string path { get; set; } = string.Empty;
  15. public DateTime create_time { get; set; } = DateTime.Now;
  16. public DateTime update_time { get; set; } = DateTime.Now;
  17. }
  18. [Table("track_daily_report")]
  19. public class TrackDailyReportDTO
  20. {
  21. [Key]
  22. public int id { get; set; }
  23. public DateTime report_date { get; set; } = DateTime.Now.Date;
  24. public string event_type { get; set; } = string.Empty;
  25. public string platform { get; set; } = string.Empty;
  26. public string scene { get; set; } = string.Empty;
  27. public string unique_id { get; set; } = string.Empty;
  28. public int track_link_id { get; set; } = 0;
  29. public int event_count { get; set; } = 0;
  30. public DateTime create_time { get; set; } = DateTime.Now;
  31. public DateTime update_time { get; set; } = DateTime.Now;
  32. }
  33. }