Foxchat.NET/Foxchat.Identity/Database/Models/ChatInstance.cs
2024-05-14 03:51:31 +02:00

19 lines
492 B
C#

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,
}
}