Foxchat.NET/Foxchat.Chat/Database/Models/User.cs

18 lines
No EOL
511 B
C#

using Foxchat.Core.Models;
using NodaTime;
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; }
public Instant LastFetchedAt { get; set; }
public List<Guild> Guilds { get; } = [];
public List<Guild> OwnedGuilds { get; } = [];
}