2017-05-30 04:54:59 +00:00
|
|
|
|
using System;
|
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Metadata;
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
2017-10-13 04:14:54 +00:00
|
|
|
|
using NadekoBot.Core.Services.Database;
|
|
|
|
|
using NadekoBot.Core.Services.Database.Models;
|
2017-05-30 04:54:59 +00:00
|
|
|
|
|
|
|
|
|
namespace NadekoBot.Migrations
|
|
|
|
|
{
|
|
|
|
|
[DbContext(typeof(NadekoContext))]
|
|
|
|
|
[Migration("20170530033406_guild-prefixes")]
|
|
|
|
|
partial class guildprefixes
|
|
|
|
|
{
|
|
|
|
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
|
|
|
|
{
|
|
|
|
|
modelBuilder
|
|
|
|
|
.HasAnnotation("ProductVersion", "1.1.1");
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiRaidSetting", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
|
|
|
|
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");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamIgnore", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
|
|
|
|
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");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamSetting", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd();
|
|
|
|
|
|
|
|
|
|
b.Property<int>("Action");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime?>("DateAdded");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("GuildConfigId");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("MessageThreshold");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("GuildConfigId")
|
|
|
|
|
.IsUnique();
|
|
|
|
|
|
|
|
|
|
b.ToTable("AntiSpamSetting");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlacklistItem", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
|
|
|
|
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");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlockedCmdOrMdl", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
|
|
|
|
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");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BotConfig", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
|
|
|
|
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<float>("CurrencyGenerationChance");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("CurrencyGenerationCooldown");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("CurrencyName");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("CurrencyPluralName");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("CurrencySign");
|
|
|
|
|
|
|
|
|
|
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.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.ToTable("BotConfig");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashCaller", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd();
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("BaseDestroyed");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("CallUser");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("ClashWarId");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime?>("DateAdded");
|
|
|
|
|
|
|
|
|
|
b.Property<int?>("SequenceNumber");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("Stars");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime>("TimeAdded");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("ClashWarId");
|
|
|
|
|
|
|
|
|
|
b.ToTable("ClashCallers");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashWar", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd();
|
|
|
|
|
|
|
|
|
|
b.Property<ulong>("ChannelId");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime?>("DateAdded");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("EnemyClan");
|
|
|
|
|
|
|
|
|
|
b.Property<ulong>("GuildId");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("Size");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime>("StartedAt");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("WarState");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.ToTable("ClashOfClans");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandAlias", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
|
|
|
|
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");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandCooldown", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
|
|
|
|
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");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandPrice", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
|
|
|
|
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");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ConvertUnit", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd();
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime?>("DateAdded");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("InternalTrigger");
|
|
|
|
|
|
|
|
|
|
b.Property<decimal>("Modifier");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("UnitType");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.ToTable("ConversionUnits");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Currency", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
|
|
|
|
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");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CurrencyTransaction", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
|
|
|
|
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");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CustomReaction", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd();
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("AutoDeleteTrigger");
|
|
|
|
|
|
|
|
|
|
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");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.DiscordUser", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd();
|
|
|
|
|
|
|
|
|
|
b.Property<string>("AvatarId");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime?>("DateAdded");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Discriminator");
|
|
|
|
|
|
|
|
|
|
b.Property<ulong>("UserId");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Username");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.HasAlternateKey("UserId");
|
|
|
|
|
|
|
|
|
|
b.ToTable("DiscordUser");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Donator", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
|
|
|
|
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");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
|
|
|
|
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");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
|
|
|
|
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");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilteredWord", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
|
|
|
|
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");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FollowedStream", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
|
|
|
|
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");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GCChannelId", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
|
|
|
|
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");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildConfig", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
|
|
|
|
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>("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");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildRepeater", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
|
|
|
|
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.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("GuildConfigId");
|
|
|
|
|
|
|
|
|
|
b.ToTable("GuildRepeater");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredLogChannel", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
|
|
|
|
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");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
|
|
|
|
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");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.LogSetting", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
|
|
|
|
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");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ModulePrefix", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd();
|
|
|
|
|
|
|
|
|
|
b.Property<int?>("BotConfigId");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime?>("DateAdded");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ModuleName");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Prefix");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("BotConfigId");
|
|
|
|
|
|
|
|
|
|
b.ToTable("ModulePrefixes");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MusicPlaylist", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
|
|
|
|
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");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MutedUserId", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
|
|
|
|
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");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
|
|
|
|
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");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permissionv2", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
|
|
|
|
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");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlayingStatus", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
|
|
|
|
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");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
|
|
|
|
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");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Quote", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
|
|
|
|
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");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
|
|
|
|
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");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Reminder", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
|
|
|
|
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");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RewardedUser", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
|
|
|
|
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");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.SelfAssignedRole", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd();
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime?>("DateAdded");
|
|
|
|
|
|
|
|
|
|
b.Property<ulong>("GuildId");
|
|
|
|
|
|
|
|
|
|
b.Property<ulong>("RoleId");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("GuildId", "RoleId")
|
|
|
|
|
.IsUnique();
|
|
|
|
|
|
|
|
|
|
b.ToTable("SelfAssignableRoles");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ShopEntry", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
|
|
|
|
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");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ShopEntryItem", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
|
|
|
|
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");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.SlowmodeIgnoredRole", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
|
|
|
|
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");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.SlowmodeIgnoredUser", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
|
|
|
|
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");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.StartupCommand", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
|
|
|
|
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");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.UnmuteTimer", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
|
|
|
|
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");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.UserPokeTypes", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
|
|
|
|
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");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.VcRoleInfo", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
|
|
|
|
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");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WaifuInfo", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
|
|
|
|
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");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WaifuUpdate", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
|
|
|
|
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");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Warning", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
|
|
|
|
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");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WarningPunishment", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
|
|
|
|
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");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiRaidSetting", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig", "GuildConfig")
|
2017-05-30 04:54:59 +00:00
|
|
|
|
.WithOne("AntiRaidSetting")
|
2017-10-13 04:14:54 +00:00
|
|
|
|
.HasForeignKey("NadekoBot.Core.Services.Database.Models.AntiRaidSetting", "GuildConfigId")
|
2017-05-30 04:54:59 +00:00
|
|
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamIgnore", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.AntiSpamSetting")
|
2017-05-30 04:54:59 +00:00
|
|
|
|
.WithMany("IgnoredChannels")
|
|
|
|
|
.HasForeignKey("AntiSpamSettingId");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamSetting", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig", "GuildConfig")
|
2017-05-30 04:54:59 +00:00
|
|
|
|
.WithOne("AntiSpamSetting")
|
2017-10-13 04:14:54 +00:00
|
|
|
|
.HasForeignKey("NadekoBot.Core.Services.Database.Models.AntiSpamSetting", "GuildConfigId")
|
2017-05-30 04:54:59 +00:00
|
|
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlacklistItem", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
|
2017-05-30 04:54:59 +00:00
|
|
|
|
.WithMany("Blacklist")
|
|
|
|
|
.HasForeignKey("BotConfigId");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlockedCmdOrMdl", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
|
2017-05-30 04:54:59 +00:00
|
|
|
|
.WithMany("BlockedCommands")
|
|
|
|
|
.HasForeignKey("BotConfigId");
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
|
2017-05-30 04:54:59 +00:00
|
|
|
|
.WithMany("BlockedModules")
|
|
|
|
|
.HasForeignKey("BotConfigId1");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashCaller", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.ClashWar", "ClashWar")
|
2017-05-30 04:54:59 +00:00
|
|
|
|
.WithMany("Bases")
|
|
|
|
|
.HasForeignKey("ClashWarId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandAlias", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
|
2017-05-30 04:54:59 +00:00
|
|
|
|
.WithMany("CommandAliases")
|
|
|
|
|
.HasForeignKey("GuildConfigId");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandCooldown", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
|
2017-05-30 04:54:59 +00:00
|
|
|
|
.WithMany("CommandCooldowns")
|
|
|
|
|
.HasForeignKey("GuildConfigId");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandPrice", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
|
2017-05-30 04:54:59 +00:00
|
|
|
|
.WithMany("CommandPrices")
|
|
|
|
|
.HasForeignKey("BotConfigId");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
|
2017-05-30 04:54:59 +00:00
|
|
|
|
.WithMany("EightBallResponses")
|
|
|
|
|
.HasForeignKey("BotConfigId");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
|
2017-05-30 04:54:59 +00:00
|
|
|
|
.WithMany("FilterInvitesChannelIds")
|
|
|
|
|
.HasForeignKey("GuildConfigId");
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
|
2017-05-30 04:54:59 +00:00
|
|
|
|
.WithMany("FilterWordsChannelIds")
|
|
|
|
|
.HasForeignKey("GuildConfigId1");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilteredWord", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
|
2017-05-30 04:54:59 +00:00
|
|
|
|
.WithMany("FilteredWords")
|
|
|
|
|
.HasForeignKey("GuildConfigId");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FollowedStream", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
|
2017-05-30 04:54:59 +00:00
|
|
|
|
.WithMany("FollowedStreams")
|
|
|
|
|
.HasForeignKey("GuildConfigId");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GCChannelId", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
|
2017-05-30 04:54:59 +00:00
|
|
|
|
.WithMany("GenerateCurrencyChannelIds")
|
|
|
|
|
.HasForeignKey("GuildConfigId");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildConfig", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
|
2017-05-30 04:54:59 +00:00
|
|
|
|
.WithMany()
|
|
|
|
|
.HasForeignKey("LogSettingId");
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.Permission", "RootPermission")
|
2017-05-30 04:54:59 +00:00
|
|
|
|
.WithMany()
|
|
|
|
|
.HasForeignKey("RootPermissionId");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildRepeater", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
|
2017-05-30 04:54:59 +00:00
|
|
|
|
.WithMany("GuildRepeaters")
|
|
|
|
|
.HasForeignKey("GuildConfigId");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredLogChannel", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
|
2017-05-30 04:54:59 +00:00
|
|
|
|
.WithMany("IgnoredChannels")
|
|
|
|
|
.HasForeignKey("LogSettingId");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
|
2017-05-30 04:54:59 +00:00
|
|
|
|
.WithMany("IgnoredVoicePresenceChannelIds")
|
|
|
|
|
.HasForeignKey("LogSettingId");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ModulePrefix", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
|
2017-05-30 04:54:59 +00:00
|
|
|
|
.WithMany("ModulePrefixes")
|
|
|
|
|
.HasForeignKey("BotConfigId");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MutedUserId", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
|
2017-05-30 04:54:59 +00:00
|
|
|
|
.WithMany("MutedUsers")
|
|
|
|
|
.HasForeignKey("GuildConfigId");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.Permission", "Next")
|
2017-05-30 04:54:59 +00:00
|
|
|
|
.WithOne("Previous")
|
2017-10-13 04:14:54 +00:00
|
|
|
|
.HasForeignKey("NadekoBot.Core.Services.Database.Models.Permission", "NextId");
|
2017-05-30 04:54:59 +00:00
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permissionv2", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
|
2017-05-30 04:54:59 +00:00
|
|
|
|
.WithMany("Permissions")
|
|
|
|
|
.HasForeignKey("GuildConfigId");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlayingStatus", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
|
2017-05-30 04:54:59 +00:00
|
|
|
|
.WithMany("RotatingStatusMessages")
|
|
|
|
|
.HasForeignKey("BotConfigId");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.MusicPlaylist")
|
2017-05-30 04:54:59 +00:00
|
|
|
|
.WithMany("Songs")
|
|
|
|
|
.HasForeignKey("MusicPlaylistId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
|
2017-05-30 04:54:59 +00:00
|
|
|
|
.WithMany("RaceAnimals")
|
|
|
|
|
.HasForeignKey("BotConfigId");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ShopEntry", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
|
2017-05-30 04:54:59 +00:00
|
|
|
|
.WithMany("ShopEntries")
|
|
|
|
|
.HasForeignKey("GuildConfigId");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ShopEntryItem", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.ShopEntry")
|
2017-05-30 04:54:59 +00:00
|
|
|
|
.WithMany("Items")
|
|
|
|
|
.HasForeignKey("ShopEntryId");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.SlowmodeIgnoredRole", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
|
2017-05-30 04:54:59 +00:00
|
|
|
|
.WithMany("SlowmodeIgnoredRoles")
|
|
|
|
|
.HasForeignKey("GuildConfigId");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.SlowmodeIgnoredUser", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
|
2017-05-30 04:54:59 +00:00
|
|
|
|
.WithMany("SlowmodeIgnoredUsers")
|
|
|
|
|
.HasForeignKey("GuildConfigId");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.StartupCommand", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
|
2017-05-30 04:54:59 +00:00
|
|
|
|
.WithMany("StartupCommands")
|
|
|
|
|
.HasForeignKey("BotConfigId");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.UnmuteTimer", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
|
2017-05-30 04:54:59 +00:00
|
|
|
|
.WithMany("UnmuteTimers")
|
|
|
|
|
.HasForeignKey("GuildConfigId");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.VcRoleInfo", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
|
2017-05-30 04:54:59 +00:00
|
|
|
|
.WithMany("VcRoleInfos")
|
|
|
|
|
.HasForeignKey("GuildConfigId");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WaifuInfo", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "Affinity")
|
2017-05-30 04:54:59 +00:00
|
|
|
|
.WithMany()
|
|
|
|
|
.HasForeignKey("AffinityId");
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "Claimer")
|
2017-05-30 04:54:59 +00:00
|
|
|
|
.WithMany()
|
|
|
|
|
.HasForeignKey("ClaimerId");
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "Waifu")
|
2017-05-30 04:54:59 +00:00
|
|
|
|
.WithOne()
|
2017-10-13 04:14:54 +00:00
|
|
|
|
.HasForeignKey("NadekoBot.Core.Services.Database.Models.WaifuInfo", "WaifuId")
|
2017-05-30 04:54:59 +00:00
|
|
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WaifuUpdate", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "New")
|
2017-05-30 04:54:59 +00:00
|
|
|
|
.WithMany()
|
|
|
|
|
.HasForeignKey("NewId");
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "Old")
|
2017-05-30 04:54:59 +00:00
|
|
|
|
.WithMany()
|
|
|
|
|
.HasForeignKey("OldId");
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "User")
|
2017-05-30 04:54:59 +00:00
|
|
|
|
.WithMany()
|
|
|
|
|
.HasForeignKey("UserId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WarningPunishment", b =>
|
2017-05-30 04:54:59 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
|
2017-05-30 04:54:59 +00:00
|
|
|
|
.WithMany("WarnPunishments")
|
|
|
|
|
.HasForeignKey("GuildConfigId");
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|