added addrolereward and removerolereward events for .notify

added .notify with no params showing events with descriptions
added .winlb
updated discord.net, redid migrations
This commit is contained in:
Toastie 2024-12-08 19:37:22 +13:00
parent f8eb585093
commit 29bac7739d
Signed by: toastie_t0ast
GPG key ID: 27F3B6855AFD40A4
31 changed files with 635 additions and 219 deletions
src/EllieBot/Db

View file

@ -164,13 +164,18 @@ public abstract class EllieContext : DbContext
#region UserBetStats
modelBuilder.Entity<UserBetStats>()
.HasIndex(x => new
{
x.UserId,
x.Game
})
.IsUnique();
modelBuilder.Entity<UserBetStats>(ubs =>
{
ubs.HasIndex(x => new
{
x.UserId,
x.Game
})
.IsUnique();
ubs.HasIndex(x => x.MaxWin)
.IsUnique(false);
});
#endregion