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