diff --git a/EnvelopeGenerator.Domain/Entities/User.cs b/EnvelopeGenerator.Domain/Entities/User.cs index b8ff36a9..407a597f 100644 --- a/EnvelopeGenerator.Domain/Entities/User.cs +++ b/EnvelopeGenerator.Domain/Entities/User.cs @@ -13,7 +13,7 @@ namespace EnvelopeGenerator.Domain.Entities [Column("GUID")] [Key] [DatabaseGenerated(DatabaseGeneratedOption.Identity)] - public int Id { get; set; } + public int Id { get; set; } = 0; [StringLength(50)] [Column("ADDED_WHO")] @@ -95,5 +95,19 @@ namespace EnvelopeGenerator.Domain.Entities [Column("DELETED_WHO")] [StringLength(50)] public string DeletedWho { get; set; } + + #region FORM_APP + [NotMapped] + public bool HasAccess { get; set; } + + [NotMapped] + public bool IsAdmin { get; set; } + + [NotMapped] + public bool GhostModeActive { get; set; } + + [NotMapped] + public string FullName => $"{Prename} {Name}"; + #endregion } } \ No newline at end of file