File size: 722 Bytes
b9c7f0e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
namespace FlowAPI.Domain.Entities
{
    public class Graph
    {
        public Guid Id { get; set; }
        public Guid UserId { get; set; }
        public string Title { get; set; } = string.Empty;
        public string? Description { get; set; }
        public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
        public DateTime UpdatedAt { get; set; } = DateTime.UtcNow;

        // Navigation properties
        public User User { get; set; } = null!;
        public ICollection<TaskNode> Nodes { get; set; } = new List<TaskNode>();
        public ICollection<Edge> Edges { get; set; } = new List<Edge>();
        public ICollection<SharedGraph> SharedGraphs { get; set; } = new List<SharedGraph>();
    }
}