From beae1d249664582309cccd0d8bad5151e4e3c447 Mon Sep 17 00:00:00 2001 From: Developer 02 Date: Wed, 23 Oct 2024 00:48:47 +0200 Subject: [PATCH] =?UTF-8?q?feat:=20Profil-Entit=C3=A4t=20erstellen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WorkFlow.Domain/Entities/Profile.cs | 43 +++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 WorkFlow.Domain/Entities/Profile.cs diff --git a/WorkFlow.Domain/Entities/Profile.cs b/WorkFlow.Domain/Entities/Profile.cs new file mode 100644 index 0000000..feac0f7 --- /dev/null +++ b/WorkFlow.Domain/Entities/Profile.cs @@ -0,0 +1,43 @@ +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; + +namespace WorkFlow.Domain.Entities +{ + [Table("TBMWF_PROFILE", Schema = "dbo")] + public class Profile + { + [Key] + [Column("GUID")] + public int Id { get; init; } + + [Required] + [Column("INTL_NAME", TypeName = "varchar(200)")] + public required string IntlName { get; init; } + + [Required] + [Column("EXT_ID1")] + public required int ExtId1 { get; init; } + + [Required] + [Column("ACTIVE")] + public required bool Active { 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; } + + [Column("CHANGED_WHO", TypeName = "varchar(30)")] + public string? ChangedWho { get; init; } + + [Column("CHANGED_WHEN", TypeName = "datetime")] + public DateTime? ChangedWhen { get; init; } + + [Required] + [Column("TYPE_ID")] + public required byte TypeId { get; init; } + } +} \ No newline at end of file