implement

This commit is contained in:
2026-02-09 21:21:17 +01:00
parent ff18d7b913
commit 2032a74ecd
14 changed files with 441 additions and 6 deletions

View File

@@ -0,0 +1,33 @@
using System.ComponentModel.DataAnnotations;
using AipsCore.Domain.Models.Shape.Enums;
namespace AipsCore.Infrastructure.Persistence.Shape;
public class Shape
{
[Key]
public Guid Id { get; set; }
// NAV TO WHITEBOARD
public Guid WhiteboardId { get; set; }
public Whiteboard.Whiteboard Whiteboard { get; set; } = null!;
public ShapeType Type { get; set; }
public int PositionX { get; set; }
public int PositionY { get; set; }
[MaxLength(10)] public string Color { get; set; } = null!;
// END POSITION (Rectangle, Line, Arrow)
public int? EndPositionX { get; set; }
public int? EndPositionY { get; set; }
// THICKNESS (Rectangle, Line, Arrow)
public int? Thickness { get; set; }
// TEXT (Text)
public string? TextValue { get; set; }
public int? TextSize { get; set; }
}