diff --git a/src/NadekoBot/Migrations/Mysql/20221003175743_gambling-stats.Designer.cs b/src/NadekoBot/Migrations/Mysql/20221003175743_gambling-stats.Designer.cs
new file mode 100644
index 000000000..8ab08051c
--- /dev/null
+++ b/src/NadekoBot/Migrations/Mysql/20221003175743_gambling-stats.Designer.cs
@@ -0,0 +1,3612 @@
+//
+using System;
+using Microsoft.EntityFrameworkCore;
+using Microsoft.EntityFrameworkCore.Infrastructure;
+using Microsoft.EntityFrameworkCore.Migrations;
+using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
+using NadekoBot.Services.Database;
+
+#nullable disable
+
+namespace NadekoBot.Migrations.Mysql
+{
+ [DbContext(typeof(MysqlContext))]
+ [Migration("20221003175743_gambling-stats")]
+ partial class gamblingstats
+ {
+ protected override void BuildTargetModel(ModelBuilder modelBuilder)
+ {
+#pragma warning disable 612, 618
+ modelBuilder
+ .HasAnnotation("ProductVersion", "6.0.7")
+ .HasAnnotation("Relational:MaxIdentifierLength", 64);
+
+ modelBuilder.Entity("NadekoBot.Db.Models.AutoPublishChannel", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int")
+ .HasColumnName("id");
+
+ b.Property("ChannelId")
+ .HasColumnType("bigint unsigned")
+ .HasColumnName("channelid");
+
+ b.Property("DateAdded")
+ .HasColumnType("datetime(6)")
+ .HasColumnName("dateadded");
+
+ b.Property("GuildId")
+ .HasColumnType("bigint unsigned")
+ .HasColumnName("guildid");
+
+ b.HasKey("Id")
+ .HasName("pk_autopublishchannel");
+
+ b.HasIndex("GuildId")
+ .IsUnique()
+ .HasDatabaseName("ix_autopublishchannel_guildid");
+
+ b.ToTable("autopublishchannel", (string)null);
+ });
+
+ modelBuilder.Entity("NadekoBot.Db.Models.BankUser", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int")
+ .HasColumnName("id");
+
+ b.Property("Balance")
+ .HasColumnType("bigint")
+ .HasColumnName("balance");
+
+ b.Property("DateAdded")
+ .HasColumnType("datetime(6)")
+ .HasColumnName("dateadded");
+
+ b.Property("UserId")
+ .HasColumnType("bigint unsigned")
+ .HasColumnName("userid");
+
+ b.HasKey("Id")
+ .HasName("pk_bankusers");
+
+ b.HasIndex("UserId")
+ .IsUnique()
+ .HasDatabaseName("ix_bankusers_userid");
+
+ b.ToTable("bankusers", (string)null);
+ });
+
+ modelBuilder.Entity("NadekoBot.Db.Models.ClubApplicants", b =>
+ {
+ b.Property("ClubId")
+ .HasColumnType("int")
+ .HasColumnName("clubid");
+
+ b.Property("UserId")
+ .HasColumnType("int")
+ .HasColumnName("userid");
+
+ b.HasKey("ClubId", "UserId")
+ .HasName("pk_clubapplicants");
+
+ b.HasIndex("UserId")
+ .HasDatabaseName("ix_clubapplicants_userid");
+
+ b.ToTable("clubapplicants", (string)null);
+ });
+
+ modelBuilder.Entity("NadekoBot.Db.Models.ClubBans", b =>
+ {
+ b.Property("ClubId")
+ .HasColumnType("int")
+ .HasColumnName("clubid");
+
+ b.Property("UserId")
+ .HasColumnType("int")
+ .HasColumnName("userid");
+
+ b.HasKey("ClubId", "UserId")
+ .HasName("pk_clubbans");
+
+ b.HasIndex("UserId")
+ .HasDatabaseName("ix_clubbans_userid");
+
+ b.ToTable("clubbans", (string)null);
+ });
+
+ modelBuilder.Entity("NadekoBot.Db.Models.ClubInfo", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int")
+ .HasColumnName("id");
+
+ b.Property("DateAdded")
+ .HasColumnType("datetime(6)")
+ .HasColumnName("dateadded");
+
+ b.Property("Description")
+ .HasColumnType("longtext")
+ .HasColumnName("description");
+
+ b.Property("ImageUrl")
+ .HasColumnType("longtext")
+ .HasColumnName("imageurl");
+
+ b.Property("Name")
+ .IsRequired()
+ .HasMaxLength(20)
+ .HasColumnType("varchar(20)")
+ .HasColumnName("name")
+ .UseCollation("utf8mb4_bin");
+
+ b.Property("OwnerId")
+ .HasColumnType("int")
+ .HasColumnName("ownerid");
+
+ b.Property("Xp")
+ .HasColumnType("int")
+ .HasColumnName("xp");
+
+ b.HasKey("Id")
+ .HasName("pk_clubs");
+
+ b.HasAlternateKey("Name")
+ .HasName("ak_clubs_name");
+
+ b.HasIndex("OwnerId")
+ .IsUnique()
+ .HasDatabaseName("ix_clubs_ownerid");
+
+ b.ToTable("clubs", (string)null);
+ });
+
+ modelBuilder.Entity("NadekoBot.Db.Models.DiscordUser", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int")
+ .HasColumnName("id");
+
+ b.Property("AvatarId")
+ .HasColumnType("longtext")
+ .HasColumnName("avatarid");
+
+ b.Property("ClubId")
+ .HasColumnType("int")
+ .HasColumnName("clubid");
+
+ b.Property("CurrencyAmount")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint")
+ .HasDefaultValue(0L)
+ .HasColumnName("currencyamount");
+
+ b.Property("DateAdded")
+ .HasColumnType("datetime(6)")
+ .HasColumnName("dateadded");
+
+ b.Property("Discriminator")
+ .HasColumnType("longtext")
+ .HasColumnName("discriminator");
+
+ b.Property("IsClubAdmin")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("tinyint(1)")
+ .HasDefaultValue(false)
+ .HasColumnName("isclubadmin");
+
+ b.Property("NotifyOnLevelUp")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int")
+ .HasDefaultValue(0)
+ .HasColumnName("notifyonlevelup");
+
+ b.Property("TotalXp")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint")
+ .HasDefaultValue(0L)
+ .HasColumnName("totalxp");
+
+ b.Property("UserId")
+ .HasColumnType("bigint unsigned")
+ .HasColumnName("userid");
+
+ b.Property("Username")
+ .HasColumnType("longtext")
+ .HasColumnName("username");
+
+ b.HasKey("Id")
+ .HasName("pk_discorduser");
+
+ b.HasAlternateKey("UserId")
+ .HasName("ak_discorduser_userid");
+
+ b.HasIndex("ClubId")
+ .HasDatabaseName("ix_discorduser_clubid");
+
+ b.HasIndex("CurrencyAmount")
+ .HasDatabaseName("ix_discorduser_currencyamount");
+
+ b.HasIndex("TotalXp")
+ .HasDatabaseName("ix_discorduser_totalxp");
+
+ b.HasIndex("UserId")
+ .HasDatabaseName("ix_discorduser_userid");
+
+ b.ToTable("discorduser", (string)null);
+ });
+
+ modelBuilder.Entity("NadekoBot.Db.Models.FollowedStream", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int")
+ .HasColumnName("id");
+
+ b.Property("ChannelId")
+ .HasColumnType("bigint unsigned")
+ .HasColumnName("channelid");
+
+ b.Property("DateAdded")
+ .HasColumnType("datetime(6)")
+ .HasColumnName("dateadded");
+
+ b.Property("GuildConfigId")
+ .HasColumnType("int")
+ .HasColumnName("guildconfigid");
+
+ b.Property("GuildId")
+ .HasColumnType("bigint unsigned")
+ .HasColumnName("guildid");
+
+ b.Property("Message")
+ .HasColumnType("longtext")
+ .HasColumnName("message");
+
+ b.Property("Type")
+ .HasColumnType("int")
+ .HasColumnName("type");
+
+ b.Property("Username")
+ .HasColumnType("longtext")
+ .HasColumnName("username");
+
+ b.HasKey("Id")
+ .HasName("pk_followedstream");
+
+ b.HasIndex("GuildConfigId")
+ .HasDatabaseName("ix_followedstream_guildconfigid");
+
+ b.ToTable("followedstream", (string)null);
+ });
+
+ modelBuilder.Entity("NadekoBot.Db.Models.PatronQuota", b =>
+ {
+ b.Property("UserId")
+ .HasColumnType("bigint unsigned")
+ .HasColumnName("userid");
+
+ b.Property("FeatureType")
+ .HasColumnType("int")
+ .HasColumnName("featuretype");
+
+ b.Property("Feature")
+ .HasColumnType("varchar(255)")
+ .HasColumnName("feature");
+
+ b.Property("DailyCount")
+ .HasColumnType("int unsigned")
+ .HasColumnName("dailycount");
+
+ b.Property("HourlyCount")
+ .HasColumnType("int unsigned")
+ .HasColumnName("hourlycount");
+
+ b.Property("MonthlyCount")
+ .HasColumnType("int unsigned")
+ .HasColumnName("monthlycount");
+
+ b.HasKey("UserId", "FeatureType", "Feature")
+ .HasName("pk_patronquotas");
+
+ b.HasIndex("UserId")
+ .HasDatabaseName("ix_patronquotas_userid");
+
+ b.ToTable("patronquotas", (string)null);
+ });
+
+ modelBuilder.Entity("NadekoBot.Db.Models.PatronUser", b =>
+ {
+ b.Property("UserId")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint unsigned")
+ .HasColumnName("userid");
+
+ b.Property("AmountCents")
+ .HasColumnType("int")
+ .HasColumnName("amountcents");
+
+ b.Property("LastCharge")
+ .HasColumnType("datetime(6)")
+ .HasColumnName("lastcharge");
+
+ b.Property("UniquePlatformUserId")
+ .HasColumnType("varchar(255)")
+ .HasColumnName("uniqueplatformuserid");
+
+ b.Property("ValidThru")
+ .HasColumnType("datetime(6)")
+ .HasColumnName("validthru");
+
+ b.HasKey("UserId")
+ .HasName("pk_patrons");
+
+ b.HasIndex("UniquePlatformUserId")
+ .IsUnique()
+ .HasDatabaseName("ix_patrons_uniqueplatformuserid");
+
+ b.ToTable("patrons", (string)null);
+ });
+
+ modelBuilder.Entity("NadekoBot.Db.Models.StreamOnlineMessage", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int")
+ .HasColumnName("id");
+
+ b.Property("ChannelId")
+ .HasColumnType("bigint unsigned")
+ .HasColumnName("channelid");
+
+ b.Property("DateAdded")
+ .HasColumnType("datetime(6)")
+ .HasColumnName("dateadded");
+
+ b.Property("MessageId")
+ .HasColumnType("bigint unsigned")
+ .HasColumnName("messageid");
+
+ b.Property("Name")
+ .HasColumnType("longtext")
+ .HasColumnName("name");
+
+ b.Property("Type")
+ .HasColumnType("int")
+ .HasColumnName("type");
+
+ b.HasKey("Id")
+ .HasName("pk_streamonlinemessages");
+
+ b.ToTable("streamonlinemessages", (string)null);
+ });
+
+ modelBuilder.Entity("NadekoBot.Db.Models.XpShopOwnedItem", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int")
+ .HasColumnName("id");
+
+ b.Property("DateAdded")
+ .HasColumnType("datetime(6)")
+ .HasColumnName("dateadded");
+
+ b.Property("IsUsing")
+ .HasColumnType("tinyint(1)")
+ .HasColumnName("isusing");
+
+ b.Property("ItemKey")
+ .IsRequired()
+ .HasColumnType("varchar(255)")
+ .HasColumnName("itemkey");
+
+ b.Property("ItemType")
+ .HasColumnType("int")
+ .HasColumnName("itemtype");
+
+ b.Property("UserId")
+ .HasColumnType("bigint unsigned")
+ .HasColumnName("userid");
+
+ b.HasKey("Id")
+ .HasName("pk_xpshopowneditem");
+
+ b.HasIndex("UserId", "ItemType", "ItemKey")
+ .IsUnique()
+ .HasDatabaseName("ix_xpshopowneditem_userid_itemtype_itemkey");
+
+ b.ToTable("xpshopowneditem", (string)null);
+ });
+
+ modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiAltSetting", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int")
+ .HasColumnName("id");
+
+ b.Property("Action")
+ .HasColumnType("int")
+ .HasColumnName("action");
+
+ b.Property("ActionDurationMinutes")
+ .HasColumnType("int")
+ .HasColumnName("actiondurationminutes");
+
+ b.Property("GuildConfigId")
+ .HasColumnType("int")
+ .HasColumnName("guildconfigid");
+
+ b.Property("MinAge")
+ .HasColumnType("time(6)")
+ .HasColumnName("minage");
+
+ b.Property("RoleId")
+ .HasColumnType("bigint unsigned")
+ .HasColumnName("roleid");
+
+ b.HasKey("Id")
+ .HasName("pk_antialtsetting");
+
+ b.HasIndex("GuildConfigId")
+ .IsUnique()
+ .HasDatabaseName("ix_antialtsetting_guildconfigid");
+
+ b.ToTable("antialtsetting", (string)null);
+ });
+
+ modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiRaidSetting", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int")
+ .HasColumnName("id");
+
+ b.Property("Action")
+ .HasColumnType("int")
+ .HasColumnName("action");
+
+ b.Property("DateAdded")
+ .HasColumnType("datetime(6)")
+ .HasColumnName("dateadded");
+
+ b.Property("GuildConfigId")
+ .HasColumnType("int")
+ .HasColumnName("guildconfigid");
+
+ b.Property("PunishDuration")
+ .HasColumnType("int")
+ .HasColumnName("punishduration");
+
+ b.Property("Seconds")
+ .HasColumnType("int")
+ .HasColumnName("seconds");
+
+ b.Property("UserThreshold")
+ .HasColumnType("int")
+ .HasColumnName("userthreshold");
+
+ b.HasKey("Id")
+ .HasName("pk_antiraidsetting");
+
+ b.HasIndex("GuildConfigId")
+ .IsUnique()
+ .HasDatabaseName("ix_antiraidsetting_guildconfigid");
+
+ b.ToTable("antiraidsetting", (string)null);
+ });
+
+ modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiSpamIgnore", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int")
+ .HasColumnName("id");
+
+ b.Property("AntiSpamSettingId")
+ .HasColumnType("int")
+ .HasColumnName("antispamsettingid");
+
+ b.Property("ChannelId")
+ .HasColumnType("bigint unsigned")
+ .HasColumnName("channelid");
+
+ b.Property("DateAdded")
+ .HasColumnType("datetime(6)")
+ .HasColumnName("dateadded");
+
+ b.HasKey("Id")
+ .HasName("pk_antispamignore");
+
+ b.HasIndex("AntiSpamSettingId")
+ .HasDatabaseName("ix_antispamignore_antispamsettingid");
+
+ b.ToTable("antispamignore", (string)null);
+ });
+
+ modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiSpamSetting", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int")
+ .HasColumnName("id");
+
+ b.Property("Action")
+ .HasColumnType("int")
+ .HasColumnName("action");
+
+ b.Property("DateAdded")
+ .HasColumnType("datetime(6)")
+ .HasColumnName("dateadded");
+
+ b.Property("GuildConfigId")
+ .HasColumnType("int")
+ .HasColumnName("guildconfigid");
+
+ b.Property("MessageThreshold")
+ .HasColumnType("int")
+ .HasColumnName("messagethreshold");
+
+ b.Property("MuteTime")
+ .HasColumnType("int")
+ .HasColumnName("mutetime");
+
+ b.Property("RoleId")
+ .HasColumnType("bigint unsigned")
+ .HasColumnName("roleid");
+
+ b.HasKey("Id")
+ .HasName("pk_antispamsetting");
+
+ b.HasIndex("GuildConfigId")
+ .IsUnique()
+ .HasDatabaseName("ix_antispamsetting_guildconfigid");
+
+ b.ToTable("antispamsetting", (string)null);
+ });
+
+ modelBuilder.Entity("NadekoBot.Services.Database.Models.AutoCommand", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int")
+ .HasColumnName("id");
+
+ b.Property("ChannelId")
+ .HasColumnType("bigint unsigned")
+ .HasColumnName("channelid");
+
+ b.Property("ChannelName")
+ .HasColumnType("longtext")
+ .HasColumnName("channelname");
+
+ b.Property("CommandText")
+ .HasColumnType("longtext")
+ .HasColumnName("commandtext");
+
+ b.Property("DateAdded")
+ .HasColumnType("datetime(6)")
+ .HasColumnName("dateadded");
+
+ b.Property("GuildId")
+ .HasColumnType("bigint unsigned")
+ .HasColumnName("guildid");
+
+ b.Property("GuildName")
+ .HasColumnType("longtext")
+ .HasColumnName("guildname");
+
+ b.Property("Interval")
+ .HasColumnType("int")
+ .HasColumnName("interval");
+
+ b.Property("VoiceChannelId")
+ .HasColumnType("bigint unsigned")
+ .HasColumnName("voicechannelid");
+
+ b.Property("VoiceChannelName")
+ .HasColumnType("longtext")
+ .HasColumnName("voicechannelname");
+
+ b.HasKey("Id")
+ .HasName("pk_autocommands");
+
+ b.ToTable("autocommands", (string)null);
+ });
+
+ modelBuilder.Entity("NadekoBot.Services.Database.Models.AutoTranslateChannel", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int")
+ .HasColumnName("id");
+
+ b.Property("AutoDelete")
+ .HasColumnType("tinyint(1)")
+ .HasColumnName("autodelete");
+
+ b.Property("ChannelId")
+ .HasColumnType("bigint unsigned")
+ .HasColumnName("channelid");
+
+ b.Property("DateAdded")
+ .HasColumnType("datetime(6)")
+ .HasColumnName("dateadded");
+
+ b.Property("GuildId")
+ .HasColumnType("bigint unsigned")
+ .HasColumnName("guildid");
+
+ b.HasKey("Id")
+ .HasName("pk_autotranslatechannels");
+
+ b.HasIndex("ChannelId")
+ .IsUnique()
+ .HasDatabaseName("ix_autotranslatechannels_channelid");
+
+ b.HasIndex("GuildId")
+ .HasDatabaseName("ix_autotranslatechannels_guildid");
+
+ b.ToTable("autotranslatechannels", (string)null);
+ });
+
+ modelBuilder.Entity("NadekoBot.Services.Database.Models.AutoTranslateUser", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int")
+ .HasColumnName("id");
+
+ b.Property("ChannelId")
+ .HasColumnType("int")
+ .HasColumnName("channelid");
+
+ b.Property("DateAdded")
+ .HasColumnType("datetime(6)")
+ .HasColumnName("dateadded");
+
+ b.Property("Source")
+ .HasColumnType("longtext")
+ .HasColumnName("source");
+
+ b.Property("Target")
+ .HasColumnType("longtext")
+ .HasColumnName("target");
+
+ b.Property("UserId")
+ .HasColumnType("bigint unsigned")
+ .HasColumnName("userid");
+
+ b.HasKey("Id")
+ .HasName("pk_autotranslateusers");
+
+ b.HasAlternateKey("ChannelId", "UserId")
+ .HasName("ak_autotranslateusers_channelid_userid");
+
+ b.ToTable("autotranslateusers", (string)null);
+ });
+
+ modelBuilder.Entity("NadekoBot.Services.Database.Models.BanTemplate", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int")
+ .HasColumnName("id");
+
+ b.Property("DateAdded")
+ .HasColumnType("datetime(6)")
+ .HasColumnName("dateadded");
+
+ b.Property("GuildId")
+ .HasColumnType("bigint unsigned")
+ .HasColumnName("guildid");
+
+ b.Property("PruneDays")
+ .HasColumnType("int")
+ .HasColumnName("prunedays");
+
+ b.Property("Text")
+ .HasColumnType("longtext")
+ .HasColumnName("text");
+
+ b.HasKey("Id")
+ .HasName("pk_bantemplates");
+
+ b.HasIndex("GuildId")
+ .IsUnique()
+ .HasDatabaseName("ix_bantemplates_guildid");
+
+ b.ToTable("bantemplates", (string)null);
+ });
+
+ modelBuilder.Entity("NadekoBot.Services.Database.Models.BlacklistEntry", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int")
+ .HasColumnName("id");
+
+ b.Property("DateAdded")
+ .HasColumnType("datetime(6)")
+ .HasColumnName("dateadded");
+
+ b.Property("ItemId")
+ .HasColumnType("bigint unsigned")
+ .HasColumnName("itemid");
+
+ b.Property("Type")
+ .HasColumnType("int")
+ .HasColumnName("type");
+
+ b.HasKey("Id")
+ .HasName("pk_blacklist");
+
+ b.ToTable("blacklist", (string)null);
+ });
+
+ modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandAlias", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int")
+ .HasColumnName("id");
+
+ b.Property("DateAdded")
+ .HasColumnType("datetime(6)")
+ .HasColumnName("dateadded");
+
+ b.Property("GuildConfigId")
+ .HasColumnType("int")
+ .HasColumnName("guildconfigid");
+
+ b.Property("Mapping")
+ .HasColumnType("longtext")
+ .HasColumnName("mapping");
+
+ b.Property("Trigger")
+ .HasColumnType("longtext")
+ .HasColumnName("trigger");
+
+ b.HasKey("Id")
+ .HasName("pk_commandalias");
+
+ b.HasIndex("GuildConfigId")
+ .HasDatabaseName("ix_commandalias_guildconfigid");
+
+ b.ToTable("commandalias", (string)null);
+ });
+
+ modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandCooldown", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int")
+ .HasColumnName("id");
+
+ b.Property("CommandName")
+ .HasColumnType("longtext")
+ .HasColumnName("commandname");
+
+ b.Property("DateAdded")
+ .HasColumnType("datetime(6)")
+ .HasColumnName("dateadded");
+
+ b.Property("GuildConfigId")
+ .HasColumnType("int")
+ .HasColumnName("guildconfigid");
+
+ b.Property("Seconds")
+ .HasColumnType("int")
+ .HasColumnName("seconds");
+
+ b.HasKey("Id")
+ .HasName("pk_commandcooldown");
+
+ b.HasIndex("GuildConfigId")
+ .HasDatabaseName("ix_commandcooldown_guildconfigid");
+
+ b.ToTable("commandcooldown", (string)null);
+ });
+
+ modelBuilder.Entity("NadekoBot.Services.Database.Models.CurrencyTransaction", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int")
+ .HasColumnName("id");
+
+ b.Property("Amount")
+ .HasColumnType("bigint")
+ .HasColumnName("amount");
+
+ b.Property("DateAdded")
+ .HasColumnType("datetime(6)")
+ .HasColumnName("dateadded");
+
+ b.Property("Extra")
+ .IsRequired()
+ .HasColumnType("longtext")
+ .HasColumnName("extra");
+
+ b.Property("Note")
+ .HasColumnType("longtext")
+ .HasColumnName("note");
+
+ b.Property("OtherId")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint unsigned")
+ .HasColumnName("otherid")
+ .HasDefaultValueSql("NULL");
+
+ b.Property("Type")
+ .IsRequired()
+ .HasColumnType("longtext")
+ .HasColumnName("type");
+
+ b.Property("UserId")
+ .HasColumnType("bigint unsigned")
+ .HasColumnName("userid");
+
+ b.HasKey("Id")
+ .HasName("pk_currencytransactions");
+
+ b.HasIndex("UserId")
+ .HasDatabaseName("ix_currencytransactions_userid");
+
+ b.ToTable("currencytransactions", (string)null);
+ });
+
+ modelBuilder.Entity("NadekoBot.Services.Database.Models.DelMsgOnCmdChannel", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int")
+ .HasColumnName("id");
+
+ b.Property("ChannelId")
+ .HasColumnType("bigint unsigned")
+ .HasColumnName("channelid");
+
+ b.Property("DateAdded")
+ .HasColumnType("datetime(6)")
+ .HasColumnName("dateadded");
+
+ b.Property("GuildConfigId")
+ .HasColumnType("int")
+ .HasColumnName("guildconfigid");
+
+ b.Property("State")
+ .HasColumnType("tinyint(1)")
+ .HasColumnName("state");
+
+ b.HasKey("Id")
+ .HasName("pk_delmsgoncmdchannel");
+
+ b.HasIndex("GuildConfigId")
+ .HasDatabaseName("ix_delmsgoncmdchannel_guildconfigid");
+
+ b.ToTable("delmsgoncmdchannel", (string)null);
+ });
+
+ modelBuilder.Entity("NadekoBot.Services.Database.Models.DiscordPermOverride", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int")
+ .HasColumnName("id");
+
+ b.Property("Command")
+ .HasColumnType("varchar(255)")
+ .HasColumnName("command");
+
+ b.Property("DateAdded")
+ .HasColumnType("datetime(6)")
+ .HasColumnName("dateadded");
+
+ b.Property("GuildId")
+ .HasColumnType("bigint unsigned")
+ .HasColumnName("guildid");
+
+ b.Property("Perm")
+ .HasColumnType("bigint unsigned")
+ .HasColumnName("perm");
+
+ b.HasKey("Id")
+ .HasName("pk_discordpermoverrides");
+
+ b.HasIndex("GuildId", "Command")
+ .IsUnique()
+ .HasDatabaseName("ix_discordpermoverrides_guildid_command");
+
+ b.ToTable("discordpermoverrides", (string)null);
+ });
+
+ modelBuilder.Entity("NadekoBot.Services.Database.Models.ExcludedItem", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int")
+ .HasColumnName("id");
+
+ b.Property("DateAdded")
+ .HasColumnType("datetime(6)")
+ .HasColumnName("dateadded");
+
+ b.Property("ItemId")
+ .HasColumnType("bigint unsigned")
+ .HasColumnName("itemid");
+
+ b.Property("ItemType")
+ .HasColumnType("int")
+ .HasColumnName("itemtype");
+
+ b.Property("XpSettingsId")
+ .HasColumnType("int")
+ .HasColumnName("xpsettingsid");
+
+ b.HasKey("Id")
+ .HasName("pk_excludeditem");
+
+ b.HasIndex("XpSettingsId")
+ .HasDatabaseName("ix_excludeditem_xpsettingsid");
+
+ b.ToTable("excludeditem", (string)null);
+ });
+
+ modelBuilder.Entity("NadekoBot.Services.Database.Models.FeedSub", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int")
+ .HasColumnName("id");
+
+ b.Property("ChannelId")
+ .HasColumnType("bigint unsigned")
+ .HasColumnName("channelid");
+
+ b.Property("DateAdded")
+ .HasColumnType("datetime(6)")
+ .HasColumnName("dateadded");
+
+ b.Property("GuildConfigId")
+ .HasColumnType("int")
+ .HasColumnName("guildconfigid");
+
+ b.Property("Url")
+ .IsRequired()
+ .HasColumnType("varchar(255)")
+ .HasColumnName("url");
+
+ b.HasKey("Id")
+ .HasName("pk_feedsub");
+
+ b.HasAlternateKey("GuildConfigId", "Url")
+ .HasName("ak_feedsub_guildconfigid_url");
+
+ b.ToTable("feedsub", (string)null);
+ });
+
+ modelBuilder.Entity("NadekoBot.Services.Database.Models.FilterChannelId", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int")
+ .HasColumnName("id");
+
+ b.Property("ChannelId")
+ .HasColumnType("bigint unsigned")
+ .HasColumnName("channelid");
+
+ b.Property("DateAdded")
+ .HasColumnType("datetime(6)")
+ .HasColumnName("dateadded");
+
+ b.Property("GuildConfigId")
+ .HasColumnType("int")
+ .HasColumnName("guildconfigid");
+
+ b.HasKey("Id")
+ .HasName("pk_filterchannelid");
+
+ b.HasIndex("GuildConfigId")
+ .HasDatabaseName("ix_filterchannelid_guildconfigid");
+
+ b.ToTable("filterchannelid", (string)null);
+ });
+
+ modelBuilder.Entity("NadekoBot.Services.Database.Models.FilteredWord", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int")
+ .HasColumnName("id");
+
+ b.Property("DateAdded")
+ .HasColumnType("datetime(6)")
+ .HasColumnName("dateadded");
+
+ b.Property("GuildConfigId")
+ .HasColumnType("int")
+ .HasColumnName("guildconfigid");
+
+ b.Property("Word")
+ .HasColumnType("longtext")
+ .HasColumnName("word");
+
+ b.HasKey("Id")
+ .HasName("pk_filteredword");
+
+ b.HasIndex("GuildConfigId")
+ .HasDatabaseName("ix_filteredword_guildconfigid");
+
+ b.ToTable("filteredword", (string)null);
+ });
+
+ modelBuilder.Entity("NadekoBot.Services.Database.Models.FilterLinksChannelId", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int")
+ .HasColumnName("id");
+
+ b.Property("ChannelId")
+ .HasColumnType("bigint unsigned")
+ .HasColumnName("channelid");
+
+ b.Property("DateAdded")
+ .HasColumnType("datetime(6)")
+ .HasColumnName("dateadded");
+
+ b.Property("GuildConfigId")
+ .HasColumnType("int")
+ .HasColumnName("guildconfigid");
+
+ b.HasKey("Id")
+ .HasName("pk_filterlinkschannelid");
+
+ b.HasIndex("GuildConfigId")
+ .HasDatabaseName("ix_filterlinkschannelid_guildconfigid");
+
+ b.ToTable("filterlinkschannelid", (string)null);
+ });
+
+ modelBuilder.Entity("NadekoBot.Services.Database.Models.FilterWordsChannelId", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int")
+ .HasColumnName("id");
+
+ b.Property("ChannelId")
+ .HasColumnType("bigint unsigned")
+ .HasColumnName("channelid");
+
+ b.Property("DateAdded")
+ .HasColumnType("datetime(6)")
+ .HasColumnName("dateadded");
+
+ b.Property("GuildConfigId")
+ .HasColumnType("int")
+ .HasColumnName("guildconfigid");
+
+ b.HasKey("Id")
+ .HasName("pk_filterwordschannelid");
+
+ b.HasIndex("GuildConfigId")
+ .HasDatabaseName("ix_filterwordschannelid_guildconfigid");
+
+ b.ToTable("filterwordschannelid", (string)null);
+ });
+
+ modelBuilder.Entity("NadekoBot.Services.Database.Models.GamblingStats", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int")
+ .HasColumnName("id");
+
+ b.Property("Bet")
+ .HasColumnType("decimal(65,30)")
+ .HasColumnName("bet");
+
+ b.Property("DateAdded")
+ .HasColumnType("datetime(6)")
+ .HasColumnName("dateadded");
+
+ b.Property("Feature")
+ .HasColumnType("varchar(255)")
+ .HasColumnName("feature");
+
+ b.Property("PaidOut")
+ .HasColumnType("decimal(65,30)")
+ .HasColumnName("paidout");
+
+ b.HasKey("Id")
+ .HasName("pk_gamblingstats");
+
+ b.HasIndex("Feature")
+ .IsUnique()
+ .HasDatabaseName("ix_gamblingstats_feature");
+
+ b.ToTable("gamblingstats", (string)null);
+ });
+
+ modelBuilder.Entity("NadekoBot.Services.Database.Models.GCChannelId", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int")
+ .HasColumnName("id");
+
+ b.Property("ChannelId")
+ .HasColumnType("bigint unsigned")
+ .HasColumnName("channelid");
+
+ b.Property("DateAdded")
+ .HasColumnType("datetime(6)")
+ .HasColumnName("dateadded");
+
+ b.Property("GuildConfigId")
+ .HasColumnType("int")
+ .HasColumnName("guildconfigid");
+
+ b.HasKey("Id")
+ .HasName("pk_gcchannelid");
+
+ b.HasIndex("GuildConfigId")
+ .HasDatabaseName("ix_gcchannelid_guildconfigid");
+
+ b.ToTable("gcchannelid", (string)null);
+ });
+
+ modelBuilder.Entity("NadekoBot.Services.Database.Models.GroupName", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int")
+ .HasColumnName("id");
+
+ b.Property("DateAdded")
+ .HasColumnType("datetime(6)")
+ .HasColumnName("dateadded");
+
+ b.Property("GuildConfigId")
+ .HasColumnType("int")
+ .HasColumnName("guildconfigid");
+
+ b.Property("Name")
+ .HasColumnType("longtext")
+ .HasColumnName("name");
+
+ b.Property("Number")
+ .HasColumnType("int")
+ .HasColumnName("number");
+
+ b.HasKey("Id")
+ .HasName("pk_groupname");
+
+ b.HasIndex("GuildConfigId", "Number")
+ .IsUnique()
+ .HasDatabaseName("ix_groupname_guildconfigid_number");
+
+ b.ToTable("groupname", (string)null);
+ });
+
+ modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildConfig", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int")
+ .HasColumnName("id");
+
+ b.Property("AutoAssignRoleIds")
+ .HasColumnType("longtext")
+ .HasColumnName("autoassignroleids");
+
+ b.Property("AutoDeleteByeMessagesTimer")
+ .HasColumnType("int")
+ .HasColumnName("autodeletebyemessagestimer");
+
+ b.Property("AutoDeleteGreetMessagesTimer")
+ .HasColumnType("int")
+ .HasColumnName("autodeletegreetmessagestimer");
+
+ b.Property("AutoDeleteSelfAssignedRoleMessages")
+ .HasColumnType("tinyint(1)")
+ .HasColumnName("autodeleteselfassignedrolemessages");
+
+ b.Property("BoostMessage")
+ .HasColumnType("longtext")
+ .HasColumnName("boostmessage");
+
+ b.Property("BoostMessageChannelId")
+ .HasColumnType("bigint unsigned")
+ .HasColumnName("boostmessagechannelid");
+
+ b.Property("BoostMessageDeleteAfter")
+ .HasColumnType("int")
+ .HasColumnName("boostmessagedeleteafter");
+
+ b.Property("ByeMessageChannelId")
+ .HasColumnType("bigint unsigned")
+ .HasColumnName("byemessagechannelid");
+
+ b.Property("ChannelByeMessageText")
+ .HasColumnType("longtext")
+ .HasColumnName("channelbyemessagetext");
+
+ b.Property("ChannelGreetMessageText")
+ .HasColumnType("longtext")
+ .HasColumnName("channelgreetmessagetext");
+
+ b.Property("CleverbotEnabled")
+ .HasColumnType("tinyint(1)")
+ .HasColumnName("cleverbotenabled");
+
+ b.Property("DateAdded")
+ .HasColumnType("datetime(6)")
+ .HasColumnName("dateadded");
+
+ b.Property("DeleteMessageOnCommand")
+ .HasColumnType("tinyint(1)")
+ .HasColumnName("deletemessageoncommand");
+
+ b.Property("DeleteStreamOnlineMessage")
+ .HasColumnType("tinyint(1)")
+ .HasColumnName("deletestreamonlinemessage");
+
+ b.Property("DmGreetMessageText")
+ .HasColumnType("longtext")
+ .HasColumnName("dmgreetmessagetext");
+
+ b.Property("ExclusiveSelfAssignedRoles")
+ .HasColumnType("tinyint(1)")
+ .HasColumnName("exclusiveselfassignedroles");
+
+ b.Property("FilterInvites")
+ .HasColumnType("tinyint(1)")
+ .HasColumnName("filterinvites");
+
+ b.Property("FilterLinks")
+ .HasColumnType("tinyint(1)")
+ .HasColumnName("filterlinks");
+
+ b.Property("FilterWords")
+ .HasColumnType("tinyint(1)")
+ .HasColumnName("filterwords");
+
+ b.Property("GameVoiceChannel")
+ .HasColumnType("bigint unsigned")
+ .HasColumnName("gamevoicechannel");
+
+ b.Property("GreetMessageChannelId")
+ .HasColumnType("bigint unsigned")
+ .HasColumnName("greetmessagechannelid");
+
+ b.Property("GuildId")
+ .HasColumnType("bigint unsigned")
+ .HasColumnName("guildid");
+
+ b.Property("Locale")
+ .HasColumnType("longtext")
+ .HasColumnName("locale");
+
+ b.Property("MuteRoleName")
+ .HasColumnType("longtext")
+ .HasColumnName("muterolename");
+
+ b.Property("NotifyStreamOffline")
+ .HasColumnType("tinyint(1)")
+ .HasColumnName("notifystreamoffline");
+
+ b.Property("PermissionRole")
+ .HasColumnType("longtext")
+ .HasColumnName("permissionrole");
+
+ b.Property("Prefix")
+ .HasColumnType("longtext")
+ .HasColumnName("prefix");
+
+ b.Property("SendBoostMessage")
+ .HasColumnType("tinyint(1)")
+ .HasColumnName("sendboostmessage");
+
+ b.Property("SendChannelByeMessage")
+ .HasColumnType("tinyint(1)")
+ .HasColumnName("sendchannelbyemessage");
+
+ b.Property("SendChannelGreetMessage")
+ .HasColumnType("tinyint(1)")
+ .HasColumnName("sendchannelgreetmessage");
+
+ b.Property("SendDmGreetMessage")
+ .HasColumnType("tinyint(1)")
+ .HasColumnName("senddmgreetmessage");
+
+ b.Property("TimeZoneId")
+ .HasColumnType("longtext")
+ .HasColumnName("timezoneid");
+
+ b.Property("VerboseErrors")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("tinyint(1)")
+ .HasDefaultValue(true)
+ .HasColumnName("verboseerrors");
+
+ b.Property("VerbosePermissions")
+ .HasColumnType("tinyint(1)")
+ .HasColumnName("verbosepermissions");
+
+ b.Property("WarnExpireAction")
+ .HasColumnType("int")
+ .HasColumnName("warnexpireaction");
+
+ b.Property("WarnExpireHours")
+ .HasColumnType("int")
+ .HasColumnName("warnexpirehours");
+
+ b.Property("WarningsInitialized")
+ .HasColumnType("tinyint(1)")
+ .HasColumnName("warningsinitialized");
+
+ b.HasKey("Id")
+ .HasName("pk_guildconfigs");
+
+ b.HasIndex("GuildId")
+ .IsUnique()
+ .HasDatabaseName("ix_guildconfigs_guildid");
+
+ b.HasIndex("WarnExpireHours")
+ .HasDatabaseName("ix_guildconfigs_warnexpirehours");
+
+ b.ToTable("guildconfigs", (string)null);
+ });
+
+ modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredLogItem", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int")
+ .HasColumnName("id");
+
+ b.Property("DateAdded")
+ .HasColumnType("datetime(6)")
+ .HasColumnName("dateadded");
+
+ b.Property("ItemType")
+ .HasColumnType("int")
+ .HasColumnName("itemtype");
+
+ b.Property("LogItemId")
+ .HasColumnType("bigint unsigned")
+ .HasColumnName("logitemid");
+
+ b.Property("LogSettingId")
+ .HasColumnType("int")
+ .HasColumnName("logsettingid");
+
+ b.HasKey("Id")
+ .HasName("pk_ignoredlogchannels");
+
+ b.HasIndex("LogSettingId", "LogItemId", "ItemType")
+ .IsUnique()
+ .HasDatabaseName("ix_ignoredlogchannels_logsettingid_logitemid_itemtype");
+
+ b.ToTable("ignoredlogchannels", (string)null);
+ });
+
+ modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int")
+ .HasColumnName("id");
+
+ b.Property("ChannelId")
+ .HasColumnType("bigint unsigned")
+ .HasColumnName("channelid");
+
+ b.Property("DateAdded")
+ .HasColumnType("datetime(6)")
+ .HasColumnName("dateadded");
+
+ b.Property("LogSettingId")
+ .HasColumnType("int")
+ .HasColumnName("logsettingid");
+
+ b.HasKey("Id")
+ .HasName("pk_ignoredvoicepresencechannels");
+
+ b.HasIndex("LogSettingId")
+ .HasDatabaseName("ix_ignoredvoicepresencechannels_logsettingid");
+
+ b.ToTable("ignoredvoicepresencechannels", (string)null);
+ });
+
+ modelBuilder.Entity("NadekoBot.Services.Database.Models.ImageOnlyChannel", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int")
+ .HasColumnName("id");
+
+ b.Property("ChannelId")
+ .HasColumnType("bigint unsigned")
+ .HasColumnName("channelid");
+
+ b.Property("DateAdded")
+ .HasColumnType("datetime(6)")
+ .HasColumnName("dateadded");
+
+ b.Property("GuildId")
+ .HasColumnType("bigint unsigned")
+ .HasColumnName("guildid");
+
+ b.Property("Type")
+ .HasColumnType("int")
+ .HasColumnName("type");
+
+ b.HasKey("Id")
+ .HasName("pk_imageonlychannels");
+
+ b.HasIndex("ChannelId")
+ .IsUnique()
+ .HasDatabaseName("ix_imageonlychannels_channelid");
+
+ b.ToTable("imageonlychannels", (string)null);
+ });
+
+ modelBuilder.Entity("NadekoBot.Services.Database.Models.LogSetting", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int")
+ .HasColumnName("id");
+
+ b.Property("ChannelCreatedId")
+ .HasColumnType("bigint unsigned")
+ .HasColumnName("channelcreatedid");
+
+ b.Property("ChannelDestroyedId")
+ .HasColumnType("bigint unsigned")
+ .HasColumnName("channeldestroyedid");
+
+ b.Property("ChannelUpdatedId")
+ .HasColumnType("bigint unsigned")
+ .HasColumnName("channelupdatedid");
+
+ b.Property("DateAdded")
+ .HasColumnType("datetime(6)")
+ .HasColumnName("dateadded");
+
+ b.Property("GuildId")
+ .HasColumnType("bigint unsigned")
+ .HasColumnName("guildid");
+
+ b.Property("LogOtherId")
+ .HasColumnType("bigint unsigned")
+ .HasColumnName("logotherid");
+
+ b.Property("LogUserPresenceId")
+ .HasColumnType("bigint unsigned")
+ .HasColumnName("loguserpresenceid");
+
+ b.Property("LogVoicePresenceId")
+ .HasColumnType("bigint unsigned")
+ .HasColumnName("logvoicepresenceid");
+
+ b.Property("LogVoicePresenceTTSId")
+ .HasColumnType("bigint unsigned")
+ .HasColumnName("logvoicepresencettsid");
+
+ b.Property("LogWarnsId")
+ .HasColumnType("bigint unsigned")
+ .HasColumnName("logwarnsid");
+
+ b.Property("MessageDeletedId")
+ .HasColumnType("bigint unsigned")
+ .HasColumnName("messagedeletedid");
+
+ b.Property("MessageUpdatedId")
+ .HasColumnType("bigint unsigned")
+ .HasColumnName("messageupdatedid");
+
+ b.Property("UserBannedId")
+ .HasColumnType("bigint unsigned")
+ .HasColumnName("userbannedid");
+
+ b.Property("UserJoinedId")
+ .HasColumnType("bigint unsigned")
+ .HasColumnName("userjoinedid");
+
+ b.Property("UserLeftId")
+ .HasColumnType("bigint unsigned")
+ .HasColumnName("userleftid");
+
+ b.Property("UserMutedId")
+ .HasColumnType("bigint unsigned")
+ .HasColumnName("usermutedid");
+
+ b.Property("UserUnbannedId")
+ .HasColumnType("bigint unsigned")
+ .HasColumnName("userunbannedid");
+
+ b.Property("UserUpdatedId")
+ .HasColumnType("bigint unsigned")
+ .HasColumnName("userupdatedid");
+
+ b.HasKey("Id")
+ .HasName("pk_logsettings");
+
+ b.HasIndex("GuildId")
+ .IsUnique()
+ .HasDatabaseName("ix_logsettings_guildid");
+
+ b.ToTable("logsettings", (string)null);
+ });
+
+ modelBuilder.Entity("NadekoBot.Services.Database.Models.MusicPlayerSettings", b =>
+ {
+ b.Property