Activable badge

This commit is contained in:
2025-06-10 23:04:46 +08:00
parent 2fb29284fb
commit ee36ad41d0
5 changed files with 133 additions and 3 deletions

View File

@ -65,6 +65,8 @@ public class Profile : ModelBase
public Instant? Birthday { get; set; }
public Instant? LastSeenAt { get; set; }
[Column(TypeName = "jsonb")] public BadgeReferenceObject? ActiveBadge { get; set; } = null!;
public int Experience { get; set; } = 0;
[NotMapped] public int Level => Leveling.ExperiencePerLevel.Count(xp => Experience >= xp) - 1;