init
This commit is contained in:
commit
f4c0a40259
27 changed files with 2188 additions and 0 deletions
23
Foxnouns.Backend/Database/Models/AuthMethod.cs
Normal file
23
Foxnouns.Backend/Database/Models/AuthMethod.cs
Normal file
|
@ -0,0 +1,23 @@
|
|||
namespace Foxnouns.Backend.Database.Models;
|
||||
|
||||
public class AuthMethod : BaseModel
|
||||
{
|
||||
public required AuthType AuthType { get; init; }
|
||||
public required string RemoteId { get; init; }
|
||||
public string? RemoteUsername { get; set; }
|
||||
|
||||
public Snowflake UserId { get; init; }
|
||||
public User User { get; init; } = null!;
|
||||
|
||||
public Snowflake? FediverseApplicationId { get; init; }
|
||||
public FediverseApplication? FediverseApplication { get; init; }
|
||||
}
|
||||
|
||||
public enum AuthType
|
||||
{
|
||||
Discord,
|
||||
Google,
|
||||
Tumblr,
|
||||
Fediverse,
|
||||
Email,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue