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; } +}