From f53bc65acfff627d42e165b5d7070199499c489b Mon Sep 17 00:00:00 2001 From: TekH Date: Mon, 9 Mar 2026 21:25:15 +0100 Subject: [PATCH] Add EnvelopeReport entity mapped to VWSIG_ENVELOPE_REPORT Introduced the EnvelopeReport class in the Domain.Entities namespace, mapped to the "VWSIG_ENVELOPE_REPORT" table using EF Core data annotations. The entity includes properties for envelope ID, head UUID, title, message, status, timestamp, and user, with appropriate column mappings and validation attributes. --- .../Entities/EnvelopeReport.cs | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 EnvelopeGenerator.Domain/Entities/EnvelopeReport.cs diff --git a/EnvelopeGenerator.Domain/Entities/EnvelopeReport.cs b/EnvelopeGenerator.Domain/Entities/EnvelopeReport.cs new file mode 100644 index 00000000..fc282c6b --- /dev/null +++ b/EnvelopeGenerator.Domain/Entities/EnvelopeReport.cs @@ -0,0 +1,36 @@ +using System; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; + +namespace EnvelopeGenerator.Domain.Entities +{ + [Table("VWSIG_ENVELOPE_REPORT", Schema = "dbo")] + public class EnvelopeReport + { + [Column("ENVELOPE_ID", TypeName = "int")] + [Required] + public int EnvelopeId { get; set; } + + [Column("HEAD_UUID", TypeName = "nvarchar(36)")] + [Required] + public string HeadUuid { get; set; } + + [Column("HEAD_TITLE", TypeName = "nvarchar(128)")] + public string HeadTitle { get; set; } + + [Column("HEAD_MESSAGE", TypeName = "nvarchar(max)")] + [Required] + public string HeadMessage { get; set; } + + [Column("POS_STATUS", TypeName = "int")] + [Required] + public int PosStatus { get; set; } + + [Column("POS_WHEN", TypeName = "datetime")] + public DateTime? PosWhen { get; set; } + + [Column("POS_WHO", TypeName = "nvarchar(128)")] + [Required] + public string PosWho { get; set; } + } +}