GuestLog - GuestDocument pages initial implementation

This commit is contained in:
2026-06-21 17:10:27 +02:00
parent 86fadf97b4
commit 76b2695c02
24 changed files with 832 additions and 54 deletions
@@ -0,0 +1,30 @@
namespace Somnia.GuestLog.Models.DTOs;
public class GuestDocumentDTO
{
public string? DocumentType { get; set; }
public string? DocumentNum { get; set; }
public DateTime? IssueDate { get; set; }
public string? SupportNum { get; set; }
public string? Nationality { get; set; }
public string? Name { get; set; }
public string? Surname { get; set; }
public string? Surname2 { get; set; }
public DateTime? BirthDate { get; set; }
public string? Gender { get; set; }
public string? PhoneNumber { get; set; }
public string? EmailAddress { get; set; }
public string? Address { get; set; }
public string? AddressCity { get; set; }
public string? AddressProvince { get; set; }
public string? AddressState { get; set; }
public string? AddressCountry { get; set; }
public string? ZipCode { get; set; }
}
@@ -1,4 +1,4 @@
namespace Somnia.GuestLog.Models;
namespace Somnia.GuestLog.Models.Entities;
public abstract class BaseEntity
{
@@ -1,4 +1,4 @@
namespace Somnia.GuestLog.Models;
namespace Somnia.GuestLog.Models.Entities;
public class GuestAddress : BaseEntity
{
@@ -1,4 +1,4 @@
namespace Somnia.GuestLog.Models;
namespace Somnia.GuestLog.Models.Entities;
public class GuestDocument : BaseEntity
{
@@ -22,8 +22,10 @@ public class GuestDocument : BaseEntity
public string? PhoneNumber { get; set; }
public string? EmailAddress { get; set; }
//Generated Properties.
public required DateTime CreateTime { get; set; }
public required DateTime UpdateTime { get; set; }
public override string GetFullKey() => $"{DocumentType}-{DocumentNum}";
}