2024-05-11 15:26:47 +02:00
|
|
|
namespace Foxchat.Identity.Database.Models;
|
|
|
|
|
2024-05-19 17:20:45 +02:00
|
|
|
public class ChatInstance : BaseModel
|
2024-05-11 15:26:47 +02:00
|
|
|
{
|
|
|
|
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,
|
|
|
|
}
|
|
|
|
}
|