From 9b7475bb564d70d63bc687e15cfb9bee0b35fda5 Mon Sep 17 00:00:00 2001 From: TekH Date: Mon, 4 Aug 2025 17:17:44 +0200 Subject: [PATCH] feat(PControlsUpdate): add entity for TBMWF_PROFILE_CONTROLS_UPDATE table --- .../Entities/PControlsUpdate.cs | 69 +++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 src/WorkFlow.Domain/Entities/PControlsUpdate.cs diff --git a/src/WorkFlow.Domain/Entities/PControlsUpdate.cs b/src/WorkFlow.Domain/Entities/PControlsUpdate.cs new file mode 100644 index 0000000..f389a6a --- /dev/null +++ b/src/WorkFlow.Domain/Entities/PControlsUpdate.cs @@ -0,0 +1,69 @@ +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; + +namespace WorkFlow.Domain.Entities; + +[Table("TBMWF_PROFILE_CONTROLS_UPDATE")] +public class PControlsUpdate +{ + [Column("GUID", TypeName = "bigint")] + public long Id { get; set; } + + /// + /// Although this field is marked as nullable in the database schema to allow + /// for greater flexibility during database-level operations or migrations, it is + /// treated as required and not null within the application logic. + /// Validation should be enforced at the application level to ensure a value is provided. + /// + [Column("MWF_PROFILE_ID", TypeName = "int")] + public int ProfileId { get; set; } + + /// + /// Although this field is marked as nullable in the database schema to allow + /// for greater flexibility during database-level operations or migrations, it is + /// treated as required and not null within the application logic. + /// Validation should be enforced at the application level to ensure a value is provided. + /// + [Column("USR_ID", TypeName = "int")] + public int? UsrId { get; set; } + + [Required] + [Column("OBJ_ID", TypeName = "bigint")] + public long ObjId { get; set; } + + /// + /// Although this field is marked as nullable in the database schema to allow + /// for greater flexibility during database-level operations or migrations, it is + /// treated as required and not null within the application logic. + /// Validation should be enforced at the application level to ensure a value is provided. + /// + [Column("ATTR_NAME", TypeName = "nvarchar(100)")] + public string? AttrName { get; set; } + + /// + /// Although this field is marked as nullable in the database schema to allow + /// for greater flexibility during database-level operations or migrations, it is + /// treated as required and not null within the application logic. + /// Validation should be enforced at the application level to ensure a value is provided. + /// + [Column("ATTR_VALUE", TypeName = "nvarchar(3000)")] + public string? AttrValue { get; set; } + + /// + /// Although this field is marked as nullable in the database schema to allow + /// for greater flexibility during database-level operations or migrations, it is + /// treated as required and not null within the application logic. + /// Validation should be enforced at the application level to ensure a value is provided. + /// + [Column("ADDED_WHO", TypeName = "nvarchar(30)")] + public string? AddedWho { get; set; } + + /// + /// Although this field is marked as nullable in the database schema to allow + /// for greater flexibility during database-level operations or migrations, it is + /// treated as required and not null within the application logic. + /// Validation should be enforced at the application level to ensure a value is provided. + /// + [Column("ADDED_WHEN", TypeName = "datetime")] + public DateTime? AddedWhen { get; set; } +}