diff --git a/src/EllieBot/Migrations/PostgreSql/20241207150050_awardedxp-temprole-notify.Designer.cs b/src/EllieBot/Migrations/PostgreSql/20241207150050_awardedxp-temprole-notify.Designer.cs
new file mode 100644
index 0000000..eeae8d9
--- /dev/null
+++ b/src/EllieBot/Migrations/PostgreSql/20241207150050_awardedxp-temprole-notify.Designer.cs
@@ -0,0 +1,4117 @@
+//
+using System;
+using Microsoft.EntityFrameworkCore;
+using Microsoft.EntityFrameworkCore.Infrastructure;
+using Microsoft.EntityFrameworkCore.Migrations;
+using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
+using EllieBot.Db;
+using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
+
+#nullable disable
+
+namespace EllieBot.Migrations.PostgreSql
+{
+ [DbContext(typeof(PostgreSqlContext))]
+ [Migration("20241207150050_awardedxp-temprole-notify")]
+ partial class awardedxptemprolenotify
+ {
+ ///
+ protected override void BuildTargetModel(ModelBuilder modelBuilder)
+ {
+#pragma warning disable 612, 618
+ modelBuilder
+ .HasAnnotation("ProductVersion", "8.0.8")
+ .HasAnnotation("Relational:MaxIdentifierLength", 63);
+
+ NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
+
+ modelBuilder.Entity("EllieBot.Db.Models.AntiAltSetting", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("integer")
+ .HasColumnName("id");
+
+ NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
+
+ b.Property("Action")
+ .HasColumnType("integer")
+ .HasColumnName("action");
+
+ b.Property("ActionDurationMinutes")
+ .HasColumnType("integer")
+ .HasColumnName("actiondurationminutes");
+
+ b.Property("GuildConfigId")
+ .HasColumnType("integer")
+ .HasColumnName("guildconfigid");
+
+ b.Property("MinAge")
+ .HasColumnType("interval")
+ .HasColumnName("minage");
+
+ b.Property("RoleId")
+ .HasColumnType("numeric(20,0)")
+ .HasColumnName("roleid");
+
+ b.HasKey("Id")
+ .HasName("pk_antialtsetting");
+
+ b.HasIndex("GuildConfigId")
+ .IsUnique()
+ .HasDatabaseName("ix_antialtsetting_guildconfigid");
+
+ b.ToTable("antialtsetting", (string)null);
+ });
+
+ modelBuilder.Entity("EllieBot.Db.Models.AntiRaidSetting", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("integer")
+ .HasColumnName("id");
+
+ NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
+
+ b.Property("Action")
+ .HasColumnType("integer")
+ .HasColumnName("action");
+
+ b.Property("DateAdded")
+ .HasColumnType("timestamp without time zone")
+ .HasColumnName("dateadded");
+
+ b.Property("GuildConfigId")
+ .HasColumnType("integer")
+ .HasColumnName("guildconfigid");
+
+ b.Property("PunishDuration")
+ .HasColumnType("integer")
+ .HasColumnName("punishduration");
+
+ b.Property("Seconds")
+ .HasColumnType("integer")
+ .HasColumnName("seconds");
+
+ b.Property("UserThreshold")
+ .HasColumnType("integer")
+ .HasColumnName("userthreshold");
+
+ b.HasKey("Id")
+ .HasName("pk_antiraidsetting");
+
+ b.HasIndex("GuildConfigId")
+ .IsUnique()
+ .HasDatabaseName("ix_antiraidsetting_guildconfigid");
+
+ b.ToTable("antiraidsetting", (string)null);
+ });
+
+ modelBuilder.Entity("EllieBot.Db.Models.AntiSpamIgnore", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("integer")
+ .HasColumnName("id");
+
+ NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
+
+ b.Property("AntiSpamSettingId")
+ .HasColumnType("integer")
+ .HasColumnName("antispamsettingid");
+
+ b.Property("ChannelId")
+ .HasColumnType("numeric(20,0)")
+ .HasColumnName("channelid");
+
+ b.Property("DateAdded")
+ .HasColumnType("timestamp without time zone")
+ .HasColumnName("dateadded");
+
+ b.HasKey("Id")
+ .HasName("pk_antispamignore");
+
+ b.HasIndex("AntiSpamSettingId")
+ .HasDatabaseName("ix_antispamignore_antispamsettingid");
+
+ b.ToTable("antispamignore", (string)null);
+ });
+
+ modelBuilder.Entity("EllieBot.Db.Models.AntiSpamSetting", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("integer")
+ .HasColumnName("id");
+
+ NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
+
+ b.Property("Action")
+ .HasColumnType("integer")
+ .HasColumnName("action");
+
+ b.Property("DateAdded")
+ .HasColumnType("timestamp without time zone")
+ .HasColumnName("dateadded");
+
+ b.Property("GuildConfigId")
+ .HasColumnType("integer")
+ .HasColumnName("guildconfigid");
+
+ b.Property("MessageThreshold")
+ .HasColumnType("integer")
+ .HasColumnName("messagethreshold");
+
+ b.Property("MuteTime")
+ .HasColumnType("integer")
+ .HasColumnName("mutetime");
+
+ b.Property("RoleId")
+ .HasColumnType("numeric(20,0)")
+ .HasColumnName("roleid");
+
+ b.HasKey("Id")
+ .HasName("pk_antispamsetting");
+
+ b.HasIndex("GuildConfigId")
+ .IsUnique()
+ .HasDatabaseName("ix_antispamsetting_guildconfigid");
+
+ b.ToTable("antispamsetting", (string)null);
+ });
+
+ modelBuilder.Entity("EllieBot.Db.Models.ArchivedTodoListModel", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("integer")
+ .HasColumnName("id");
+
+ NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
+
+ b.Property("Name")
+ .HasColumnType("text")
+ .HasColumnName("name");
+
+ b.Property("UserId")
+ .HasColumnType("numeric(20,0)")
+ .HasColumnName("userid");
+
+ b.HasKey("Id")
+ .HasName("pk_todosarchive");
+
+ b.ToTable("todosarchive", (string)null);
+ });
+
+ modelBuilder.Entity("EllieBot.Db.Models.AutoCommand", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("integer")
+ .HasColumnName("id");
+
+ NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
+
+ b.Property("ChannelId")
+ .HasColumnType("numeric(20,0)")
+ .HasColumnName("channelid");
+
+ b.Property("ChannelName")
+ .HasColumnType("text")
+ .HasColumnName("channelname");
+
+ b.Property("CommandText")
+ .HasColumnType("text")
+ .HasColumnName("commandtext");
+
+ b.Property("DateAdded")
+ .HasColumnType("timestamp without time zone")
+ .HasColumnName("dateadded");
+
+ b.Property("GuildId")
+ .HasColumnType("numeric(20,0)")
+ .HasColumnName("guildid");
+
+ b.Property("GuildName")
+ .HasColumnType("text")
+ .HasColumnName("guildname");
+
+ b.Property("Interval")
+ .HasColumnType("integer")
+ .HasColumnName("interval");
+
+ b.Property("VoiceChannelId")
+ .HasColumnType("numeric(20,0)")
+ .HasColumnName("voicechannelid");
+
+ b.Property("VoiceChannelName")
+ .HasColumnType("text")
+ .HasColumnName("voicechannelname");
+
+ b.HasKey("Id")
+ .HasName("pk_autocommands");
+
+ b.ToTable("autocommands", (string)null);
+ });
+
+ modelBuilder.Entity("EllieBot.Db.Models.AutoPublishChannel", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("integer")
+ .HasColumnName("id");
+
+ NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
+
+ b.Property("ChannelId")
+ .HasColumnType("numeric(20,0)")
+ .HasColumnName("channelid");
+
+ b.Property("DateAdded")
+ .HasColumnType("timestamp without time zone")
+ .HasColumnName("dateadded");
+
+ b.Property("GuildId")
+ .HasColumnType("numeric(20,0)")
+ .HasColumnName("guildid");
+
+ b.HasKey("Id")
+ .HasName("pk_autopublishchannel");
+
+ b.HasIndex("GuildId")
+ .IsUnique()
+ .HasDatabaseName("ix_autopublishchannel_guildid");
+
+ b.ToTable("autopublishchannel", (string)null);
+ });
+
+ modelBuilder.Entity("EllieBot.Db.Models.AutoTranslateChannel", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("integer")
+ .HasColumnName("id");
+
+ NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
+
+ b.Property("AutoDelete")
+ .HasColumnType("boolean")
+ .HasColumnName("autodelete");
+
+ b.Property("ChannelId")
+ .HasColumnType("numeric(20,0)")
+ .HasColumnName("channelid");
+
+ b.Property("DateAdded")
+ .HasColumnType("timestamp without time zone")
+ .HasColumnName("dateadded");
+
+ b.Property("GuildId")
+ .HasColumnType("numeric(20,0)")
+ .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("EllieBot.Db.Models.AutoTranslateUser", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("integer")
+ .HasColumnName("id");
+
+ NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
+
+ b.Property("ChannelId")
+ .HasColumnType("integer")
+ .HasColumnName("channelid");
+
+ b.Property("DateAdded")
+ .HasColumnType("timestamp without time zone")
+ .HasColumnName("dateadded");
+
+ b.Property("Source")
+ .HasColumnType("text")
+ .HasColumnName("source");
+
+ b.Property("Target")
+ .HasColumnType("text")
+ .HasColumnName("target");
+
+ b.Property("UserId")
+ .HasColumnType("numeric(20,0)")
+ .HasColumnName("userid");
+
+ b.HasKey("Id")
+ .HasName("pk_autotranslateusers");
+
+ b.HasAlternateKey("ChannelId", "UserId")
+ .HasName("ak_autotranslateusers_channelid_userid");
+
+ b.ToTable("autotranslateusers", (string)null);
+ });
+
+ modelBuilder.Entity("EllieBot.Db.Models.BanTemplate", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("integer")
+ .HasColumnName("id");
+
+ NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
+
+ b.Property("DateAdded")
+ .HasColumnType("timestamp without time zone")
+ .HasColumnName("dateadded");
+
+ b.Property("GuildId")
+ .HasColumnType("numeric(20,0)")
+ .HasColumnName("guildid");
+
+ b.Property("PruneDays")
+ .HasColumnType("integer")
+ .HasColumnName("prunedays");
+
+ b.Property("Text")
+ .HasColumnType("text")
+ .HasColumnName("text");
+
+ b.HasKey("Id")
+ .HasName("pk_bantemplates");
+
+ b.HasIndex("GuildId")
+ .IsUnique()
+ .HasDatabaseName("ix_bantemplates_guildid");
+
+ b.ToTable("bantemplates", (string)null);
+ });
+
+ modelBuilder.Entity("EllieBot.Db.Models.BankUser", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("integer")
+ .HasColumnName("id");
+
+ NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
+
+ b.Property("Balance")
+ .HasColumnType("bigint")
+ .HasColumnName("balance");
+
+ b.Property("DateAdded")
+ .HasColumnType("timestamp without time zone")
+ .HasColumnName("dateadded");
+
+ b.Property("UserId")
+ .HasColumnType("numeric(20,0)")
+ .HasColumnName("userid");
+
+ b.HasKey("Id")
+ .HasName("pk_bankusers");
+
+ b.HasIndex("UserId")
+ .IsUnique()
+ .HasDatabaseName("ix_bankusers_userid");
+
+ b.ToTable("bankusers", (string)null);
+ });
+
+ modelBuilder.Entity("EllieBot.Db.Models.BlacklistEntry", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("integer")
+ .HasColumnName("id");
+
+ NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
+
+ b.Property("DateAdded")
+ .HasColumnType("timestamp without time zone")
+ .HasColumnName("dateadded");
+
+ b.Property("ItemId")
+ .HasColumnType("numeric(20,0)")
+ .HasColumnName("itemid");
+
+ b.Property("Type")
+ .HasColumnType("integer")
+ .HasColumnName("type");
+
+ b.HasKey("Id")
+ .HasName("pk_blacklist");
+
+ b.ToTable("blacklist", (string)null);
+ });
+
+ modelBuilder.Entity("EllieBot.Db.Models.ButtonRole", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("integer")
+ .HasColumnName("id");
+
+ NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
+
+ b.Property("ButtonId")
+ .IsRequired()
+ .HasMaxLength(200)
+ .HasColumnType("character varying(200)")
+ .HasColumnName("buttonid");
+
+ b.Property("ChannelId")
+ .HasColumnType("numeric(20,0)")
+ .HasColumnName("channelid");
+
+ b.Property("Emote")
+ .IsRequired()
+ .HasMaxLength(100)
+ .HasColumnType("character varying(100)")
+ .HasColumnName("emote");
+
+ b.Property("Exclusive")
+ .HasColumnType("boolean")
+ .HasColumnName("exclusive");
+
+ b.Property("GuildId")
+ .HasColumnType("numeric(20,0)")
+ .HasColumnName("guildid");
+
+ b.Property("Label")
+ .IsRequired()
+ .HasMaxLength(50)
+ .HasColumnType("character varying(50)")
+ .HasColumnName("label");
+
+ b.Property("MessageId")
+ .HasColumnType("numeric(20,0)")
+ .HasColumnName("messageid");
+
+ b.Property("Position")
+ .HasColumnType("integer")
+ .HasColumnName("position");
+
+ b.Property("RoleId")
+ .HasColumnType("numeric(20,0)")
+ .HasColumnName("roleid");
+
+ b.HasKey("Id")
+ .HasName("pk_buttonrole");
+
+ b.HasAlternateKey("RoleId", "MessageId")
+ .HasName("ak_buttonrole_roleid_messageid");
+
+ b.HasIndex("GuildId")
+ .HasDatabaseName("ix_buttonrole_guildid");
+
+ b.ToTable("buttonrole", (string)null);
+ });
+
+ modelBuilder.Entity("EllieBot.Db.Models.ClubApplicants", b =>
+ {
+ b.Property("ClubId")
+ .HasColumnType("integer")
+ .HasColumnName("clubid");
+
+ b.Property("UserId")
+ .HasColumnType("integer")
+ .HasColumnName("userid");
+
+ b.HasKey("ClubId", "UserId")
+ .HasName("pk_clubapplicants");
+
+ b.HasIndex("UserId")
+ .HasDatabaseName("ix_clubapplicants_userid");
+
+ b.ToTable("clubapplicants", (string)null);
+ });
+
+ modelBuilder.Entity("EllieBot.Db.Models.ClubBans", b =>
+ {
+ b.Property("ClubId")
+ .HasColumnType("integer")
+ .HasColumnName("clubid");
+
+ b.Property("UserId")
+ .HasColumnType("integer")
+ .HasColumnName("userid");
+
+ b.HasKey("ClubId", "UserId")
+ .HasName("pk_clubbans");
+
+ b.HasIndex("UserId")
+ .HasDatabaseName("ix_clubbans_userid");
+
+ b.ToTable("clubbans", (string)null);
+ });
+
+ modelBuilder.Entity("EllieBot.Db.Models.ClubInfo", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("integer")
+ .HasColumnName("id");
+
+ NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
+
+ b.Property("DateAdded")
+ .HasColumnType("timestamp without time zone")
+ .HasColumnName("dateadded");
+
+ b.Property("Description")
+ .HasColumnType("text")
+ .HasColumnName("description");
+
+ b.Property("ImageUrl")
+ .HasColumnType("text")
+ .HasColumnName("imageurl");
+
+ b.Property("Name")
+ .HasMaxLength(20)
+ .HasColumnType("character varying(20)")
+ .HasColumnName("name");
+
+ b.Property("OwnerId")
+ .HasColumnType("integer")
+ .HasColumnName("ownerid");
+
+ b.Property("Xp")
+ .HasColumnType("integer")
+ .HasColumnName("xp");
+
+ b.HasKey("Id")
+ .HasName("pk_clubs");
+
+ b.HasIndex("Name")
+ .IsUnique()
+ .HasDatabaseName("ix_clubs_name");
+
+ b.HasIndex("OwnerId")
+ .IsUnique()
+ .HasDatabaseName("ix_clubs_ownerid");
+
+ b.ToTable("clubs", (string)null);
+ });
+
+ modelBuilder.Entity("EllieBot.Db.Models.CommandAlias", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("integer")
+ .HasColumnName("id");
+
+ NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
+
+ b.Property("DateAdded")
+ .HasColumnType("timestamp without time zone")
+ .HasColumnName("dateadded");
+
+ b.Property("GuildConfigId")
+ .HasColumnType("integer")
+ .HasColumnName("guildconfigid");
+
+ b.Property("Mapping")
+ .HasColumnType("text")
+ .HasColumnName("mapping");
+
+ b.Property("Trigger")
+ .HasColumnType("text")
+ .HasColumnName("trigger");
+
+ b.HasKey("Id")
+ .HasName("pk_commandalias");
+
+ b.HasIndex("GuildConfigId")
+ .HasDatabaseName("ix_commandalias_guildconfigid");
+
+ b.ToTable("commandalias", (string)null);
+ });
+
+ modelBuilder.Entity("EllieBot.Db.Models.CommandCooldown", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("integer")
+ .HasColumnName("id");
+
+ NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
+
+ b.Property("CommandName")
+ .HasColumnType("text")
+ .HasColumnName("commandname");
+
+ b.Property("DateAdded")
+ .HasColumnType("timestamp without time zone")
+ .HasColumnName("dateadded");
+
+ b.Property("GuildConfigId")
+ .HasColumnType("integer")
+ .HasColumnName("guildconfigid");
+
+ b.Property("Seconds")
+ .HasColumnType("integer")
+ .HasColumnName("seconds");
+
+ b.HasKey("Id")
+ .HasName("pk_commandcooldown");
+
+ b.HasIndex("GuildConfigId")
+ .HasDatabaseName("ix_commandcooldown_guildconfigid");
+
+ b.ToTable("commandcooldown", (string)null);
+ });
+
+ modelBuilder.Entity("EllieBot.Db.Models.CurrencyTransaction", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("integer")
+ .HasColumnName("id");
+
+ NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
+
+ b.Property("Amount")
+ .HasColumnType("bigint")
+ .HasColumnName("amount");
+
+ b.Property("DateAdded")
+ .HasColumnType("timestamp without time zone")
+ .HasColumnName("dateadded");
+
+ b.Property("Extra")
+ .IsRequired()
+ .HasColumnType("text")
+ .HasColumnName("extra");
+
+ b.Property("Note")
+ .HasColumnType("text")
+ .HasColumnName("note");
+
+ b.Property("OtherId")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("numeric(20,0)")
+ .HasColumnName("otherid")
+ .HasDefaultValueSql("NULL");
+
+ b.Property("Type")
+ .IsRequired()
+ .HasColumnType("text")
+ .HasColumnName("type");
+
+ b.Property("UserId")
+ .HasColumnType("numeric(20,0)")
+ .HasColumnName("userid");
+
+ b.HasKey("Id")
+ .HasName("pk_currencytransactions");
+
+ b.HasIndex("UserId")
+ .HasDatabaseName("ix_currencytransactions_userid");
+
+ b.ToTable("currencytransactions", (string)null);
+ });
+
+ modelBuilder.Entity("EllieBot.Db.Models.DelMsgOnCmdChannel", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("integer")
+ .HasColumnName("id");
+
+ NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
+
+ b.Property("ChannelId")
+ .HasColumnType("numeric(20,0)")
+ .HasColumnName("channelid");
+
+ b.Property("DateAdded")
+ .HasColumnType("timestamp without time zone")
+ .HasColumnName("dateadded");
+
+ b.Property("GuildConfigId")
+ .HasColumnType("integer")
+ .HasColumnName("guildconfigid");
+
+ b.Property("State")
+ .HasColumnType("boolean")
+ .HasColumnName("state");
+
+ b.HasKey("Id")
+ .HasName("pk_delmsgoncmdchannel");
+
+ b.HasIndex("GuildConfigId")
+ .HasDatabaseName("ix_delmsgoncmdchannel_guildconfigid");
+
+ b.ToTable("delmsgoncmdchannel", (string)null);
+ });
+
+ modelBuilder.Entity("EllieBot.Db.Models.DiscordPermOverride", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("integer")
+ .HasColumnName("id");
+
+ NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
+
+ b.Property("Command")
+ .HasColumnType("text")
+ .HasColumnName("command");
+
+ b.Property("DateAdded")
+ .HasColumnType("timestamp without time zone")
+ .HasColumnName("dateadded");
+
+ b.Property("GuildId")
+ .HasColumnType("numeric(20,0)")
+ .HasColumnName("guildid");
+
+ b.Property("Perm")
+ .HasColumnType("numeric(20,0)")
+ .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("EllieBot.Db.Models.DiscordUser", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("integer")
+ .HasColumnName("id");
+
+ NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
+
+ b.Property("AvatarId")
+ .HasColumnType("text")
+ .HasColumnName("avatarid");
+
+ b.Property("ClubId")
+ .HasColumnType("integer")
+ .HasColumnName("clubid");
+
+ b.Property("CurrencyAmount")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint")
+ .HasDefaultValue(0L)
+ .HasColumnName("currencyamount");
+
+ b.Property("DateAdded")
+ .HasColumnType("timestamp without time zone")
+ .HasColumnName("dateadded");
+
+ b.Property("IsClubAdmin")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("boolean")
+ .HasDefaultValue(false)
+ .HasColumnName("isclubadmin");
+
+ b.Property("NotifyOnLevelUp")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("integer")
+ .HasDefaultValue(0)
+ .HasColumnName("notifyonlevelup");
+
+ b.Property("TotalXp")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint")
+ .HasDefaultValue(0L)
+ .HasColumnName("totalxp");
+
+ b.Property("UserId")
+ .HasColumnType("numeric(20,0)")
+ .HasColumnName("userid");
+
+ b.Property("Username")
+ .HasColumnType("text")
+ .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.HasIndex("Username")
+ .HasDatabaseName("ix_discorduser_username");
+
+ b.ToTable("discorduser", (string)null);
+ });
+
+ modelBuilder.Entity("EllieBot.Db.Models.ExcludedItem", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("integer")
+ .HasColumnName("id");
+
+ NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
+
+ b.Property("DateAdded")
+ .HasColumnType("timestamp without time zone")
+ .HasColumnName("dateadded");
+
+ b.Property("ItemId")
+ .HasColumnType("numeric(20,0)")
+ .HasColumnName("itemid");
+
+ b.Property("ItemType")
+ .HasColumnType("integer")
+ .HasColumnName("itemtype");
+
+ b.Property("XpSettingsId")
+ .HasColumnType("integer")
+ .HasColumnName("xpsettingsid");
+
+ b.HasKey("Id")
+ .HasName("pk_excludeditem");
+
+ b.HasIndex("XpSettingsId")
+ .HasDatabaseName("ix_excludeditem_xpsettingsid");
+
+ b.ToTable("excludeditem", (string)null);
+ });
+
+ modelBuilder.Entity("EllieBot.Db.Models.FeedSub", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("integer")
+ .HasColumnName("id");
+
+ NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
+
+ b.Property("ChannelId")
+ .HasColumnType("numeric(20,0)")
+ .HasColumnName("channelid");
+
+ b.Property("DateAdded")
+ .HasColumnType("timestamp without time zone")
+ .HasColumnName("dateadded");
+
+ b.Property("GuildConfigId")
+ .HasColumnType("integer")
+ .HasColumnName("guildconfigid");
+
+ b.Property("Message")
+ .HasColumnType("text")
+ .HasColumnName("message");
+
+ b.Property("Url")
+ .IsRequired()
+ .HasColumnType("text")
+ .HasColumnName("url");
+
+ b.HasKey("Id")
+ .HasName("pk_feedsub");
+
+ b.HasAlternateKey("GuildConfigId", "Url")
+ .HasName("ak_feedsub_guildconfigid_url");
+
+ b.ToTable("feedsub", (string)null);
+ });
+
+ modelBuilder.Entity("EllieBot.Db.Models.FilterChannelId", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("integer")
+ .HasColumnName("id");
+
+ NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
+
+ b.Property("ChannelId")
+ .HasColumnType("numeric(20,0)")
+ .HasColumnName("channelid");
+
+ b.Property("DateAdded")
+ .HasColumnType("timestamp without time zone")
+ .HasColumnName("dateadded");
+
+ b.Property("GuildConfigId")
+ .HasColumnType("integer")
+ .HasColumnName("guildconfigid");
+
+ b.HasKey("Id")
+ .HasName("pk_filterchannelid");
+
+ b.HasIndex("GuildConfigId")
+ .HasDatabaseName("ix_filterchannelid_guildconfigid");
+
+ b.ToTable("filterchannelid", (string)null);
+ });
+
+ modelBuilder.Entity("EllieBot.Db.Models.FilterLinksChannelId", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("integer")
+ .HasColumnName("id");
+
+ NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
+
+ b.Property("ChannelId")
+ .HasColumnType("numeric(20,0)")
+ .HasColumnName("channelid");
+
+ b.Property("DateAdded")
+ .HasColumnType("timestamp without time zone")
+ .HasColumnName("dateadded");
+
+ b.Property("GuildConfigId")
+ .HasColumnType("integer")
+ .HasColumnName("guildconfigid");
+
+ b.HasKey("Id")
+ .HasName("pk_filterlinkschannelid");
+
+ b.HasIndex("GuildConfigId")
+ .HasDatabaseName("ix_filterlinkschannelid_guildconfigid");
+
+ b.ToTable("filterlinkschannelid", (string)null);
+ });
+
+ modelBuilder.Entity("EllieBot.Db.Models.FilterWordsChannelId", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("integer")
+ .HasColumnName("id");
+
+ NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
+
+ b.Property("ChannelId")
+ .HasColumnType("numeric(20,0)")
+ .HasColumnName("channelid");
+
+ b.Property("DateAdded")
+ .HasColumnType("timestamp without time zone")
+ .HasColumnName("dateadded");
+
+ b.Property("GuildConfigId")
+ .HasColumnType("integer")
+ .HasColumnName("guildconfigid");
+
+ b.HasKey("Id")
+ .HasName("pk_filterwordschannelid");
+
+ b.HasIndex("GuildConfigId")
+ .HasDatabaseName("ix_filterwordschannelid_guildconfigid");
+
+ b.ToTable("filterwordschannelid", (string)null);
+ });
+
+ modelBuilder.Entity("EllieBot.Db.Models.FilteredWord", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("integer")
+ .HasColumnName("id");
+
+ NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
+
+ b.Property("DateAdded")
+ .HasColumnType("timestamp without time zone")
+ .HasColumnName("dateadded");
+
+ b.Property("GuildConfigId")
+ .HasColumnType("integer")
+ .HasColumnName("guildconfigid");
+
+ b.Property("Word")
+ .HasColumnType("text")
+ .HasColumnName("word");
+
+ b.HasKey("Id")
+ .HasName("pk_filteredword");
+
+ b.HasIndex("GuildConfigId")
+ .HasDatabaseName("ix_filteredword_guildconfigid");
+
+ b.ToTable("filteredword", (string)null);
+ });
+
+ modelBuilder.Entity("EllieBot.Db.Models.FlagTranslateChannel", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("integer")
+ .HasColumnName("id");
+
+ NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
+
+ b.Property("ChannelId")
+ .HasColumnType("numeric(20,0)")
+ .HasColumnName("channelid");
+
+ b.Property("DateAdded")
+ .HasColumnType("timestamp without time zone")
+ .HasColumnName("dateadded");
+
+ b.Property("GuildId")
+ .HasColumnType("numeric(20,0)")
+ .HasColumnName("guildid");
+
+ b.HasKey("Id")
+ .HasName("pk_flagtranslatechannel");
+
+ b.HasIndex("GuildId", "ChannelId")
+ .IsUnique()
+ .HasDatabaseName("ix_flagtranslatechannel_guildid_channelid");
+
+ b.ToTable("flagtranslatechannel", (string)null);
+ });
+
+ modelBuilder.Entity("EllieBot.Db.Models.FollowedStream", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("integer")
+ .HasColumnName("id");
+
+ NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
+
+ b.Property("ChannelId")
+ .HasColumnType("numeric(20,0)")
+ .HasColumnName("channelid");
+
+ b.Property("DateAdded")
+ .HasColumnType("timestamp without time zone")
+ .HasColumnName("dateadded");
+
+ b.Property("GuildConfigId")
+ .HasColumnType("integer")
+ .HasColumnName("guildconfigid");
+
+ b.Property("GuildId")
+ .HasColumnType("numeric(20,0)")
+ .HasColumnName("guildid");
+
+ b.Property("Message")
+ .HasColumnType("text")
+ .HasColumnName("message");
+
+ b.Property("Type")
+ .HasColumnType("integer")
+ .HasColumnName("type");
+
+ b.Property("Username")
+ .HasColumnType("text")
+ .HasColumnName("username");
+
+ b.HasKey("Id")
+ .HasName("pk_followedstream");
+
+ b.HasIndex("GuildConfigId")
+ .HasDatabaseName("ix_followedstream_guildconfigid");
+
+ b.ToTable("followedstream", (string)null);
+ });
+
+ modelBuilder.Entity("EllieBot.Db.Models.GCChannelId", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("integer")
+ .HasColumnName("id");
+
+ NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
+
+ b.Property("ChannelId")
+ .HasColumnType("numeric(20,0)")
+ .HasColumnName("channelid");
+
+ b.Property("DateAdded")
+ .HasColumnType("timestamp without time zone")
+ .HasColumnName("dateadded");
+
+ b.Property("GuildConfigId")
+ .HasColumnType("integer")
+ .HasColumnName("guildconfigid");
+
+ b.HasKey("Id")
+ .HasName("pk_gcchannelid");
+
+ b.HasIndex("GuildConfigId")
+ .HasDatabaseName("ix_gcchannelid_guildconfigid");
+
+ b.ToTable("gcchannelid", (string)null);
+ });
+
+ modelBuilder.Entity("EllieBot.Db.Models.GamblingStats", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("integer")
+ .HasColumnName("id");
+
+ NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
+
+ b.Property("Bet")
+ .HasColumnType("numeric")
+ .HasColumnName("bet");
+
+ b.Property("DateAdded")
+ .HasColumnType("timestamp without time zone")
+ .HasColumnName("dateadded");
+
+ b.Property("Feature")
+ .HasColumnType("text")
+ .HasColumnName("feature");
+
+ b.Property("PaidOut")
+ .HasColumnType("numeric")
+ .HasColumnName("paidout");
+
+ b.HasKey("Id")
+ .HasName("pk_gamblingstats");
+
+ b.HasIndex("Feature")
+ .IsUnique()
+ .HasDatabaseName("ix_gamblingstats_feature");
+
+ b.ToTable("gamblingstats", (string)null);
+ });
+
+ modelBuilder.Entity("EllieBot.Db.Models.GiveawayModel", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("integer")
+ .HasColumnName("id");
+
+ NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
+
+ b.Property("ChannelId")
+ .HasColumnType("numeric(20,0)")
+ .HasColumnName("channelid");
+
+ b.Property("EndsAt")
+ .HasColumnType("timestamp without time zone")
+ .HasColumnName("endsat");
+
+ b.Property("GuildId")
+ .HasColumnType("numeric(20,0)")
+ .HasColumnName("guildid");
+
+ b.Property("Message")
+ .HasColumnType("text")
+ .HasColumnName("message");
+
+ b.Property("MessageId")
+ .HasColumnType("numeric(20,0)")
+ .HasColumnName("messageid");
+
+ b.HasKey("Id")
+ .HasName("pk_giveawaymodel");
+
+ b.ToTable("giveawaymodel", (string)null);
+ });
+
+ modelBuilder.Entity("EllieBot.Db.Models.GiveawayUser", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("integer")
+ .HasColumnName("id");
+
+ NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
+
+ b.Property("GiveawayId")
+ .HasColumnType("integer")
+ .HasColumnName("giveawayid");
+
+ b.Property("Name")
+ .HasColumnType("text")
+ .HasColumnName("name");
+
+ b.Property("UserId")
+ .HasColumnType("numeric(20,0)")
+ .HasColumnName("userid");
+
+ b.HasKey("Id")
+ .HasName("pk_giveawayuser");
+
+ b.HasIndex("GiveawayId", "UserId")
+ .IsUnique()
+ .HasDatabaseName("ix_giveawayuser_giveawayid_userid");
+
+ b.ToTable("giveawayuser", (string)null);
+ });
+
+ modelBuilder.Entity("EllieBot.Db.Models.GuildColors", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("integer")
+ .HasColumnName("id");
+
+ NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
+
+ b.Property("ErrorColor")
+ .HasMaxLength(9)
+ .HasColumnType("character varying(9)")
+ .HasColumnName("errorcolor");
+
+ b.Property("GuildId")
+ .HasColumnType("numeric(20,0)")
+ .HasColumnName("guildid");
+
+ b.Property("OkColor")
+ .HasMaxLength(9)
+ .HasColumnType("character varying(9)")
+ .HasColumnName("okcolor");
+
+ b.Property("PendingColor")
+ .HasMaxLength(9)
+ .HasColumnType("character varying(9)")
+ .HasColumnName("pendingcolor");
+
+ b.HasKey("Id")
+ .HasName("pk_guildcolors");
+
+ b.HasIndex("GuildId")
+ .IsUnique()
+ .HasDatabaseName("ix_guildcolors_guildid");
+
+ b.ToTable("guildcolors", (string)null);
+ });
+
+ modelBuilder.Entity("EllieBot.Db.Models.GuildConfig", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("integer")
+ .HasColumnName("id");
+
+ NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
+
+ b.Property("AutoAssignRoleIds")
+ .HasColumnType("text")
+ .HasColumnName("autoassignroleids");
+
+ b.Property("AutoDeleteSelfAssignedRoleMessages")
+ .HasColumnType("boolean")
+ .HasColumnName("autodeleteselfassignedrolemessages");
+
+ b.Property("CleverbotEnabled")
+ .HasColumnType("boolean")
+ .HasColumnName("cleverbotenabled");
+
+ b.Property("DateAdded")
+ .HasColumnType("timestamp without time zone")
+ .HasColumnName("dateadded");
+
+ b.Property("DeleteMessageOnCommand")
+ .HasColumnType("boolean")
+ .HasColumnName("deletemessageoncommand");
+
+ b.Property("DeleteStreamOnlineMessage")
+ .HasColumnType("boolean")
+ .HasColumnName("deletestreamonlinemessage");
+
+ b.Property("DisableGlobalExpressions")
+ .HasColumnType("boolean")
+ .HasColumnName("disableglobalexpressions");
+
+ b.Property("ExclusiveSelfAssignedRoles")
+ .HasColumnType("boolean")
+ .HasColumnName("exclusiveselfassignedroles");
+
+ b.Property("FilterInvites")
+ .HasColumnType("boolean")
+ .HasColumnName("filterinvites");
+
+ b.Property("FilterLinks")
+ .HasColumnType("boolean")
+ .HasColumnName("filterlinks");
+
+ b.Property("FilterWords")
+ .HasColumnType("boolean")
+ .HasColumnName("filterwords");
+
+ b.Property("GameVoiceChannel")
+ .HasColumnType("numeric(20,0)")
+ .HasColumnName("gamevoicechannel");
+
+ b.Property("GuildId")
+ .HasColumnType("numeric(20,0)")
+ .HasColumnName("guildid");
+
+ b.Property("Locale")
+ .HasColumnType("text")
+ .HasColumnName("locale");
+
+ b.Property("MuteRoleName")
+ .HasColumnType("text")
+ .HasColumnName("muterolename");
+
+ b.Property("NotifyStreamOffline")
+ .HasColumnType("boolean")
+ .HasColumnName("notifystreamoffline");
+
+ b.Property("PermissionRole")
+ .HasColumnType("text")
+ .HasColumnName("permissionrole");
+
+ b.Property("Prefix")
+ .HasColumnType("text")
+ .HasColumnName("prefix");
+
+ b.Property("StickyRoles")
+ .HasColumnType("boolean")
+ .HasColumnName("stickyroles");
+
+ b.Property("TimeZoneId")
+ .HasColumnType("text")
+ .HasColumnName("timezoneid");
+
+ b.Property("VerboseErrors")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("boolean")
+ .HasDefaultValue(true)
+ .HasColumnName("verboseerrors");
+
+ b.Property("VerbosePermissions")
+ .HasColumnType("boolean")
+ .HasColumnName("verbosepermissions");
+
+ b.Property("WarnExpireAction")
+ .HasColumnType("integer")
+ .HasColumnName("warnexpireaction");
+
+ b.Property("WarnExpireHours")
+ .HasColumnType("integer")
+ .HasColumnName("warnexpirehours");
+
+ b.Property("WarningsInitialized")
+ .HasColumnType("boolean")
+ .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("EllieBot.Db.Models.HoneypotChannel", b =>
+ {
+ b.Property("GuildId")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("numeric(20,0)")
+ .HasColumnName("guildid");
+
+ b.Property("ChannelId")
+ .HasColumnType("numeric(20,0)")
+ .HasColumnName("channelid");
+
+ b.HasKey("GuildId")
+ .HasName("pk_honeypotchannels");
+
+ b.ToTable("honeypotchannels", (string)null);
+ });
+
+ modelBuilder.Entity("EllieBot.Db.Models.IgnoredLogItem", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("integer")
+ .HasColumnName("id");
+
+ NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
+
+ b.Property("DateAdded")
+ .HasColumnType("timestamp without time zone")
+ .HasColumnName("dateadded");
+
+ b.Property("ItemType")
+ .HasColumnType("integer")
+ .HasColumnName("itemtype");
+
+ b.Property("LogItemId")
+ .HasColumnType("numeric(20,0)")
+ .HasColumnName("logitemid");
+
+ b.Property