Foxnouns.NET/Foxnouns.Backend/Database/Models/AuthMethod.cs

23 lines
548 B
C#
Raw Normal View History

2024-05-27 15:53:54 +02:00
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,
}