feat: add core persistence model
This commit is contained in:
16
Tiku.Domain/Identity/UserIdentity.cs
Normal file
16
Tiku.Domain/Identity/UserIdentity.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using System.Text.Json;
|
||||
using Tiku.Domain.Common;
|
||||
|
||||
namespace Tiku.Domain.Identity;
|
||||
|
||||
public sealed class UserIdentity : AuditableEntity
|
||||
{
|
||||
public Guid UserId { get; set; }
|
||||
public string Provider { get; set; } = string.Empty;
|
||||
public string ProviderSubject { get; set; } = string.Empty;
|
||||
public string? UnionId { get; set; }
|
||||
public string? OpenId { get; set; }
|
||||
public string? Phone { get; set; }
|
||||
public string? Email { get; set; }
|
||||
public JsonElement SecretPayload { get; set; } = JsonDefaults.Object();
|
||||
}
|
||||
Reference in New Issue
Block a user