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.
This commit is contained in:
tekh 2025-10-20 10:37:29 +02:00
parent 52306d481f
commit e3e2831da1

View File

@ -32,6 +32,10 @@ public class Annotation
[Column("VALUE", TypeName = "nvarchar(max)")] [Column("VALUE", TypeName = "nvarchar(max)")]
public string Value { get; set; } public string Value { get; set; }
[Required]
[Column("TYPE", TypeName = "nvarchar(50)")]
public string Type { get; set; }
[Required] [Required]
[Column("ADDED_WHEN", TypeName = "datetime")] [Column("ADDED_WHEN", TypeName = "datetime")]
public DateTime AddedWhen { get; set; } public DateTime AddedWhen { get; set; }
@ -39,7 +43,7 @@ public class Annotation
[Column("CHANGED_WHEN", TypeName = "datetime")] [Column("CHANGED_WHEN", TypeName = "datetime")]
public DateTime? ChangedWhen { get; set; } public DateTime? ChangedWhen { get; set; }
[Column("CHANGED_WHO", TypeName = "nchar(100)")] [Column("CHANGED_WHO", TypeName = "nvarchar(100)")]
[StringLength(100)] [StringLength(100)]
public string public string
#if NET #if NET