Foxchat.NET/Foxchat.Identity/Database/Models/ChatInstance.cs

20 lines
492 B
C#
Raw Normal View History

2024-05-11 15:26:47 +02:00
namespace Foxchat.Identity.Database.Models;
public class ChatInstance
{
public Ulid Id { get; init; } = Ulid.NewUlid();
public string Domain { get; init; } = null!;
public string BaseUrl { get; set; } = null!;
public string PublicKey { get; set; } = null!;
public InstanceStatus Status { get; set; }
public string? Reason { get; set; }
public List<Account> Accounts { get; } = [];
public enum InstanceStatus
{
Active,
Suspended,
}
}