Spaces:
Sleeping
Sleeping
Commit ·
e0e601c
1
Parent(s): 16d5815
Extend TaskNode with visual and data fields to support images, drawing and custom text
Browse files- FlowAPI.Application/DTOs/Graph/GraphDtos.cs +45 -31
- FlowAPI.Application/Services/GraphService.cs +14 -2
- FlowAPI.Domain/Entities/TaskNode.cs +11 -3
- FlowAPI.Infrastructure/Migrations/20260521020134_AddTaskNodeVisualFields.Designer.cs +445 -0
- FlowAPI.Infrastructure/Migrations/20260521020134_AddTaskNodeVisualFields.cs +79 -0
- FlowAPI.Infrastructure/Migrations/AppDbContextModelSnapshot.cs +18 -0
- FlowAPI.Infrastructure/Repositories/GraphRepository.cs +6 -0
FlowAPI.Application/DTOs/Graph/GraphDtos.cs
CHANGED
|
@@ -1,13 +1,52 @@
|
|
| 1 |
-
using
|
| 2 |
-
using System.Collections.Generic;
|
| 3 |
|
| 4 |
namespace FlowAPI.Application.DTOs.Graph
|
| 5 |
{
|
| 6 |
-
public class
|
| 7 |
{
|
|
|
|
| 8 |
public Guid UserId { get; set; }
|
| 9 |
public string Title { get; set; } = string.Empty;
|
| 10 |
public string? Description { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
}
|
| 12 |
|
| 13 |
public class UpdateGraphDto
|
|
@@ -23,20 +62,14 @@ namespace FlowAPI.Application.DTOs.Graph
|
|
| 23 |
public string Title { get; set; } = string.Empty;
|
| 24 |
public string? Description { get; set; }
|
| 25 |
public DateTime CreatedAt { get; set; }
|
| 26 |
-
public bool IsShared { get; set; }
|
| 27 |
-
public string Permission { get; set; } = "Owner";
|
| 28 |
-
}
|
| 29 |
-
|
| 30 |
-
public class FullGraphResponseDto : GraphResponseDto
|
| 31 |
-
{
|
| 32 |
-
public List<NodeDto> Nodes { get; set; } = new();
|
| 33 |
-
public List<EdgeDto> Edges { get; set; } = new();
|
| 34 |
}
|
| 35 |
|
| 36 |
public class ShareGraphRequestDto
|
| 37 |
{
|
| 38 |
public string Email { get; set; } = string.Empty;
|
| 39 |
-
public string Permission { get; set; } = "Read";
|
| 40 |
}
|
| 41 |
|
| 42 |
public class SharedUserResponseDto
|
|
@@ -47,23 +80,4 @@ namespace FlowAPI.Application.DTOs.Graph
|
|
| 47 |
public string DisplayName { get; set; } = string.Empty;
|
| 48 |
public string Permission { get; set; } = "Read";
|
| 49 |
}
|
| 50 |
-
|
| 51 |
-
public class NodeDto
|
| 52 |
-
{
|
| 53 |
-
public Guid Id { get; set; }
|
| 54 |
-
public string Label { get; set; } = string.Empty;
|
| 55 |
-
public double PosX { get; set; }
|
| 56 |
-
public double PosY { get; set; }
|
| 57 |
-
public string Type { get; set; } = "sketch";
|
| 58 |
-
public int State { get; set; }
|
| 59 |
-
public string? Decision { get; set; }
|
| 60 |
-
}
|
| 61 |
-
|
| 62 |
-
public class EdgeDto
|
| 63 |
-
{
|
| 64 |
-
public Guid Id { get; set; }
|
| 65 |
-
public Guid FromNodeId { get; set; }
|
| 66 |
-
public Guid ToNodeId { get; set; }
|
| 67 |
-
public string? Condition { get; set; }
|
| 68 |
-
}
|
| 69 |
}
|
|
|
|
| 1 |
+
using FlowAPI.Domain.Enums;
|
|
|
|
| 2 |
|
| 3 |
namespace FlowAPI.Application.DTOs.Graph
|
| 4 |
{
|
| 5 |
+
public class FullGraphResponseDto
|
| 6 |
{
|
| 7 |
+
public Guid Id { get; set; }
|
| 8 |
public Guid UserId { get; set; }
|
| 9 |
public string Title { get; set; } = string.Empty;
|
| 10 |
public string? Description { get; set; }
|
| 11 |
+
public DateTime CreatedAt { get; set; }
|
| 12 |
+
public bool IsShared { get; set; }
|
| 13 |
+
public string Permission { get; set; } = "Owner";
|
| 14 |
+
|
| 15 |
+
public List<NodeDto> Nodes { get; set; } = new();
|
| 16 |
+
public List<EdgeDto> Edges { get; set; } = new();
|
| 17 |
+
}
|
| 18 |
+
|
| 19 |
+
public class NodeDto
|
| 20 |
+
{
|
| 21 |
+
public Guid Id { get; set; }
|
| 22 |
+
public string Label { get; set; } = string.Empty;
|
| 23 |
+
public double PosX { get; set; }
|
| 24 |
+
public double PosY { get; set; }
|
| 25 |
+
public string Type { get; set; } = "sketch";
|
| 26 |
+
public int State { get; set; }
|
| 27 |
+
public string? Decision { get; set; }
|
| 28 |
+
|
| 29 |
+
// Extended visual/content fields
|
| 30 |
+
public string? Description { get; set; }
|
| 31 |
+
public string? Color { get; set; }
|
| 32 |
+
public bool IsPinned { get; set; }
|
| 33 |
+
public double? Width { get; set; }
|
| 34 |
+
public double? Height { get; set; }
|
| 35 |
+
public string? Data { get; set; }
|
| 36 |
+
}
|
| 37 |
+
|
| 38 |
+
public class EdgeDto
|
| 39 |
+
{
|
| 40 |
+
public Guid Id { get; set; }
|
| 41 |
+
public Guid FromNodeId { get; set; }
|
| 42 |
+
public Guid ToNodeId { get; set; }
|
| 43 |
+
public string Condition { get; set; } = "True";
|
| 44 |
+
}
|
| 45 |
+
|
| 46 |
+
public class CreateGraphDto
|
| 47 |
+
{
|
| 48 |
+
public string Title { get; set; } = string.Empty;
|
| 49 |
+
public string? Description { get; set; }
|
| 50 |
}
|
| 51 |
|
| 52 |
public class UpdateGraphDto
|
|
|
|
| 62 |
public string Title { get; set; } = string.Empty;
|
| 63 |
public string? Description { get; set; }
|
| 64 |
public DateTime CreatedAt { get; set; }
|
| 65 |
+
public bool IsShared { get; set; }
|
| 66 |
+
public string Permission { get; set; } = "Owner";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 67 |
}
|
| 68 |
|
| 69 |
public class ShareGraphRequestDto
|
| 70 |
{
|
| 71 |
public string Email { get; set; } = string.Empty;
|
| 72 |
+
public string Permission { get; set; } = "Read";
|
| 73 |
}
|
| 74 |
|
| 75 |
public class SharedUserResponseDto
|
|
|
|
| 80 |
public string DisplayName { get; set; } = string.Empty;
|
| 81 |
public string Permission { get; set; } = "Read";
|
| 82 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 83 |
}
|
FlowAPI.Application/Services/GraphService.cs
CHANGED
|
@@ -117,7 +117,13 @@ namespace FlowAPI.Application.Services
|
|
| 117 |
PosY = n.PosY,
|
| 118 |
Type = n.Type,
|
| 119 |
State = (int)n.State,
|
| 120 |
-
Decision = n.Decision
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 121 |
}).ToList(),
|
| 122 |
Edges = graph.Edges.Select(e => new EdgeDto
|
| 123 |
{
|
|
@@ -213,7 +219,13 @@ namespace FlowAPI.Application.Services
|
|
| 213 |
PosY = nodeDto.PosY,
|
| 214 |
Type = nodeDto.Type,
|
| 215 |
Decision = nodeDto.Decision,
|
| 216 |
-
State = (FlowAPI.Domain.Enums.NodeState)nodeDto.State
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 217 |
}).ToList();
|
| 218 |
|
| 219 |
var mappedEdges = dto.Edges.Select(edgeDto => new Edge
|
|
|
|
| 117 |
PosY = n.PosY,
|
| 118 |
Type = n.Type,
|
| 119 |
State = (int)n.State,
|
| 120 |
+
Decision = n.Decision,
|
| 121 |
+
Description = n.Description,
|
| 122 |
+
Color = n.Color,
|
| 123 |
+
IsPinned = n.IsPinned,
|
| 124 |
+
Width = n.Width,
|
| 125 |
+
Height = n.Height,
|
| 126 |
+
Data = n.Data
|
| 127 |
}).ToList(),
|
| 128 |
Edges = graph.Edges.Select(e => new EdgeDto
|
| 129 |
{
|
|
|
|
| 219 |
PosY = nodeDto.PosY,
|
| 220 |
Type = nodeDto.Type,
|
| 221 |
Decision = nodeDto.Decision,
|
| 222 |
+
State = (FlowAPI.Domain.Enums.NodeState)nodeDto.State,
|
| 223 |
+
Description = nodeDto.Description,
|
| 224 |
+
Color = nodeDto.Color,
|
| 225 |
+
IsPinned = nodeDto.IsPinned,
|
| 226 |
+
Width = nodeDto.Width,
|
| 227 |
+
Height = nodeDto.Height,
|
| 228 |
+
Data = nodeDto.Data
|
| 229 |
}).ToList();
|
| 230 |
|
| 231 |
var mappedEdges = dto.Edges.Select(edgeDto => new Edge
|
FlowAPI.Domain/Entities/TaskNode.cs
CHANGED
|
@@ -1,5 +1,3 @@
|
|
| 1 |
-
using FlowAPI.Domain.Enums;
|
| 2 |
-
|
| 3 |
namespace FlowAPI.Domain.Entities
|
| 4 |
{
|
| 5 |
public class TaskNode
|
|
@@ -11,9 +9,19 @@ namespace FlowAPI.Domain.Entities
|
|
| 11 |
public double PosY { get; set; }
|
| 12 |
public string Type { get; set; } = "sketch";
|
| 13 |
public string? Decision { get; set; }
|
| 14 |
-
public NodeState State { get; set; } = NodeState.Pending;
|
| 15 |
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
|
| 16 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
// Navigation properties
|
| 18 |
public Graph Graph { get; set; } = null!;
|
| 19 |
public ICollection<Edge> OutgoingEdges { get; set; } = new List<Edge>();
|
|
|
|
|
|
|
|
|
|
| 1 |
namespace FlowAPI.Domain.Entities
|
| 2 |
{
|
| 3 |
public class TaskNode
|
|
|
|
| 9 |
public double PosY { get; set; }
|
| 10 |
public string Type { get; set; } = "sketch";
|
| 11 |
public string? Decision { get; set; }
|
| 12 |
+
public FlowAPI.Domain.Enums.NodeState State { get; set; } = FlowAPI.Domain.Enums.NodeState.Pending;
|
| 13 |
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
|
| 14 |
|
| 15 |
+
// Visual properties (JSON serialized in backend or kept as extra fields)
|
| 16 |
+
public string? Description { get; set; }
|
| 17 |
+
public string? Color { get; set; }
|
| 18 |
+
public bool IsPinned { get; set; }
|
| 19 |
+
public double? Width { get; set; }
|
| 20 |
+
public double? Height { get; set; }
|
| 21 |
+
|
| 22 |
+
// Specific data (Image URL, Text formatting, etc.)
|
| 23 |
+
public string? Data { get; set; }
|
| 24 |
+
|
| 25 |
// Navigation properties
|
| 26 |
public Graph Graph { get; set; } = null!;
|
| 27 |
public ICollection<Edge> OutgoingEdges { get; set; } = new List<Edge>();
|
FlowAPI.Infrastructure/Migrations/20260521020134_AddTaskNodeVisualFields.Designer.cs
ADDED
|
@@ -0,0 +1,445 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// <auto-generated />
|
| 2 |
+
using System;
|
| 3 |
+
using FlowAPI.Infrastructure.Data;
|
| 4 |
+
using Microsoft.EntityFrameworkCore;
|
| 5 |
+
using Microsoft.EntityFrameworkCore.Infrastructure;
|
| 6 |
+
using Microsoft.EntityFrameworkCore.Migrations;
|
| 7 |
+
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
| 8 |
+
|
| 9 |
+
#nullable disable
|
| 10 |
+
|
| 11 |
+
namespace FlowAPI.Infrastructure.Migrations
|
| 12 |
+
{
|
| 13 |
+
[DbContext(typeof(AppDbContext))]
|
| 14 |
+
[Migration("20260521020134_AddTaskNodeVisualFields")]
|
| 15 |
+
partial class AddTaskNodeVisualFields
|
| 16 |
+
{
|
| 17 |
+
/// <inheritdoc />
|
| 18 |
+
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
| 19 |
+
{
|
| 20 |
+
#pragma warning disable 612, 618
|
| 21 |
+
modelBuilder.HasAnnotation("ProductVersion", "10.0.8");
|
| 22 |
+
|
| 23 |
+
modelBuilder.Entity("FlowAPI.Domain.Entities.Achievement", b =>
|
| 24 |
+
{
|
| 25 |
+
b.Property<Guid>("Id")
|
| 26 |
+
.ValueGeneratedOnAdd()
|
| 27 |
+
.HasColumnType("TEXT");
|
| 28 |
+
|
| 29 |
+
b.Property<string>("Category")
|
| 30 |
+
.IsRequired()
|
| 31 |
+
.HasMaxLength(100)
|
| 32 |
+
.HasColumnType("TEXT");
|
| 33 |
+
|
| 34 |
+
b.Property<string>("Description")
|
| 35 |
+
.IsRequired()
|
| 36 |
+
.HasColumnType("TEXT");
|
| 37 |
+
|
| 38 |
+
b.Property<string>("IconUrl")
|
| 39 |
+
.IsRequired()
|
| 40 |
+
.HasColumnType("TEXT");
|
| 41 |
+
|
| 42 |
+
b.Property<int>("RewardPoints")
|
| 43 |
+
.HasColumnType("INTEGER");
|
| 44 |
+
|
| 45 |
+
b.Property<int>("TargetValue")
|
| 46 |
+
.HasColumnType("INTEGER");
|
| 47 |
+
|
| 48 |
+
b.Property<string>("Title")
|
| 49 |
+
.IsRequired()
|
| 50 |
+
.HasMaxLength(200)
|
| 51 |
+
.HasColumnType("TEXT");
|
| 52 |
+
|
| 53 |
+
b.Property<string>("TriggerEventName")
|
| 54 |
+
.IsRequired()
|
| 55 |
+
.HasMaxLength(100)
|
| 56 |
+
.HasColumnType("TEXT");
|
| 57 |
+
|
| 58 |
+
b.Property<int>("Type")
|
| 59 |
+
.HasColumnType("INTEGER");
|
| 60 |
+
|
| 61 |
+
b.HasKey("Id");
|
| 62 |
+
|
| 63 |
+
b.ToTable("Achievements");
|
| 64 |
+
});
|
| 65 |
+
|
| 66 |
+
modelBuilder.Entity("FlowAPI.Domain.Entities.Edge", b =>
|
| 67 |
+
{
|
| 68 |
+
b.Property<Guid>("Id")
|
| 69 |
+
.ValueGeneratedOnAdd()
|
| 70 |
+
.HasColumnType("TEXT");
|
| 71 |
+
|
| 72 |
+
b.Property<int>("Condition")
|
| 73 |
+
.HasMaxLength(50)
|
| 74 |
+
.HasColumnType("INTEGER");
|
| 75 |
+
|
| 76 |
+
b.Property<Guid>("FromNodeId")
|
| 77 |
+
.HasColumnType("TEXT");
|
| 78 |
+
|
| 79 |
+
b.Property<Guid>("GraphId")
|
| 80 |
+
.HasColumnType("TEXT");
|
| 81 |
+
|
| 82 |
+
b.Property<Guid>("ToNodeId")
|
| 83 |
+
.HasColumnType("TEXT");
|
| 84 |
+
|
| 85 |
+
b.HasKey("Id");
|
| 86 |
+
|
| 87 |
+
b.HasIndex("FromNodeId");
|
| 88 |
+
|
| 89 |
+
b.HasIndex("GraphId");
|
| 90 |
+
|
| 91 |
+
b.HasIndex("ToNodeId");
|
| 92 |
+
|
| 93 |
+
b.ToTable("Edges");
|
| 94 |
+
});
|
| 95 |
+
|
| 96 |
+
modelBuilder.Entity("FlowAPI.Domain.Entities.Graph", b =>
|
| 97 |
+
{
|
| 98 |
+
b.Property<Guid>("Id")
|
| 99 |
+
.ValueGeneratedOnAdd()
|
| 100 |
+
.HasColumnType("TEXT");
|
| 101 |
+
|
| 102 |
+
b.Property<DateTime>("CreatedAt")
|
| 103 |
+
.HasColumnType("TEXT");
|
| 104 |
+
|
| 105 |
+
b.Property<string>("Description")
|
| 106 |
+
.HasMaxLength(1000)
|
| 107 |
+
.HasColumnType("TEXT");
|
| 108 |
+
|
| 109 |
+
b.Property<string>("Title")
|
| 110 |
+
.IsRequired()
|
| 111 |
+
.HasMaxLength(200)
|
| 112 |
+
.HasColumnType("TEXT");
|
| 113 |
+
|
| 114 |
+
b.Property<DateTime>("UpdatedAt")
|
| 115 |
+
.HasColumnType("TEXT");
|
| 116 |
+
|
| 117 |
+
b.Property<Guid>("UserId")
|
| 118 |
+
.HasColumnType("TEXT");
|
| 119 |
+
|
| 120 |
+
b.HasKey("Id");
|
| 121 |
+
|
| 122 |
+
b.HasIndex("UserId");
|
| 123 |
+
|
| 124 |
+
b.ToTable("Graphs");
|
| 125 |
+
});
|
| 126 |
+
|
| 127 |
+
modelBuilder.Entity("FlowAPI.Domain.Entities.HabitRecord", b =>
|
| 128 |
+
{
|
| 129 |
+
b.Property<Guid>("Id")
|
| 130 |
+
.ValueGeneratedOnAdd()
|
| 131 |
+
.HasColumnType("TEXT");
|
| 132 |
+
|
| 133 |
+
b.Property<DateTime>("CheckedDate")
|
| 134 |
+
.HasColumnType("TEXT");
|
| 135 |
+
|
| 136 |
+
b.Property<string>("HabitName")
|
| 137 |
+
.IsRequired()
|
| 138 |
+
.HasMaxLength(100)
|
| 139 |
+
.HasColumnType("TEXT");
|
| 140 |
+
|
| 141 |
+
b.Property<int>("StreakCount")
|
| 142 |
+
.HasColumnType("INTEGER");
|
| 143 |
+
|
| 144 |
+
b.Property<Guid>("UserId")
|
| 145 |
+
.HasColumnType("TEXT");
|
| 146 |
+
|
| 147 |
+
b.HasKey("Id");
|
| 148 |
+
|
| 149 |
+
b.HasIndex("UserId");
|
| 150 |
+
|
| 151 |
+
b.ToTable("HabitRecords");
|
| 152 |
+
});
|
| 153 |
+
|
| 154 |
+
modelBuilder.Entity("FlowAPI.Domain.Entities.SharedGraph", b =>
|
| 155 |
+
{
|
| 156 |
+
b.Property<Guid>("Id")
|
| 157 |
+
.ValueGeneratedOnAdd()
|
| 158 |
+
.HasColumnType("TEXT");
|
| 159 |
+
|
| 160 |
+
b.Property<DateTime>("CreatedAt")
|
| 161 |
+
.HasColumnType("TEXT");
|
| 162 |
+
|
| 163 |
+
b.Property<Guid>("GraphId")
|
| 164 |
+
.HasColumnType("TEXT");
|
| 165 |
+
|
| 166 |
+
b.Property<string>("Permission")
|
| 167 |
+
.IsRequired()
|
| 168 |
+
.ValueGeneratedOnAdd()
|
| 169 |
+
.HasMaxLength(50)
|
| 170 |
+
.HasColumnType("TEXT")
|
| 171 |
+
.HasDefaultValue("Read");
|
| 172 |
+
|
| 173 |
+
b.Property<Guid>("SharedWithUserId")
|
| 174 |
+
.HasColumnType("TEXT");
|
| 175 |
+
|
| 176 |
+
b.HasKey("Id");
|
| 177 |
+
|
| 178 |
+
b.HasIndex("SharedWithUserId");
|
| 179 |
+
|
| 180 |
+
b.HasIndex("GraphId", "SharedWithUserId")
|
| 181 |
+
.IsUnique();
|
| 182 |
+
|
| 183 |
+
b.ToTable("SharedGraphs");
|
| 184 |
+
});
|
| 185 |
+
|
| 186 |
+
modelBuilder.Entity("FlowAPI.Domain.Entities.TaskNode", b =>
|
| 187 |
+
{
|
| 188 |
+
b.Property<Guid>("Id")
|
| 189 |
+
.ValueGeneratedOnAdd()
|
| 190 |
+
.HasColumnType("TEXT");
|
| 191 |
+
|
| 192 |
+
b.Property<string>("Color")
|
| 193 |
+
.HasColumnType("TEXT");
|
| 194 |
+
|
| 195 |
+
b.Property<DateTime>("CreatedAt")
|
| 196 |
+
.HasColumnType("TEXT");
|
| 197 |
+
|
| 198 |
+
b.Property<string>("Data")
|
| 199 |
+
.HasColumnType("TEXT");
|
| 200 |
+
|
| 201 |
+
b.Property<string>("Decision")
|
| 202 |
+
.HasMaxLength(50)
|
| 203 |
+
.HasColumnType("TEXT");
|
| 204 |
+
|
| 205 |
+
b.Property<string>("Description")
|
| 206 |
+
.HasColumnType("TEXT");
|
| 207 |
+
|
| 208 |
+
b.Property<Guid>("GraphId")
|
| 209 |
+
.HasColumnType("TEXT");
|
| 210 |
+
|
| 211 |
+
b.Property<double?>("Height")
|
| 212 |
+
.HasColumnType("REAL");
|
| 213 |
+
|
| 214 |
+
b.Property<bool>("IsPinned")
|
| 215 |
+
.HasColumnType("INTEGER");
|
| 216 |
+
|
| 217 |
+
b.Property<string>("Label")
|
| 218 |
+
.IsRequired()
|
| 219 |
+
.HasMaxLength(30)
|
| 220 |
+
.HasColumnType("TEXT");
|
| 221 |
+
|
| 222 |
+
b.Property<double>("PosX")
|
| 223 |
+
.HasColumnType("REAL");
|
| 224 |
+
|
| 225 |
+
b.Property<double>("PosY")
|
| 226 |
+
.HasColumnType("REAL");
|
| 227 |
+
|
| 228 |
+
b.Property<string>("State")
|
| 229 |
+
.IsRequired()
|
| 230 |
+
.ValueGeneratedOnAdd()
|
| 231 |
+
.HasColumnType("TEXT")
|
| 232 |
+
.HasDefaultValue("Pending");
|
| 233 |
+
|
| 234 |
+
b.Property<string>("Type")
|
| 235 |
+
.IsRequired()
|
| 236 |
+
.ValueGeneratedOnAdd()
|
| 237 |
+
.HasMaxLength(50)
|
| 238 |
+
.HasColumnType("TEXT")
|
| 239 |
+
.HasDefaultValue("sketch");
|
| 240 |
+
|
| 241 |
+
b.Property<double?>("Width")
|
| 242 |
+
.HasColumnType("REAL");
|
| 243 |
+
|
| 244 |
+
b.HasKey("Id");
|
| 245 |
+
|
| 246 |
+
b.HasIndex("GraphId");
|
| 247 |
+
|
| 248 |
+
b.ToTable("TaskNodes");
|
| 249 |
+
});
|
| 250 |
+
|
| 251 |
+
modelBuilder.Entity("FlowAPI.Domain.Entities.User", b =>
|
| 252 |
+
{
|
| 253 |
+
b.Property<Guid>("Id")
|
| 254 |
+
.ValueGeneratedOnAdd()
|
| 255 |
+
.HasColumnType("TEXT");
|
| 256 |
+
|
| 257 |
+
b.Property<string>("AvatarUrl")
|
| 258 |
+
.HasColumnType("TEXT");
|
| 259 |
+
|
| 260 |
+
b.Property<DateTime>("CreatedAt")
|
| 261 |
+
.HasColumnType("TEXT");
|
| 262 |
+
|
| 263 |
+
b.Property<string>("DisplayName")
|
| 264 |
+
.IsRequired()
|
| 265 |
+
.HasMaxLength(100)
|
| 266 |
+
.HasColumnType("TEXT");
|
| 267 |
+
|
| 268 |
+
b.Property<string>("Email")
|
| 269 |
+
.IsRequired()
|
| 270 |
+
.HasMaxLength(256)
|
| 271 |
+
.HasColumnType("TEXT");
|
| 272 |
+
|
| 273 |
+
b.Property<bool>("IsPremium")
|
| 274 |
+
.HasColumnType("INTEGER");
|
| 275 |
+
|
| 276 |
+
b.Property<string>("PasswordHash")
|
| 277 |
+
.IsRequired()
|
| 278 |
+
.HasColumnType("TEXT");
|
| 279 |
+
|
| 280 |
+
b.HasKey("Id");
|
| 281 |
+
|
| 282 |
+
b.HasIndex("Email")
|
| 283 |
+
.IsUnique();
|
| 284 |
+
|
| 285 |
+
b.ToTable("Users");
|
| 286 |
+
});
|
| 287 |
+
|
| 288 |
+
modelBuilder.Entity("FlowAPI.Domain.Entities.UserAchievement", b =>
|
| 289 |
+
{
|
| 290 |
+
b.Property<Guid>("Id")
|
| 291 |
+
.ValueGeneratedOnAdd()
|
| 292 |
+
.HasColumnType("TEXT");
|
| 293 |
+
|
| 294 |
+
b.Property<Guid>("AchievementId")
|
| 295 |
+
.HasColumnType("TEXT");
|
| 296 |
+
|
| 297 |
+
b.Property<int>("CurrentValue")
|
| 298 |
+
.HasColumnType("INTEGER");
|
| 299 |
+
|
| 300 |
+
b.Property<bool>("IsUnlocked")
|
| 301 |
+
.HasColumnType("INTEGER");
|
| 302 |
+
|
| 303 |
+
b.Property<DateTime?>("UnlockedAt")
|
| 304 |
+
.HasColumnType("TEXT");
|
| 305 |
+
|
| 306 |
+
b.Property<Guid>("UserId")
|
| 307 |
+
.HasColumnType("TEXT");
|
| 308 |
+
|
| 309 |
+
b.HasKey("Id");
|
| 310 |
+
|
| 311 |
+
b.HasIndex("AchievementId");
|
| 312 |
+
|
| 313 |
+
b.HasIndex("UserId");
|
| 314 |
+
|
| 315 |
+
b.ToTable("UserAchievements");
|
| 316 |
+
});
|
| 317 |
+
|
| 318 |
+
modelBuilder.Entity("FlowAPI.Domain.Entities.Edge", b =>
|
| 319 |
+
{
|
| 320 |
+
b.HasOne("FlowAPI.Domain.Entities.TaskNode", "FromNode")
|
| 321 |
+
.WithMany("OutgoingEdges")
|
| 322 |
+
.HasForeignKey("FromNodeId")
|
| 323 |
+
.OnDelete(DeleteBehavior.Cascade)
|
| 324 |
+
.IsRequired();
|
| 325 |
+
|
| 326 |
+
b.HasOne("FlowAPI.Domain.Entities.Graph", "Graph")
|
| 327 |
+
.WithMany("Edges")
|
| 328 |
+
.HasForeignKey("GraphId")
|
| 329 |
+
.OnDelete(DeleteBehavior.Cascade)
|
| 330 |
+
.IsRequired();
|
| 331 |
+
|
| 332 |
+
b.HasOne("FlowAPI.Domain.Entities.TaskNode", "ToNode")
|
| 333 |
+
.WithMany("IncomingEdges")
|
| 334 |
+
.HasForeignKey("ToNodeId")
|
| 335 |
+
.OnDelete(DeleteBehavior.Cascade)
|
| 336 |
+
.IsRequired();
|
| 337 |
+
|
| 338 |
+
b.Navigation("FromNode");
|
| 339 |
+
|
| 340 |
+
b.Navigation("Graph");
|
| 341 |
+
|
| 342 |
+
b.Navigation("ToNode");
|
| 343 |
+
});
|
| 344 |
+
|
| 345 |
+
modelBuilder.Entity("FlowAPI.Domain.Entities.Graph", b =>
|
| 346 |
+
{
|
| 347 |
+
b.HasOne("FlowAPI.Domain.Entities.User", "User")
|
| 348 |
+
.WithMany("Graphs")
|
| 349 |
+
.HasForeignKey("UserId")
|
| 350 |
+
.OnDelete(DeleteBehavior.Cascade)
|
| 351 |
+
.IsRequired();
|
| 352 |
+
|
| 353 |
+
b.Navigation("User");
|
| 354 |
+
});
|
| 355 |
+
|
| 356 |
+
modelBuilder.Entity("FlowAPI.Domain.Entities.HabitRecord", b =>
|
| 357 |
+
{
|
| 358 |
+
b.HasOne("FlowAPI.Domain.Entities.User", "User")
|
| 359 |
+
.WithMany("HabitRecords")
|
| 360 |
+
.HasForeignKey("UserId")
|
| 361 |
+
.OnDelete(DeleteBehavior.Cascade)
|
| 362 |
+
.IsRequired();
|
| 363 |
+
|
| 364 |
+
b.Navigation("User");
|
| 365 |
+
});
|
| 366 |
+
|
| 367 |
+
modelBuilder.Entity("FlowAPI.Domain.Entities.SharedGraph", b =>
|
| 368 |
+
{
|
| 369 |
+
b.HasOne("FlowAPI.Domain.Entities.Graph", "Graph")
|
| 370 |
+
.WithMany("SharedGraphs")
|
| 371 |
+
.HasForeignKey("GraphId")
|
| 372 |
+
.OnDelete(DeleteBehavior.Cascade)
|
| 373 |
+
.IsRequired();
|
| 374 |
+
|
| 375 |
+
b.HasOne("FlowAPI.Domain.Entities.User", "SharedWithUser")
|
| 376 |
+
.WithMany("SharedGraphs")
|
| 377 |
+
.HasForeignKey("SharedWithUserId")
|
| 378 |
+
.OnDelete(DeleteBehavior.Cascade)
|
| 379 |
+
.IsRequired();
|
| 380 |
+
|
| 381 |
+
b.Navigation("Graph");
|
| 382 |
+
|
| 383 |
+
b.Navigation("SharedWithUser");
|
| 384 |
+
});
|
| 385 |
+
|
| 386 |
+
modelBuilder.Entity("FlowAPI.Domain.Entities.TaskNode", b =>
|
| 387 |
+
{
|
| 388 |
+
b.HasOne("FlowAPI.Domain.Entities.Graph", "Graph")
|
| 389 |
+
.WithMany("Nodes")
|
| 390 |
+
.HasForeignKey("GraphId")
|
| 391 |
+
.OnDelete(DeleteBehavior.Cascade)
|
| 392 |
+
.IsRequired();
|
| 393 |
+
|
| 394 |
+
b.Navigation("Graph");
|
| 395 |
+
});
|
| 396 |
+
|
| 397 |
+
modelBuilder.Entity("FlowAPI.Domain.Entities.UserAchievement", b =>
|
| 398 |
+
{
|
| 399 |
+
b.HasOne("FlowAPI.Domain.Entities.Achievement", "Achievement")
|
| 400 |
+
.WithMany()
|
| 401 |
+
.HasForeignKey("AchievementId")
|
| 402 |
+
.OnDelete(DeleteBehavior.Cascade)
|
| 403 |
+
.IsRequired();
|
| 404 |
+
|
| 405 |
+
b.HasOne("FlowAPI.Domain.Entities.User", "User")
|
| 406 |
+
.WithMany("UserAchievements")
|
| 407 |
+
.HasForeignKey("UserId")
|
| 408 |
+
.OnDelete(DeleteBehavior.Cascade)
|
| 409 |
+
.IsRequired();
|
| 410 |
+
|
| 411 |
+
b.Navigation("Achievement");
|
| 412 |
+
|
| 413 |
+
b.Navigation("User");
|
| 414 |
+
});
|
| 415 |
+
|
| 416 |
+
modelBuilder.Entity("FlowAPI.Domain.Entities.Graph", b =>
|
| 417 |
+
{
|
| 418 |
+
b.Navigation("Edges");
|
| 419 |
+
|
| 420 |
+
b.Navigation("Nodes");
|
| 421 |
+
|
| 422 |
+
b.Navigation("SharedGraphs");
|
| 423 |
+
});
|
| 424 |
+
|
| 425 |
+
modelBuilder.Entity("FlowAPI.Domain.Entities.TaskNode", b =>
|
| 426 |
+
{
|
| 427 |
+
b.Navigation("IncomingEdges");
|
| 428 |
+
|
| 429 |
+
b.Navigation("OutgoingEdges");
|
| 430 |
+
});
|
| 431 |
+
|
| 432 |
+
modelBuilder.Entity("FlowAPI.Domain.Entities.User", b =>
|
| 433 |
+
{
|
| 434 |
+
b.Navigation("Graphs");
|
| 435 |
+
|
| 436 |
+
b.Navigation("HabitRecords");
|
| 437 |
+
|
| 438 |
+
b.Navigation("SharedGraphs");
|
| 439 |
+
|
| 440 |
+
b.Navigation("UserAchievements");
|
| 441 |
+
});
|
| 442 |
+
#pragma warning restore 612, 618
|
| 443 |
+
}
|
| 444 |
+
}
|
| 445 |
+
}
|
FlowAPI.Infrastructure/Migrations/20260521020134_AddTaskNodeVisualFields.cs
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
using Microsoft.EntityFrameworkCore.Migrations;
|
| 2 |
+
|
| 3 |
+
#nullable disable
|
| 4 |
+
|
| 5 |
+
namespace FlowAPI.Infrastructure.Migrations
|
| 6 |
+
{
|
| 7 |
+
/// <inheritdoc />
|
| 8 |
+
public partial class AddTaskNodeVisualFields : Migration
|
| 9 |
+
{
|
| 10 |
+
/// <inheritdoc />
|
| 11 |
+
protected override void Up(MigrationBuilder migrationBuilder)
|
| 12 |
+
{
|
| 13 |
+
migrationBuilder.AddColumn<string>(
|
| 14 |
+
name: "Color",
|
| 15 |
+
table: "TaskNodes",
|
| 16 |
+
type: "TEXT",
|
| 17 |
+
nullable: true);
|
| 18 |
+
|
| 19 |
+
migrationBuilder.AddColumn<string>(
|
| 20 |
+
name: "Data",
|
| 21 |
+
table: "TaskNodes",
|
| 22 |
+
type: "TEXT",
|
| 23 |
+
nullable: true);
|
| 24 |
+
|
| 25 |
+
migrationBuilder.AddColumn<string>(
|
| 26 |
+
name: "Description",
|
| 27 |
+
table: "TaskNodes",
|
| 28 |
+
type: "TEXT",
|
| 29 |
+
nullable: true);
|
| 30 |
+
|
| 31 |
+
migrationBuilder.AddColumn<double>(
|
| 32 |
+
name: "Height",
|
| 33 |
+
table: "TaskNodes",
|
| 34 |
+
type: "REAL",
|
| 35 |
+
nullable: true);
|
| 36 |
+
|
| 37 |
+
migrationBuilder.AddColumn<bool>(
|
| 38 |
+
name: "IsPinned",
|
| 39 |
+
table: "TaskNodes",
|
| 40 |
+
type: "INTEGER",
|
| 41 |
+
nullable: false,
|
| 42 |
+
defaultValue: false);
|
| 43 |
+
|
| 44 |
+
migrationBuilder.AddColumn<double>(
|
| 45 |
+
name: "Width",
|
| 46 |
+
table: "TaskNodes",
|
| 47 |
+
type: "REAL",
|
| 48 |
+
nullable: true);
|
| 49 |
+
}
|
| 50 |
+
|
| 51 |
+
/// <inheritdoc />
|
| 52 |
+
protected override void Down(MigrationBuilder migrationBuilder)
|
| 53 |
+
{
|
| 54 |
+
migrationBuilder.DropColumn(
|
| 55 |
+
name: "Color",
|
| 56 |
+
table: "TaskNodes");
|
| 57 |
+
|
| 58 |
+
migrationBuilder.DropColumn(
|
| 59 |
+
name: "Data",
|
| 60 |
+
table: "TaskNodes");
|
| 61 |
+
|
| 62 |
+
migrationBuilder.DropColumn(
|
| 63 |
+
name: "Description",
|
| 64 |
+
table: "TaskNodes");
|
| 65 |
+
|
| 66 |
+
migrationBuilder.DropColumn(
|
| 67 |
+
name: "Height",
|
| 68 |
+
table: "TaskNodes");
|
| 69 |
+
|
| 70 |
+
migrationBuilder.DropColumn(
|
| 71 |
+
name: "IsPinned",
|
| 72 |
+
table: "TaskNodes");
|
| 73 |
+
|
| 74 |
+
migrationBuilder.DropColumn(
|
| 75 |
+
name: "Width",
|
| 76 |
+
table: "TaskNodes");
|
| 77 |
+
}
|
| 78 |
+
}
|
| 79 |
+
}
|
FlowAPI.Infrastructure/Migrations/AppDbContextModelSnapshot.cs
CHANGED
|
@@ -186,16 +186,31 @@ namespace FlowAPI.Infrastructure.Migrations
|
|
| 186 |
.ValueGeneratedOnAdd()
|
| 187 |
.HasColumnType("TEXT");
|
| 188 |
|
|
|
|
|
|
|
|
|
|
| 189 |
b.Property<DateTime>("CreatedAt")
|
| 190 |
.HasColumnType("TEXT");
|
| 191 |
|
|
|
|
|
|
|
|
|
|
| 192 |
b.Property<string>("Decision")
|
| 193 |
.HasMaxLength(50)
|
| 194 |
.HasColumnType("TEXT");
|
| 195 |
|
|
|
|
|
|
|
|
|
|
| 196 |
b.Property<Guid>("GraphId")
|
| 197 |
.HasColumnType("TEXT");
|
| 198 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 199 |
b.Property<string>("Label")
|
| 200 |
.IsRequired()
|
| 201 |
.HasMaxLength(30)
|
|
@@ -220,6 +235,9 @@ namespace FlowAPI.Infrastructure.Migrations
|
|
| 220 |
.HasColumnType("TEXT")
|
| 221 |
.HasDefaultValue("sketch");
|
| 222 |
|
|
|
|
|
|
|
|
|
|
| 223 |
b.HasKey("Id");
|
| 224 |
|
| 225 |
b.HasIndex("GraphId");
|
|
|
|
| 186 |
.ValueGeneratedOnAdd()
|
| 187 |
.HasColumnType("TEXT");
|
| 188 |
|
| 189 |
+
b.Property<string>("Color")
|
| 190 |
+
.HasColumnType("TEXT");
|
| 191 |
+
|
| 192 |
b.Property<DateTime>("CreatedAt")
|
| 193 |
.HasColumnType("TEXT");
|
| 194 |
|
| 195 |
+
b.Property<string>("Data")
|
| 196 |
+
.HasColumnType("TEXT");
|
| 197 |
+
|
| 198 |
b.Property<string>("Decision")
|
| 199 |
.HasMaxLength(50)
|
| 200 |
.HasColumnType("TEXT");
|
| 201 |
|
| 202 |
+
b.Property<string>("Description")
|
| 203 |
+
.HasColumnType("TEXT");
|
| 204 |
+
|
| 205 |
b.Property<Guid>("GraphId")
|
| 206 |
.HasColumnType("TEXT");
|
| 207 |
|
| 208 |
+
b.Property<double?>("Height")
|
| 209 |
+
.HasColumnType("REAL");
|
| 210 |
+
|
| 211 |
+
b.Property<bool>("IsPinned")
|
| 212 |
+
.HasColumnType("INTEGER");
|
| 213 |
+
|
| 214 |
b.Property<string>("Label")
|
| 215 |
.IsRequired()
|
| 216 |
.HasMaxLength(30)
|
|
|
|
| 235 |
.HasColumnType("TEXT")
|
| 236 |
.HasDefaultValue("sketch");
|
| 237 |
|
| 238 |
+
b.Property<double?>("Width")
|
| 239 |
+
.HasColumnType("REAL");
|
| 240 |
+
|
| 241 |
b.HasKey("Id");
|
| 242 |
|
| 243 |
b.HasIndex("GraphId");
|
FlowAPI.Infrastructure/Repositories/GraphRepository.cs
CHANGED
|
@@ -97,6 +97,12 @@ namespace FlowAPI.Infrastructure.Repositories
|
|
| 97 |
existingNode.Type = node.Type;
|
| 98 |
existingNode.Decision = node.Decision;
|
| 99 |
existingNode.State = node.State;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 100 |
}
|
| 101 |
else
|
| 102 |
{
|
|
|
|
| 97 |
existingNode.Type = node.Type;
|
| 98 |
existingNode.Decision = node.Decision;
|
| 99 |
existingNode.State = node.State;
|
| 100 |
+
existingNode.Description = node.Description;
|
| 101 |
+
existingNode.Color = node.Color;
|
| 102 |
+
existingNode.IsPinned = node.IsPinned;
|
| 103 |
+
existingNode.Width = node.Width;
|
| 104 |
+
existingNode.Height = node.Height;
|
| 105 |
+
existingNode.Data = node.Data;
|
| 106 |
}
|
| 107 |
else
|
| 108 |
{
|