AdoMdpHotWatch.cs 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. namespace Admin.NET.Plugin.AiDOP.Entity.DataPlatform;
  2. /// <summary>在途关注表:热回读按业务键窄轮询 165。</summary>
  3. [SugarTable("ado_mdp_hot_watch", "MDP 热回读在途关注")]
  4. public class AdoMdpHotWatch
  5. {
  6. [SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsIdentity = true)]
  7. public long Id { get; set; }
  8. [SugarColumn(ColumnName = "tenant_id")]
  9. public long TenantId { get; set; }
  10. /// <summary>PICK_BILL / WORK_ORDER / PUR_ORDER / DAY_PLAN / ASN</summary>
  11. [SugarColumn(ColumnName = "biz_type", Length = 40)]
  12. public string BizType { get; set; } = "";
  13. [SugarColumn(ColumnName = "biz_key", Length = 100)]
  14. public string BizKey { get; set; } = "";
  15. [SugarColumn(ColumnName = "domain", Length = 40)]
  16. public string Domain { get; set; } = "8010";
  17. /// <summary>JSON 数组:要盯的 165 表名</summary>
  18. [SugarColumn(ColumnName = "watch_tables", ColumnDataType = "text", IsNullable = true)]
  19. public string? WatchTables { get; set; }
  20. [SugarColumn(ColumnName = "enroll_time")]
  21. public DateTime EnrollTime { get; set; }
  22. [SugarColumn(ColumnName = "last_poll_time", IsNullable = true)]
  23. public DateTime? LastPollTime { get; set; }
  24. [SugarColumn(ColumnName = "last_snapshot_hash", Length = 64, IsNullable = true)]
  25. public string? LastSnapshotHash { get; set; }
  26. [SugarColumn(ColumnName = "poll_interval_sec")]
  27. public int PollIntervalSec { get; set; } = 5;
  28. /// <summary>0 在途 / 1 已终结</summary>
  29. [SugarColumn(ColumnName = "status")]
  30. public int Status { get; set; }
  31. [SugarColumn(ColumnName = "terminate_time", IsNullable = true)]
  32. public DateTime? TerminateTime { get; set; }
  33. [SugarColumn(ColumnName = "terminate_reason", Length = 200, IsNullable = true)]
  34. public string? TerminateReason { get; set; }
  35. [SugarColumn(ColumnName = "create_time")]
  36. public DateTime CreateTime { get; set; }
  37. [SugarColumn(ColumnName = "update_time")]
  38. public DateTime UpdateTime { get; set; }
  39. }