blob: 866cff128366daabf3d860a8e648bbe058a3cd42 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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; }
}
}
|