using Workflow.Domain.Common;
using Workflow.Domain.Enums;

namespace Workflow.Domain.Entities;

public class WorkflowToken : BaseEntity, IAuditable
{
    public Guid InstanceId { get; set; }
    public Guid NodeId { get; set; }
    public TokenStatus Status { get; set; } = TokenStatus.Active;
    public DateTime ArrivedAt { get; set; } = DateTime.UtcNow;
    public DateTime? CompletedAt { get; set; }

    public Guid CreatedBy { get; set; }
    public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
    public Guid UpdatedBy { get; set; }
    public DateTime UpdatedAt { get; set; } = DateTime.UtcNow;
}
