From da28f1f57e449de1fa58a7312382ca6796ad5652 Mon Sep 17 00:00:00 2001 From: Developer 02 Date: Wed, 23 Oct 2024 00:50:42 +0200 Subject: [PATCH] feat: ProfilObjState-Eigenschaft erstellen --- WorkFlow.Domain/Entities/ProfileObjState.cs | 46 +++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 WorkFlow.Domain/Entities/ProfileObjState.cs diff --git a/WorkFlow.Domain/Entities/ProfileObjState.cs b/WorkFlow.Domain/Entities/ProfileObjState.cs new file mode 100644 index 0000000..328ad40 --- /dev/null +++ b/WorkFlow.Domain/Entities/ProfileObjState.cs @@ -0,0 +1,46 @@ +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; + +namespace WorkFlow.Domain.Entities +{ + [Table("TBMWF_PROFILE_OBJ_STATE", Schema = "dbo")] + public class ProfileObjState + { + [Key] + [Column("GUID")] + public int Id { get; init; } + + [Required] + [Column("MWF_PROFILE_ID")] + public required int MwfProfileId { get; init; } + + [Required] + [Column("USR_ID")] + public required int UsrId { get; init; } + + [Required] + [Column("OBJ_ID")] + public required long ObjId { get; init; } + + [Required] + [Column("STATE_ID")] + public required int StateId { get; init; } + + [Column("STATE2", TypeName = "nvarchar(3000)")] + public string? State2 { get; init; } + + [Column("STATE3", TypeName = "nvarchar(3000)")] + public string? State3 { get; init; } + + [Column("STATE4", TypeName = "nvarchar(3000)")] + public string? State4 { get; init; } + + [Required] + [Column("ADDED_WHO", TypeName = "varchar(30)")] + public required string AddedWho { get; init; } + + [Required] + [Column("ADDED_WHEN", TypeName = "datetime")] + public required DateTime AddedWhen { get; init; } + } +} \ No newline at end of file