2024-05-21 20:14:52 +02:00
|
|
|
using Foxchat.Core.Models;
|
|
|
|
using NodaTime;
|
|
|
|
|
2024-05-21 16:41:01 +02:00
|
|
|
namespace Foxchat.Chat.Database.Models;
|
|
|
|
|
|
|
|
public class User : BaseModel
|
|
|
|
{
|
|
|
|
public Ulid InstanceId { get; init; }
|
|
|
|
public IdentityInstance Instance { get; init; } = null!;
|
|
|
|
public string RemoteUserId { get; init; } = null!;
|
|
|
|
public string Username { get; init; } = null!;
|
|
|
|
|
|
|
|
public string? Avatar { get; set; }
|
2024-05-21 20:14:52 +02:00
|
|
|
public Instant LastFetchedAt { get; set; }
|
2024-05-21 16:41:01 +02:00
|
|
|
|
|
|
|
public List<Guild> Guilds { get; } = [];
|
|
|
|
public List<Guild> OwnedGuilds { get; } = [];
|
|
|
|
}
|