MdpOutbox.cs 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. namespace Admin.NET.Plugin.AiDOP.Entity.DataPlatform;
  2. /// <summary>
  3. /// MDP 出站回写 Outbox(幂等待推送表)。
  4. /// status: 0待推 1成功 2失败
  5. /// </summary>
  6. [SugarTable("mdp_outbox", "MDP出站回写Outbox")]
  7. public class MdpOutbox
  8. {
  9. [SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsIdentity = true)]
  10. public long Id { get; set; }
  11. [SugarColumn(ColumnName = "tenant_id")]
  12. public long TenantId { get; set; }
  13. [SugarColumn(ColumnName = "target_source_code", Length = 100)]
  14. public string TargetSourceCode { get; set; } = string.Empty;
  15. [SugarColumn(ColumnName = "action_code", Length = 100)]
  16. public string ActionCode { get; set; } = string.Empty;
  17. [SugarColumn(ColumnName = "idem_key", Length = 200)]
  18. public string IdemKey { get; set; } = string.Empty;
  19. [SugarColumn(ColumnName = "payload_json", ColumnDataType = "text", IsNullable = true)]
  20. public string? PayloadJson { get; set; }
  21. [SugarColumn(ColumnName = "status")]
  22. public int Status { get; set; }
  23. [SugarColumn(ColumnName = "retry_count")]
  24. public int RetryCount { get; set; }
  25. [SugarColumn(ColumnName = "response_json", ColumnDataType = "text", IsNullable = true)]
  26. public string? ResponseJson { get; set; }
  27. [SugarColumn(ColumnName = "error_msg", Length = 1000, IsNullable = true)]
  28. public string? ErrorMsg { get; set; }
  29. [SugarColumn(ColumnName = "create_time")]
  30. public DateTime CreateTime { get; set; }
  31. [SugarColumn(ColumnName = "update_time")]
  32. public DateTime UpdateTime { get; set; }
  33. }