elliebot/src/EllieBot/Migrations/PostgreSql/20240502233202_v5.Designer.cs

3828 lines
148 KiB
C#
Raw Normal View History

2024-06-18 14:03:46 +00:00
// <auto-generated />
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
2024-06-23 02:35:10 +00:00
using EllieBot.Db;
2024-06-19 05:19:56 +00:00
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
2024-06-18 14:03:46 +00:00
#nullable disable
2024-06-19 05:19:56 +00:00
namespace EllieBot.Migrations.PostgreSql
2024-06-18 14:03:46 +00:00
{
2024-06-19 05:19:56 +00:00
[DbContext(typeof(PostgreSqlContext))]
2024-06-23 02:35:10 +00:00
[Migration("20240502233202_v5")]
partial class v5
2024-06-18 14:03:46 +00:00
{
2024-06-19 05:19:56 +00:00
/// <inheritdoc />
2024-06-18 14:03:46 +00:00
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
2024-06-19 05:19:56 +00:00
.HasAnnotation("ProductVersion", "8.0.4")
.HasAnnotation("Relational:MaxIdentifierLength", 63);
2024-06-18 14:03:46 +00:00
2024-06-19 05:19:56 +00:00
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
2024-06-18 14:03:46 +00:00
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.AntiAltSetting", b =>
2024-06-18 14:03:46 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("id");
2024-06-19 05:19:56 +00:00
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
2024-06-18 14:03:46 +00:00
b.Property<int>("Action")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("action");
b.Property<int>("ActionDurationMinutes")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("actiondurationminutes");
b.Property<int>("GuildConfigId")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("guildconfigid");
b.Property<TimeSpan>("MinAge")
2024-06-19 05:19:56 +00:00
.HasColumnType("interval")
2024-06-18 14:03:46 +00:00
.HasColumnName("minage");
2024-06-19 05:19:56 +00:00
b.Property<decimal?>("RoleId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("roleid");
b.HasKey("Id")
.HasName("pk_antialtsetting");
b.HasIndex("GuildConfigId")
.IsUnique()
.HasDatabaseName("ix_antialtsetting_guildconfigid");
b.ToTable("antialtsetting", (string)null);
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.AntiRaidSetting", b =>
2024-06-18 14:03:46 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("id");
2024-06-19 05:19:56 +00:00
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
2024-06-18 14:03:46 +00:00
b.Property<int>("Action")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("action");
b.Property<DateTime?>("DateAdded")
2024-06-19 05:19:56 +00:00
.HasColumnType("timestamp without time zone")
2024-06-18 14:03:46 +00:00
.HasColumnName("dateadded");
b.Property<int>("GuildConfigId")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("guildconfigid");
b.Property<int>("PunishDuration")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("punishduration");
b.Property<int>("Seconds")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("seconds");
b.Property<int>("UserThreshold")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("userthreshold");
b.HasKey("Id")
.HasName("pk_antiraidsetting");
b.HasIndex("GuildConfigId")
.IsUnique()
.HasDatabaseName("ix_antiraidsetting_guildconfigid");
b.ToTable("antiraidsetting", (string)null);
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.AntiSpamIgnore", b =>
2024-06-18 14:03:46 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("id");
2024-06-19 05:19:56 +00:00
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
2024-06-18 14:03:46 +00:00
b.Property<int?>("AntiSpamSettingId")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("antispamsettingid");
2024-06-19 05:19:56 +00:00
b.Property<decimal>("ChannelId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("channelid");
b.Property<DateTime?>("DateAdded")
2024-06-19 05:19:56 +00:00
.HasColumnType("timestamp without time zone")
2024-06-18 14:03:46 +00:00
.HasColumnName("dateadded");
b.HasKey("Id")
.HasName("pk_antispamignore");
b.HasIndex("AntiSpamSettingId")
.HasDatabaseName("ix_antispamignore_antispamsettingid");
b.ToTable("antispamignore", (string)null);
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.AntiSpamSetting", b =>
2024-06-18 14:03:46 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("id");
2024-06-19 05:19:56 +00:00
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
2024-06-18 14:03:46 +00:00
b.Property<int>("Action")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("action");
b.Property<DateTime?>("DateAdded")
2024-06-19 05:19:56 +00:00
.HasColumnType("timestamp without time zone")
2024-06-18 14:03:46 +00:00
.HasColumnName("dateadded");
b.Property<int>("GuildConfigId")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("guildconfigid");
b.Property<int>("MessageThreshold")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("messagethreshold");
b.Property<int>("MuteTime")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("mutetime");
2024-06-19 05:19:56 +00:00
b.Property<decimal?>("RoleId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("roleid");
b.HasKey("Id")
.HasName("pk_antispamsetting");
b.HasIndex("GuildConfigId")
.IsUnique()
.HasDatabaseName("ix_antispamsetting_guildconfigid");
b.ToTable("antispamsetting", (string)null);
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.ArchivedTodoListModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasColumnName("id");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
b.Property<string>("Name")
.HasColumnType("text")
.HasColumnName("name");
b.Property<decimal>("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 =>
2024-06-18 14:03:46 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("id");
2024-06-19 05:19:56 +00:00
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
b.Property<decimal>("ChannelId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("channelid");
b.Property<string>("ChannelName")
2024-06-19 05:19:56 +00:00
.HasColumnType("text")
2024-06-18 14:03:46 +00:00
.HasColumnName("channelname");
b.Property<string>("CommandText")
2024-06-19 05:19:56 +00:00
.HasColumnType("text")
2024-06-18 14:03:46 +00:00
.HasColumnName("commandtext");
b.Property<DateTime?>("DateAdded")
2024-06-19 05:19:56 +00:00
.HasColumnType("timestamp without time zone")
2024-06-18 14:03:46 +00:00
.HasColumnName("dateadded");
2024-06-19 05:19:56 +00:00
b.Property<decimal?>("GuildId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("guildid");
b.Property<string>("GuildName")
2024-06-19 05:19:56 +00:00
.HasColumnType("text")
2024-06-18 14:03:46 +00:00
.HasColumnName("guildname");
b.Property<int>("Interval")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("interval");
2024-06-19 05:19:56 +00:00
b.Property<decimal?>("VoiceChannelId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("voicechannelid");
b.Property<string>("VoiceChannelName")
2024-06-19 05:19:56 +00:00
.HasColumnType("text")
2024-06-18 14:03:46 +00:00
.HasColumnName("voicechannelname");
b.HasKey("Id")
.HasName("pk_autocommands");
b.ToTable("autocommands", (string)null);
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.AutoPublishChannel", b =>
2024-06-18 14:03:46 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("id");
2024-06-19 05:19:56 +00:00
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
b.Property<decimal>("ChannelId")
.HasColumnType("numeric(20,0)")
.HasColumnName("channelid");
b.Property<DateTime?>("DateAdded")
.HasColumnType("timestamp without time zone")
.HasColumnName("dateadded");
b.Property<decimal>("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<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasColumnName("id");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
2024-06-18 14:03:46 +00:00
b.Property<bool>("AutoDelete")
2024-06-19 05:19:56 +00:00
.HasColumnType("boolean")
2024-06-18 14:03:46 +00:00
.HasColumnName("autodelete");
2024-06-19 05:19:56 +00:00
b.Property<decimal>("ChannelId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("channelid");
b.Property<DateTime?>("DateAdded")
2024-06-19 05:19:56 +00:00
.HasColumnType("timestamp without time zone")
2024-06-18 14:03:46 +00:00
.HasColumnName("dateadded");
2024-06-19 05:19:56 +00:00
b.Property<decimal>("GuildId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.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);
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.AutoTranslateUser", b =>
2024-06-18 14:03:46 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("id");
2024-06-19 05:19:56 +00:00
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
2024-06-18 14:03:46 +00:00
b.Property<int>("ChannelId")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("channelid");
b.Property<DateTime?>("DateAdded")
2024-06-19 05:19:56 +00:00
.HasColumnType("timestamp without time zone")
2024-06-18 14:03:46 +00:00
.HasColumnName("dateadded");
b.Property<string>("Source")
2024-06-19 05:19:56 +00:00
.HasColumnType("text")
2024-06-18 14:03:46 +00:00
.HasColumnName("source");
b.Property<string>("Target")
2024-06-19 05:19:56 +00:00
.HasColumnType("text")
2024-06-18 14:03:46 +00:00
.HasColumnName("target");
2024-06-19 05:19:56 +00:00
b.Property<decimal>("UserId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("userid");
b.HasKey("Id")
.HasName("pk_autotranslateusers");
b.HasAlternateKey("ChannelId", "UserId")
.HasName("ak_autotranslateusers_channelid_userid");
b.ToTable("autotranslateusers", (string)null);
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.BanTemplate", b =>
2024-06-18 14:03:46 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("id");
2024-06-19 05:19:56 +00:00
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
2024-06-18 14:03:46 +00:00
b.Property<DateTime?>("DateAdded")
2024-06-19 05:19:56 +00:00
.HasColumnType("timestamp without time zone")
2024-06-18 14:03:46 +00:00
.HasColumnName("dateadded");
2024-06-19 05:19:56 +00:00
b.Property<decimal>("GuildId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("guildid");
2024-06-19 05:19:56 +00:00
b.Property<int?>("PruneDays")
.HasColumnType("integer")
.HasColumnName("prunedays");
2024-06-18 14:03:46 +00:00
b.Property<string>("Text")
2024-06-19 05:19:56 +00:00
.HasColumnType("text")
2024-06-18 14:03:46 +00:00
.HasColumnName("text");
b.HasKey("Id")
.HasName("pk_bantemplates");
b.HasIndex("GuildId")
.IsUnique()
.HasDatabaseName("ix_bantemplates_guildid");
b.ToTable("bantemplates", (string)null);
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.BankUser", b =>
2024-06-18 14:03:46 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("id");
2024-06-19 05:19:56 +00:00
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
b.Property<long>("Balance")
.HasColumnType("bigint")
.HasColumnName("balance");
b.Property<DateTime?>("DateAdded")
.HasColumnType("timestamp without time zone")
.HasColumnName("dateadded");
b.Property<decimal>("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<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasColumnName("id");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
b.Property<DateTime?>("DateAdded")
.HasColumnType("timestamp without time zone")
.HasColumnName("dateadded");
b.Property<decimal>("ItemId")
.HasColumnType("numeric(20,0)")
.HasColumnName("itemid");
b.Property<int>("Type")
.HasColumnType("integer")
.HasColumnName("type");
b.HasKey("Id")
.HasName("pk_blacklist");
b.ToTable("blacklist", (string)null);
});
modelBuilder.Entity("EllieBot.Db.Models.ClubApplicants", b =>
{
b.Property<int>("ClubId")
.HasColumnType("integer")
.HasColumnName("clubid");
b.Property<int>("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<int>("ClubId")
.HasColumnType("integer")
.HasColumnName("clubid");
b.Property<int>("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<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasColumnName("id");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
b.Property<DateTime?>("DateAdded")
.HasColumnType("timestamp without time zone")
.HasColumnName("dateadded");
b.Property<string>("Description")
.HasColumnType("text")
.HasColumnName("description");
b.Property<string>("ImageUrl")
.HasColumnType("text")
.HasColumnName("imageurl");
2024-06-18 14:03:46 +00:00
2024-06-19 05:19:56 +00:00
b.Property<string>("Name")
.HasMaxLength(20)
.HasColumnType("character varying(20)")
.HasColumnName("name");
2024-06-18 14:03:46 +00:00
2024-06-19 05:19:56 +00:00
b.Property<int?>("OwnerId")
.HasColumnType("integer")
.HasColumnName("ownerid");
b.Property<int>("Xp")
.HasColumnType("integer")
.HasColumnName("xp");
2024-06-18 14:03:46 +00:00
b.HasKey("Id")
2024-06-19 05:19:56 +00:00
.HasName("pk_clubs");
2024-06-18 14:03:46 +00:00
2024-06-19 05:19:56 +00:00
b.HasIndex("Name")
.IsUnique()
.HasDatabaseName("ix_clubs_name");
b.HasIndex("OwnerId")
.IsUnique()
.HasDatabaseName("ix_clubs_ownerid");
b.ToTable("clubs", (string)null);
2024-06-18 14:03:46 +00:00
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.CommandAlias", b =>
2024-06-18 14:03:46 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("id");
2024-06-19 05:19:56 +00:00
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
2024-06-18 14:03:46 +00:00
b.Property<DateTime?>("DateAdded")
2024-06-19 05:19:56 +00:00
.HasColumnType("timestamp without time zone")
2024-06-18 14:03:46 +00:00
.HasColumnName("dateadded");
b.Property<int?>("GuildConfigId")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("guildconfigid");
b.Property<string>("Mapping")
2024-06-19 05:19:56 +00:00
.HasColumnType("text")
2024-06-18 14:03:46 +00:00
.HasColumnName("mapping");
b.Property<string>("Trigger")
2024-06-19 05:19:56 +00:00
.HasColumnType("text")
2024-06-18 14:03:46 +00:00
.HasColumnName("trigger");
b.HasKey("Id")
.HasName("pk_commandalias");
b.HasIndex("GuildConfigId")
.HasDatabaseName("ix_commandalias_guildconfigid");
b.ToTable("commandalias", (string)null);
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.CommandCooldown", b =>
2024-06-18 14:03:46 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("id");
2024-06-19 05:19:56 +00:00
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
2024-06-18 14:03:46 +00:00
b.Property<string>("CommandName")
2024-06-19 05:19:56 +00:00
.HasColumnType("text")
2024-06-18 14:03:46 +00:00
.HasColumnName("commandname");
b.Property<DateTime?>("DateAdded")
2024-06-19 05:19:56 +00:00
.HasColumnType("timestamp without time zone")
2024-06-18 14:03:46 +00:00
.HasColumnName("dateadded");
b.Property<int?>("GuildConfigId")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("guildconfigid");
b.Property<int>("Seconds")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("seconds");
b.HasKey("Id")
.HasName("pk_commandcooldown");
b.HasIndex("GuildConfigId")
.HasDatabaseName("ix_commandcooldown_guildconfigid");
b.ToTable("commandcooldown", (string)null);
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.CurrencyTransaction", b =>
2024-06-18 14:03:46 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("id");
2024-06-19 05:19:56 +00:00
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
2024-06-18 14:03:46 +00:00
b.Property<long>("Amount")
.HasColumnType("bigint")
.HasColumnName("amount");
b.Property<DateTime?>("DateAdded")
2024-06-19 05:19:56 +00:00
.HasColumnType("timestamp without time zone")
2024-06-18 14:03:46 +00:00
.HasColumnName("dateadded");
b.Property<string>("Extra")
.IsRequired()
2024-06-19 05:19:56 +00:00
.HasColumnType("text")
2024-06-18 14:03:46 +00:00
.HasColumnName("extra");
b.Property<string>("Note")
2024-06-19 05:19:56 +00:00
.HasColumnType("text")
2024-06-18 14:03:46 +00:00
.HasColumnName("note");
2024-06-19 05:19:56 +00:00
b.Property<decimal?>("OtherId")
2024-06-18 14:03:46 +00:00
.ValueGeneratedOnAdd()
2024-06-19 05:19:56 +00:00
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("otherid")
.HasDefaultValueSql("NULL");
b.Property<string>("Type")
.IsRequired()
2024-06-19 05:19:56 +00:00
.HasColumnType("text")
2024-06-18 14:03:46 +00:00
.HasColumnName("type");
2024-06-19 05:19:56 +00:00
b.Property<decimal>("UserId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("userid");
b.HasKey("Id")
.HasName("pk_currencytransactions");
b.HasIndex("UserId")
.HasDatabaseName("ix_currencytransactions_userid");
b.ToTable("currencytransactions", (string)null);
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.DelMsgOnCmdChannel", b =>
2024-06-18 14:03:46 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("id");
2024-06-19 05:19:56 +00:00
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
b.Property<decimal>("ChannelId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("channelid");
b.Property<DateTime?>("DateAdded")
2024-06-19 05:19:56 +00:00
.HasColumnType("timestamp without time zone")
2024-06-18 14:03:46 +00:00
.HasColumnName("dateadded");
2024-06-23 02:35:10 +00:00
b.Property<int?>("GuildConfigId")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("guildconfigid");
b.Property<bool>("State")
2024-06-19 05:19:56 +00:00
.HasColumnType("boolean")
2024-06-18 14:03:46 +00:00
.HasColumnName("state");
b.HasKey("Id")
.HasName("pk_delmsgoncmdchannel");
b.HasIndex("GuildConfigId")
.HasDatabaseName("ix_delmsgoncmdchannel_guildconfigid");
b.ToTable("delmsgoncmdchannel", (string)null);
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.DiscordPermOverride", b =>
2024-06-18 14:03:46 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("id");
2024-06-19 05:19:56 +00:00
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
2024-06-18 14:03:46 +00:00
b.Property<string>("Command")
2024-06-19 05:19:56 +00:00
.HasColumnType("text")
2024-06-18 14:03:46 +00:00
.HasColumnName("command");
b.Property<DateTime?>("DateAdded")
2024-06-19 05:19:56 +00:00
.HasColumnType("timestamp without time zone")
2024-06-18 14:03:46 +00:00
.HasColumnName("dateadded");
2024-06-19 05:19:56 +00:00
b.Property<decimal?>("GuildId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("guildid");
2024-06-19 05:19:56 +00:00
b.Property<decimal>("Perm")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("perm");
b.HasKey("Id")
.HasName("pk_discordpermoverrides");
b.HasIndex("GuildId", "Command")
.IsUnique()
.HasDatabaseName("ix_discordpermoverrides_guildid_command");
b.ToTable("discordpermoverrides", (string)null);
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.DiscordUser", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasColumnName("id");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
b.Property<string>("AvatarId")
.HasColumnType("text")
.HasColumnName("avatarid");
b.Property<int?>("ClubId")
.HasColumnType("integer")
.HasColumnName("clubid");
b.Property<long>("CurrencyAmount")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasDefaultValue(0L)
.HasColumnName("currencyamount");
b.Property<DateTime?>("DateAdded")
.HasColumnType("timestamp without time zone")
.HasColumnName("dateadded");
b.Property<string>("Discriminator")
.HasColumnType("text")
.HasColumnName("discriminator");
b.Property<bool>("IsClubAdmin")
.ValueGeneratedOnAdd()
.HasColumnType("boolean")
.HasDefaultValue(false)
.HasColumnName("isclubadmin");
b.Property<int>("NotifyOnLevelUp")
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasDefaultValue(0)
.HasColumnName("notifyonlevelup");
b.Property<long>("TotalXp")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasDefaultValue(0L)
.HasColumnName("totalxp");
b.Property<decimal>("UserId")
.HasColumnType("numeric(20,0)")
.HasColumnName("userid");
b.Property<string>("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.ToTable("discorduser", (string)null);
});
modelBuilder.Entity("EllieBot.Db.Models.ExcludedItem", b =>
2024-06-18 14:03:46 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("id");
2024-06-19 05:19:56 +00:00
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
2024-06-18 14:03:46 +00:00
b.Property<DateTime?>("DateAdded")
2024-06-19 05:19:56 +00:00
.HasColumnType("timestamp without time zone")
2024-06-18 14:03:46 +00:00
.HasColumnName("dateadded");
2024-06-19 05:19:56 +00:00
b.Property<decimal>("ItemId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("itemid");
b.Property<int>("ItemType")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("itemtype");
b.Property<int?>("XpSettingsId")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("xpsettingsid");
b.HasKey("Id")
.HasName("pk_excludeditem");
b.HasIndex("XpSettingsId")
.HasDatabaseName("ix_excludeditem_xpsettingsid");
b.ToTable("excludeditem", (string)null);
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.FeedSub", b =>
2024-06-18 14:03:46 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("id");
2024-06-19 05:19:56 +00:00
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
b.Property<decimal>("ChannelId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("channelid");
b.Property<DateTime?>("DateAdded")
2024-06-19 05:19:56 +00:00
.HasColumnType("timestamp without time zone")
2024-06-18 14:03:46 +00:00
.HasColumnName("dateadded");
b.Property<int>("GuildConfigId")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("guildconfigid");
2024-06-19 05:19:56 +00:00
b.Property<string>("Message")
.HasColumnType("text")
.HasColumnName("message");
2024-06-18 14:03:46 +00:00
b.Property<string>("Url")
.IsRequired()
2024-06-19 05:19:56 +00:00
.HasColumnType("text")
2024-06-18 14:03:46 +00:00
.HasColumnName("url");
b.HasKey("Id")
.HasName("pk_feedsub");
b.HasAlternateKey("GuildConfigId", "Url")
.HasName("ak_feedsub_guildconfigid_url");
b.ToTable("feedsub", (string)null);
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.FilterChannelId", b =>
2024-06-18 14:03:46 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("id");
2024-06-19 05:19:56 +00:00
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
b.Property<decimal>("ChannelId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("channelid");
b.Property<DateTime?>("DateAdded")
2024-06-19 05:19:56 +00:00
.HasColumnType("timestamp without time zone")
2024-06-18 14:03:46 +00:00
.HasColumnName("dateadded");
b.Property<int?>("GuildConfigId")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("guildconfigid");
b.HasKey("Id")
.HasName("pk_filterchannelid");
b.HasIndex("GuildConfigId")
.HasDatabaseName("ix_filterchannelid_guildconfigid");
b.ToTable("filterchannelid", (string)null);
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.FilterLinksChannelId", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasColumnName("id");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
b.Property<decimal>("ChannelId")
.HasColumnType("numeric(20,0)")
.HasColumnName("channelid");
b.Property<DateTime?>("DateAdded")
.HasColumnType("timestamp without time zone")
.HasColumnName("dateadded");
b.Property<int?>("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<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasColumnName("id");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
b.Property<decimal>("ChannelId")
.HasColumnType("numeric(20,0)")
.HasColumnName("channelid");
b.Property<DateTime?>("DateAdded")
.HasColumnType("timestamp without time zone")
.HasColumnName("dateadded");
b.Property<int?>("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 =>
2024-06-18 14:03:46 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("id");
2024-06-19 05:19:56 +00:00
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
2024-06-18 14:03:46 +00:00
b.Property<DateTime?>("DateAdded")
2024-06-19 05:19:56 +00:00
.HasColumnType("timestamp without time zone")
2024-06-18 14:03:46 +00:00
.HasColumnName("dateadded");
b.Property<int?>("GuildConfigId")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("guildconfigid");
b.Property<string>("Word")
2024-06-19 05:19:56 +00:00
.HasColumnType("text")
2024-06-18 14:03:46 +00:00
.HasColumnName("word");
b.HasKey("Id")
.HasName("pk_filteredword");
b.HasIndex("GuildConfigId")
.HasDatabaseName("ix_filteredword_guildconfigid");
b.ToTable("filteredword", (string)null);
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.FollowedStream", b =>
2024-06-18 14:03:46 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("id");
2024-06-19 05:19:56 +00:00
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
b.Property<decimal>("ChannelId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("channelid");
b.Property<DateTime?>("DateAdded")
2024-06-19 05:19:56 +00:00
.HasColumnType("timestamp without time zone")
2024-06-18 14:03:46 +00:00
.HasColumnName("dateadded");
b.Property<int?>("GuildConfigId")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("guildconfigid");
2024-06-19 05:19:56 +00:00
b.Property<decimal>("GuildId")
.HasColumnType("numeric(20,0)")
.HasColumnName("guildid");
b.Property<string>("Message")
.HasColumnType("text")
.HasColumnName("message");
b.Property<int>("Type")
.HasColumnType("integer")
.HasColumnName("type");
b.Property<string>("Username")
.HasColumnType("text")
.HasColumnName("username");
2024-06-18 14:03:46 +00:00
b.HasKey("Id")
2024-06-19 05:19:56 +00:00
.HasName("pk_followedstream");
2024-06-18 14:03:46 +00:00
b.HasIndex("GuildConfigId")
2024-06-19 05:19:56 +00:00
.HasDatabaseName("ix_followedstream_guildconfigid");
2024-06-18 14:03:46 +00:00
2024-06-19 05:19:56 +00:00
b.ToTable("followedstream", (string)null);
2024-06-18 14:03:46 +00:00
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.GCChannelId", b =>
2024-06-18 14:03:46 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("id");
2024-06-19 05:19:56 +00:00
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
b.Property<decimal>("ChannelId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("channelid");
b.Property<DateTime?>("DateAdded")
2024-06-19 05:19:56 +00:00
.HasColumnType("timestamp without time zone")
2024-06-18 14:03:46 +00:00
.HasColumnName("dateadded");
b.Property<int?>("GuildConfigId")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("guildconfigid");
b.HasKey("Id")
2024-06-19 05:19:56 +00:00
.HasName("pk_gcchannelid");
2024-06-18 14:03:46 +00:00
b.HasIndex("GuildConfigId")
2024-06-19 05:19:56 +00:00
.HasDatabaseName("ix_gcchannelid_guildconfigid");
2024-06-18 14:03:46 +00:00
2024-06-19 05:19:56 +00:00
b.ToTable("gcchannelid", (string)null);
2024-06-18 14:03:46 +00:00
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.GamblingStats", b =>
2024-06-18 14:03:46 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("id");
2024-06-19 05:19:56 +00:00
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
b.Property<decimal>("Bet")
.HasColumnType("numeric")
.HasColumnName("bet");
2024-06-18 14:03:46 +00:00
b.Property<DateTime?>("DateAdded")
2024-06-19 05:19:56 +00:00
.HasColumnType("timestamp without time zone")
2024-06-18 14:03:46 +00:00
.HasColumnName("dateadded");
2024-06-19 05:19:56 +00:00
b.Property<string>("Feature")
.HasColumnType("text")
.HasColumnName("feature");
b.Property<decimal>("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<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasColumnName("id");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
b.Property<decimal>("ChannelId")
.HasColumnType("numeric(20,0)")
.HasColumnName("channelid");
b.Property<DateTime>("EndsAt")
.HasColumnType("timestamp without time zone")
.HasColumnName("endsat");
b.Property<decimal>("GuildId")
.HasColumnType("numeric(20,0)")
.HasColumnName("guildid");
b.Property<string>("Message")
.HasColumnType("text")
.HasColumnName("message");
b.Property<decimal>("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<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasColumnName("id");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
b.Property<int>("GiveawayId")
.HasColumnType("integer")
.HasColumnName("giveawayid");
b.Property<string>("Name")
.HasColumnType("text")
.HasColumnName("name");
b.Property<decimal>("UserId")
.HasColumnType("numeric(20,0)")
.HasColumnName("userid");
2024-06-18 14:03:46 +00:00
b.HasKey("Id")
2024-06-19 05:19:56 +00:00
.HasName("pk_giveawayuser");
2024-06-18 14:03:46 +00:00
2024-06-19 05:19:56 +00:00
b.HasIndex("GiveawayId", "UserId")
.IsUnique()
.HasDatabaseName("ix_giveawayuser_giveawayid_userid");
2024-06-18 14:03:46 +00:00
2024-06-19 05:19:56 +00:00
b.ToTable("giveawayuser", (string)null);
2024-06-18 14:03:46 +00:00
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.GroupName", b =>
2024-06-18 14:03:46 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("id");
2024-06-19 05:19:56 +00:00
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
2024-06-18 14:03:46 +00:00
b.Property<DateTime?>("DateAdded")
2024-06-19 05:19:56 +00:00
.HasColumnType("timestamp without time zone")
2024-06-18 14:03:46 +00:00
.HasColumnName("dateadded");
b.Property<int>("GuildConfigId")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("guildconfigid");
b.Property<string>("Name")
2024-06-19 05:19:56 +00:00
.HasColumnType("text")
2024-06-18 14:03:46 +00:00
.HasColumnName("name");
b.Property<int>("Number")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("number");
b.HasKey("Id")
.HasName("pk_groupname");
b.HasIndex("GuildConfigId", "Number")
.IsUnique()
.HasDatabaseName("ix_groupname_guildconfigid_number");
b.ToTable("groupname", (string)null);
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.GuildConfig", b =>
2024-06-18 14:03:46 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("id");
2024-06-19 05:19:56 +00:00
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
2024-06-18 14:03:46 +00:00
b.Property<string>("AutoAssignRoleIds")
2024-06-19 05:19:56 +00:00
.HasColumnType("text")
2024-06-18 14:03:46 +00:00
.HasColumnName("autoassignroleids");
b.Property<int>("AutoDeleteByeMessagesTimer")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("autodeletebyemessagestimer");
b.Property<int>("AutoDeleteGreetMessagesTimer")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("autodeletegreetmessagestimer");
b.Property<bool>("AutoDeleteSelfAssignedRoleMessages")
2024-06-19 05:19:56 +00:00
.HasColumnType("boolean")
2024-06-18 14:03:46 +00:00
.HasColumnName("autodeleteselfassignedrolemessages");
b.Property<string>("BoostMessage")
2024-06-19 05:19:56 +00:00
.HasColumnType("text")
2024-06-18 14:03:46 +00:00
.HasColumnName("boostmessage");
2024-06-19 05:19:56 +00:00
b.Property<decimal>("BoostMessageChannelId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("boostmessagechannelid");
b.Property<int>("BoostMessageDeleteAfter")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("boostmessagedeleteafter");
2024-06-19 05:19:56 +00:00
b.Property<decimal>("ByeMessageChannelId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("byemessagechannelid");
b.Property<string>("ChannelByeMessageText")
2024-06-19 05:19:56 +00:00
.HasColumnType("text")
2024-06-18 14:03:46 +00:00
.HasColumnName("channelbyemessagetext");
b.Property<string>("ChannelGreetMessageText")
2024-06-19 05:19:56 +00:00
.HasColumnType("text")
2024-06-18 14:03:46 +00:00
.HasColumnName("channelgreetmessagetext");
b.Property<bool>("CleverbotEnabled")
2024-06-19 05:19:56 +00:00
.HasColumnType("boolean")
2024-06-18 14:03:46 +00:00
.HasColumnName("cleverbotenabled");
b.Property<DateTime?>("DateAdded")
2024-06-19 05:19:56 +00:00
.HasColumnType("timestamp without time zone")
2024-06-18 14:03:46 +00:00
.HasColumnName("dateadded");
b.Property<bool>("DeleteMessageOnCommand")
2024-06-19 05:19:56 +00:00
.HasColumnType("boolean")
2024-06-18 14:03:46 +00:00
.HasColumnName("deletemessageoncommand");
2024-06-19 05:19:56 +00:00
b.Property<bool>("DeleteStreamOnlineMessage")
.HasColumnType("boolean")
.HasColumnName("deletestreamonlinemessage");
b.Property<bool>("DisableGlobalExpressions")
.HasColumnType("boolean")
.HasColumnName("disableglobalexpressions");
2024-06-18 14:03:46 +00:00
b.Property<string>("DmGreetMessageText")
2024-06-19 05:19:56 +00:00
.HasColumnType("text")
2024-06-18 14:03:46 +00:00
.HasColumnName("dmgreetmessagetext");
b.Property<bool>("ExclusiveSelfAssignedRoles")
2024-06-19 05:19:56 +00:00
.HasColumnType("boolean")
2024-06-18 14:03:46 +00:00
.HasColumnName("exclusiveselfassignedroles");
b.Property<bool>("FilterInvites")
2024-06-19 05:19:56 +00:00
.HasColumnType("boolean")
2024-06-18 14:03:46 +00:00
.HasColumnName("filterinvites");
b.Property<bool>("FilterLinks")
2024-06-19 05:19:56 +00:00
.HasColumnType("boolean")
2024-06-18 14:03:46 +00:00
.HasColumnName("filterlinks");
b.Property<bool>("FilterWords")
2024-06-19 05:19:56 +00:00
.HasColumnType("boolean")
2024-06-18 14:03:46 +00:00
.HasColumnName("filterwords");
2024-06-19 05:19:56 +00:00
b.Property<decimal?>("GameVoiceChannel")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("gamevoicechannel");
2024-06-19 05:19:56 +00:00
b.Property<decimal>("GreetMessageChannelId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("greetmessagechannelid");
2024-06-19 05:19:56 +00:00
b.Property<decimal>("GuildId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("guildid");
b.Property<string>("Locale")
2024-06-19 05:19:56 +00:00
.HasColumnType("text")
2024-06-18 14:03:46 +00:00
.HasColumnName("locale");
b.Property<string>("MuteRoleName")
2024-06-19 05:19:56 +00:00
.HasColumnType("text")
2024-06-18 14:03:46 +00:00
.HasColumnName("muterolename");
b.Property<bool>("NotifyStreamOffline")
2024-06-19 05:19:56 +00:00
.HasColumnType("boolean")
2024-06-18 14:03:46 +00:00
.HasColumnName("notifystreamoffline");
b.Property<string>("PermissionRole")
2024-06-19 05:19:56 +00:00
.HasColumnType("text")
2024-06-18 14:03:46 +00:00
.HasColumnName("permissionrole");
b.Property<string>("Prefix")
2024-06-19 05:19:56 +00:00
.HasColumnType("text")
2024-06-18 14:03:46 +00:00
.HasColumnName("prefix");
b.Property<bool>("SendBoostMessage")
2024-06-19 05:19:56 +00:00
.HasColumnType("boolean")
2024-06-18 14:03:46 +00:00
.HasColumnName("sendboostmessage");
b.Property<bool>("SendChannelByeMessage")
2024-06-19 05:19:56 +00:00
.HasColumnType("boolean")
2024-06-18 14:03:46 +00:00
.HasColumnName("sendchannelbyemessage");
b.Property<bool>("SendChannelGreetMessage")
2024-06-19 05:19:56 +00:00
.HasColumnType("boolean")
2024-06-18 14:03:46 +00:00
.HasColumnName("sendchannelgreetmessage");
b.Property<bool>("SendDmGreetMessage")
2024-06-19 05:19:56 +00:00
.HasColumnType("boolean")
2024-06-18 14:03:46 +00:00
.HasColumnName("senddmgreetmessage");
2024-06-19 05:19:56 +00:00
b.Property<bool>("StickyRoles")
.HasColumnType("boolean")
.HasColumnName("stickyroles");
2024-06-18 14:03:46 +00:00
b.Property<string>("TimeZoneId")
2024-06-19 05:19:56 +00:00
.HasColumnType("text")
2024-06-18 14:03:46 +00:00
.HasColumnName("timezoneid");
b.Property<bool>("VerboseErrors")
2024-06-19 05:19:56 +00:00
.ValueGeneratedOnAdd()
.HasColumnType("boolean")
.HasDefaultValue(true)
2024-06-18 14:03:46 +00:00
.HasColumnName("verboseerrors");
b.Property<bool>("VerbosePermissions")
2024-06-19 05:19:56 +00:00
.HasColumnType("boolean")
2024-06-18 14:03:46 +00:00
.HasColumnName("verbosepermissions");
b.Property<int>("WarnExpireAction")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("warnexpireaction");
b.Property<int>("WarnExpireHours")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("warnexpirehours");
b.Property<bool>("WarningsInitialized")
2024-06-19 05:19:56 +00:00
.HasColumnType("boolean")
2024-06-18 14:03:46 +00:00
.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);
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.IgnoredLogItem", b =>
2024-06-18 14:03:46 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("id");
2024-06-19 05:19:56 +00:00
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
2024-06-18 14:03:46 +00:00
b.Property<DateTime?>("DateAdded")
2024-06-19 05:19:56 +00:00
.HasColumnType("timestamp without time zone")
2024-06-18 14:03:46 +00:00
.HasColumnName("dateadded");
b.Property<int>("ItemType")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("itemtype");
2024-06-19 05:19:56 +00:00
b.Property<decimal>("LogItemId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("logitemid");
b.Property<int>("LogSettingId")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.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);
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Db.Models.IgnoredVoicePresenceChannel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasColumnName("id");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
b.Property<decimal>("ChannelId")
.HasColumnType("numeric(20,0)")
.HasColumnName("channelid");
b.Property<DateTime?>("DateAdded")
.HasColumnType("timestamp without time zone")
.HasColumnName("dateadded");
b.Property<int?>("LogSettingId")
.HasColumnType("integer")
.HasColumnName("logsettingid");
b.HasKey("Id")
.HasName("pk_ignoredvoicepresencechannels");
b.HasIndex("LogSettingId")
.HasDatabaseName("ix_ignoredvoicepresencechannels_logsettingid");
b.ToTable("ignoredvoicepresencechannels", (string)null);
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.ImageOnlyChannel", b =>
2024-06-18 14:03:46 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("id");
2024-06-19 05:19:56 +00:00
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
2024-06-18 14:03:46 +00:00
2024-06-19 05:19:56 +00:00
b.Property<decimal>("ChannelId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("channelid");
b.Property<DateTime?>("DateAdded")
2024-06-19 05:19:56 +00:00
.HasColumnType("timestamp without time zone")
2024-06-18 14:03:46 +00:00
.HasColumnName("dateadded");
2024-06-19 05:19:56 +00:00
b.Property<decimal>("GuildId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("guildid");
2024-06-19 05:19:56 +00:00
b.Property<int>("Type")
.HasColumnType("integer")
.HasColumnName("type");
2024-06-18 14:03:46 +00:00
b.HasKey("Id")
.HasName("pk_imageonlychannels");
b.HasIndex("ChannelId")
.IsUnique()
.HasDatabaseName("ix_imageonlychannels_channelid");
b.ToTable("imageonlychannels", (string)null);
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.LogSetting", b =>
2024-06-18 14:03:46 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("id");
2024-06-19 05:19:56 +00:00
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
b.Property<decimal?>("ChannelCreatedId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("channelcreatedid");
2024-06-19 05:19:56 +00:00
b.Property<decimal?>("ChannelDestroyedId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("channeldestroyedid");
2024-06-19 05:19:56 +00:00
b.Property<decimal?>("ChannelUpdatedId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("channelupdatedid");
b.Property<DateTime?>("DateAdded")
2024-06-19 05:19:56 +00:00
.HasColumnType("timestamp without time zone")
2024-06-18 14:03:46 +00:00
.HasColumnName("dateadded");
2024-06-19 05:19:56 +00:00
b.Property<decimal>("GuildId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("guildid");
2024-06-19 05:19:56 +00:00
b.Property<decimal?>("LogOtherId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("logotherid");
2024-06-19 05:19:56 +00:00
b.Property<decimal?>("LogUserPresenceId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("loguserpresenceid");
2024-06-19 05:19:56 +00:00
b.Property<decimal?>("LogVoicePresenceId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("logvoicepresenceid");
2024-06-19 05:19:56 +00:00
b.Property<decimal?>("LogVoicePresenceTTSId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("logvoicepresencettsid");
2024-06-19 05:19:56 +00:00
b.Property<decimal?>("LogWarnsId")
.HasColumnType("numeric(20,0)")
.HasColumnName("logwarnsid");
b.Property<decimal?>("MessageDeletedId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("messagedeletedid");
2024-06-19 05:19:56 +00:00
b.Property<decimal?>("MessageUpdatedId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("messageupdatedid");
2024-06-19 05:19:56 +00:00
b.Property<decimal?>("ThreadCreatedId")
.HasColumnType("numeric(20,0)")
.HasColumnName("threadcreatedid");
b.Property<decimal?>("ThreadDeletedId")
.HasColumnType("numeric(20,0)")
.HasColumnName("threaddeletedid");
b.Property<decimal?>("UserBannedId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("userbannedid");
2024-06-19 05:19:56 +00:00
b.Property<decimal?>("UserJoinedId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("userjoinedid");
2024-06-19 05:19:56 +00:00
b.Property<decimal?>("UserLeftId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("userleftid");
2024-06-19 05:19:56 +00:00
b.Property<decimal?>("UserMutedId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("usermutedid");
2024-06-19 05:19:56 +00:00
b.Property<decimal?>("UserUnbannedId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("userunbannedid");
2024-06-19 05:19:56 +00:00
b.Property<decimal?>("UserUpdatedId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("userupdatedid");
b.HasKey("Id")
.HasName("pk_logsettings");
b.HasIndex("GuildId")
.IsUnique()
.HasDatabaseName("ix_logsettings_guildid");
b.ToTable("logsettings", (string)null);
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.MusicPlayerSettings", b =>
2024-06-18 14:03:46 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("id");
2024-06-19 05:19:56 +00:00
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
2024-06-18 14:03:46 +00:00
b.Property<bool>("AutoDisconnect")
2024-06-19 05:19:56 +00:00
.HasColumnType("boolean")
2024-06-18 14:03:46 +00:00
.HasColumnName("autodisconnect");
b.Property<bool>("AutoPlay")
2024-06-19 05:19:56 +00:00
.HasColumnType("boolean")
2024-06-18 14:03:46 +00:00
.HasColumnName("autoplay");
2024-06-19 05:19:56 +00:00
b.Property<decimal>("GuildId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("guildid");
2024-06-19 05:19:56 +00:00
b.Property<decimal?>("MusicChannelId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("musicchannelid");
b.Property<int>("PlayerRepeat")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("playerrepeat");
b.Property<int>("QualityPreset")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("qualitypreset");
b.Property<int>("Volume")
.ValueGeneratedOnAdd()
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasDefaultValue(100)
.HasColumnName("volume");
b.HasKey("Id")
.HasName("pk_musicplayersettings");
b.HasIndex("GuildId")
.IsUnique()
.HasDatabaseName("ix_musicplayersettings_guildid");
b.ToTable("musicplayersettings", (string)null);
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.MusicPlaylist", b =>
2024-06-18 14:03:46 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("id");
2024-06-19 05:19:56 +00:00
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
2024-06-18 14:03:46 +00:00
b.Property<string>("Author")
2024-06-19 05:19:56 +00:00
.HasColumnType("text")
2024-06-18 14:03:46 +00:00
.HasColumnName("author");
2024-06-19 05:19:56 +00:00
b.Property<decimal>("AuthorId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("authorid");
b.Property<DateTime?>("DateAdded")
2024-06-19 05:19:56 +00:00
.HasColumnType("timestamp without time zone")
2024-06-18 14:03:46 +00:00
.HasColumnName("dateadded");
b.Property<string>("Name")
2024-06-19 05:19:56 +00:00
.HasColumnType("text")
2024-06-18 14:03:46 +00:00
.HasColumnName("name");
b.HasKey("Id")
.HasName("pk_musicplaylists");
b.ToTable("musicplaylists", (string)null);
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.MutedUserId", b =>
2024-06-18 14:03:46 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("id");
2024-06-19 05:19:56 +00:00
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
2024-06-18 14:03:46 +00:00
b.Property<DateTime?>("DateAdded")
2024-06-19 05:19:56 +00:00
.HasColumnType("timestamp without time zone")
2024-06-18 14:03:46 +00:00
.HasColumnName("dateadded");
b.Property<int?>("GuildConfigId")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("guildconfigid");
2024-06-19 05:19:56 +00:00
b.Property<decimal>("UserId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("userid");
b.HasKey("Id")
.HasName("pk_muteduserid");
b.HasIndex("GuildConfigId")
.HasDatabaseName("ix_muteduserid_guildconfigid");
b.ToTable("muteduserid", (string)null);
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Db.Models.NadekoExpression", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasColumnName("id");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
b.Property<bool>("AllowTarget")
.HasColumnType("boolean")
.HasColumnName("allowtarget");
b.Property<bool>("AutoDeleteTrigger")
.HasColumnType("boolean")
.HasColumnName("autodeletetrigger");
b.Property<bool>("ContainsAnywhere")
.HasColumnType("boolean")
.HasColumnName("containsanywhere");
b.Property<DateTime?>("DateAdded")
.HasColumnType("timestamp without time zone")
.HasColumnName("dateadded");
b.Property<bool>("DmResponse")
.HasColumnType("boolean")
.HasColumnName("dmresponse");
b.Property<decimal?>("GuildId")
.HasColumnType("numeric(20,0)")
.HasColumnName("guildid");
b.Property<string>("Reactions")
.HasColumnType("text")
.HasColumnName("reactions");
b.Property<string>("Response")
.HasColumnType("text")
.HasColumnName("response");
b.Property<string>("Trigger")
.HasColumnType("text")
.HasColumnName("trigger");
b.HasKey("Id")
.HasName("pk_expressions");
b.ToTable("expressions", (string)null);
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.PatronQuota", b =>
2024-06-18 14:03:46 +00:00
{
2024-06-19 05:19:56 +00:00
b.Property<decimal>("UserId")
.HasColumnType("numeric(20,0)")
.HasColumnName("userid");
2024-06-18 14:03:46 +00:00
2024-06-19 05:19:56 +00:00
b.Property<int>("FeatureType")
.HasColumnType("integer")
.HasColumnName("featuretype");
2024-06-18 14:03:46 +00:00
2024-06-19 05:19:56 +00:00
b.Property<string>("Feature")
.HasColumnType("text")
.HasColumnName("feature");
2024-06-18 14:03:46 +00:00
2024-06-19 05:19:56 +00:00
b.Property<long>("DailyCount")
.HasColumnType("bigint")
.HasColumnName("dailycount");
2024-06-18 14:03:46 +00:00
2024-06-19 05:19:56 +00:00
b.Property<long>("HourlyCount")
.HasColumnType("bigint")
.HasColumnName("hourlycount");
2024-06-18 14:03:46 +00:00
2024-06-19 05:19:56 +00:00
b.Property<long>("MonthlyCount")
.HasColumnType("bigint")
.HasColumnName("monthlycount");
2024-06-18 14:03:46 +00:00
2024-06-19 05:19:56 +00:00
b.HasKey("UserId", "FeatureType", "Feature")
.HasName("pk_patronquotas");
2024-06-18 14:03:46 +00:00
2024-06-19 05:19:56 +00:00
b.HasIndex("UserId")
.HasDatabaseName("ix_patronquotas_userid");
2024-06-18 14:03:46 +00:00
2024-06-19 05:19:56 +00:00
b.ToTable("patronquotas", (string)null);
2024-06-18 14:03:46 +00:00
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.PatronUser", b =>
2024-06-18 14:03:46 +00:00
{
2024-06-19 05:19:56 +00:00
b.Property<decimal>("UserId")
2024-06-18 14:03:46 +00:00
.ValueGeneratedOnAdd()
2024-06-19 05:19:56 +00:00
.HasColumnType("numeric(20,0)")
.HasColumnName("userid");
2024-06-18 14:03:46 +00:00
2024-06-19 05:19:56 +00:00
b.Property<int>("AmountCents")
.HasColumnType("integer")
.HasColumnName("amountcents");
2024-06-18 14:03:46 +00:00
2024-06-19 05:19:56 +00:00
b.Property<DateTime>("LastCharge")
.HasColumnType("timestamp without time zone")
.HasColumnName("lastcharge");
2024-06-18 14:03:46 +00:00
2024-06-19 05:19:56 +00:00
b.Property<string>("UniquePlatformUserId")
.HasColumnType("text")
.HasColumnName("uniqueplatformuserid");
2024-06-18 14:03:46 +00:00
2024-06-19 05:19:56 +00:00
b.Property<DateTime>("ValidThru")
.HasColumnType("timestamp without time zone")
.HasColumnName("validthru");
2024-06-18 14:03:46 +00:00
2024-06-19 05:19:56 +00:00
b.HasKey("UserId")
.HasName("pk_patrons");
b.HasIndex("UniquePlatformUserId")
.IsUnique()
.HasDatabaseName("ix_patrons_uniqueplatformuserid");
2024-06-18 14:03:46 +00:00
2024-06-19 05:19:56 +00:00
b.ToTable("patrons", (string)null);
2024-06-18 14:03:46 +00:00
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.Permissionv2", b =>
2024-06-18 14:03:46 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("id");
2024-06-19 05:19:56 +00:00
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
2024-06-18 14:03:46 +00:00
b.Property<DateTime?>("DateAdded")
2024-06-19 05:19:56 +00:00
.HasColumnType("timestamp without time zone")
2024-06-18 14:03:46 +00:00
.HasColumnName("dateadded");
b.Property<int?>("GuildConfigId")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("guildconfigid");
b.Property<int>("Index")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("index");
b.Property<bool>("IsCustomCommand")
2024-06-19 05:19:56 +00:00
.HasColumnType("boolean")
2024-06-18 14:03:46 +00:00
.HasColumnName("iscustomcommand");
b.Property<int>("PrimaryTarget")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("primarytarget");
2024-06-19 05:19:56 +00:00
b.Property<decimal>("PrimaryTargetId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("primarytargetid");
b.Property<int>("SecondaryTarget")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("secondarytarget");
b.Property<string>("SecondaryTargetName")
2024-06-19 05:19:56 +00:00
.HasColumnType("text")
2024-06-18 14:03:46 +00:00
.HasColumnName("secondarytargetname");
b.Property<bool>("State")
2024-06-19 05:19:56 +00:00
.HasColumnType("boolean")
2024-06-18 14:03:46 +00:00
.HasColumnName("state");
b.HasKey("Id")
.HasName("pk_permissions");
b.HasIndex("GuildConfigId")
.HasDatabaseName("ix_permissions_guildconfigid");
b.ToTable("permissions", (string)null);
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.PlantedCurrency", b =>
2024-06-18 14:03:46 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("id");
2024-06-19 05:19:56 +00:00
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
2024-06-18 14:03:46 +00:00
b.Property<long>("Amount")
.HasColumnType("bigint")
.HasColumnName("amount");
2024-06-19 05:19:56 +00:00
b.Property<decimal>("ChannelId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("channelid");
b.Property<DateTime?>("DateAdded")
2024-06-19 05:19:56 +00:00
.HasColumnType("timestamp without time zone")
2024-06-18 14:03:46 +00:00
.HasColumnName("dateadded");
2024-06-19 05:19:56 +00:00
b.Property<decimal>("GuildId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("guildid");
2024-06-19 05:19:56 +00:00
b.Property<decimal>("MessageId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("messageid");
b.Property<string>("Password")
2024-06-19 05:19:56 +00:00
.HasColumnType("text")
2024-06-18 14:03:46 +00:00
.HasColumnName("password");
2024-06-19 05:19:56 +00:00
b.Property<decimal>("UserId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("userid");
b.HasKey("Id")
.HasName("pk_plantedcurrency");
b.HasIndex("ChannelId")
.HasDatabaseName("ix_plantedcurrency_channelid");
b.HasIndex("MessageId")
.IsUnique()
.HasDatabaseName("ix_plantedcurrency_messageid");
b.ToTable("plantedcurrency", (string)null);
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.PlaylistSong", b =>
2024-06-18 14:03:46 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("id");
2024-06-19 05:19:56 +00:00
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
2024-06-18 14:03:46 +00:00
b.Property<DateTime?>("DateAdded")
2024-06-19 05:19:56 +00:00
.HasColumnType("timestamp without time zone")
2024-06-18 14:03:46 +00:00
.HasColumnName("dateadded");
b.Property<int?>("MusicPlaylistId")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("musicplaylistid");
b.Property<string>("Provider")
2024-06-19 05:19:56 +00:00
.HasColumnType("text")
2024-06-18 14:03:46 +00:00
.HasColumnName("provider");
b.Property<int>("ProviderType")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("providertype");
b.Property<string>("Query")
2024-06-19 05:19:56 +00:00
.HasColumnType("text")
2024-06-18 14:03:46 +00:00
.HasColumnName("query");
b.Property<string>("Title")
2024-06-19 05:19:56 +00:00
.HasColumnType("text")
2024-06-18 14:03:46 +00:00
.HasColumnName("title");
b.Property<string>("Uri")
2024-06-19 05:19:56 +00:00
.HasColumnType("text")
2024-06-18 14:03:46 +00:00
.HasColumnName("uri");
b.HasKey("Id")
.HasName("pk_playlistsong");
b.HasIndex("MusicPlaylistId")
.HasDatabaseName("ix_playlistsong_musicplaylistid");
b.ToTable("playlistsong", (string)null);
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.Quote", b =>
2024-06-18 14:03:46 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("id");
2024-06-19 05:19:56 +00:00
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
2024-06-18 14:03:46 +00:00
2024-06-19 05:19:56 +00:00
b.Property<decimal>("AuthorId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("authorid");
b.Property<string>("AuthorName")
.IsRequired()
2024-06-19 05:19:56 +00:00
.HasColumnType("text")
2024-06-18 14:03:46 +00:00
.HasColumnName("authorname");
b.Property<DateTime?>("DateAdded")
2024-06-19 05:19:56 +00:00
.HasColumnType("timestamp without time zone")
2024-06-18 14:03:46 +00:00
.HasColumnName("dateadded");
2024-06-19 05:19:56 +00:00
b.Property<decimal>("GuildId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("guildid");
b.Property<string>("Keyword")
.IsRequired()
2024-06-19 05:19:56 +00:00
.HasColumnType("text")
2024-06-18 14:03:46 +00:00
.HasColumnName("keyword");
b.Property<string>("Text")
.IsRequired()
2024-06-19 05:19:56 +00:00
.HasColumnType("text")
2024-06-18 14:03:46 +00:00
.HasColumnName("text");
b.HasKey("Id")
.HasName("pk_quotes");
b.HasIndex("GuildId")
.HasDatabaseName("ix_quotes_guildid");
b.HasIndex("Keyword")
.HasDatabaseName("ix_quotes_keyword");
b.ToTable("quotes", (string)null);
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.ReactionRoleV2", b =>
2024-06-18 14:03:46 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("id");
2024-06-19 05:19:56 +00:00
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
2024-06-18 14:03:46 +00:00
2024-06-19 05:19:56 +00:00
b.Property<decimal>("ChannelId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("channelid");
b.Property<DateTime?>("DateAdded")
2024-06-19 05:19:56 +00:00
.HasColumnType("timestamp without time zone")
2024-06-18 14:03:46 +00:00
.HasColumnName("dateadded");
2024-06-19 05:19:56 +00:00
b.Property<string>("Emote")
.HasMaxLength(100)
.HasColumnType("character varying(100)")
.HasColumnName("emote");
2024-06-18 14:03:46 +00:00
2024-06-19 05:19:56 +00:00
b.Property<int>("Group")
.HasColumnType("integer")
.HasColumnName("group");
2024-06-18 14:03:46 +00:00
2024-06-19 05:19:56 +00:00
b.Property<decimal>("GuildId")
.HasColumnType("numeric(20,0)")
.HasColumnName("guildid");
b.Property<int>("LevelReq")
.HasColumnType("integer")
.HasColumnName("levelreq");
2024-06-18 14:03:46 +00:00
2024-06-19 05:19:56 +00:00
b.Property<decimal>("MessageId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("messageid");
2024-06-19 05:19:56 +00:00
b.Property<decimal>("RoleId")
.HasColumnType("numeric(20,0)")
.HasColumnName("roleid");
2024-06-18 14:03:46 +00:00
b.HasKey("Id")
2024-06-19 05:19:56 +00:00
.HasName("pk_reactionroles");
2024-06-18 14:03:46 +00:00
2024-06-19 05:19:56 +00:00
b.HasIndex("GuildId")
.HasDatabaseName("ix_reactionroles_guildid");
2024-06-18 14:03:46 +00:00
2024-06-19 05:19:56 +00:00
b.HasIndex("MessageId", "Emote")
.IsUnique()
.HasDatabaseName("ix_reactionroles_messageid_emote");
b.ToTable("reactionroles", (string)null);
2024-06-18 14:03:46 +00:00
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.Reminder", b =>
2024-06-18 14:03:46 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("id");
2024-06-19 05:19:56 +00:00
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
b.Property<decimal>("ChannelId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("channelid");
b.Property<DateTime?>("DateAdded")
2024-06-19 05:19:56 +00:00
.HasColumnType("timestamp without time zone")
2024-06-18 14:03:46 +00:00
.HasColumnName("dateadded");
b.Property<bool>("IsPrivate")
2024-06-19 05:19:56 +00:00
.HasColumnType("boolean")
2024-06-18 14:03:46 +00:00
.HasColumnName("isprivate");
b.Property<string>("Message")
2024-06-19 05:19:56 +00:00
.HasColumnType("text")
2024-06-18 14:03:46 +00:00
.HasColumnName("message");
2024-06-19 05:19:56 +00:00
b.Property<decimal>("ServerId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("serverid");
2024-06-19 05:19:56 +00:00
b.Property<int>("Type")
.HasColumnType("integer")
.HasColumnName("type");
b.Property<decimal>("UserId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("userid");
b.Property<DateTime>("When")
2024-06-19 05:19:56 +00:00
.HasColumnType("timestamp without time zone")
2024-06-18 14:03:46 +00:00
.HasColumnName("when");
b.HasKey("Id")
.HasName("pk_reminders");
b.HasIndex("When")
.HasDatabaseName("ix_reminders_when");
b.ToTable("reminders", (string)null);
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.Repeater", b =>
2024-06-18 14:03:46 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("id");
2024-06-19 05:19:56 +00:00
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
b.Property<decimal>("ChannelId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("channelid");
b.Property<DateTime>("DateAdded")
2024-06-19 05:19:56 +00:00
.HasColumnType("timestamp without time zone")
2024-06-18 14:03:46 +00:00
.HasColumnName("dateadded");
2024-06-19 05:19:56 +00:00
b.Property<decimal>("GuildId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("guildid");
b.Property<TimeSpan>("Interval")
2024-06-19 05:19:56 +00:00
.HasColumnType("interval")
2024-06-18 14:03:46 +00:00
.HasColumnName("interval");
2024-06-19 05:19:56 +00:00
b.Property<decimal?>("LastMessageId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("lastmessageid");
b.Property<string>("Message")
2024-06-19 05:19:56 +00:00
.HasColumnType("text")
2024-06-18 14:03:46 +00:00
.HasColumnName("message");
b.Property<bool>("NoRedundant")
2024-06-19 05:19:56 +00:00
.HasColumnType("boolean")
2024-06-18 14:03:46 +00:00
.HasColumnName("noredundant");
b.Property<TimeSpan?>("StartTimeOfDay")
2024-06-19 05:19:56 +00:00
.HasColumnType("interval")
2024-06-18 14:03:46 +00:00
.HasColumnName("starttimeofday");
b.HasKey("Id")
.HasName("pk_repeaters");
b.ToTable("repeaters", (string)null);
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.RewardedUser", b =>
2024-06-18 14:03:46 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("id");
2024-06-19 05:19:56 +00:00
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
b.Property<long>("AmountRewardedThisMonth")
.HasColumnType("bigint")
2024-06-18 14:03:46 +00:00
.HasColumnName("amountrewardedthismonth");
b.Property<DateTime?>("DateAdded")
2024-06-19 05:19:56 +00:00
.HasColumnType("timestamp without time zone")
2024-06-18 14:03:46 +00:00
.HasColumnName("dateadded");
b.Property<DateTime>("LastReward")
2024-06-19 05:19:56 +00:00
.HasColumnType("timestamp without time zone")
2024-06-18 14:03:46 +00:00
.HasColumnName("lastreward");
2024-06-19 05:19:56 +00:00
b.Property<string>("PlatformUserId")
.HasColumnType("text")
.HasColumnName("platformuserid");
2024-06-18 14:03:46 +00:00
2024-06-19 05:19:56 +00:00
b.Property<decimal>("UserId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("userid");
b.HasKey("Id")
.HasName("pk_rewardedusers");
2024-06-19 05:19:56 +00:00
b.HasIndex("PlatformUserId")
2024-06-18 14:03:46 +00:00
.IsUnique()
2024-06-19 05:19:56 +00:00
.HasDatabaseName("ix_rewardedusers_platformuserid");
2024-06-18 14:03:46 +00:00
b.ToTable("rewardedusers", (string)null);
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.RotatingPlayingStatus", b =>
2024-06-18 14:03:46 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("id");
2024-06-19 05:19:56 +00:00
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
2024-06-18 14:03:46 +00:00
b.Property<DateTime?>("DateAdded")
2024-06-19 05:19:56 +00:00
.HasColumnType("timestamp without time zone")
2024-06-18 14:03:46 +00:00
.HasColumnName("dateadded");
b.Property<string>("Status")
2024-06-19 05:19:56 +00:00
.HasColumnType("text")
2024-06-18 14:03:46 +00:00
.HasColumnName("status");
b.Property<int>("Type")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("type");
b.HasKey("Id")
.HasName("pk_rotatingstatus");
b.ToTable("rotatingstatus", (string)null);
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.SelfAssignedRole", b =>
2024-06-18 14:03:46 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("id");
2024-06-19 05:19:56 +00:00
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
2024-06-18 14:03:46 +00:00
b.Property<DateTime?>("DateAdded")
2024-06-19 05:19:56 +00:00
.HasColumnType("timestamp without time zone")
2024-06-18 14:03:46 +00:00
.HasColumnName("dateadded");
b.Property<int>("Group")
.ValueGeneratedOnAdd()
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasDefaultValue(0)
.HasColumnName("group");
2024-06-19 05:19:56 +00:00
b.Property<decimal>("GuildId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("guildid");
b.Property<int>("LevelRequirement")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("levelrequirement");
2024-06-19 05:19:56 +00:00
b.Property<decimal>("RoleId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("roleid");
b.HasKey("Id")
.HasName("pk_selfassignableroles");
b.HasIndex("GuildId", "RoleId")
.IsUnique()
.HasDatabaseName("ix_selfassignableroles_guildid_roleid");
b.ToTable("selfassignableroles", (string)null);
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.ShopEntry", b =>
2024-06-18 14:03:46 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("id");
2024-06-19 05:19:56 +00:00
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
b.Property<decimal>("AuthorId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("authorid");
2024-06-19 05:19:56 +00:00
b.Property<string>("Command")
.HasColumnType("text")
.HasColumnName("command");
2024-06-18 14:03:46 +00:00
b.Property<DateTime?>("DateAdded")
2024-06-19 05:19:56 +00:00
.HasColumnType("timestamp without time zone")
2024-06-18 14:03:46 +00:00
.HasColumnName("dateadded");
b.Property<int?>("GuildConfigId")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("guildconfigid");
b.Property<int>("Index")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("index");
b.Property<string>("Name")
2024-06-19 05:19:56 +00:00
.HasColumnType("text")
2024-06-18 14:03:46 +00:00
.HasColumnName("name");
b.Property<int>("Price")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("price");
2024-06-19 05:19:56 +00:00
b.Property<decimal>("RoleId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("roleid");
b.Property<string>("RoleName")
2024-06-19 05:19:56 +00:00
.HasColumnType("text")
2024-06-18 14:03:46 +00:00
.HasColumnName("rolename");
2024-06-19 05:19:56 +00:00
b.Property<decimal?>("RoleRequirement")
.HasColumnType("numeric(20,0)")
.HasColumnName("rolerequirement");
2024-06-18 14:03:46 +00:00
b.Property<int>("Type")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("type");
b.HasKey("Id")
.HasName("pk_shopentry");
b.HasIndex("GuildConfigId")
.HasDatabaseName("ix_shopentry_guildconfigid");
b.ToTable("shopentry", (string)null);
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.ShopEntryItem", b =>
2024-06-18 14:03:46 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("id");
2024-06-19 05:19:56 +00:00
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
2024-06-18 14:03:46 +00:00
b.Property<DateTime?>("DateAdded")
2024-06-19 05:19:56 +00:00
.HasColumnType("timestamp without time zone")
2024-06-18 14:03:46 +00:00
.HasColumnName("dateadded");
b.Property<int?>("ShopEntryId")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("shopentryid");
b.Property<string>("Text")
2024-06-19 05:19:56 +00:00
.HasColumnType("text")
2024-06-18 14:03:46 +00:00
.HasColumnName("text");
b.HasKey("Id")
.HasName("pk_shopentryitem");
b.HasIndex("ShopEntryId")
.HasDatabaseName("ix_shopentryitem_shopentryid");
b.ToTable("shopentryitem", (string)null);
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.SlowmodeIgnoredRole", b =>
2024-06-18 14:03:46 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("id");
2024-06-19 05:19:56 +00:00
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
2024-06-18 14:03:46 +00:00
b.Property<DateTime?>("DateAdded")
2024-06-19 05:19:56 +00:00
.HasColumnType("timestamp without time zone")
2024-06-18 14:03:46 +00:00
.HasColumnName("dateadded");
b.Property<int?>("GuildConfigId")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("guildconfigid");
2024-06-19 05:19:56 +00:00
b.Property<decimal>("RoleId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("roleid");
b.HasKey("Id")
.HasName("pk_slowmodeignoredrole");
b.HasIndex("GuildConfigId")
.HasDatabaseName("ix_slowmodeignoredrole_guildconfigid");
b.ToTable("slowmodeignoredrole", (string)null);
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.SlowmodeIgnoredUser", b =>
2024-06-18 14:03:46 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("id");
2024-06-19 05:19:56 +00:00
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
2024-06-18 14:03:46 +00:00
b.Property<DateTime?>("DateAdded")
2024-06-19 05:19:56 +00:00
.HasColumnType("timestamp without time zone")
2024-06-18 14:03:46 +00:00
.HasColumnName("dateadded");
b.Property<int?>("GuildConfigId")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("guildconfigid");
2024-06-19 05:19:56 +00:00
b.Property<decimal>("UserId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("userid");
b.HasKey("Id")
.HasName("pk_slowmodeignoreduser");
b.HasIndex("GuildConfigId")
.HasDatabaseName("ix_slowmodeignoreduser_guildconfigid");
b.ToTable("slowmodeignoreduser", (string)null);
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.StickyRole", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasColumnName("id");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
b.Property<DateTime?>("DateAdded")
.HasColumnType("timestamp without time zone")
.HasColumnName("dateadded");
b.Property<decimal>("GuildId")
.HasColumnType("numeric(20,0)")
.HasColumnName("guildid");
b.Property<string>("RoleIds")
.HasColumnType("text")
.HasColumnName("roleids");
b.Property<decimal>("UserId")
.HasColumnType("numeric(20,0)")
.HasColumnName("userid");
b.HasKey("Id")
.HasName("pk_stickyroles");
b.HasIndex("GuildId", "UserId")
.IsUnique()
.HasDatabaseName("ix_stickyroles_guildid_userid");
b.ToTable("stickyroles", (string)null);
});
modelBuilder.Entity("EllieBot.Db.Models.StreamOnlineMessage", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasColumnName("id");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
b.Property<decimal>("ChannelId")
.HasColumnType("numeric(20,0)")
.HasColumnName("channelid");
b.Property<DateTime?>("DateAdded")
.HasColumnType("timestamp without time zone")
.HasColumnName("dateadded");
b.Property<decimal>("MessageId")
.HasColumnType("numeric(20,0)")
.HasColumnName("messageid");
b.Property<string>("Name")
.HasColumnType("text")
.HasColumnName("name");
b.Property<int>("Type")
.HasColumnType("integer")
.HasColumnName("type");
b.HasKey("Id")
.HasName("pk_streamonlinemessages");
b.ToTable("streamonlinemessages", (string)null);
});
modelBuilder.Entity("EllieBot.Db.Models.StreamRoleBlacklistedUser", b =>
2024-06-18 14:03:46 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("id");
2024-06-19 05:19:56 +00:00
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
2024-06-18 14:03:46 +00:00
b.Property<DateTime?>("DateAdded")
2024-06-19 05:19:56 +00:00
.HasColumnType("timestamp without time zone")
2024-06-18 14:03:46 +00:00
.HasColumnName("dateadded");
2024-06-23 02:35:10 +00:00
b.Property<int?>("StreamRoleSettingsId")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("streamrolesettingsid");
2024-06-19 05:19:56 +00:00
b.Property<decimal>("UserId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("userid");
b.Property<string>("Username")
2024-06-19 05:19:56 +00:00
.HasColumnType("text")
2024-06-18 14:03:46 +00:00
.HasColumnName("username");
b.HasKey("Id")
.HasName("pk_streamroleblacklisteduser");
b.HasIndex("StreamRoleSettingsId")
.HasDatabaseName("ix_streamroleblacklisteduser_streamrolesettingsid");
b.ToTable("streamroleblacklisteduser", (string)null);
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.StreamRoleSettings", b =>
2024-06-18 14:03:46 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("id");
2024-06-19 05:19:56 +00:00
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
b.Property<decimal>("AddRoleId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("addroleid");
b.Property<DateTime?>("DateAdded")
2024-06-19 05:19:56 +00:00
.HasColumnType("timestamp without time zone")
2024-06-18 14:03:46 +00:00
.HasColumnName("dateadded");
b.Property<bool>("Enabled")
2024-06-19 05:19:56 +00:00
.HasColumnType("boolean")
2024-06-18 14:03:46 +00:00
.HasColumnName("enabled");
2024-06-19 05:19:56 +00:00
b.Property<decimal>("FromRoleId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("fromroleid");
b.Property<int>("GuildConfigId")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("guildconfigid");
b.Property<string>("Keyword")
2024-06-19 05:19:56 +00:00
.HasColumnType("text")
2024-06-18 14:03:46 +00:00
.HasColumnName("keyword");
b.HasKey("Id")
.HasName("pk_streamrolesettings");
b.HasIndex("GuildConfigId")
.IsUnique()
.HasDatabaseName("ix_streamrolesettings_guildconfigid");
b.ToTable("streamrolesettings", (string)null);
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.StreamRoleWhitelistedUser", b =>
2024-06-18 14:03:46 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("id");
2024-06-19 05:19:56 +00:00
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
2024-06-18 14:03:46 +00:00
b.Property<DateTime?>("DateAdded")
2024-06-19 05:19:56 +00:00
.HasColumnType("timestamp without time zone")
2024-06-18 14:03:46 +00:00
.HasColumnName("dateadded");
2024-06-23 02:35:10 +00:00
b.Property<int?>("StreamRoleSettingsId")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("streamrolesettingsid");
2024-06-19 05:19:56 +00:00
b.Property<decimal>("UserId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("userid");
b.Property<string>("Username")
2024-06-19 05:19:56 +00:00
.HasColumnType("text")
2024-06-18 14:03:46 +00:00
.HasColumnName("username");
b.HasKey("Id")
.HasName("pk_streamrolewhitelisteduser");
b.HasIndex("StreamRoleSettingsId")
.HasDatabaseName("ix_streamrolewhitelisteduser_streamrolesettingsid");
b.ToTable("streamrolewhitelisteduser", (string)null);
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.TodoModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasColumnName("id");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
b.Property<int?>("ArchiveId")
.HasColumnType("integer")
.HasColumnName("archiveid");
b.Property<DateTime>("DateAdded")
.HasColumnType("timestamp without time zone")
.HasColumnName("dateadded");
b.Property<bool>("IsDone")
.HasColumnType("boolean")
.HasColumnName("isdone");
b.Property<string>("Todo")
.HasColumnType("text")
.HasColumnName("todo");
b.Property<decimal>("UserId")
.HasColumnType("numeric(20,0)")
.HasColumnName("userid");
b.HasKey("Id")
.HasName("pk_todos");
b.HasIndex("ArchiveId")
.HasDatabaseName("ix_todos_archiveid");
b.HasIndex("UserId")
.HasDatabaseName("ix_todos_userid");
b.ToTable("todos", (string)null);
});
modelBuilder.Entity("EllieBot.Db.Models.UnbanTimer", b =>
2024-06-18 14:03:46 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("id");
2024-06-19 05:19:56 +00:00
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
2024-06-18 14:03:46 +00:00
b.Property<DateTime?>("DateAdded")
2024-06-19 05:19:56 +00:00
.HasColumnType("timestamp without time zone")
2024-06-18 14:03:46 +00:00
.HasColumnName("dateadded");
b.Property<int?>("GuildConfigId")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("guildconfigid");
b.Property<DateTime>("UnbanAt")
2024-06-19 05:19:56 +00:00
.HasColumnType("timestamp without time zone")
2024-06-18 14:03:46 +00:00
.HasColumnName("unbanat");
2024-06-19 05:19:56 +00:00
b.Property<decimal>("UserId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("userid");
b.HasKey("Id")
.HasName("pk_unbantimer");
b.HasIndex("GuildConfigId")
.HasDatabaseName("ix_unbantimer_guildconfigid");
b.ToTable("unbantimer", (string)null);
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.UnmuteTimer", b =>
2024-06-18 14:03:46 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("id");
2024-06-19 05:19:56 +00:00
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
2024-06-18 14:03:46 +00:00
b.Property<DateTime?>("DateAdded")
2024-06-19 05:19:56 +00:00
.HasColumnType("timestamp without time zone")
2024-06-18 14:03:46 +00:00
.HasColumnName("dateadded");
b.Property<int?>("GuildConfigId")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("guildconfigid");
b.Property<DateTime>("UnmuteAt")
2024-06-19 05:19:56 +00:00
.HasColumnType("timestamp without time zone")
2024-06-18 14:03:46 +00:00
.HasColumnName("unmuteat");
2024-06-19 05:19:56 +00:00
b.Property<decimal>("UserId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("userid");
b.HasKey("Id")
.HasName("pk_unmutetimer");
b.HasIndex("GuildConfigId")
.HasDatabaseName("ix_unmutetimer_guildconfigid");
b.ToTable("unmutetimer", (string)null);
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.UnroleTimer", b =>
2024-06-18 14:03:46 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("id");
2024-06-19 05:19:56 +00:00
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
2024-06-18 14:03:46 +00:00
b.Property<DateTime?>("DateAdded")
2024-06-19 05:19:56 +00:00
.HasColumnType("timestamp without time zone")
2024-06-18 14:03:46 +00:00
.HasColumnName("dateadded");
b.Property<int?>("GuildConfigId")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("guildconfigid");
2024-06-19 05:19:56 +00:00
b.Property<decimal>("RoleId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("roleid");
b.Property<DateTime>("UnbanAt")
2024-06-19 05:19:56 +00:00
.HasColumnType("timestamp without time zone")
2024-06-18 14:03:46 +00:00
.HasColumnName("unbanat");
2024-06-19 05:19:56 +00:00
b.Property<decimal>("UserId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("userid");
b.HasKey("Id")
.HasName("pk_unroletimer");
b.HasIndex("GuildConfigId")
.HasDatabaseName("ix_unroletimer_guildconfigid");
b.ToTable("unroletimer", (string)null);
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.UserXpStats", b =>
2024-06-18 14:03:46 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("id");
2024-06-19 05:19:56 +00:00
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
b.Property<long>("AwardedXp")
.HasColumnType("bigint")
2024-06-18 14:03:46 +00:00
.HasColumnName("awardedxp");
b.Property<DateTime?>("DateAdded")
2024-06-19 05:19:56 +00:00
.HasColumnType("timestamp without time zone")
2024-06-18 14:03:46 +00:00
.HasColumnName("dateadded");
2024-06-19 05:19:56 +00:00
b.Property<decimal>("GuildId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("guildid");
b.Property<int>("NotifyOnLevelUp")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("notifyonlevelup");
2024-06-19 05:19:56 +00:00
b.Property<decimal>("UserId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("userid");
2024-06-19 05:19:56 +00:00
b.Property<long>("Xp")
.HasColumnType("bigint")
2024-06-18 14:03:46 +00:00
.HasColumnName("xp");
b.HasKey("Id")
.HasName("pk_userxpstats");
b.HasIndex("AwardedXp")
.HasDatabaseName("ix_userxpstats_awardedxp");
b.HasIndex("GuildId")
.HasDatabaseName("ix_userxpstats_guildid");
b.HasIndex("UserId")
.HasDatabaseName("ix_userxpstats_userid");
b.HasIndex("Xp")
.HasDatabaseName("ix_userxpstats_xp");
b.HasIndex("UserId", "GuildId")
.IsUnique()
.HasDatabaseName("ix_userxpstats_userid_guildid");
b.ToTable("userxpstats", (string)null);
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.VcRoleInfo", b =>
2024-06-18 14:03:46 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("id");
2024-06-19 05:19:56 +00:00
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
2024-06-18 14:03:46 +00:00
b.Property<DateTime?>("DateAdded")
2024-06-19 05:19:56 +00:00
.HasColumnType("timestamp without time zone")
2024-06-18 14:03:46 +00:00
.HasColumnName("dateadded");
b.Property<int?>("GuildConfigId")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("guildconfigid");
2024-06-19 05:19:56 +00:00
b.Property<decimal>("RoleId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("roleid");
2024-06-19 05:19:56 +00:00
b.Property<decimal>("VoiceChannelId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("voicechannelid");
b.HasKey("Id")
.HasName("pk_vcroleinfo");
b.HasIndex("GuildConfigId")
.HasDatabaseName("ix_vcroleinfo_guildconfigid");
b.ToTable("vcroleinfo", (string)null);
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.WaifuInfo", b =>
2024-06-18 14:03:46 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("id");
2024-06-19 05:19:56 +00:00
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
2024-06-18 14:03:46 +00:00
b.Property<int?>("AffinityId")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("affinityid");
b.Property<int?>("ClaimerId")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("claimerid");
b.Property<DateTime?>("DateAdded")
2024-06-19 05:19:56 +00:00
.HasColumnType("timestamp without time zone")
2024-06-18 14:03:46 +00:00
.HasColumnName("dateadded");
b.Property<long>("Price")
.HasColumnType("bigint")
.HasColumnName("price");
b.Property<int>("WaifuId")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("waifuid");
b.HasKey("Id")
.HasName("pk_waifuinfo");
b.HasIndex("AffinityId")
.HasDatabaseName("ix_waifuinfo_affinityid");
b.HasIndex("ClaimerId")
.HasDatabaseName("ix_waifuinfo_claimerid");
b.HasIndex("Price")
.HasDatabaseName("ix_waifuinfo_price");
b.HasIndex("WaifuId")
.IsUnique()
.HasDatabaseName("ix_waifuinfo_waifuid");
b.ToTable("waifuinfo", (string)null);
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.WaifuItem", b =>
2024-06-18 14:03:46 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("id");
2024-06-19 05:19:56 +00:00
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
2024-06-18 14:03:46 +00:00
b.Property<DateTime?>("DateAdded")
2024-06-19 05:19:56 +00:00
.HasColumnType("timestamp without time zone")
2024-06-18 14:03:46 +00:00
.HasColumnName("dateadded");
b.Property<string>("ItemEmoji")
2024-06-19 05:19:56 +00:00
.HasColumnType("text")
2024-06-18 14:03:46 +00:00
.HasColumnName("itememoji");
b.Property<string>("Name")
2024-06-19 05:19:56 +00:00
.HasColumnType("text")
2024-06-18 14:03:46 +00:00
.HasColumnName("name");
b.Property<int?>("WaifuInfoId")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("waifuinfoid");
b.HasKey("Id")
.HasName("pk_waifuitem");
b.HasIndex("WaifuInfoId")
.HasDatabaseName("ix_waifuitem_waifuinfoid");
b.ToTable("waifuitem", (string)null);
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.WaifuUpdate", b =>
2024-06-18 14:03:46 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("id");
2024-06-19 05:19:56 +00:00
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
2024-06-18 14:03:46 +00:00
b.Property<DateTime?>("DateAdded")
2024-06-19 05:19:56 +00:00
.HasColumnType("timestamp without time zone")
2024-06-18 14:03:46 +00:00
.HasColumnName("dateadded");
b.Property<int?>("NewId")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("newid");
b.Property<int?>("OldId")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("oldid");
b.Property<int>("UpdateType")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("updatetype");
b.Property<int>("UserId")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("userid");
b.HasKey("Id")
.HasName("pk_waifuupdates");
b.HasIndex("NewId")
.HasDatabaseName("ix_waifuupdates_newid");
b.HasIndex("OldId")
.HasDatabaseName("ix_waifuupdates_oldid");
b.HasIndex("UserId")
.HasDatabaseName("ix_waifuupdates_userid");
b.ToTable("waifuupdates", (string)null);
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.Warning", b =>
2024-06-18 14:03:46 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("id");
2024-06-19 05:19:56 +00:00
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
2024-06-18 14:03:46 +00:00
b.Property<DateTime?>("DateAdded")
2024-06-19 05:19:56 +00:00
.HasColumnType("timestamp without time zone")
2024-06-18 14:03:46 +00:00
.HasColumnName("dateadded");
b.Property<bool>("Forgiven")
2024-06-19 05:19:56 +00:00
.HasColumnType("boolean")
2024-06-18 14:03:46 +00:00
.HasColumnName("forgiven");
b.Property<string>("ForgivenBy")
2024-06-19 05:19:56 +00:00
.HasColumnType("text")
2024-06-18 14:03:46 +00:00
.HasColumnName("forgivenby");
2024-06-19 05:19:56 +00:00
b.Property<decimal>("GuildId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("guildid");
b.Property<string>("Moderator")
2024-06-19 05:19:56 +00:00
.HasColumnType("text")
2024-06-18 14:03:46 +00:00
.HasColumnName("moderator");
b.Property<string>("Reason")
2024-06-19 05:19:56 +00:00
.HasColumnType("text")
2024-06-18 14:03:46 +00:00
.HasColumnName("reason");
2024-06-19 05:19:56 +00:00
b.Property<decimal>("UserId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("userid");
b.Property<long>("Weight")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasDefaultValue(1L)
.HasColumnName("weight");
b.HasKey("Id")
.HasName("pk_warnings");
b.HasIndex("DateAdded")
.HasDatabaseName("ix_warnings_dateadded");
b.HasIndex("GuildId")
.HasDatabaseName("ix_warnings_guildid");
b.HasIndex("UserId")
.HasDatabaseName("ix_warnings_userid");
b.ToTable("warnings", (string)null);
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.WarningPunishment", b =>
2024-06-18 14:03:46 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("id");
2024-06-19 05:19:56 +00:00
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
2024-06-18 14:03:46 +00:00
b.Property<int>("Count")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("count");
b.Property<DateTime?>("DateAdded")
2024-06-19 05:19:56 +00:00
.HasColumnType("timestamp without time zone")
2024-06-18 14:03:46 +00:00
.HasColumnName("dateadded");
b.Property<int?>("GuildConfigId")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("guildconfigid");
b.Property<int>("Punishment")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("punishment");
2024-06-19 05:19:56 +00:00
b.Property<decimal?>("RoleId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("roleid");
b.Property<int>("Time")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("time");
b.HasKey("Id")
.HasName("pk_warningpunishment");
b.HasIndex("GuildConfigId")
.HasDatabaseName("ix_warningpunishment_guildconfigid");
b.ToTable("warningpunishment", (string)null);
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.XpCurrencyReward", b =>
2024-06-18 14:03:46 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("id");
2024-06-19 05:19:56 +00:00
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
2024-06-18 14:03:46 +00:00
b.Property<int>("Amount")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("amount");
b.Property<DateTime?>("DateAdded")
2024-06-19 05:19:56 +00:00
.HasColumnType("timestamp without time zone")
2024-06-18 14:03:46 +00:00
.HasColumnName("dateadded");
b.Property<int>("Level")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("level");
b.Property<int>("XpSettingsId")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("xpsettingsid");
b.HasKey("Id")
.HasName("pk_xpcurrencyreward");
b.HasIndex("XpSettingsId")
.HasDatabaseName("ix_xpcurrencyreward_xpsettingsid");
b.ToTable("xpcurrencyreward", (string)null);
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.XpRoleReward", b =>
2024-06-18 14:03:46 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("id");
2024-06-19 05:19:56 +00:00
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
2024-06-18 14:03:46 +00:00
b.Property<DateTime?>("DateAdded")
2024-06-19 05:19:56 +00:00
.HasColumnType("timestamp without time zone")
2024-06-18 14:03:46 +00:00
.HasColumnName("dateadded");
b.Property<int>("Level")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("level");
b.Property<bool>("Remove")
2024-06-19 05:19:56 +00:00
.HasColumnType("boolean")
2024-06-18 14:03:46 +00:00
.HasColumnName("remove");
2024-06-19 05:19:56 +00:00
b.Property<decimal>("RoleId")
.HasColumnType("numeric(20,0)")
2024-06-18 14:03:46 +00:00
.HasColumnName("roleid");
b.Property<int>("XpSettingsId")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("xpsettingsid");
b.HasKey("Id")
.HasName("pk_xprolereward");
b.HasIndex("XpSettingsId", "Level")
.IsUnique()
.HasDatabaseName("ix_xprolereward_xpsettingsid_level");
b.ToTable("xprolereward", (string)null);
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.XpSettings", b =>
2024-06-18 14:03:46 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("id");
2024-06-19 05:19:56 +00:00
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
2024-06-18 14:03:46 +00:00
b.Property<DateTime?>("DateAdded")
2024-06-19 05:19:56 +00:00
.HasColumnType("timestamp without time zone")
2024-06-18 14:03:46 +00:00
.HasColumnName("dateadded");
b.Property<int>("GuildConfigId")
2024-06-19 05:19:56 +00:00
.HasColumnType("integer")
2024-06-18 14:03:46 +00:00
.HasColumnName("guildconfigid");
b.Property<bool>("ServerExcluded")
2024-06-19 05:19:56 +00:00
.HasColumnType("boolean")
2024-06-18 14:03:46 +00:00
.HasColumnName("serverexcluded");
b.HasKey("Id")
.HasName("pk_xpsettings");
b.HasIndex("GuildConfigId")
.IsUnique()
.HasDatabaseName("ix_xpsettings_guildconfigid");
b.ToTable("xpsettings", (string)null);
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.XpShopOwnedItem", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasColumnName("id");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
b.Property<DateTime?>("DateAdded")
.HasColumnType("timestamp without time zone")
.HasColumnName("dateadded");
b.Property<bool>("IsUsing")
.HasColumnType("boolean")
.HasColumnName("isusing");
b.Property<string>("ItemKey")
.IsRequired()
.HasColumnType("text")
.HasColumnName("itemkey");
b.Property<int>("ItemType")
.HasColumnType("integer")
.HasColumnName("itemtype");
b.Property<decimal>("UserId")
.HasColumnType("numeric(20,0)")
.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("EllieBot.Db.Models.AntiAltSetting", b =>
{
b.HasOne("EllieBot.Db.Models.GuildConfig", null)
.WithOne("AntiAltSetting")
.HasForeignKey("EllieBot.Db.Models.AntiAltSetting", "GuildConfigId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired()
.HasConstraintName("fk_antialtsetting_guildconfigs_guildconfigid");
});
modelBuilder.Entity("EllieBot.Db.Models.AntiRaidSetting", b =>
{
2024-06-23 02:35:10 +00:00
b.HasOne("EllieBot.Db.Models.GuildConfig", "GuildConfig")
2024-06-19 05:19:56 +00:00
.WithOne("AntiRaidSetting")
.HasForeignKey("EllieBot.Db.Models.AntiRaidSetting", "GuildConfigId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired()
.HasConstraintName("fk_antiraidsetting_guildconfigs_guildconfigid");
2024-06-23 02:35:10 +00:00
b.Navigation("GuildConfig");
2024-06-19 05:19:56 +00:00
});
modelBuilder.Entity("EllieBot.Db.Models.AntiSpamIgnore", b =>
{
b.HasOne("EllieBot.Db.Models.AntiSpamSetting", null)
.WithMany("IgnoredChannels")
.HasForeignKey("AntiSpamSettingId")
.HasConstraintName("fk_antispamignore_antispamsetting_antispamsettingid");
});
modelBuilder.Entity("EllieBot.Db.Models.AntiSpamSetting", b =>
{
2024-06-23 02:35:10 +00:00
b.HasOne("EllieBot.Db.Models.GuildConfig", "GuildConfig")
2024-06-19 05:19:56 +00:00
.WithOne("AntiSpamSetting")
.HasForeignKey("EllieBot.Db.Models.AntiSpamSetting", "GuildConfigId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired()
.HasConstraintName("fk_antispamsetting_guildconfigs_guildconfigid");
2024-06-23 02:35:10 +00:00
b.Navigation("GuildConfig");
2024-06-19 05:19:56 +00:00
});
modelBuilder.Entity("EllieBot.Db.Models.AutoTranslateUser", b =>
{
b.HasOne("EllieBot.Db.Models.AutoTranslateChannel", "Channel")
.WithMany("Users")
.HasForeignKey("ChannelId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired()
.HasConstraintName("fk_autotranslateusers_autotranslatechannels_channelid");
b.Navigation("Channel");
});
2024-06-18 14:03:46 +00:00
modelBuilder.Entity("EllieBot.Db.Models.ClubApplicants", b =>
{
b.HasOne("EllieBot.Db.Models.ClubInfo", "Club")
.WithMany("Applicants")
.HasForeignKey("ClubId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired()
.HasConstraintName("fk_clubapplicants_clubs_clubid");
b.HasOne("EllieBot.Db.Models.DiscordUser", "User")
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired()
.HasConstraintName("fk_clubapplicants_discorduser_userid");
b.Navigation("Club");
b.Navigation("User");
});
modelBuilder.Entity("EllieBot.Db.Models.ClubBans", b =>
{
b.HasOne("EllieBot.Db.Models.ClubInfo", "Club")
.WithMany("Bans")
.HasForeignKey("ClubId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired()
.HasConstraintName("fk_clubbans_clubs_clubid");
b.HasOne("EllieBot.Db.Models.DiscordUser", "User")
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired()
.HasConstraintName("fk_clubbans_discorduser_userid");
b.Navigation("Club");
b.Navigation("User");
});
modelBuilder.Entity("EllieBot.Db.Models.ClubInfo", b =>
{
b.HasOne("EllieBot.Db.Models.DiscordUser", "Owner")
.WithOne()
.HasForeignKey("EllieBot.Db.Models.ClubInfo", "OwnerId")
.OnDelete(DeleteBehavior.SetNull)
.HasConstraintName("fk_clubs_discorduser_ownerid");
b.Navigation("Owner");
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.CommandAlias", b =>
2024-06-18 14:03:46 +00:00
{
2024-06-19 05:19:56 +00:00
b.HasOne("EllieBot.Db.Models.GuildConfig", null)
2024-06-18 14:03:46 +00:00
.WithMany("CommandAliases")
.HasForeignKey("GuildConfigId")
.HasConstraintName("fk_commandalias_guildconfigs_guildconfigid");
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.CommandCooldown", b =>
2024-06-18 14:03:46 +00:00
{
2024-06-19 05:19:56 +00:00
b.HasOne("EllieBot.Db.Models.GuildConfig", null)
2024-06-18 14:03:46 +00:00
.WithMany("CommandCooldowns")
.HasForeignKey("GuildConfigId")
.HasConstraintName("fk_commandcooldown_guildconfigs_guildconfigid");
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.DelMsgOnCmdChannel", b =>
2024-06-18 14:03:46 +00:00
{
2024-06-19 05:19:56 +00:00
b.HasOne("EllieBot.Db.Models.GuildConfig", null)
2024-06-18 14:03:46 +00:00
.WithMany("DelMsgOnCmdChannels")
.HasForeignKey("GuildConfigId")
.HasConstraintName("fk_delmsgoncmdchannel_guildconfigs_guildconfigid");
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.DiscordUser", b =>
{
b.HasOne("EllieBot.Db.Models.ClubInfo", "Club")
.WithMany("Members")
.HasForeignKey("ClubId")
.OnDelete(DeleteBehavior.NoAction)
.HasConstraintName("fk_discorduser_clubs_clubid");
b.Navigation("Club");
});
modelBuilder.Entity("EllieBot.Db.Models.ExcludedItem", b =>
2024-06-18 14:03:46 +00:00
{
2024-06-23 02:35:10 +00:00
b.HasOne("EllieBot.Db.Models.XpSettings", null)
2024-06-18 14:03:46 +00:00
.WithMany("ExclusionList")
.HasForeignKey("XpSettingsId")
.HasConstraintName("fk_excludeditem_xpsettings_xpsettingsid");
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.FeedSub", b =>
2024-06-18 14:03:46 +00:00
{
2024-06-19 05:19:56 +00:00
b.HasOne("EllieBot.Db.Models.GuildConfig", "GuildConfig")
2024-06-18 14:03:46 +00:00
.WithMany("FeedSubs")
.HasForeignKey("GuildConfigId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired()
.HasConstraintName("fk_feedsub_guildconfigs_guildconfigid");
b.Navigation("GuildConfig");
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.FilterChannelId", b =>
2024-06-18 14:03:46 +00:00
{
2024-06-19 05:19:56 +00:00
b.HasOne("EllieBot.Db.Models.GuildConfig", null)
2024-06-18 14:03:46 +00:00
.WithMany("FilterInvitesChannelIds")
.HasForeignKey("GuildConfigId")
.HasConstraintName("fk_filterchannelid_guildconfigs_guildconfigid");
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.FilterLinksChannelId", b =>
2024-06-18 14:03:46 +00:00
{
2024-06-19 05:19:56 +00:00
b.HasOne("EllieBot.Db.Models.GuildConfig", null)
2024-06-18 14:03:46 +00:00
.WithMany("FilterLinksChannelIds")
.HasForeignKey("GuildConfigId")
.HasConstraintName("fk_filterlinkschannelid_guildconfigs_guildconfigid");
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.FilterWordsChannelId", b =>
2024-06-18 14:03:46 +00:00
{
2024-06-19 05:19:56 +00:00
b.HasOne("EllieBot.Db.Models.GuildConfig", null)
2024-06-18 14:03:46 +00:00
.WithMany("FilterWordsChannelIds")
.HasForeignKey("GuildConfigId")
.HasConstraintName("fk_filterwordschannelid_guildconfigs_guildconfigid");
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.FilteredWord", b =>
{
b.HasOne("EllieBot.Db.Models.GuildConfig", null)
.WithMany("FilteredWords")
.HasForeignKey("GuildConfigId")
.HasConstraintName("fk_filteredword_guildconfigs_guildconfigid");
});
modelBuilder.Entity("EllieBot.Db.Models.FollowedStream", b =>
{
b.HasOne("EllieBot.Db.Models.GuildConfig", null)
.WithMany("FollowedStreams")
.HasForeignKey("GuildConfigId")
.HasConstraintName("fk_followedstream_guildconfigs_guildconfigid");
});
modelBuilder.Entity("EllieBot.Db.Models.GCChannelId", b =>
2024-06-18 14:03:46 +00:00
{
2024-06-19 05:19:56 +00:00
b.HasOne("EllieBot.Db.Models.GuildConfig", "GuildConfig")
2024-06-18 14:03:46 +00:00
.WithMany("GenerateCurrencyChannelIds")
.HasForeignKey("GuildConfigId")
.HasConstraintName("fk_gcchannelid_guildconfigs_guildconfigid");
b.Navigation("GuildConfig");
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.GiveawayUser", b =>
{
b.HasOne("EllieBot.Db.Models.GiveawayModel", null)
.WithMany("Participants")
.HasForeignKey("GiveawayId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired()
.HasConstraintName("fk_giveawayuser_giveawaymodel_giveawayid");
});
modelBuilder.Entity("EllieBot.Db.Models.GroupName", b =>
2024-06-18 14:03:46 +00:00
{
2024-06-19 05:19:56 +00:00
b.HasOne("EllieBot.Db.Models.GuildConfig", "GuildConfig")
2024-06-18 14:03:46 +00:00
.WithMany("SelfAssignableRoleGroupNames")
.HasForeignKey("GuildConfigId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired()
.HasConstraintName("fk_groupname_guildconfigs_guildconfigid");
b.Navigation("GuildConfig");
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.IgnoredLogItem", b =>
2024-06-18 14:03:46 +00:00
{
2024-06-19 05:19:56 +00:00
b.HasOne("EllieBot.Db.Models.LogSetting", "LogSetting")
2024-06-18 14:03:46 +00:00
.WithMany("LogIgnores")
.HasForeignKey("LogSettingId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired()
.HasConstraintName("fk_ignoredlogchannels_logsettings_logsettingid");
b.Navigation("LogSetting");
});
2024-06-23 02:35:10 +00:00
modelBuilder.Entity("EllieBot.Db.Models.IgnoredVoicePresenceChannel", b =>
{
b.HasOne("EllieBot.Db.Models.LogSetting", "LogSetting")
.WithMany()
.HasForeignKey("LogSettingId")
.HasConstraintName("fk_ignoredvoicepresencechannels_logsettings_logsettingid");
b.Navigation("LogSetting");
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.MutedUserId", b =>
2024-06-18 14:03:46 +00:00
{
2024-06-19 05:19:56 +00:00
b.HasOne("EllieBot.Db.Models.GuildConfig", null)
2024-06-18 14:03:46 +00:00
.WithMany("MutedUsers")
.HasForeignKey("GuildConfigId")
.HasConstraintName("fk_muteduserid_guildconfigs_guildconfigid");
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.Permissionv2", b =>
2024-06-18 14:03:46 +00:00
{
2024-06-19 05:19:56 +00:00
b.HasOne("EllieBot.Db.Models.GuildConfig", null)
2024-06-18 14:03:46 +00:00
.WithMany("Permissions")
.HasForeignKey("GuildConfigId")
.HasConstraintName("fk_permissions_guildconfigs_guildconfigid");
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.PlaylistSong", b =>
2024-06-18 14:03:46 +00:00
{
2024-06-19 05:19:56 +00:00
b.HasOne("EllieBot.Db.Models.MusicPlaylist", null)
2024-06-18 14:03:46 +00:00
.WithMany("Songs")
.HasForeignKey("MusicPlaylistId")
.OnDelete(DeleteBehavior.Cascade)
.HasConstraintName("fk_playlistsong_musicplaylists_musicplaylistid");
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.ShopEntry", b =>
2024-06-18 14:03:46 +00:00
{
2024-06-19 05:19:56 +00:00
b.HasOne("EllieBot.Db.Models.GuildConfig", null)
2024-06-18 14:03:46 +00:00
.WithMany("ShopEntries")
.HasForeignKey("GuildConfigId")
.HasConstraintName("fk_shopentry_guildconfigs_guildconfigid");
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.ShopEntryItem", b =>
2024-06-18 14:03:46 +00:00
{
2024-06-19 05:19:56 +00:00
b.HasOne("EllieBot.Db.Models.ShopEntry", null)
2024-06-18 14:03:46 +00:00
.WithMany("Items")
.HasForeignKey("ShopEntryId")
.HasConstraintName("fk_shopentryitem_shopentry_shopentryid");
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.SlowmodeIgnoredRole", b =>
2024-06-18 14:03:46 +00:00
{
2024-06-19 05:19:56 +00:00
b.HasOne("EllieBot.Db.Models.GuildConfig", null)
2024-06-18 14:03:46 +00:00
.WithMany("SlowmodeIgnoredRoles")
.HasForeignKey("GuildConfigId")
.HasConstraintName("fk_slowmodeignoredrole_guildconfigs_guildconfigid");
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.SlowmodeIgnoredUser", b =>
2024-06-18 14:03:46 +00:00
{
2024-06-19 05:19:56 +00:00
b.HasOne("EllieBot.Db.Models.GuildConfig", null)
2024-06-18 14:03:46 +00:00
.WithMany("SlowmodeIgnoredUsers")
.HasForeignKey("GuildConfigId")
.HasConstraintName("fk_slowmodeignoreduser_guildconfigs_guildconfigid");
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.StreamRoleBlacklistedUser", b =>
2024-06-18 14:03:46 +00:00
{
2024-06-23 02:35:10 +00:00
b.HasOne("EllieBot.Db.Models.StreamRoleSettings", null)
2024-06-18 14:03:46 +00:00
.WithMany("Blacklist")
.HasForeignKey("StreamRoleSettingsId")
2024-06-19 05:19:56 +00:00
.HasConstraintName("fk_streamroleblacklisteduser_streamrolesettings_streamrolesett~");
2024-06-18 14:03:46 +00:00
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.StreamRoleSettings", b =>
2024-06-18 14:03:46 +00:00
{
2024-06-19 05:19:56 +00:00
b.HasOne("EllieBot.Db.Models.GuildConfig", "GuildConfig")
2024-06-18 14:03:46 +00:00
.WithOne("StreamRole")
2024-06-19 05:19:56 +00:00
.HasForeignKey("EllieBot.Db.Models.StreamRoleSettings", "GuildConfigId")
2024-06-18 14:03:46 +00:00
.OnDelete(DeleteBehavior.Cascade)
.IsRequired()
.HasConstraintName("fk_streamrolesettings_guildconfigs_guildconfigid");
b.Navigation("GuildConfig");
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.StreamRoleWhitelistedUser", b =>
2024-06-18 14:03:46 +00:00
{
2024-06-23 02:35:10 +00:00
b.HasOne("EllieBot.Db.Models.StreamRoleSettings", null)
2024-06-18 14:03:46 +00:00
.WithMany("Whitelist")
.HasForeignKey("StreamRoleSettingsId")
2024-06-19 05:19:56 +00:00
.HasConstraintName("fk_streamrolewhitelisteduser_streamrolesettings_streamrolesett~");
});
modelBuilder.Entity("EllieBot.Db.Models.TodoModel", b =>
{
b.HasOne("EllieBot.Db.Models.ArchivedTodoListModel", null)
.WithMany("Items")
.HasForeignKey("ArchiveId")
.OnDelete(DeleteBehavior.Cascade)
.HasConstraintName("fk_todos_todosarchive_archiveid");
2024-06-18 14:03:46 +00:00
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.UnbanTimer", b =>
2024-06-18 14:03:46 +00:00
{
2024-06-19 05:19:56 +00:00
b.HasOne("EllieBot.Db.Models.GuildConfig", null)
2024-06-18 14:03:46 +00:00
.WithMany("UnbanTimer")
.HasForeignKey("GuildConfigId")
.HasConstraintName("fk_unbantimer_guildconfigs_guildconfigid");
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.UnmuteTimer", b =>
2024-06-18 14:03:46 +00:00
{
2024-06-19 05:19:56 +00:00
b.HasOne("EllieBot.Db.Models.GuildConfig", null)
2024-06-18 14:03:46 +00:00
.WithMany("UnmuteTimers")
.HasForeignKey("GuildConfigId")
.HasConstraintName("fk_unmutetimer_guildconfigs_guildconfigid");
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.UnroleTimer", b =>
2024-06-18 14:03:46 +00:00
{
2024-06-19 05:19:56 +00:00
b.HasOne("EllieBot.Db.Models.GuildConfig", null)
2024-06-18 14:03:46 +00:00
.WithMany("UnroleTimer")
.HasForeignKey("GuildConfigId")
.HasConstraintName("fk_unroletimer_guildconfigs_guildconfigid");
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.VcRoleInfo", b =>
2024-06-18 14:03:46 +00:00
{
2024-06-19 05:19:56 +00:00
b.HasOne("EllieBot.Db.Models.GuildConfig", null)
2024-06-18 14:03:46 +00:00
.WithMany("VcRoleInfos")
.HasForeignKey("GuildConfigId")
.HasConstraintName("fk_vcroleinfo_guildconfigs_guildconfigid");
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.WaifuInfo", b =>
2024-06-18 14:03:46 +00:00
{
b.HasOne("EllieBot.Db.Models.DiscordUser", "Affinity")
.WithMany()
.HasForeignKey("AffinityId")
.HasConstraintName("fk_waifuinfo_discorduser_affinityid");
b.HasOne("EllieBot.Db.Models.DiscordUser", "Claimer")
.WithMany()
.HasForeignKey("ClaimerId")
.HasConstraintName("fk_waifuinfo_discorduser_claimerid");
b.HasOne("EllieBot.Db.Models.DiscordUser", "Waifu")
.WithOne()
2024-06-19 05:19:56 +00:00
.HasForeignKey("EllieBot.Db.Models.WaifuInfo", "WaifuId")
2024-06-18 14:03:46 +00:00
.OnDelete(DeleteBehavior.Cascade)
.IsRequired()
.HasConstraintName("fk_waifuinfo_discorduser_waifuid");
b.Navigation("Affinity");
b.Navigation("Claimer");
b.Navigation("Waifu");
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.WaifuItem", b =>
2024-06-18 14:03:46 +00:00
{
2024-06-19 05:19:56 +00:00
b.HasOne("EllieBot.Db.Models.WaifuInfo", "WaifuInfo")
2024-06-18 14:03:46 +00:00
.WithMany("Items")
.HasForeignKey("WaifuInfoId")
.HasConstraintName("fk_waifuitem_waifuinfo_waifuinfoid");
b.Navigation("WaifuInfo");
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.WaifuUpdate", b =>
2024-06-18 14:03:46 +00:00
{
b.HasOne("EllieBot.Db.Models.DiscordUser", "New")
.WithMany()
.HasForeignKey("NewId")
.HasConstraintName("fk_waifuupdates_discorduser_newid");
b.HasOne("EllieBot.Db.Models.DiscordUser", "Old")
.WithMany()
.HasForeignKey("OldId")
.HasConstraintName("fk_waifuupdates_discorduser_oldid");
b.HasOne("EllieBot.Db.Models.DiscordUser", "User")
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired()
.HasConstraintName("fk_waifuupdates_discorduser_userid");
b.Navigation("New");
b.Navigation("Old");
b.Navigation("User");
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.WarningPunishment", b =>
2024-06-18 14:03:46 +00:00
{
2024-06-19 05:19:56 +00:00
b.HasOne("EllieBot.Db.Models.GuildConfig", null)
2024-06-18 14:03:46 +00:00
.WithMany("WarnPunishments")
.HasForeignKey("GuildConfigId")
.HasConstraintName("fk_warningpunishment_guildconfigs_guildconfigid");
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.XpCurrencyReward", b =>
2024-06-18 14:03:46 +00:00
{
2024-06-19 05:19:56 +00:00
b.HasOne("EllieBot.Db.Models.XpSettings", "XpSettings")
2024-06-18 14:03:46 +00:00
.WithMany("CurrencyRewards")
.HasForeignKey("XpSettingsId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired()
.HasConstraintName("fk_xpcurrencyreward_xpsettings_xpsettingsid");
b.Navigation("XpSettings");
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.XpRoleReward", b =>
2024-06-18 14:03:46 +00:00
{
2024-06-19 05:19:56 +00:00
b.HasOne("EllieBot.Db.Models.XpSettings", "XpSettings")
2024-06-18 14:03:46 +00:00
.WithMany("RoleRewards")
.HasForeignKey("XpSettingsId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired()
.HasConstraintName("fk_xprolereward_xpsettings_xpsettingsid");
b.Navigation("XpSettings");
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.XpSettings", b =>
2024-06-18 14:03:46 +00:00
{
2024-06-19 05:19:56 +00:00
b.HasOne("EllieBot.Db.Models.GuildConfig", "GuildConfig")
2024-06-18 14:03:46 +00:00
.WithOne("XpSettings")
2024-06-19 05:19:56 +00:00
.HasForeignKey("EllieBot.Db.Models.XpSettings", "GuildConfigId")
2024-06-18 14:03:46 +00:00
.OnDelete(DeleteBehavior.Cascade)
.IsRequired()
.HasConstraintName("fk_xpsettings_guildconfigs_guildconfigid");
b.Navigation("GuildConfig");
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.AntiSpamSetting", b =>
{
b.Navigation("IgnoredChannels");
});
modelBuilder.Entity("EllieBot.Db.Models.ArchivedTodoListModel", b =>
{
b.Navigation("Items");
});
modelBuilder.Entity("EllieBot.Db.Models.AutoTranslateChannel", b =>
{
b.Navigation("Users");
});
2024-06-18 14:03:46 +00:00
modelBuilder.Entity("EllieBot.Db.Models.ClubInfo", b =>
{
b.Navigation("Applicants");
b.Navigation("Bans");
b.Navigation("Members");
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.GiveawayModel", b =>
2024-06-18 14:03:46 +00:00
{
2024-06-19 05:19:56 +00:00
b.Navigation("Participants");
2024-06-18 14:03:46 +00:00
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.GuildConfig", b =>
2024-06-18 14:03:46 +00:00
{
b.Navigation("AntiAltSetting");
b.Navigation("AntiRaidSetting");
b.Navigation("AntiSpamSetting");
b.Navigation("CommandAliases");
b.Navigation("CommandCooldowns");
b.Navigation("DelMsgOnCmdChannels");
b.Navigation("FeedSubs");
b.Navigation("FilterInvitesChannelIds");
b.Navigation("FilterLinksChannelIds");
b.Navigation("FilterWordsChannelIds");
b.Navigation("FilteredWords");
b.Navigation("FollowedStreams");
b.Navigation("GenerateCurrencyChannelIds");
b.Navigation("MutedUsers");
b.Navigation("Permissions");
b.Navigation("SelfAssignableRoleGroupNames");
b.Navigation("ShopEntries");
b.Navigation("SlowmodeIgnoredRoles");
b.Navigation("SlowmodeIgnoredUsers");
b.Navigation("StreamRole");
b.Navigation("UnbanTimer");
b.Navigation("UnmuteTimers");
b.Navigation("UnroleTimer");
b.Navigation("VcRoleInfos");
b.Navigation("WarnPunishments");
b.Navigation("XpSettings");
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.LogSetting", b =>
2024-06-18 14:03:46 +00:00
{
b.Navigation("LogIgnores");
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.MusicPlaylist", b =>
2024-06-18 14:03:46 +00:00
{
b.Navigation("Songs");
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.ShopEntry", b =>
2024-06-18 14:03:46 +00:00
{
b.Navigation("Items");
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.StreamRoleSettings", b =>
2024-06-18 14:03:46 +00:00
{
b.Navigation("Blacklist");
b.Navigation("Whitelist");
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.WaifuInfo", b =>
2024-06-18 14:03:46 +00:00
{
b.Navigation("Items");
});
2024-06-19 05:19:56 +00:00
modelBuilder.Entity("EllieBot.Db.Models.XpSettings", b =>
2024-06-18 14:03:46 +00:00
{
b.Navigation("CurrencyRewards");
b.Navigation("ExclusionList");
b.Navigation("RoleRewards");
});
#pragma warning restore 612, 618
}
}
}