aboutsummaryrefslogtreecommitdiff
path: root/VNLib.Plugins.Essentials.Accounts.Admin/Model/User.cs
diff options
context:
space:
mode:
Diffstat (limited to 'VNLib.Plugins.Essentials.Accounts.Admin/Model/User.cs')
-rw-r--r--VNLib.Plugins.Essentials.Accounts.Admin/Model/User.cs26
1 files changed, 26 insertions, 0 deletions
diff --git a/VNLib.Plugins.Essentials.Accounts.Admin/Model/User.cs b/VNLib.Plugins.Essentials.Accounts.Admin/Model/User.cs
new file mode 100644
index 0000000..866cff1
--- /dev/null
+++ b/VNLib.Plugins.Essentials.Accounts.Admin/Model/User.cs
@@ -0,0 +1,26 @@
+using System;
+using System.ComponentModel.DataAnnotations.Schema;
+
+using VNLib.Plugins.Extensions.Data;
+using VNLib.Plugins.Extensions.Data.Abstractions;
+
+namespace VNLib.Plugins.Essentials.Accounts.Admin.Model
+{
+ internal class User : DbModelBase, IUserEntity
+ {
+ public string? UserId { get; set; }
+ //Users's do not have unique id values
+ [NotMapped]
+ public override string Id
+ {
+ get => UserId!;
+ set => UserId = value;
+ }
+ public override DateTime Created { get; set; }
+ //Do not map the last modified, user table does not have a last modified field.
+ [NotMapped]
+ public override DateTime LastModified { get; set; }
+
+ public ulong Privilages { get; set; }
+ }
+}