using System;
namespace GB5Shared.ActionProcessor
{
///
/// Maps to TACTIONOUTBOX (T = Transaction table, app-generated INT PK).
/// SENDSTATUS: 0=Pending, 1=Sent, 2=Failed
///
public class ActionOutboxDTO
{
public int OutboxId { get; set; }
public int ActionRunId { get; set; }
public string DestinationTopic { get; set; } = string.Empty;
public string Payload { get; set; } = string.Empty;
/// 0=Pending, 1=Sent, 2=Failed
public int SendStatus { get; set; }
public int Attempts { get; set; }
public int TenantId { get; set; }
public DateTime CreatedOn { get; set; }
/// Correlation key from TOUTBOX — links this action back to the originating outbox event.
public string CorrelationKey { get; set; } = string.Empty;
}
}