File size: 802 Bytes
b9c7f0e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
using FlowAPI.Domain.Enums;

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 NodeState State { get; set; } = NodeState.Pending;
        public DateTime CreatedAt { get; set; } = DateTime.UtcNow;

        // 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>();
    }
}