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

namespace Workflow.Domain.Entities;

public class WorkflowNode : BaseEntity, IAuditable
{
    public Guid DefinitionId { get; set; }
    public NodeType NodeType { get; set; }
    public string Name { get; set; } = string.Empty;
    public string? Config { get; set; }
    public int PositionX { get; set; }
    public int PositionY { 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;
}
