Foxnouns.NET/Foxnouns.Backend/Database/Models/PrideFlag.cs

28 lines
781 B
C#
Raw Normal View History

2024-09-26 20:15:04 +02:00
namespace Foxnouns.Backend.Database.Models;
public class PrideFlag : BaseModel
{
public required Snowflake UserId { get; init; }
2024-12-09 14:52:31 +01:00
// A null hash means the flag hasn't been processed yet.
public string? Hash { get; set; }
2024-09-26 20:15:04 +02:00
public required string Name { get; set; }
public string? Description { get; set; }
}
public class UserFlag
{
public long Id { get; init; }
public required Snowflake UserId { get; init; }
public required Snowflake PrideFlagId { get; init; }
public PrideFlag PrideFlag { get; init; } = null!;
}
public class MemberFlag
{
public long Id { get; init; }
public required Snowflake MemberId { get; init; }
public required Snowflake PrideFlagId { get; init; }
public PrideFlag PrideFlag { get; init; } = null!;
}