using System;
namespace FrameworkDAL.DTO.Workflow
{
/// Maps to TWORKFLOWEMAILTOKEN (one-time-use audit table).
public class WorkflowEmailTokenDTO
{
public string TokenHash { get; set; } = string.Empty;
public int TaskId { get; set; }
/// 1=Approve, 2=Reject, 3=Return
public byte Action { get; set; }
public int TenantId { get; set; }
public DateTime ExpiresAt { get; set; }
public DateTime? UsedAt { get; set; }
/// 0=Unused, 1=Used, 2=Revoked
public byte Status { get; set; }
public DateTime CreatedOn { get; set; } = DateTime.UtcNow;
}
}