fix: Fixed UserId patron table error

fix: Added au and kz countries as en and kz languages respectively
fix: Strikeout is thinner now on plants
This commit is contained in:
Kwoth
2024-11-03 08:24:00 +00:00
parent 32fc8b6e03
commit b6b6b4e19e
13 changed files with 7076 additions and 58 deletions

View File

@@ -3,6 +3,7 @@ namespace NadekoBot.Db.Models;
public class PatronUser
{
public int Id { get; set; }
public string UniquePlatformUserId { get; set; }
public ulong UserId { get; set; }
public int AmountCents { get; set; }

View File

@@ -618,7 +618,7 @@ public abstract class NadekoContext : DbContext
modelBuilder.Entity<PatronUser>(pu =>
{
pu.HasIndex(x => x.UniquePlatformUserId).IsUnique();
pu.HasKey(x => x.UserId);
pu.HasIndex(x => x.UserId).IsUnique(false);
});
// quotes are per user id