1912 lines
61 KiB
C#
1912 lines
61 KiB
C#
|
// <auto-generated />
|
|||
|
using Microsoft.EntityFrameworkCore;
|
|||
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|||
|
using Microsoft.EntityFrameworkCore.Metadata;
|
|||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|||
|
using Microsoft.EntityFrameworkCore.Storage;
|
|||
|
using Microsoft.EntityFrameworkCore.Storage.Internal;
|
|||
|
using NadekoBot.Core.Services.Database;
|
|||
|
using NadekoBot.Core.Services.Database.Models;
|
|||
|
using System;
|
|||
|
|
|||
|
namespace NadekoBot.Migrations
|
|||
|
{
|
|||
|
[DbContext(typeof(NadekoContext))]
|
|||
|
[Migration("20171021092614_tesar-grouping")]
|
|||
|
partial class tesargrouping
|
|||
|
{
|
|||
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
|||
|
{
|
|||
|
#pragma warning disable 612, 618
|
|||
|
modelBuilder
|
|||
|
.HasAnnotation("ProductVersion", "2.0.0-rtm-26452");
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiRaidSetting", b =>
|
|||
|
{
|
|||
|
b.Property<int>("Id")
|
|||
|
.ValueGeneratedOnAdd();
|
|||
|
|
|||
|
b.Property<int>("Action");
|
|||
|
|
|||
|
b.Property<DateTime?>("DateAdded");
|
|||
|
|
|||
|
b.Property<int>("GuildConfigId");
|
|||
|
|
|||
|
b.Property<int>("Seconds");
|
|||
|
|
|||
|
b.Property<int>("UserThreshold");
|
|||
|
|
|||
|
b.HasKey("Id");
|
|||
|
|
|||
|
b.HasIndex("GuildConfigId")
|
|||
|
.IsUnique();
|
|||
|
|
|||
|
b.ToTable("AntiRaidSetting");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamIgnore", b =>
|
|||
|
{
|
|||
|
b.Property<int>("Id")
|
|||
|
.ValueGeneratedOnAdd();
|
|||
|
|
|||
|
b.Property<int?>("AntiSpamSettingId");
|
|||
|
|
|||
|
b.Property<ulong>("ChannelId");
|
|||
|
|
|||
|
b.Property<DateTime?>("DateAdded");
|
|||
|
|
|||
|
b.HasKey("Id");
|
|||
|
|
|||
|
b.HasIndex("AntiSpamSettingId");
|
|||
|
|
|||
|
b.ToTable("AntiSpamIgnore");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamSetting", b =>
|
|||
|
{
|
|||
|
b.Property<int>("Id")
|
|||
|
.ValueGeneratedOnAdd();
|
|||
|
|
|||
|
b.Property<int>("Action");
|
|||
|
|
|||
|
b.Property<DateTime?>("DateAdded");
|
|||
|
|
|||
|
b.Property<int>("GuildConfigId");
|
|||
|
|
|||
|
b.Property<int>("MessageThreshold");
|
|||
|
|
|||
|
b.Property<int>("MuteTime");
|
|||
|
|
|||
|
b.HasKey("Id");
|
|||
|
|
|||
|
b.HasIndex("GuildConfigId")
|
|||
|
.IsUnique();
|
|||
|
|
|||
|
b.ToTable("AntiSpamSetting");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlacklistItem", b =>
|
|||
|
{
|
|||
|
b.Property<int>("Id")
|
|||
|
.ValueGeneratedOnAdd();
|
|||
|
|
|||
|
b.Property<int?>("BotConfigId");
|
|||
|
|
|||
|
b.Property<DateTime?>("DateAdded");
|
|||
|
|
|||
|
b.Property<ulong>("ItemId");
|
|||
|
|
|||
|
b.Property<int>("Type");
|
|||
|
|
|||
|
b.HasKey("Id");
|
|||
|
|
|||
|
b.HasIndex("BotConfigId");
|
|||
|
|
|||
|
b.ToTable("BlacklistItem");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlockedCmdOrMdl", b =>
|
|||
|
{
|
|||
|
b.Property<int>("Id")
|
|||
|
.ValueGeneratedOnAdd();
|
|||
|
|
|||
|
b.Property<int?>("BotConfigId");
|
|||
|
|
|||
|
b.Property<int?>("BotConfigId1");
|
|||
|
|
|||
|
b.Property<DateTime?>("DateAdded");
|
|||
|
|
|||
|
b.Property<string>("Name");
|
|||
|
|
|||
|
b.HasKey("Id");
|
|||
|
|
|||
|
b.HasIndex("BotConfigId");
|
|||
|
|
|||
|
b.HasIndex("BotConfigId1");
|
|||
|
|
|||
|
b.ToTable("BlockedCmdOrMdl");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BotConfig", b =>
|
|||
|
{
|
|||
|
b.Property<int>("Id")
|
|||
|
.ValueGeneratedOnAdd();
|
|||
|
|
|||
|
b.Property<float>("BetflipMultiplier");
|
|||
|
|
|||
|
b.Property<float>("Betroll100Multiplier");
|
|||
|
|
|||
|
b.Property<float>("Betroll67Multiplier");
|
|||
|
|
|||
|
b.Property<float>("Betroll91Multiplier");
|
|||
|
|
|||
|
b.Property<ulong>("BufferSize");
|
|||
|
|
|||
|
b.Property<int>("CurrencyDropAmount");
|
|||
|
|
|||
|
b.Property<int?>("CurrencyDropAmountMax");
|
|||
|
|
|||
|
b.Property<float>("CurrencyGenerationChance");
|
|||
|
|
|||
|
b.Property<int>("CurrencyGenerationCooldown");
|
|||
|
|
|||
|
b.Property<string>("CurrencyName");
|
|||
|
|
|||
|
b.Property<string>("CurrencyPluralName");
|
|||
|
|
|||
|
b.Property<string>("CurrencySign");
|
|||
|
|
|||
|
b.Property<bool>("CustomReactionsStartWith");
|
|||
|
|
|||
|
b.Property<string>("DMHelpString");
|
|||
|
|
|||
|
b.Property<DateTime?>("DateAdded");
|
|||
|
|
|||
|
b.Property<string>("DefaultPrefix");
|
|||
|
|
|||
|
b.Property<string>("ErrorColor");
|
|||
|
|
|||
|
b.Property<bool>("ForwardMessages");
|
|||
|
|
|||
|
b.Property<bool>("ForwardToAllOwners");
|
|||
|
|
|||
|
b.Property<string>("HelpString");
|
|||
|
|
|||
|
b.Property<string>("Locale");
|
|||
|
|
|||
|
b.Property<int>("MigrationVersion");
|
|||
|
|
|||
|
b.Property<int>("MinimumBetAmount");
|
|||
|
|
|||
|
b.Property<string>("OkColor");
|
|||
|
|
|||
|
b.Property<int>("PermissionVersion");
|
|||
|
|
|||
|
b.Property<string>("RemindMessageFormat");
|
|||
|
|
|||
|
b.Property<bool>("RotatingStatuses");
|
|||
|
|
|||
|
b.Property<int>("TriviaCurrencyReward");
|
|||
|
|
|||
|
b.Property<int>("XpMinutesTimeout")
|
|||
|
.ValueGeneratedOnAdd()
|
|||
|
.HasDefaultValue(5);
|
|||
|
|
|||
|
b.Property<int>("XpPerMessage")
|
|||
|
.ValueGeneratedOnAdd()
|
|||
|
.HasDefaultValue(3);
|
|||
|
|
|||
|
b.HasKey("Id");
|
|||
|
|
|||
|
b.ToTable("BotConfig");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClubApplicants", b =>
|
|||
|
{
|
|||
|
b.Property<int>("ClubId");
|
|||
|
|
|||
|
b.Property<int>("UserId");
|
|||
|
|
|||
|
b.HasKey("ClubId", "UserId");
|
|||
|
|
|||
|
b.HasIndex("UserId");
|
|||
|
|
|||
|
b.ToTable("ClubApplicants");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClubBans", b =>
|
|||
|
{
|
|||
|
b.Property<int>("ClubId");
|
|||
|
|
|||
|
b.Property<int>("UserId");
|
|||
|
|
|||
|
b.HasKey("ClubId", "UserId");
|
|||
|
|
|||
|
b.HasIndex("UserId");
|
|||
|
|
|||
|
b.ToTable("ClubBans");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClubInfo", b =>
|
|||
|
{
|
|||
|
b.Property<int>("Id")
|
|||
|
.ValueGeneratedOnAdd();
|
|||
|
|
|||
|
b.Property<DateTime?>("DateAdded");
|
|||
|
|
|||
|
b.Property<int>("Discrim");
|
|||
|
|
|||
|
b.Property<string>("ImageUrl");
|
|||
|
|
|||
|
b.Property<int>("MinimumLevelReq");
|
|||
|
|
|||
|
b.Property<string>("Name")
|
|||
|
.IsRequired()
|
|||
|
.HasMaxLength(20);
|
|||
|
|
|||
|
b.Property<int>("OwnerId");
|
|||
|
|
|||
|
b.Property<int>("Xp");
|
|||
|
|
|||
|
b.HasKey("Id");
|
|||
|
|
|||
|
b.HasAlternateKey("Name", "Discrim");
|
|||
|
|
|||
|
b.HasIndex("OwnerId")
|
|||
|
.IsUnique();
|
|||
|
|
|||
|
b.ToTable("Clubs");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandAlias", b =>
|
|||
|
{
|
|||
|
b.Property<int>("Id")
|
|||
|
.ValueGeneratedOnAdd();
|
|||
|
|
|||
|
b.Property<DateTime?>("DateAdded");
|
|||
|
|
|||
|
b.Property<int?>("GuildConfigId");
|
|||
|
|
|||
|
b.Property<string>("Mapping");
|
|||
|
|
|||
|
b.Property<string>("Trigger");
|
|||
|
|
|||
|
b.HasKey("Id");
|
|||
|
|
|||
|
b.HasIndex("GuildConfigId");
|
|||
|
|
|||
|
b.ToTable("CommandAlias");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandCooldown", b =>
|
|||
|
{
|
|||
|
b.Property<int>("Id")
|
|||
|
.ValueGeneratedOnAdd();
|
|||
|
|
|||
|
b.Property<string>("CommandName");
|
|||
|
|
|||
|
b.Property<DateTime?>("DateAdded");
|
|||
|
|
|||
|
b.Property<int?>("GuildConfigId");
|
|||
|
|
|||
|
b.Property<int>("Seconds");
|
|||
|
|
|||
|
b.HasKey("Id");
|
|||
|
|
|||
|
b.HasIndex("GuildConfigId");
|
|||
|
|
|||
|
b.ToTable("CommandCooldown");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandPrice", b =>
|
|||
|
{
|
|||
|
b.Property<int>("Id")
|
|||
|
.ValueGeneratedOnAdd();
|
|||
|
|
|||
|
b.Property<int?>("BotConfigId");
|
|||
|
|
|||
|
b.Property<string>("CommandName");
|
|||
|
|
|||
|
b.Property<DateTime?>("DateAdded");
|
|||
|
|
|||
|
b.Property<int>("Price");
|
|||
|
|
|||
|
b.HasKey("Id");
|
|||
|
|
|||
|
b.HasIndex("BotConfigId");
|
|||
|
|
|||
|
b.HasIndex("Price")
|
|||
|
.IsUnique();
|
|||
|
|
|||
|
b.ToTable("CommandPrice");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Currency", b =>
|
|||
|
{
|
|||
|
b.Property<int>("Id")
|
|||
|
.ValueGeneratedOnAdd();
|
|||
|
|
|||
|
b.Property<long>("Amount");
|
|||
|
|
|||
|
b.Property<DateTime?>("DateAdded");
|
|||
|
|
|||
|
b.Property<ulong>("UserId");
|
|||
|
|
|||
|
b.HasKey("Id");
|
|||
|
|
|||
|
b.HasIndex("UserId")
|
|||
|
.IsUnique();
|
|||
|
|
|||
|
b.ToTable("Currency");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CurrencyTransaction", b =>
|
|||
|
{
|
|||
|
b.Property<int>("Id")
|
|||
|
.ValueGeneratedOnAdd();
|
|||
|
|
|||
|
b.Property<long>("Amount");
|
|||
|
|
|||
|
b.Property<DateTime?>("DateAdded");
|
|||
|
|
|||
|
b.Property<string>("Reason");
|
|||
|
|
|||
|
b.Property<ulong>("UserId");
|
|||
|
|
|||
|
b.HasKey("Id");
|
|||
|
|
|||
|
b.ToTable("CurrencyTransactions");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CustomReaction", b =>
|
|||
|
{
|
|||
|
b.Property<int>("Id")
|
|||
|
.ValueGeneratedOnAdd();
|
|||
|
|
|||
|
b.Property<bool>("AutoDeleteTrigger");
|
|||
|
|
|||
|
b.Property<bool>("ContainsAnywhere");
|
|||
|
|
|||
|
b.Property<DateTime?>("DateAdded");
|
|||
|
|
|||
|
b.Property<bool>("DmResponse");
|
|||
|
|
|||
|
b.Property<ulong?>("GuildId");
|
|||
|
|
|||
|
b.Property<bool>("IsRegex");
|
|||
|
|
|||
|
b.Property<bool>("OwnerOnly");
|
|||
|
|
|||
|
b.Property<string>("Response");
|
|||
|
|
|||
|
b.Property<string>("Trigger");
|
|||
|
|
|||
|
b.HasKey("Id");
|
|||
|
|
|||
|
b.ToTable("CustomReactions");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.DiscordUser", b =>
|
|||
|
{
|
|||
|
b.Property<int>("Id")
|
|||
|
.ValueGeneratedOnAdd();
|
|||
|
|
|||
|
b.Property<string>("AvatarId");
|
|||
|
|
|||
|
b.Property<int?>("ClubId");
|
|||
|
|
|||
|
b.Property<DateTime?>("DateAdded");
|
|||
|
|
|||
|
b.Property<string>("Discriminator");
|
|||
|
|
|||
|
b.Property<bool>("IsClubAdmin");
|
|||
|
|
|||
|
b.Property<DateTime>("LastLevelUp")
|
|||
|
.ValueGeneratedOnAdd()
|
|||
|
.HasDefaultValue(new DateTime(2017, 9, 21, 20, 53, 13, 305, DateTimeKind.Local));
|
|||
|
|
|||
|
b.Property<DateTime>("LastXpGain");
|
|||
|
|
|||
|
b.Property<int>("NotifyOnLevelUp");
|
|||
|
|
|||
|
b.Property<int>("TotalXp");
|
|||
|
|
|||
|
b.Property<ulong>("UserId");
|
|||
|
|
|||
|
b.Property<string>("Username");
|
|||
|
|
|||
|
b.HasKey("Id");
|
|||
|
|
|||
|
b.HasAlternateKey("UserId");
|
|||
|
|
|||
|
b.HasIndex("ClubId");
|
|||
|
|
|||
|
b.ToTable("DiscordUser");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Donator", b =>
|
|||
|
{
|
|||
|
b.Property<int>("Id")
|
|||
|
.ValueGeneratedOnAdd();
|
|||
|
|
|||
|
b.Property<int>("Amount");
|
|||
|
|
|||
|
b.Property<DateTime?>("DateAdded");
|
|||
|
|
|||
|
b.Property<string>("Name");
|
|||
|
|
|||
|
b.Property<ulong>("UserId");
|
|||
|
|
|||
|
b.HasKey("Id");
|
|||
|
|
|||
|
b.HasIndex("UserId")
|
|||
|
.IsUnique();
|
|||
|
|
|||
|
b.ToTable("Donators");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
|
|||
|
{
|
|||
|
b.Property<int>("Id")
|
|||
|
.ValueGeneratedOnAdd();
|
|||
|
|
|||
|
b.Property<int?>("BotConfigId");
|
|||
|
|
|||
|
b.Property<DateTime?>("DateAdded");
|
|||
|
|
|||
|
b.Property<string>("Text");
|
|||
|
|
|||
|
b.HasKey("Id");
|
|||
|
|
|||
|
b.HasIndex("BotConfigId");
|
|||
|
|
|||
|
b.ToTable("EightBallResponses");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ExcludedItem", b =>
|
|||
|
{
|
|||
|
b.Property<int>("Id")
|
|||
|
.ValueGeneratedOnAdd();
|
|||
|
|
|||
|
b.Property<DateTime?>("DateAdded");
|
|||
|
|
|||
|
b.Property<ulong>("ItemId");
|
|||
|
|
|||
|
b.Property<int>("ItemType");
|
|||
|
|
|||
|
b.Property<int?>("XpSettingsId");
|
|||
|
|
|||
|
b.HasKey("Id");
|
|||
|
|
|||
|
b.HasIndex("XpSettingsId");
|
|||
|
|
|||
|
b.ToTable("ExcludedItem");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FeedSub", b =>
|
|||
|
{
|
|||
|
b.Property<int>("Id")
|
|||
|
.ValueGeneratedOnAdd();
|
|||
|
|
|||
|
b.Property<ulong>("ChannelId");
|
|||
|
|
|||
|
b.Property<DateTime?>("DateAdded");
|
|||
|
|
|||
|
b.Property<int>("GuildConfigId");
|
|||
|
|
|||
|
b.Property<string>("Url")
|
|||
|
.IsRequired();
|
|||
|
|
|||
|
b.HasKey("Id");
|
|||
|
|
|||
|
b.HasAlternateKey("GuildConfigId", "Url");
|
|||
|
|
|||
|
b.ToTable("FeedSub");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
|
|||
|
{
|
|||
|
b.Property<int>("Id")
|
|||
|
.ValueGeneratedOnAdd();
|
|||
|
|
|||
|
b.Property<ulong>("ChannelId");
|
|||
|
|
|||
|
b.Property<DateTime?>("DateAdded");
|
|||
|
|
|||
|
b.Property<int?>("GuildConfigId");
|
|||
|
|
|||
|
b.Property<int?>("GuildConfigId1");
|
|||
|
|
|||
|
b.HasKey("Id");
|
|||
|
|
|||
|
b.HasIndex("GuildConfigId");
|
|||
|
|
|||
|
b.HasIndex("GuildConfigId1");
|
|||
|
|
|||
|
b.ToTable("FilterChannelId");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilteredWord", b =>
|
|||
|
{
|
|||
|
b.Property<int>("Id")
|
|||
|
.ValueGeneratedOnAdd();
|
|||
|
|
|||
|
b.Property<DateTime?>("DateAdded");
|
|||
|
|
|||
|
b.Property<int?>("GuildConfigId");
|
|||
|
|
|||
|
b.Property<string>("Word");
|
|||
|
|
|||
|
b.HasKey("Id");
|
|||
|
|
|||
|
b.HasIndex("GuildConfigId");
|
|||
|
|
|||
|
b.ToTable("FilteredWord");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FollowedStream", b =>
|
|||
|
{
|
|||
|
b.Property<int>("Id")
|
|||
|
.ValueGeneratedOnAdd();
|
|||
|
|
|||
|
b.Property<ulong>("ChannelId");
|
|||
|
|
|||
|
b.Property<DateTime?>("DateAdded");
|
|||
|
|
|||
|
b.Property<int?>("GuildConfigId");
|
|||
|
|
|||
|
b.Property<ulong>("GuildId");
|
|||
|
|
|||
|
b.Property<int>("Type");
|
|||
|
|
|||
|
b.Property<string>("Username");
|
|||
|
|
|||
|
b.HasKey("Id");
|
|||
|
|
|||
|
b.HasIndex("GuildConfigId");
|
|||
|
|
|||
|
b.ToTable("FollowedStream");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GCChannelId", b =>
|
|||
|
{
|
|||
|
b.Property<int>("Id")
|
|||
|
.ValueGeneratedOnAdd();
|
|||
|
|
|||
|
b.Property<ulong>("ChannelId");
|
|||
|
|
|||
|
b.Property<DateTime?>("DateAdded");
|
|||
|
|
|||
|
b.Property<int?>("GuildConfigId");
|
|||
|
|
|||
|
b.HasKey("Id");
|
|||
|
|
|||
|
b.HasIndex("GuildConfigId");
|
|||
|
|
|||
|
b.ToTable("GCChannelId");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildConfig", b =>
|
|||
|
{
|
|||
|
b.Property<int>("Id")
|
|||
|
.ValueGeneratedOnAdd();
|
|||
|
|
|||
|
b.Property<ulong>("AutoAssignRoleId");
|
|||
|
|
|||
|
b.Property<bool>("AutoDeleteByeMessages");
|
|||
|
|
|||
|
b.Property<int>("AutoDeleteByeMessagesTimer");
|
|||
|
|
|||
|
b.Property<bool>("AutoDeleteGreetMessages");
|
|||
|
|
|||
|
b.Property<int>("AutoDeleteGreetMessagesTimer");
|
|||
|
|
|||
|
b.Property<bool>("AutoDeleteSelfAssignedRoleMessages");
|
|||
|
|
|||
|
b.Property<ulong>("ByeMessageChannelId");
|
|||
|
|
|||
|
b.Property<string>("ChannelByeMessageText");
|
|||
|
|
|||
|
b.Property<string>("ChannelGreetMessageText");
|
|||
|
|
|||
|
b.Property<bool>("CleverbotEnabled");
|
|||
|
|
|||
|
b.Property<DateTime?>("DateAdded");
|
|||
|
|
|||
|
b.Property<float>("DefaultMusicVolume");
|
|||
|
|
|||
|
b.Property<bool>("DeleteMessageOnCommand");
|
|||
|
|
|||
|
b.Property<string>("DmGreetMessageText");
|
|||
|
|
|||
|
b.Property<bool>("ExclusiveSelfAssignedRoles");
|
|||
|
|
|||
|
b.Property<bool>("FilterInvites");
|
|||
|
|
|||
|
b.Property<bool>("FilterWords");
|
|||
|
|
|||
|
b.Property<ulong?>("GameVoiceChannel");
|
|||
|
|
|||
|
b.Property<ulong>("GreetMessageChannelId");
|
|||
|
|
|||
|
b.Property<ulong>("GuildId");
|
|||
|
|
|||
|
b.Property<string>("Locale");
|
|||
|
|
|||
|
b.Property<int?>("LogSettingId");
|
|||
|
|
|||
|
b.Property<string>("MuteRoleName");
|
|||
|
|
|||
|
b.Property<string>("PermissionRole");
|
|||
|
|
|||
|
b.Property<string>("Prefix");
|
|||
|
|
|||
|
b.Property<int?>("RootPermissionId");
|
|||
|
|
|||
|
b.Property<bool>("SendChannelByeMessage");
|
|||
|
|
|||
|
b.Property<bool>("SendChannelGreetMessage");
|
|||
|
|
|||
|
b.Property<bool>("SendDmGreetMessage");
|
|||
|
|
|||
|
b.Property<string>("TimeZoneId");
|
|||
|
|
|||
|
b.Property<bool>("VerboseErrors");
|
|||
|
|
|||
|
b.Property<bool>("VerbosePermissions");
|
|||
|
|
|||
|
b.Property<bool>("VoicePlusTextEnabled");
|
|||
|
|
|||
|
b.Property<bool>("WarningsInitialized");
|
|||
|
|
|||
|
b.HasKey("Id");
|
|||
|
|
|||
|
b.HasIndex("GuildId")
|
|||
|
.IsUnique();
|
|||
|
|
|||
|
b.HasIndex("LogSettingId");
|
|||
|
|
|||
|
b.HasIndex("RootPermissionId");
|
|||
|
|
|||
|
b.ToTable("GuildConfigs");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildRepeater", b =>
|
|||
|
{
|
|||
|
b.Property<int>("Id")
|
|||
|
.ValueGeneratedOnAdd();
|
|||
|
|
|||
|
b.Property<ulong>("ChannelId");
|
|||
|
|
|||
|
b.Property<DateTime?>("DateAdded");
|
|||
|
|
|||
|
b.Property<int?>("GuildConfigId");
|
|||
|
|
|||
|
b.Property<ulong>("GuildId");
|
|||
|
|
|||
|
b.Property<TimeSpan>("Interval");
|
|||
|
|
|||
|
b.Property<string>("Message");
|
|||
|
|
|||
|
b.Property<TimeSpan?>("StartTimeOfDay");
|
|||
|
|
|||
|
b.HasKey("Id");
|
|||
|
|
|||
|
b.HasIndex("GuildConfigId");
|
|||
|
|
|||
|
b.ToTable("GuildRepeater");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredLogChannel", b =>
|
|||
|
{
|
|||
|
b.Property<int>("Id")
|
|||
|
.ValueGeneratedOnAdd();
|
|||
|
|
|||
|
b.Property<ulong>("ChannelId");
|
|||
|
|
|||
|
b.Property<DateTime?>("DateAdded");
|
|||
|
|
|||
|
b.Property<int?>("LogSettingId");
|
|||
|
|
|||
|
b.HasKey("Id");
|
|||
|
|
|||
|
b.HasIndex("LogSettingId");
|
|||
|
|
|||
|
b.ToTable("IgnoredLogChannels");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
|
|||
|
{
|
|||
|
b.Property<int>("Id")
|
|||
|
.ValueGeneratedOnAdd();
|
|||
|
|
|||
|
b.Property<ulong>("ChannelId");
|
|||
|
|
|||
|
b.Property<DateTime?>("DateAdded");
|
|||
|
|
|||
|
b.Property<int?>("LogSettingId");
|
|||
|
|
|||
|
b.HasKey("Id");
|
|||
|
|
|||
|
b.HasIndex("LogSettingId");
|
|||
|
|
|||
|
b.ToTable("IgnoredVoicePresenceCHannels");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.LoadedPackage", b =>
|
|||
|
{
|
|||
|
b.Property<int>("Id")
|
|||
|
.ValueGeneratedOnAdd();
|
|||
|
|
|||
|
b.Property<int?>("BotConfigId");
|
|||
|
|
|||
|
b.Property<DateTime?>("DateAdded");
|
|||
|
|
|||
|
b.Property<string>("Name");
|
|||
|
|
|||
|
b.HasKey("Id");
|
|||
|
|
|||
|
b.HasIndex("BotConfigId");
|
|||
|
|
|||
|
b.ToTable("LoadedPackages");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.LogSetting", b =>
|
|||
|
{
|
|||
|
b.Property<int>("Id")
|
|||
|
.ValueGeneratedOnAdd();
|
|||
|
|
|||
|
b.Property<bool>("ChannelCreated");
|
|||
|
|
|||
|
b.Property<ulong?>("ChannelCreatedId");
|
|||
|
|
|||
|
b.Property<bool>("ChannelDestroyed");
|
|||
|
|
|||
|
b.Property<ulong?>("ChannelDestroyedId");
|
|||
|
|
|||
|
b.Property<ulong>("ChannelId");
|
|||
|
|
|||
|
b.Property<bool>("ChannelUpdated");
|
|||
|
|
|||
|
b.Property<ulong?>("ChannelUpdatedId");
|
|||
|
|
|||
|
b.Property<DateTime?>("DateAdded");
|
|||
|
|
|||
|
b.Property<bool>("IsLogging");
|
|||
|
|
|||
|
b.Property<ulong?>("LogOtherId");
|
|||
|
|
|||
|
b.Property<bool>("LogUserPresence");
|
|||
|
|
|||
|
b.Property<ulong?>("LogUserPresenceId");
|
|||
|
|
|||
|
b.Property<bool>("LogVoicePresence");
|
|||
|
|
|||
|
b.Property<ulong?>("LogVoicePresenceId");
|
|||
|
|
|||
|
b.Property<ulong?>("LogVoicePresenceTTSId");
|
|||
|
|
|||
|
b.Property<bool>("MessageDeleted");
|
|||
|
|
|||
|
b.Property<ulong?>("MessageDeletedId");
|
|||
|
|
|||
|
b.Property<bool>("MessageUpdated");
|
|||
|
|
|||
|
b.Property<ulong?>("MessageUpdatedId");
|
|||
|
|
|||
|
b.Property<bool>("UserBanned");
|
|||
|
|
|||
|
b.Property<ulong?>("UserBannedId");
|
|||
|
|
|||
|
b.Property<bool>("UserJoined");
|
|||
|
|
|||
|
b.Property<ulong?>("UserJoinedId");
|
|||
|
|
|||
|
b.Property<bool>("UserLeft");
|
|||
|
|
|||
|
b.Property<ulong?>("UserLeftId");
|
|||
|
|
|||
|
b.Property<ulong?>("UserMutedId");
|
|||
|
|
|||
|
b.Property<ulong>("UserPresenceChannelId");
|
|||
|
|
|||
|
b.Property<bool>("UserUnbanned");
|
|||
|
|
|||
|
b.Property<ulong?>("UserUnbannedId");
|
|||
|
|
|||
|
b.Property<bool>("UserUpdated");
|
|||
|
|
|||
|
b.Property<ulong?>("UserUpdatedId");
|
|||
|
|
|||
|
b.Property<ulong>("VoicePresenceChannelId");
|
|||
|
|
|||
|
b.HasKey("Id");
|
|||
|
|
|||
|
b.ToTable("LogSettings");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MusicPlaylist", b =>
|
|||
|
{
|
|||
|
b.Property<int>("Id")
|
|||
|
.ValueGeneratedOnAdd();
|
|||
|
|
|||
|
b.Property<string>("Author");
|
|||
|
|
|||
|
b.Property<ulong>("AuthorId");
|
|||
|
|
|||
|
b.Property<DateTime?>("DateAdded");
|
|||
|
|
|||
|
b.Property<string>("Name");
|
|||
|
|
|||
|
b.HasKey("Id");
|
|||
|
|
|||
|
b.ToTable("MusicPlaylists");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MutedUserId", b =>
|
|||
|
{
|
|||
|
b.Property<int>("Id")
|
|||
|
.ValueGeneratedOnAdd();
|
|||
|
|
|||
|
b.Property<DateTime?>("DateAdded");
|
|||
|
|
|||
|
b.Property<int?>("GuildConfigId");
|
|||
|
|
|||
|
b.Property<ulong>("UserId");
|
|||
|
|
|||
|
b.HasKey("Id");
|
|||
|
|
|||
|
b.HasIndex("GuildConfigId");
|
|||
|
|
|||
|
b.ToTable("MutedUserId");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.NsfwBlacklitedTag", b =>
|
|||
|
{
|
|||
|
b.Property<int>("Id")
|
|||
|
.ValueGeneratedOnAdd();
|
|||
|
|
|||
|
b.Property<DateTime?>("DateAdded");
|
|||
|
|
|||
|
b.Property<int?>("GuildConfigId");
|
|||
|
|
|||
|
b.Property<string>("Tag");
|
|||
|
|
|||
|
b.HasKey("Id");
|
|||
|
|
|||
|
b.HasIndex("GuildConfigId");
|
|||
|
|
|||
|
b.ToTable("NsfwBlacklitedTag");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
|
|||
|
{
|
|||
|
b.Property<int>("Id")
|
|||
|
.ValueGeneratedOnAdd();
|
|||
|
|
|||
|
b.Property<DateTime?>("DateAdded");
|
|||
|
|
|||
|
b.Property<int?>("NextId");
|
|||
|
|
|||
|
b.Property<int>("PrimaryTarget");
|
|||
|
|
|||
|
b.Property<ulong>("PrimaryTargetId");
|
|||
|
|
|||
|
b.Property<int>("SecondaryTarget");
|
|||
|
|
|||
|
b.Property<string>("SecondaryTargetName");
|
|||
|
|
|||
|
b.Property<bool>("State");
|
|||
|
|
|||
|
b.HasKey("Id");
|
|||
|
|
|||
|
b.HasIndex("NextId")
|
|||
|
.IsUnique();
|
|||
|
|
|||
|
b.ToTable("Permission");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permissionv2", b =>
|
|||
|
{
|
|||
|
b.Property<int>("Id")
|
|||
|
.ValueGeneratedOnAdd();
|
|||
|
|
|||
|
b.Property<DateTime?>("DateAdded");
|
|||
|
|
|||
|
b.Property<int?>("GuildConfigId");
|
|||
|
|
|||
|
b.Property<int>("Index");
|
|||
|
|
|||
|
b.Property<int>("PrimaryTarget");
|
|||
|
|
|||
|
b.Property<ulong>("PrimaryTargetId");
|
|||
|
|
|||
|
b.Property<int>("SecondaryTarget");
|
|||
|
|
|||
|
b.Property<string>("SecondaryTargetName");
|
|||
|
|
|||
|
b.Property<bool>("State");
|
|||
|
|
|||
|
b.HasKey("Id");
|
|||
|
|
|||
|
b.HasIndex("GuildConfigId");
|
|||
|
|
|||
|
b.ToTable("Permissionv2");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlayingStatus", b =>
|
|||
|
{
|
|||
|
b.Property<int>("Id")
|
|||
|
.ValueGeneratedOnAdd();
|
|||
|
|
|||
|
b.Property<int?>("BotConfigId");
|
|||
|
|
|||
|
b.Property<DateTime?>("DateAdded");
|
|||
|
|
|||
|
b.Property<string>("Status");
|
|||
|
|
|||
|
b.HasKey("Id");
|
|||
|
|
|||
|
b.HasIndex("BotConfigId");
|
|||
|
|
|||
|
b.ToTable("PlayingStatus");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
|
|||
|
{
|
|||
|
b.Property<int>("Id")
|
|||
|
.ValueGeneratedOnAdd();
|
|||
|
|
|||
|
b.Property<DateTime?>("DateAdded");
|
|||
|
|
|||
|
b.Property<int?>("MusicPlaylistId");
|
|||
|
|
|||
|
b.Property<string>("Provider");
|
|||
|
|
|||
|
b.Property<int>("ProviderType");
|
|||
|
|
|||
|
b.Property<string>("Query");
|
|||
|
|
|||
|
b.Property<string>("Title");
|
|||
|
|
|||
|
b.Property<string>("Uri");
|
|||
|
|
|||
|
b.HasKey("Id");
|
|||
|
|
|||
|
b.HasIndex("MusicPlaylistId");
|
|||
|
|
|||
|
b.ToTable("PlaylistSong");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Quote", b =>
|
|||
|
{
|
|||
|
b.Property<int>("Id")
|
|||
|
.ValueGeneratedOnAdd();
|
|||
|
|
|||
|
b.Property<ulong>("AuthorId");
|
|||
|
|
|||
|
b.Property<string>("AuthorName")
|
|||
|
.IsRequired();
|
|||
|
|
|||
|
b.Property<DateTime?>("DateAdded");
|
|||
|
|
|||
|
b.Property<ulong>("GuildId");
|
|||
|
|
|||
|
b.Property<string>("Keyword")
|
|||
|
.IsRequired();
|
|||
|
|
|||
|
b.Property<string>("Text")
|
|||
|
.IsRequired();
|
|||
|
|
|||
|
b.HasKey("Id");
|
|||
|
|
|||
|
b.ToTable("Quotes");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
|
|||
|
{
|
|||
|
b.Property<int>("Id")
|
|||
|
.ValueGeneratedOnAdd();
|
|||
|
|
|||
|
b.Property<int?>("BotConfigId");
|
|||
|
|
|||
|
b.Property<DateTime?>("DateAdded");
|
|||
|
|
|||
|
b.Property<string>("Icon");
|
|||
|
|
|||
|
b.Property<string>("Name");
|
|||
|
|
|||
|
b.HasKey("Id");
|
|||
|
|
|||
|
b.HasIndex("BotConfigId");
|
|||
|
|
|||
|
b.ToTable("RaceAnimals");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Reminder", b =>
|
|||
|
{
|
|||
|
b.Property<int>("Id")
|
|||
|
.ValueGeneratedOnAdd();
|
|||
|
|
|||
|
b.Property<ulong>("ChannelId");
|
|||
|
|
|||
|
b.Property<DateTime?>("DateAdded");
|
|||
|
|
|||
|
b.Property<bool>("IsPrivate");
|
|||
|
|
|||
|
b.Property<string>("Message");
|
|||
|
|
|||
|
b.Property<ulong>("ServerId");
|
|||
|
|
|||
|
b.Property<ulong>("UserId");
|
|||
|
|
|||
|
b.Property<DateTime>("When");
|
|||
|
|
|||
|
b.HasKey("Id");
|
|||
|
|
|||
|
b.ToTable("Reminders");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RewardedUser", b =>
|
|||
|
{
|
|||
|
b.Property<int>("Id")
|
|||
|
.ValueGeneratedOnAdd();
|
|||
|
|
|||
|
b.Property<int>("AmountRewardedThisMonth");
|
|||
|
|
|||
|
b.Property<DateTime?>("DateAdded");
|
|||
|
|
|||
|
b.Property<DateTime>("LastReward");
|
|||
|
|
|||
|
b.Property<string>("PatreonUserId");
|
|||
|
|
|||
|
b.Property<ulong>("UserId");
|
|||
|
|
|||
|
b.HasKey("Id");
|
|||
|
|
|||
|
b.HasIndex("UserId")
|
|||
|
.IsUnique();
|
|||
|
|
|||
|
b.ToTable("RewardedUsers");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.SelfAssignedRole", b =>
|
|||
|
{
|
|||
|
b.Property<int>("Id")
|
|||
|
.ValueGeneratedOnAdd();
|
|||
|
|
|||
|
b.Property<DateTime?>("DateAdded");
|
|||
|
|
|||
|
b.Property<int>("Group")
|
|||
|
.ValueGeneratedOnAdd()
|
|||
|
.HasDefaultValue(0);
|
|||
|
|
|||
|
b.Property<ulong>("GuildId");
|
|||
|
|
|||
|
b.Property<ulong>("RoleId");
|
|||
|
|
|||
|
b.HasKey("Id");
|
|||
|
|
|||
|
b.HasIndex("GuildId", "RoleId")
|
|||
|
.IsUnique();
|
|||
|
|
|||
|
b.ToTable("SelfAssignableRoles");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ShopEntry", b =>
|
|||
|
{
|
|||
|
b.Property<int>("Id")
|
|||
|
.ValueGeneratedOnAdd();
|
|||
|
|
|||
|
b.Property<ulong>("AuthorId");
|
|||
|
|
|||
|
b.Property<DateTime?>("DateAdded");
|
|||
|
|
|||
|
b.Property<int?>("GuildConfigId");
|
|||
|
|
|||
|
b.Property<int>("Index");
|
|||
|
|
|||
|
b.Property<string>("Name");
|
|||
|
|
|||
|
b.Property<int>("Price");
|
|||
|
|
|||
|
b.Property<ulong>("RoleId");
|
|||
|
|
|||
|
b.Property<string>("RoleName");
|
|||
|
|
|||
|
b.Property<int>("Type");
|
|||
|
|
|||
|
b.HasKey("Id");
|
|||
|
|
|||
|
b.HasIndex("GuildConfigId");
|
|||
|
|
|||
|
b.ToTable("ShopEntry");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ShopEntryItem", b =>
|
|||
|
{
|
|||
|
b.Property<int>("Id")
|
|||
|
.ValueGeneratedOnAdd();
|
|||
|
|
|||
|
b.Property<DateTime?>("DateAdded");
|
|||
|
|
|||
|
b.Property<int?>("ShopEntryId");
|
|||
|
|
|||
|
b.Property<string>("Text");
|
|||
|
|
|||
|
b.HasKey("Id");
|
|||
|
|
|||
|
b.HasIndex("ShopEntryId");
|
|||
|
|
|||
|
b.ToTable("ShopEntryItem");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.SlowmodeIgnoredRole", b =>
|
|||
|
{
|
|||
|
b.Property<int>("Id")
|
|||
|
.ValueGeneratedOnAdd();
|
|||
|
|
|||
|
b.Property<DateTime?>("DateAdded");
|
|||
|
|
|||
|
b.Property<int?>("GuildConfigId");
|
|||
|
|
|||
|
b.Property<ulong>("RoleId");
|
|||
|
|
|||
|
b.HasKey("Id");
|
|||
|
|
|||
|
b.HasIndex("GuildConfigId");
|
|||
|
|
|||
|
b.ToTable("SlowmodeIgnoredRole");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.SlowmodeIgnoredUser", b =>
|
|||
|
{
|
|||
|
b.Property<int>("Id")
|
|||
|
.ValueGeneratedOnAdd();
|
|||
|
|
|||
|
b.Property<DateTime?>("DateAdded");
|
|||
|
|
|||
|
b.Property<int?>("GuildConfigId");
|
|||
|
|
|||
|
b.Property<ulong>("UserId");
|
|||
|
|
|||
|
b.HasKey("Id");
|
|||
|
|
|||
|
b.HasIndex("GuildConfigId");
|
|||
|
|
|||
|
b.ToTable("SlowmodeIgnoredUser");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.StartupCommand", b =>
|
|||
|
{
|
|||
|
b.Property<int>("Id")
|
|||
|
.ValueGeneratedOnAdd();
|
|||
|
|
|||
|
b.Property<int?>("BotConfigId");
|
|||
|
|
|||
|
b.Property<ulong>("ChannelId");
|
|||
|
|
|||
|
b.Property<string>("ChannelName");
|
|||
|
|
|||
|
b.Property<string>("CommandText");
|
|||
|
|
|||
|
b.Property<DateTime?>("DateAdded");
|
|||
|
|
|||
|
b.Property<ulong?>("GuildId");
|
|||
|
|
|||
|
b.Property<string>("GuildName");
|
|||
|
|
|||
|
b.Property<int>("Index");
|
|||
|
|
|||
|
b.Property<ulong?>("VoiceChannelId");
|
|||
|
|
|||
|
b.Property<string>("VoiceChannelName");
|
|||
|
|
|||
|
b.HasKey("Id");
|
|||
|
|
|||
|
b.HasIndex("BotConfigId");
|
|||
|
|
|||
|
b.ToTable("StartupCommand");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.StreamRoleBlacklistedUser", b =>
|
|||
|
{
|
|||
|
b.Property<int>("Id")
|
|||
|
.ValueGeneratedOnAdd();
|
|||
|
|
|||
|
b.Property<DateTime?>("DateAdded");
|
|||
|
|
|||
|
b.Property<int?>("StreamRoleSettingsId");
|
|||
|
|
|||
|
b.Property<ulong>("UserId");
|
|||
|
|
|||
|
b.Property<string>("Username");
|
|||
|
|
|||
|
b.HasKey("Id");
|
|||
|
|
|||
|
b.HasIndex("StreamRoleSettingsId");
|
|||
|
|
|||
|
b.ToTable("StreamRoleBlacklistedUser");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.StreamRoleSettings", b =>
|
|||
|
{
|
|||
|
b.Property<int>("Id")
|
|||
|
.ValueGeneratedOnAdd();
|
|||
|
|
|||
|
b.Property<ulong>("AddRoleId");
|
|||
|
|
|||
|
b.Property<DateTime?>("DateAdded");
|
|||
|
|
|||
|
b.Property<bool>("Enabled");
|
|||
|
|
|||
|
b.Property<ulong>("FromRoleId");
|
|||
|
|
|||
|
b.Property<int>("GuildConfigId");
|
|||
|
|
|||
|
b.Property<string>("Keyword");
|
|||
|
|
|||
|
b.HasKey("Id");
|
|||
|
|
|||
|
b.HasIndex("GuildConfigId")
|
|||
|
.IsUnique();
|
|||
|
|
|||
|
b.ToTable("StreamRoleSettings");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.StreamRoleWhitelistedUser", b =>
|
|||
|
{
|
|||
|
b.Property<int>("Id")
|
|||
|
.ValueGeneratedOnAdd();
|
|||
|
|
|||
|
b.Property<DateTime?>("DateAdded");
|
|||
|
|
|||
|
b.Property<int?>("StreamRoleSettingsId");
|
|||
|
|
|||
|
b.Property<ulong>("UserId");
|
|||
|
|
|||
|
b.Property<string>("Username");
|
|||
|
|
|||
|
b.HasKey("Id");
|
|||
|
|
|||
|
b.HasIndex("StreamRoleSettingsId");
|
|||
|
|
|||
|
b.ToTable("StreamRoleWhitelistedUser");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.UnmuteTimer", b =>
|
|||
|
{
|
|||
|
b.Property<int>("Id")
|
|||
|
.ValueGeneratedOnAdd();
|
|||
|
|
|||
|
b.Property<DateTime?>("DateAdded");
|
|||
|
|
|||
|
b.Property<int?>("GuildConfigId");
|
|||
|
|
|||
|
b.Property<DateTime>("UnmuteAt");
|
|||
|
|
|||
|
b.Property<ulong>("UserId");
|
|||
|
|
|||
|
b.HasKey("Id");
|
|||
|
|
|||
|
b.HasIndex("GuildConfigId");
|
|||
|
|
|||
|
b.ToTable("UnmuteTimer");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.UserPokeTypes", b =>
|
|||
|
{
|
|||
|
b.Property<int>("Id")
|
|||
|
.ValueGeneratedOnAdd();
|
|||
|
|
|||
|
b.Property<DateTime?>("DateAdded");
|
|||
|
|
|||
|
b.Property<ulong>("UserId");
|
|||
|
|
|||
|
b.Property<string>("type");
|
|||
|
|
|||
|
b.HasKey("Id");
|
|||
|
|
|||
|
b.HasIndex("UserId")
|
|||
|
.IsUnique();
|
|||
|
|
|||
|
b.ToTable("PokeGame");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.UserXpStats", b =>
|
|||
|
{
|
|||
|
b.Property<int>("Id")
|
|||
|
.ValueGeneratedOnAdd();
|
|||
|
|
|||
|
b.Property<int>("AwardedXp");
|
|||
|
|
|||
|
b.Property<DateTime?>("DateAdded");
|
|||
|
|
|||
|
b.Property<ulong>("GuildId");
|
|||
|
|
|||
|
b.Property<DateTime>("LastLevelUp")
|
|||
|
.ValueGeneratedOnAdd()
|
|||
|
.HasDefaultValue(new DateTime(2017, 9, 21, 20, 53, 13, 307, DateTimeKind.Local));
|
|||
|
|
|||
|
b.Property<int>("NotifyOnLevelUp");
|
|||
|
|
|||
|
b.Property<ulong>("UserId");
|
|||
|
|
|||
|
b.Property<int>("Xp");
|
|||
|
|
|||
|
b.HasKey("Id");
|
|||
|
|
|||
|
b.HasIndex("UserId", "GuildId")
|
|||
|
.IsUnique();
|
|||
|
|
|||
|
b.ToTable("UserXpStats");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.VcRoleInfo", b =>
|
|||
|
{
|
|||
|
b.Property<int>("Id")
|
|||
|
.ValueGeneratedOnAdd();
|
|||
|
|
|||
|
b.Property<DateTime?>("DateAdded");
|
|||
|
|
|||
|
b.Property<int?>("GuildConfigId");
|
|||
|
|
|||
|
b.Property<ulong>("RoleId");
|
|||
|
|
|||
|
b.Property<ulong>("VoiceChannelId");
|
|||
|
|
|||
|
b.HasKey("Id");
|
|||
|
|
|||
|
b.HasIndex("GuildConfigId");
|
|||
|
|
|||
|
b.ToTable("VcRoleInfo");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WaifuInfo", b =>
|
|||
|
{
|
|||
|
b.Property<int>("Id")
|
|||
|
.ValueGeneratedOnAdd();
|
|||
|
|
|||
|
b.Property<int?>("AffinityId");
|
|||
|
|
|||
|
b.Property<int?>("ClaimerId");
|
|||
|
|
|||
|
b.Property<DateTime?>("DateAdded");
|
|||
|
|
|||
|
b.Property<int>("Price");
|
|||
|
|
|||
|
b.Property<int>("WaifuId");
|
|||
|
|
|||
|
b.HasKey("Id");
|
|||
|
|
|||
|
b.HasIndex("AffinityId");
|
|||
|
|
|||
|
b.HasIndex("ClaimerId");
|
|||
|
|
|||
|
b.HasIndex("WaifuId")
|
|||
|
.IsUnique();
|
|||
|
|
|||
|
b.ToTable("WaifuInfo");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WaifuItem", b =>
|
|||
|
{
|
|||
|
b.Property<int>("Id")
|
|||
|
.ValueGeneratedOnAdd();
|
|||
|
|
|||
|
b.Property<DateTime?>("DateAdded");
|
|||
|
|
|||
|
b.Property<int>("Item");
|
|||
|
|
|||
|
b.Property<string>("ItemEmoji");
|
|||
|
|
|||
|
b.Property<int>("Price");
|
|||
|
|
|||
|
b.Property<int?>("WaifuInfoId");
|
|||
|
|
|||
|
b.HasKey("Id");
|
|||
|
|
|||
|
b.HasIndex("WaifuInfoId");
|
|||
|
|
|||
|
b.ToTable("WaifuItem");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WaifuUpdate", b =>
|
|||
|
{
|
|||
|
b.Property<int>("Id")
|
|||
|
.ValueGeneratedOnAdd();
|
|||
|
|
|||
|
b.Property<DateTime?>("DateAdded");
|
|||
|
|
|||
|
b.Property<int?>("NewId");
|
|||
|
|
|||
|
b.Property<int?>("OldId");
|
|||
|
|
|||
|
b.Property<int>("UpdateType");
|
|||
|
|
|||
|
b.Property<int>("UserId");
|
|||
|
|
|||
|
b.HasKey("Id");
|
|||
|
|
|||
|
b.HasIndex("NewId");
|
|||
|
|
|||
|
b.HasIndex("OldId");
|
|||
|
|
|||
|
b.HasIndex("UserId");
|
|||
|
|
|||
|
b.ToTable("WaifuUpdates");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Warning", b =>
|
|||
|
{
|
|||
|
b.Property<int>("Id")
|
|||
|
.ValueGeneratedOnAdd();
|
|||
|
|
|||
|
b.Property<DateTime?>("DateAdded");
|
|||
|
|
|||
|
b.Property<bool>("Forgiven");
|
|||
|
|
|||
|
b.Property<string>("ForgivenBy");
|
|||
|
|
|||
|
b.Property<ulong>("GuildId");
|
|||
|
|
|||
|
b.Property<string>("Moderator");
|
|||
|
|
|||
|
b.Property<string>("Reason");
|
|||
|
|
|||
|
b.Property<ulong>("UserId");
|
|||
|
|
|||
|
b.HasKey("Id");
|
|||
|
|
|||
|
b.ToTable("Warnings");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WarningPunishment", b =>
|
|||
|
{
|
|||
|
b.Property<int>("Id")
|
|||
|
.ValueGeneratedOnAdd();
|
|||
|
|
|||
|
b.Property<int>("Count");
|
|||
|
|
|||
|
b.Property<DateTime?>("DateAdded");
|
|||
|
|
|||
|
b.Property<int?>("GuildConfigId");
|
|||
|
|
|||
|
b.Property<int>("Punishment");
|
|||
|
|
|||
|
b.Property<int>("Time");
|
|||
|
|
|||
|
b.HasKey("Id");
|
|||
|
|
|||
|
b.HasIndex("GuildConfigId");
|
|||
|
|
|||
|
b.ToTable("WarningPunishment");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.XpRoleReward", b =>
|
|||
|
{
|
|||
|
b.Property<int>("Id")
|
|||
|
.ValueGeneratedOnAdd();
|
|||
|
|
|||
|
b.Property<DateTime?>("DateAdded");
|
|||
|
|
|||
|
b.Property<int>("Level");
|
|||
|
|
|||
|
b.Property<ulong>("RoleId");
|
|||
|
|
|||
|
b.Property<int>("XpSettingsId");
|
|||
|
|
|||
|
b.HasKey("Id");
|
|||
|
|
|||
|
b.HasIndex("XpSettingsId", "Level")
|
|||
|
.IsUnique();
|
|||
|
|
|||
|
b.ToTable("XpRoleReward");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.XpSettings", b =>
|
|||
|
{
|
|||
|
b.Property<int>("Id")
|
|||
|
.ValueGeneratedOnAdd();
|
|||
|
|
|||
|
b.Property<DateTime?>("DateAdded");
|
|||
|
|
|||
|
b.Property<int>("GuildConfigId");
|
|||
|
|
|||
|
b.Property<string>("NotifyMessage");
|
|||
|
|
|||
|
b.Property<bool>("ServerExcluded");
|
|||
|
|
|||
|
b.Property<bool>("XpRoleRewardExclusive");
|
|||
|
|
|||
|
b.HasKey("Id");
|
|||
|
|
|||
|
b.HasIndex("GuildConfigId")
|
|||
|
.IsUnique();
|
|||
|
|
|||
|
b.ToTable("XpSettings");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiRaidSetting", b =>
|
|||
|
{
|
|||
|
b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig", "GuildConfig")
|
|||
|
.WithOne("AntiRaidSetting")
|
|||
|
.HasForeignKey("NadekoBot.Core.Services.Database.Models.AntiRaidSetting", "GuildConfigId")
|
|||
|
.OnDelete(DeleteBehavior.Cascade);
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamIgnore", b =>
|
|||
|
{
|
|||
|
b.HasOne("NadekoBot.Core.Services.Database.Models.AntiSpamSetting")
|
|||
|
.WithMany("IgnoredChannels")
|
|||
|
.HasForeignKey("AntiSpamSettingId");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamSetting", b =>
|
|||
|
{
|
|||
|
b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig", "GuildConfig")
|
|||
|
.WithOne("AntiSpamSetting")
|
|||
|
.HasForeignKey("NadekoBot.Core.Services.Database.Models.AntiSpamSetting", "GuildConfigId")
|
|||
|
.OnDelete(DeleteBehavior.Cascade);
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlacklistItem", b =>
|
|||
|
{
|
|||
|
b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
|
|||
|
.WithMany("Blacklist")
|
|||
|
.HasForeignKey("BotConfigId");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlockedCmdOrMdl", b =>
|
|||
|
{
|
|||
|
b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
|
|||
|
.WithMany("BlockedCommands")
|
|||
|
.HasForeignKey("BotConfigId");
|
|||
|
|
|||
|
b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
|
|||
|
.WithMany("BlockedModules")
|
|||
|
.HasForeignKey("BotConfigId1");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClubApplicants", b =>
|
|||
|
{
|
|||
|
b.HasOne("NadekoBot.Core.Services.Database.Models.ClubInfo", "Club")
|
|||
|
.WithMany("Applicants")
|
|||
|
.HasForeignKey("ClubId")
|
|||
|
.OnDelete(DeleteBehavior.Cascade);
|
|||
|
|
|||
|
b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "User")
|
|||
|
.WithMany()
|
|||
|
.HasForeignKey("UserId")
|
|||
|
.OnDelete(DeleteBehavior.Cascade);
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClubBans", b =>
|
|||
|
{
|
|||
|
b.HasOne("NadekoBot.Core.Services.Database.Models.ClubInfo", "Club")
|
|||
|
.WithMany("Bans")
|
|||
|
.HasForeignKey("ClubId")
|
|||
|
.OnDelete(DeleteBehavior.Cascade);
|
|||
|
|
|||
|
b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "User")
|
|||
|
.WithMany()
|
|||
|
.HasForeignKey("UserId")
|
|||
|
.OnDelete(DeleteBehavior.Cascade);
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClubInfo", b =>
|
|||
|
{
|
|||
|
b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "Owner")
|
|||
|
.WithOne()
|
|||
|
.HasForeignKey("NadekoBot.Core.Services.Database.Models.ClubInfo", "OwnerId")
|
|||
|
.OnDelete(DeleteBehavior.Cascade);
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandAlias", b =>
|
|||
|
{
|
|||
|
b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
|
|||
|
.WithMany("CommandAliases")
|
|||
|
.HasForeignKey("GuildConfigId");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandCooldown", b =>
|
|||
|
{
|
|||
|
b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
|
|||
|
.WithMany("CommandCooldowns")
|
|||
|
.HasForeignKey("GuildConfigId");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandPrice", b =>
|
|||
|
{
|
|||
|
b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
|
|||
|
.WithMany("CommandPrices")
|
|||
|
.HasForeignKey("BotConfigId");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.DiscordUser", b =>
|
|||
|
{
|
|||
|
b.HasOne("NadekoBot.Core.Services.Database.Models.ClubInfo", "Club")
|
|||
|
.WithMany("Users")
|
|||
|
.HasForeignKey("ClubId");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
|
|||
|
{
|
|||
|
b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
|
|||
|
.WithMany("EightBallResponses")
|
|||
|
.HasForeignKey("BotConfigId");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ExcludedItem", b =>
|
|||
|
{
|
|||
|
b.HasOne("NadekoBot.Core.Services.Database.Models.XpSettings")
|
|||
|
.WithMany("ExclusionList")
|
|||
|
.HasForeignKey("XpSettingsId");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FeedSub", b =>
|
|||
|
{
|
|||
|
b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig", "GuildConfig")
|
|||
|
.WithMany("FeedSubs")
|
|||
|
.HasForeignKey("GuildConfigId")
|
|||
|
.OnDelete(DeleteBehavior.Cascade);
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
|
|||
|
{
|
|||
|
b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
|
|||
|
.WithMany("FilterInvitesChannelIds")
|
|||
|
.HasForeignKey("GuildConfigId");
|
|||
|
|
|||
|
b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
|
|||
|
.WithMany("FilterWordsChannelIds")
|
|||
|
.HasForeignKey("GuildConfigId1");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilteredWord", b =>
|
|||
|
{
|
|||
|
b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
|
|||
|
.WithMany("FilteredWords")
|
|||
|
.HasForeignKey("GuildConfigId");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FollowedStream", b =>
|
|||
|
{
|
|||
|
b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
|
|||
|
.WithMany("FollowedStreams")
|
|||
|
.HasForeignKey("GuildConfigId");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GCChannelId", b =>
|
|||
|
{
|
|||
|
b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
|
|||
|
.WithMany("GenerateCurrencyChannelIds")
|
|||
|
.HasForeignKey("GuildConfigId");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildConfig", b =>
|
|||
|
{
|
|||
|
b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
|
|||
|
.WithMany()
|
|||
|
.HasForeignKey("LogSettingId");
|
|||
|
|
|||
|
b.HasOne("NadekoBot.Core.Services.Database.Models.Permission", "RootPermission")
|
|||
|
.WithMany()
|
|||
|
.HasForeignKey("RootPermissionId");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildRepeater", b =>
|
|||
|
{
|
|||
|
b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
|
|||
|
.WithMany("GuildRepeaters")
|
|||
|
.HasForeignKey("GuildConfigId");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredLogChannel", b =>
|
|||
|
{
|
|||
|
b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
|
|||
|
.WithMany("IgnoredChannels")
|
|||
|
.HasForeignKey("LogSettingId");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
|
|||
|
{
|
|||
|
b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
|
|||
|
.WithMany("IgnoredVoicePresenceChannelIds")
|
|||
|
.HasForeignKey("LogSettingId");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.LoadedPackage", b =>
|
|||
|
{
|
|||
|
b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
|
|||
|
.WithMany("LoadedPackages")
|
|||
|
.HasForeignKey("BotConfigId");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MutedUserId", b =>
|
|||
|
{
|
|||
|
b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
|
|||
|
.WithMany("MutedUsers")
|
|||
|
.HasForeignKey("GuildConfigId");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.NsfwBlacklitedTag", b =>
|
|||
|
{
|
|||
|
b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
|
|||
|
.WithMany("NsfwBlacklistedTags")
|
|||
|
.HasForeignKey("GuildConfigId");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
|
|||
|
{
|
|||
|
b.HasOne("NadekoBot.Core.Services.Database.Models.Permission", "Next")
|
|||
|
.WithOne("Previous")
|
|||
|
.HasForeignKey("NadekoBot.Core.Services.Database.Models.Permission", "NextId");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permissionv2", b =>
|
|||
|
{
|
|||
|
b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
|
|||
|
.WithMany("Permissions")
|
|||
|
.HasForeignKey("GuildConfigId");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlayingStatus", b =>
|
|||
|
{
|
|||
|
b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
|
|||
|
.WithMany("RotatingStatusMessages")
|
|||
|
.HasForeignKey("BotConfigId");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
|
|||
|
{
|
|||
|
b.HasOne("NadekoBot.Core.Services.Database.Models.MusicPlaylist")
|
|||
|
.WithMany("Songs")
|
|||
|
.HasForeignKey("MusicPlaylistId")
|
|||
|
.OnDelete(DeleteBehavior.Cascade);
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
|
|||
|
{
|
|||
|
b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
|
|||
|
.WithMany("RaceAnimals")
|
|||
|
.HasForeignKey("BotConfigId");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ShopEntry", b =>
|
|||
|
{
|
|||
|
b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
|
|||
|
.WithMany("ShopEntries")
|
|||
|
.HasForeignKey("GuildConfigId");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ShopEntryItem", b =>
|
|||
|
{
|
|||
|
b.HasOne("NadekoBot.Core.Services.Database.Models.ShopEntry")
|
|||
|
.WithMany("Items")
|
|||
|
.HasForeignKey("ShopEntryId");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.SlowmodeIgnoredRole", b =>
|
|||
|
{
|
|||
|
b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
|
|||
|
.WithMany("SlowmodeIgnoredRoles")
|
|||
|
.HasForeignKey("GuildConfigId");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.SlowmodeIgnoredUser", b =>
|
|||
|
{
|
|||
|
b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
|
|||
|
.WithMany("SlowmodeIgnoredUsers")
|
|||
|
.HasForeignKey("GuildConfigId");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.StartupCommand", b =>
|
|||
|
{
|
|||
|
b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
|
|||
|
.WithMany("StartupCommands")
|
|||
|
.HasForeignKey("BotConfigId");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.StreamRoleBlacklistedUser", b =>
|
|||
|
{
|
|||
|
b.HasOne("NadekoBot.Core.Services.Database.Models.StreamRoleSettings")
|
|||
|
.WithMany("Blacklist")
|
|||
|
.HasForeignKey("StreamRoleSettingsId");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.StreamRoleSettings", b =>
|
|||
|
{
|
|||
|
b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig", "GuildConfig")
|
|||
|
.WithOne("StreamRole")
|
|||
|
.HasForeignKey("NadekoBot.Core.Services.Database.Models.StreamRoleSettings", "GuildConfigId")
|
|||
|
.OnDelete(DeleteBehavior.Cascade);
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.StreamRoleWhitelistedUser", b =>
|
|||
|
{
|
|||
|
b.HasOne("NadekoBot.Core.Services.Database.Models.StreamRoleSettings")
|
|||
|
.WithMany("Whitelist")
|
|||
|
.HasForeignKey("StreamRoleSettingsId");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.UnmuteTimer", b =>
|
|||
|
{
|
|||
|
b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
|
|||
|
.WithMany("UnmuteTimers")
|
|||
|
.HasForeignKey("GuildConfigId");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.VcRoleInfo", b =>
|
|||
|
{
|
|||
|
b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
|
|||
|
.WithMany("VcRoleInfos")
|
|||
|
.HasForeignKey("GuildConfigId");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WaifuInfo", b =>
|
|||
|
{
|
|||
|
b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "Affinity")
|
|||
|
.WithMany()
|
|||
|
.HasForeignKey("AffinityId");
|
|||
|
|
|||
|
b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "Claimer")
|
|||
|
.WithMany()
|
|||
|
.HasForeignKey("ClaimerId");
|
|||
|
|
|||
|
b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "Waifu")
|
|||
|
.WithOne()
|
|||
|
.HasForeignKey("NadekoBot.Core.Services.Database.Models.WaifuInfo", "WaifuId")
|
|||
|
.OnDelete(DeleteBehavior.Cascade);
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WaifuItem", b =>
|
|||
|
{
|
|||
|
b.HasOne("NadekoBot.Core.Services.Database.Models.WaifuInfo")
|
|||
|
.WithMany("Items")
|
|||
|
.HasForeignKey("WaifuInfoId");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WaifuUpdate", b =>
|
|||
|
{
|
|||
|
b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "New")
|
|||
|
.WithMany()
|
|||
|
.HasForeignKey("NewId");
|
|||
|
|
|||
|
b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "Old")
|
|||
|
.WithMany()
|
|||
|
.HasForeignKey("OldId");
|
|||
|
|
|||
|
b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "User")
|
|||
|
.WithMany()
|
|||
|
.HasForeignKey("UserId")
|
|||
|
.OnDelete(DeleteBehavior.Cascade);
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WarningPunishment", b =>
|
|||
|
{
|
|||
|
b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
|
|||
|
.WithMany("WarnPunishments")
|
|||
|
.HasForeignKey("GuildConfigId");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.XpRoleReward", b =>
|
|||
|
{
|
|||
|
b.HasOne("NadekoBot.Core.Services.Database.Models.XpSettings", "XpSettings")
|
|||
|
.WithMany("RoleRewards")
|
|||
|
.HasForeignKey("XpSettingsId")
|
|||
|
.OnDelete(DeleteBehavior.Cascade);
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.XpSettings", b =>
|
|||
|
{
|
|||
|
b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig", "GuildConfig")
|
|||
|
.WithOne("XpSettings")
|
|||
|
.HasForeignKey("NadekoBot.Core.Services.Database.Models.XpSettings", "GuildConfigId")
|
|||
|
.OnDelete(DeleteBehavior.Cascade);
|
|||
|
});
|
|||
|
#pragma warning restore 612, 618
|
|||
|
}
|
|||
|
}
|
|||
|
}
|