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

namespace Workflow.Domain.Entities;

public class WorkflowEdge : BaseEntity, IAuditable
{
    public Guid DefinitionId { get; set; }
    public Guid SourceNodeId { get; set; }
    public Guid TargetNodeId { get; set; }
    public EdgeType EdgeType { get; set; } = EdgeType.Normal;
    public string? Label { get; set; }
    public string? Condition { get; set; }
    public int Order { 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;
}
