From e3e2831da180eec4ffa1e673c2bf4718bc71c4c0 Mon Sep 17 00:00:00 2001 From: TekH Date: Mon, 20 Oct 2025 10:37:29 +0200 Subject: [PATCH] feat(Annotation): add Type property to Annotation entity and update CHANGED_WHO column type - Added new required `Type` field with nvarchar(50) to `Annotation` entity. - Updated `CHANGED_WHO` column type from nchar(100) to nvarchar(50). - Corresponding database migration required. --- EnvelopeGenerator.Domain/Entities/Annotation.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/EnvelopeGenerator.Domain/Entities/Annotation.cs b/EnvelopeGenerator.Domain/Entities/Annotation.cs index 77e07d8d..fcf88f58 100644 --- a/EnvelopeGenerator.Domain/Entities/Annotation.cs +++ b/EnvelopeGenerator.Domain/Entities/Annotation.cs @@ -32,6 +32,10 @@ public class Annotation [Column("VALUE", TypeName = "nvarchar(max)")] public string Value { get; set; } + [Required] + [Column("TYPE", TypeName = "nvarchar(50)")] + public string Type { get; set; } + [Required] [Column("ADDED_WHEN", TypeName = "datetime")] public DateTime AddedWhen { get; set; } @@ -39,7 +43,7 @@ public class Annotation [Column("CHANGED_WHEN", TypeName = "datetime")] public DateTime? ChangedWhen { get; set; } - [Column("CHANGED_WHO", TypeName = "nchar(100)")] + [Column("CHANGED_WHO", TypeName = "nvarchar(100)")] [StringLength(100)] public string #if NET