Spaces:
Running

danylokhodus's picture
Claude Opus 5.5
feat: node groups (GroupId on task nodes)
e3db3df
Raw History Blame Contribute Delete
1.36 kB
namespace FlowAPI.Domain.Entities
{
public class TaskNode
{
public Guid Id { get; set; }
public Guid GraphId { get; set; }
public string Label { get; set; } = string.Empty;
public double PosX { get; set; }
public double PosY { get; set; }
public string Type { get; set; } = "sketch";
public string? Decision { get; set; }
public FlowAPI.Domain.Enums.NodeState State { get; set; } = FlowAPI.Domain.Enums.NodeState.Pending;
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
// Visual properties (JSON serialized in backend or kept as extra fields)
public string? Description { get; set; }
public string? Color { get; set; }
public bool IsPinned { get; set; }
public double? Width { get; set; }
public double? Height { get; set; }
// Specific data (Image URL, Text formatting, etc.)
public string? Data { get; set; }
// Id of the group node this node belongs to (null = top level of the board)
public Guid? GroupId { get; set; }
// Navigation properties
public Graph Graph { get; set; } = null!;
public ICollection<Edge> OutgoingEdges { get; set; } = new List<Edge>();
public ICollection<Edge> IncomingEdges { get; set; } = new List<Edge>();
}
}