From 7ebe48204a012cbc8620754343fa2001ca83f5d9 Mon Sep 17 00:00:00 2001 From: TekH Date: Mon, 1 Dec 2025 13:56:43 +0100 Subject: [PATCH] Add EndpointAuth entity for database table mapping Introduced the `EndpointAuth` class in the `ReC.Domain.Entities` namespace to represent the `TBREC_CFG_ENDPOINT_AUTH` database table. - Added Entity Framework annotations for table and column mappings. - Defined properties for all table columns, including `Id`, `Active`, `Description`, `Type`, `ApiKey`, `ApiValue`, `ApiKeyAddTo`, `Token`, `Username`, `Password`, `Domain`, `Workstation`, `AddedWho`, `AddedWhen`, `ChangedWho`, and `ChangedWhen`. - Configured `Id` as the primary key with auto-generated values. --- src/ReC.Domain/Entities/EndpointAuth.cs | 59 +++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 src/ReC.Domain/Entities/EndpointAuth.cs diff --git a/src/ReC.Domain/Entities/EndpointAuth.cs b/src/ReC.Domain/Entities/EndpointAuth.cs new file mode 100644 index 0000000..566a327 --- /dev/null +++ b/src/ReC.Domain/Entities/EndpointAuth.cs @@ -0,0 +1,59 @@ +using System; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; + +namespace ReC.Domain.Entities; + +[Table("TBREC_CFG_ENDPOINT_AUTH")] +public class EndpointAuth +{ + [Key] + [Column("GUID")] + [DatabaseGenerated(DatabaseGeneratedOption.Identity)] + public long? Id { get; set; } + + [Column("ACTIVE")] + public bool? Active { get; set; } + + [Column("DESCRIPTION")] + public string? Description { get; set; } + + [Column("TYPE")] + public string? Type { get; set; } + + [Column("API_KEY")] + public string? ApiKey { get; set; } + + [Column("API_VALUE")] + public string? ApiValue { get; set; } + + [Column("API_KEY_ADD_TO")] + public string? ApiKeyAddTo { get; set; } + + [Column("TOKEN")] + public string? Token { get; set; } + + [Column("USERNAME")] + public string? Username { get; set; } + + [Column("PASSWORD")] + public string? Password { get; set; } + + [Column("DOMAIN")] + public string? Domain { get; set; } + + [Column("WORKSTATION")] + public string? Workstation { get; set; } + + [Column("ADDED_WHO")] + public string? AddedWho { get; set; } + + [Column("ADDED_WHEN")] + public DateTime? AddedWhen { get; set; } + + [Column("CHANGED_WHO")] + public string? ChangedWho { get; set; } + + [Column("CHANGED_WHEN")] + public DateTime? ChangedWhen { get; set; } +}