2017-09-22 04:59:57 +00:00
|
|
|
|
// <auto-generated />
|
2016-08-24 01:32:48 +00:00
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Metadata;
|
2017-07-21 01:04:44 +00:00
|
|
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
2017-09-22 04:59:57 +00:00
|
|
|
|
using Microsoft.EntityFrameworkCore.Storage;
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Storage.Internal;
|
2017-10-13 04:14:54 +00:00
|
|
|
|
using NadekoBot.Core.Services.Database;
|
|
|
|
|
using NadekoBot.Core.Services.Database.Models;
|
2017-09-22 04:59:57 +00:00
|
|
|
|
using System;
|
2016-08-24 01:32:48 +00:00
|
|
|
|
|
|
|
|
|
namespace NadekoBot.Migrations
|
|
|
|
|
{
|
2016-11-15 11:01:02 +00:00
|
|
|
|
[DbContext(typeof(NadekoContext))]
|
2016-08-24 01:32:48 +00:00
|
|
|
|
partial class NadekoSqliteContextModelSnapshot : ModelSnapshot
|
|
|
|
|
{
|
|
|
|
|
protected override void BuildModel(ModelBuilder modelBuilder)
|
|
|
|
|
{
|
2017-09-22 04:59:57 +00:00
|
|
|
|
#pragma warning disable 612, 618
|
2016-08-24 01:32:48 +00:00
|
|
|
|
modelBuilder
|
2017-09-22 04:59:57 +00:00
|
|
|
|
.HasAnnotation("ProductVersion", "2.0.0-rtm-26452");
|
2016-08-24 01:32:48 +00:00
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiRaidSetting", b =>
|
2017-01-10 19:37:41 +00:00
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd();
|
|
|
|
|
|
|
|
|
|
b.Property<int>("Action");
|
|
|
|
|
|
2017-02-22 17:16:05 +00:00
|
|
|
|
b.Property<DateTime?>("DateAdded");
|
|
|
|
|
|
2017-01-10 19:37:41 +00:00
|
|
|
|
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-01-10 19:37:41 +00:00
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd();
|
|
|
|
|
|
|
|
|
|
b.Property<int?>("AntiSpamSettingId");
|
|
|
|
|
|
|
|
|
|
b.Property<ulong>("ChannelId");
|
|
|
|
|
|
2017-02-22 17:16:05 +00:00
|
|
|
|
b.Property<DateTime?>("DateAdded");
|
|
|
|
|
|
2017-01-10 19:37:41 +00:00
|
|
|
|
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-01-10 19:37:41 +00:00
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd();
|
|
|
|
|
|
|
|
|
|
b.Property<int>("Action");
|
|
|
|
|
|
2017-02-22 17:16:05 +00:00
|
|
|
|
b.Property<DateTime?>("DateAdded");
|
|
|
|
|
|
2017-01-10 19:37:41 +00:00
|
|
|
|
b.Property<int>("GuildConfigId");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("MessageThreshold");
|
|
|
|
|
|
2017-08-15 23:12:18 +00:00
|
|
|
|
b.Property<int>("MuteTime");
|
|
|
|
|
|
2017-01-10 19:37:41 +00:00
|
|
|
|
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 =>
|
2016-08-28 00:46:36 +00:00
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd();
|
|
|
|
|
|
|
|
|
|
b.Property<int?>("BotConfigId");
|
|
|
|
|
|
2017-02-22 17:16:05 +00:00
|
|
|
|
b.Property<DateTime?>("DateAdded");
|
|
|
|
|
|
2016-08-28 00:46:36 +00:00
|
|
|
|
b.Property<ulong>("ItemId");
|
|
|
|
|
|
2016-10-03 02:19:14 +00:00
|
|
|
|
b.Property<int>("Type");
|
|
|
|
|
|
2016-08-28 00:46:36 +00:00
|
|
|
|
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-04-09 20:28:42 +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 =>
|
2016-08-28 00:46:36 +00:00
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd();
|
|
|
|
|
|
2017-01-12 19:19:56 +00:00
|
|
|
|
b.Property<float>("BetflipMultiplier");
|
|
|
|
|
|
|
|
|
|
b.Property<float>("Betroll100Multiplier");
|
|
|
|
|
|
|
|
|
|
b.Property<float>("Betroll67Multiplier");
|
|
|
|
|
|
|
|
|
|
b.Property<float>("Betroll91Multiplier");
|
|
|
|
|
|
2016-08-28 00:46:36 +00:00
|
|
|
|
b.Property<ulong>("BufferSize");
|
|
|
|
|
|
2017-01-12 19:19:56 +00:00
|
|
|
|
b.Property<int>("CurrencyDropAmount");
|
|
|
|
|
|
2017-06-13 23:21:31 +00:00
|
|
|
|
b.Property<int?>("CurrencyDropAmountMax");
|
|
|
|
|
|
2016-09-08 20:28:44 +00:00
|
|
|
|
b.Property<float>("CurrencyGenerationChance");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("CurrencyGenerationCooldown");
|
|
|
|
|
|
2016-08-28 00:46:36 +00:00
|
|
|
|
b.Property<string>("CurrencyName");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("CurrencyPluralName");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("CurrencySign");
|
|
|
|
|
|
2017-06-16 15:47:02 +00:00
|
|
|
|
b.Property<bool>("CustomReactionsStartWith");
|
|
|
|
|
|
2016-10-05 03:09:44 +00:00
|
|
|
|
b.Property<string>("DMHelpString");
|
|
|
|
|
|
2017-02-22 17:16:05 +00:00
|
|
|
|
b.Property<DateTime?>("DateAdded");
|
|
|
|
|
|
2017-05-30 04:54:59 +00:00
|
|
|
|
b.Property<string>("DefaultPrefix");
|
|
|
|
|
|
2017-01-18 20:56:31 +00:00
|
|
|
|
b.Property<string>("ErrorColor");
|
|
|
|
|
|
2016-08-28 00:46:36 +00:00
|
|
|
|
b.Property<bool>("ForwardMessages");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("ForwardToAllOwners");
|
|
|
|
|
|
2016-10-04 23:57:35 +00:00
|
|
|
|
b.Property<string>("HelpString");
|
|
|
|
|
|
2017-02-13 16:45:29 +00:00
|
|
|
|
b.Property<string>("Locale");
|
|
|
|
|
|
2016-10-04 23:57:35 +00:00
|
|
|
|
b.Property<int>("MigrationVersion");
|
|
|
|
|
|
2017-01-12 19:19:56 +00:00
|
|
|
|
b.Property<int>("MinimumBetAmount");
|
|
|
|
|
|
2017-01-18 20:56:31 +00:00
|
|
|
|
b.Property<string>("OkColor");
|
|
|
|
|
|
2017-05-29 04:13:22 +00:00
|
|
|
|
b.Property<int>("PermissionVersion");
|
|
|
|
|
|
2016-08-28 00:46:36 +00:00
|
|
|
|
b.Property<string>("RemindMessageFormat");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("RotatingStatuses");
|
|
|
|
|
|
2017-10-26 09:31:44 +00:00
|
|
|
|
b.Property<int>("TimelyCurrency");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("TimelyCurrencyPeriod");
|
|
|
|
|
|
2017-01-12 19:19:56 +00:00
|
|
|
|
b.Property<int>("TriviaCurrencyReward");
|
|
|
|
|
|
2017-09-10 01:52:34 +00:00
|
|
|
|
b.Property<int>("XpMinutesTimeout")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasDefaultValue(5);
|
2017-08-22 03:48:45 +00:00
|
|
|
|
|
2017-09-10 01:52:34 +00:00
|
|
|
|
b.Property<int>("XpPerMessage")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasDefaultValue(3);
|
2017-08-22 03:48:45 +00:00
|
|
|
|
|
2016-08-28 00:46:36 +00:00
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.ToTable("BotConfig");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClubApplicants", b =>
|
2017-09-10 01:52:34 +00:00
|
|
|
|
{
|
|
|
|
|
b.Property<int>("ClubId");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("UserId");
|
|
|
|
|
|
|
|
|
|
b.HasKey("ClubId", "UserId");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
|
|
|
|
|
|
b.ToTable("ClubApplicants");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClubBans", b =>
|
2017-09-10 01:52:34 +00:00
|
|
|
|
{
|
|
|
|
|
b.Property<int>("ClubId");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("UserId");
|
|
|
|
|
|
|
|
|
|
b.HasKey("ClubId", "UserId");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
|
|
|
|
|
|
b.ToTable("ClubBans");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClubInfo", b =>
|
2017-09-10 01:52:34 +00:00
|
|
|
|
{
|
|
|
|
|
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");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandAlias", b =>
|
2017-03-20 09:53:04 +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 =>
|
2016-10-07 22:23:41 +00:00
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd();
|
|
|
|
|
|
|
|
|
|
b.Property<string>("CommandName");
|
|
|
|
|
|
2017-02-22 17:16:05 +00:00
|
|
|
|
b.Property<DateTime?>("DateAdded");
|
|
|
|
|
|
2016-10-07 22:23:41 +00:00
|
|
|
|
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-01-12 19:19:56 +00:00
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd();
|
|
|
|
|
|
|
|
|
|
b.Property<int?>("BotConfigId");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("CommandName");
|
|
|
|
|
|
2017-02-22 17:16:05 +00:00
|
|
|
|
b.Property<DateTime?>("DateAdded");
|
|
|
|
|
|
2017-01-12 19:19:56 +00:00
|
|
|
|
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.Currency", b =>
|
2016-08-30 01:17:16 +00:00
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd();
|
|
|
|
|
|
|
|
|
|
b.Property<long>("Amount");
|
|
|
|
|
|
2017-02-22 17:16:05 +00:00
|
|
|
|
b.Property<DateTime?>("DateAdded");
|
|
|
|
|
|
2016-08-30 01:17:16 +00:00
|
|
|
|
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 =>
|
2016-10-15 00:58:15 +00:00
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd();
|
|
|
|
|
|
|
|
|
|
b.Property<long>("Amount");
|
|
|
|
|
|
2017-02-22 17:16:05 +00:00
|
|
|
|
b.Property<DateTime?>("DateAdded");
|
|
|
|
|
|
2016-10-15 00:58:15 +00:00
|
|
|
|
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 =>
|
2016-10-08 02:35:39 +00:00
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd();
|
|
|
|
|
|
2017-03-18 19:23:26 +00:00
|
|
|
|
b.Property<bool>("AutoDeleteTrigger");
|
|
|
|
|
|
2017-07-22 16:12:08 +00:00
|
|
|
|
b.Property<bool>("ContainsAnywhere");
|
|
|
|
|
|
2017-02-22 17:16:05 +00:00
|
|
|
|
b.Property<DateTime?>("DateAdded");
|
|
|
|
|
|
2017-03-18 19:23:26 +00:00
|
|
|
|
b.Property<bool>("DmResponse");
|
|
|
|
|
|
2016-10-08 02:35:39 +00:00
|
|
|
|
b.Property<ulong?>("GuildId");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("IsRegex");
|
|
|
|
|
|
2016-10-09 04:38:46 +00:00
|
|
|
|
b.Property<bool>("OwnerOnly");
|
|
|
|
|
|
2016-10-08 02:35:39 +00:00
|
|
|
|
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-01-22 20:06:10 +00:00
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd();
|
|
|
|
|
|
|
|
|
|
b.Property<string>("AvatarId");
|
|
|
|
|
|
2017-09-10 01:52:34 +00:00
|
|
|
|
b.Property<int?>("ClubId");
|
|
|
|
|
|
2017-02-22 17:16:05 +00:00
|
|
|
|
b.Property<DateTime?>("DateAdded");
|
|
|
|
|
|
2017-01-22 20:06:10 +00:00
|
|
|
|
b.Property<string>("Discriminator");
|
|
|
|
|
|
2017-09-15 20:17:31 +00:00
|
|
|
|
b.Property<bool>("IsClubAdmin");
|
|
|
|
|
|
2017-09-10 01:52:34 +00:00
|
|
|
|
b.Property<DateTime>("LastLevelUp")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
2017-09-22 04:59:57 +00:00
|
|
|
|
.HasDefaultValue(new DateTime(2017, 9, 21, 20, 53, 13, 305, DateTimeKind.Local));
|
2017-09-11 20:43:32 +00:00
|
|
|
|
|
|
|
|
|
b.Property<DateTime>("LastXpGain");
|
2017-09-10 01:52:34 +00:00
|
|
|
|
|
|
|
|
|
b.Property<int>("NotifyOnLevelUp");
|
|
|
|
|
|
2017-09-13 03:10:26 +00:00
|
|
|
|
b.Property<int>("TotalXp");
|
|
|
|
|
|
2017-01-22 20:06:10 +00:00
|
|
|
|
b.Property<ulong>("UserId");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Username");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.HasAlternateKey("UserId");
|
|
|
|
|
|
2017-09-10 01:52:34 +00:00
|
|
|
|
b.HasIndex("ClubId");
|
|
|
|
|
|
2017-01-22 20:06:10 +00:00
|
|
|
|
b.ToTable("DiscordUser");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Donator", b =>
|
2016-08-24 19:38:17 +00:00
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd();
|
|
|
|
|
|
2016-08-25 13:19:28 +00:00
|
|
|
|
b.Property<int>("Amount");
|
2016-08-24 22:39:02 +00:00
|
|
|
|
|
2017-02-22 17:16:05 +00:00
|
|
|
|
b.Property<DateTime?>("DateAdded");
|
|
|
|
|
|
2016-08-25 13:19:28 +00:00
|
|
|
|
b.Property<string>("Name");
|
2016-08-24 19:38:17 +00:00
|
|
|
|
|
2016-08-25 13:19:28 +00:00
|
|
|
|
b.Property<ulong>("UserId");
|
2016-08-24 19:38:17 +00:00
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
2016-08-25 13:19:28 +00:00
|
|
|
|
b.HasIndex("UserId")
|
2016-08-24 19:38:17 +00:00
|
|
|
|
.IsUnique();
|
|
|
|
|
|
2016-08-25 13:19:28 +00:00
|
|
|
|
b.ToTable("Donators");
|
2016-08-24 19:38:17 +00:00
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
|
2016-08-28 00:46:36 +00:00
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd();
|
|
|
|
|
|
|
|
|
|
b.Property<int?>("BotConfigId");
|
|
|
|
|
|
2017-02-22 17:16:05 +00:00
|
|
|
|
b.Property<DateTime?>("DateAdded");
|
|
|
|
|
|
2016-08-28 00:46:36 +00:00
|
|
|
|
b.Property<string>("Text");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("BotConfigId");
|
|
|
|
|
|
2016-09-10 19:40:25 +00:00
|
|
|
|
b.ToTable("EightBallResponses");
|
2016-08-28 00:46:36 +00:00
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ExcludedItem", b =>
|
2017-08-22 03:48:45 +00:00
|
|
|
|
{
|
|
|
|
|
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");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FeedSub", b =>
|
2017-09-22 04:59:57 +00:00
|
|
|
|
{
|
|
|
|
|
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");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
|
2016-10-03 17:21:05 +00:00
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd();
|
|
|
|
|
|
|
|
|
|
b.Property<ulong>("ChannelId");
|
|
|
|
|
|
2017-02-22 17:16:05 +00:00
|
|
|
|
b.Property<DateTime?>("DateAdded");
|
|
|
|
|
|
2016-10-03 17:21:05 +00:00
|
|
|
|
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 =>
|
2016-10-03 17:21:05 +00:00
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd();
|
|
|
|
|
|
2017-02-22 17:16:05 +00:00
|
|
|
|
b.Property<DateTime?>("DateAdded");
|
|
|
|
|
|
2016-10-03 17:21:05 +00:00
|
|
|
|
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 =>
|
2016-09-01 00:19:29 +00:00
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd();
|
|
|
|
|
|
|
|
|
|
b.Property<ulong>("ChannelId");
|
|
|
|
|
|
2017-02-22 17:16:05 +00:00
|
|
|
|
b.Property<DateTime?>("DateAdded");
|
|
|
|
|
|
2016-09-01 00:19:29 +00:00
|
|
|
|
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 =>
|
2016-10-11 03:27:36 +00:00
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd();
|
|
|
|
|
|
|
|
|
|
b.Property<ulong>("ChannelId");
|
|
|
|
|
|
2017-02-22 17:16:05 +00:00
|
|
|
|
b.Property<DateTime?>("DateAdded");
|
|
|
|
|
|
2016-10-11 03:27:36 +00:00
|
|
|
|
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 =>
|
2016-08-24 19:38:17 +00:00
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd();
|
|
|
|
|
|
2016-08-25 13:19:28 +00:00
|
|
|
|
b.Property<ulong>("AutoAssignRoleId");
|
2016-08-24 19:38:17 +00:00
|
|
|
|
|
2017-10-22 15:16:11 +00:00
|
|
|
|
b.Property<bool>("AutoDcFromVc");
|
|
|
|
|
|
2016-08-25 13:19:28 +00:00
|
|
|
|
b.Property<bool>("AutoDeleteByeMessages");
|
2016-08-24 19:38:17 +00:00
|
|
|
|
|
2016-11-22 10:42:26 +00:00
|
|
|
|
b.Property<int>("AutoDeleteByeMessagesTimer");
|
|
|
|
|
|
2016-08-25 13:19:28 +00:00
|
|
|
|
b.Property<bool>("AutoDeleteGreetMessages");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("AutoDeleteGreetMessagesTimer");
|
|
|
|
|
|
2016-08-26 17:25:54 +00:00
|
|
|
|
b.Property<bool>("AutoDeleteSelfAssignedRoleMessages");
|
|
|
|
|
|
2016-08-25 13:19:28 +00:00
|
|
|
|
b.Property<ulong>("ByeMessageChannelId");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ChannelByeMessageText");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ChannelGreetMessageText");
|
|
|
|
|
|
2016-11-07 21:50:00 +00:00
|
|
|
|
b.Property<bool>("CleverbotEnabled");
|
|
|
|
|
|
2017-02-22 17:16:05 +00:00
|
|
|
|
b.Property<DateTime?>("DateAdded");
|
|
|
|
|
|
2016-08-30 01:17:16 +00:00
|
|
|
|
b.Property<float>("DefaultMusicVolume");
|
|
|
|
|
|
2016-08-25 13:19:28 +00:00
|
|
|
|
b.Property<bool>("DeleteMessageOnCommand");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("DmGreetMessageText");
|
|
|
|
|
|
2016-08-26 17:25:54 +00:00
|
|
|
|
b.Property<bool>("ExclusiveSelfAssignedRoles");
|
|
|
|
|
|
2016-10-03 17:21:05 +00:00
|
|
|
|
b.Property<bool>("FilterInvites");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("FilterWords");
|
|
|
|
|
|
2017-04-08 19:03:07 +00:00
|
|
|
|
b.Property<ulong?>("GameVoiceChannel");
|
|
|
|
|
|
2016-08-25 13:19:28 +00:00
|
|
|
|
b.Property<ulong>("GreetMessageChannelId");
|
|
|
|
|
|
|
|
|
|
b.Property<ulong>("GuildId");
|
|
|
|
|
|
2017-02-13 12:56:06 +00:00
|
|
|
|
b.Property<string>("Locale");
|
|
|
|
|
|
2016-09-05 10:27:58 +00:00
|
|
|
|
b.Property<int?>("LogSettingId");
|
|
|
|
|
|
2016-10-19 06:05:23 +00:00
|
|
|
|
b.Property<string>("MuteRoleName");
|
|
|
|
|
|
2016-09-30 00:40:33 +00:00
|
|
|
|
b.Property<string>("PermissionRole");
|
|
|
|
|
|
2017-05-30 04:54:59 +00:00
|
|
|
|
b.Property<string>("Prefix");
|
|
|
|
|
|
2016-09-27 13:26:37 +00:00
|
|
|
|
b.Property<int?>("RootPermissionId");
|
|
|
|
|
|
2016-08-25 13:19:28 +00:00
|
|
|
|
b.Property<bool>("SendChannelByeMessage");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("SendChannelGreetMessage");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("SendDmGreetMessage");
|
2016-08-24 19:38:17 +00:00
|
|
|
|
|
2017-02-13 12:56:06 +00:00
|
|
|
|
b.Property<string>("TimeZoneId");
|
|
|
|
|
|
2017-06-12 12:26:14 +00:00
|
|
|
|
b.Property<bool>("VerboseErrors");
|
|
|
|
|
|
2016-09-30 00:40:33 +00:00
|
|
|
|
b.Property<bool>("VerbosePermissions");
|
|
|
|
|
|
2016-09-01 00:19:29 +00:00
|
|
|
|
b.Property<bool>("VoicePlusTextEnabled");
|
|
|
|
|
|
2017-03-30 01:51:54 +00:00
|
|
|
|
b.Property<bool>("WarningsInitialized");
|
|
|
|
|
|
2016-08-24 19:38:17 +00:00
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
2016-08-25 13:19:28 +00:00
|
|
|
|
b.HasIndex("GuildId")
|
2016-08-24 19:38:17 +00:00
|
|
|
|
.IsUnique();
|
|
|
|
|
|
2016-09-05 10:27:58 +00:00
|
|
|
|
b.HasIndex("LogSettingId");
|
|
|
|
|
|
2016-09-27 13:26:37 +00:00
|
|
|
|
b.HasIndex("RootPermissionId");
|
|
|
|
|
|
2016-08-25 13:19:28 +00:00
|
|
|
|
b.ToTable("GuildConfigs");
|
2016-08-24 19:38:17 +00:00
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildRepeater", b =>
|
2017-01-10 12:37:35 +00:00
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd();
|
|
|
|
|
|
|
|
|
|
b.Property<ulong>("ChannelId");
|
|
|
|
|
|
2017-02-22 17:16:05 +00:00
|
|
|
|
b.Property<DateTime?>("DateAdded");
|
|
|
|
|
|
2017-01-10 12:37:35 +00:00
|
|
|
|
b.Property<int?>("GuildConfigId");
|
|
|
|
|
|
|
|
|
|
b.Property<ulong>("GuildId");
|
|
|
|
|
|
|
|
|
|
b.Property<TimeSpan>("Interval");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Message");
|
|
|
|
|
|
2017-06-13 00:40:41 +00:00
|
|
|
|
b.Property<TimeSpan?>("StartTimeOfDay");
|
|
|
|
|
|
2017-01-10 12:37:35 +00:00
|
|
|
|
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 =>
|
2016-09-05 10:27:58 +00:00
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd();
|
|
|
|
|
|
|
|
|
|
b.Property<ulong>("ChannelId");
|
|
|
|
|
|
2017-02-22 17:16:05 +00:00
|
|
|
|
b.Property<DateTime?>("DateAdded");
|
|
|
|
|
|
2016-09-05 10:27:58 +00:00
|
|
|
|
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 =>
|
2016-09-05 10:27:58 +00:00
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd();
|
|
|
|
|
|
|
|
|
|
b.Property<ulong>("ChannelId");
|
|
|
|
|
|
2017-02-22 17:16:05 +00:00
|
|
|
|
b.Property<DateTime?>("DateAdded");
|
|
|
|
|
|
2016-09-05 10:27:58 +00:00
|
|
|
|
b.Property<int?>("LogSettingId");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("LogSettingId");
|
|
|
|
|
|
|
|
|
|
b.ToTable("IgnoredVoicePresenceCHannels");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-15 07:39:46 +00:00
|
|
|
|
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");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.LogSetting", b =>
|
2016-09-05 10:27:58 +00:00
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd();
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("ChannelCreated");
|
|
|
|
|
|
2016-12-12 23:44:52 +00:00
|
|
|
|
b.Property<ulong?>("ChannelCreatedId");
|
2016-09-05 10:27:58 +00:00
|
|
|
|
|
|
|
|
|
b.Property<bool>("ChannelDestroyed");
|
|
|
|
|
|
2016-12-12 23:44:52 +00:00
|
|
|
|
b.Property<ulong?>("ChannelDestroyedId");
|
2016-09-05 10:27:58 +00:00
|
|
|
|
|
|
|
|
|
b.Property<ulong>("ChannelId");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("ChannelUpdated");
|
|
|
|
|
|
2016-12-12 23:44:52 +00:00
|
|
|
|
b.Property<ulong?>("ChannelUpdatedId");
|
2016-09-05 10:27:58 +00:00
|
|
|
|
|
2017-02-22 17:16:05 +00:00
|
|
|
|
b.Property<DateTime?>("DateAdded");
|
|
|
|
|
|
2016-09-05 10:27:58 +00:00
|
|
|
|
b.Property<bool>("IsLogging");
|
|
|
|
|
|
2016-12-12 23:44:52 +00:00
|
|
|
|
b.Property<ulong?>("LogOtherId");
|
2016-09-05 10:27:58 +00:00
|
|
|
|
|
|
|
|
|
b.Property<bool>("LogUserPresence");
|
|
|
|
|
|
2016-12-12 23:44:52 +00:00
|
|
|
|
b.Property<ulong?>("LogUserPresenceId");
|
2016-09-05 10:27:58 +00:00
|
|
|
|
|
|
|
|
|
b.Property<bool>("LogVoicePresence");
|
|
|
|
|
|
2016-12-12 23:44:52 +00:00
|
|
|
|
b.Property<ulong?>("LogVoicePresenceId");
|
2016-09-05 10:27:58 +00:00
|
|
|
|
|
2016-12-12 23:44:52 +00:00
|
|
|
|
b.Property<ulong?>("LogVoicePresenceTTSId");
|
2016-09-05 10:27:58 +00:00
|
|
|
|
|
|
|
|
|
b.Property<bool>("MessageDeleted");
|
|
|
|
|
|
2016-12-12 23:44:52 +00:00
|
|
|
|
b.Property<ulong?>("MessageDeletedId");
|
2016-09-05 10:27:58 +00:00
|
|
|
|
|
|
|
|
|
b.Property<bool>("MessageUpdated");
|
|
|
|
|
|
2016-12-12 23:44:52 +00:00
|
|
|
|
b.Property<ulong?>("MessageUpdatedId");
|
2016-09-05 10:27:58 +00:00
|
|
|
|
|
|
|
|
|
b.Property<bool>("UserBanned");
|
|
|
|
|
|
2016-12-12 23:44:52 +00:00
|
|
|
|
b.Property<ulong?>("UserBannedId");
|
2016-09-05 10:27:58 +00:00
|
|
|
|
|
|
|
|
|
b.Property<bool>("UserJoined");
|
|
|
|
|
|
2016-12-12 23:44:52 +00:00
|
|
|
|
b.Property<ulong?>("UserJoinedId");
|
2016-09-05 10:27:58 +00:00
|
|
|
|
|
|
|
|
|
b.Property<bool>("UserLeft");
|
|
|
|
|
|
2016-12-12 23:44:52 +00:00
|
|
|
|
b.Property<ulong?>("UserLeftId");
|
2016-09-05 10:27:58 +00:00
|
|
|
|
|
2016-12-24 05:21:51 +00:00
|
|
|
|
b.Property<ulong?>("UserMutedId");
|
|
|
|
|
|
2016-09-05 10:27:58 +00:00
|
|
|
|
b.Property<ulong>("UserPresenceChannelId");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("UserUnbanned");
|
|
|
|
|
|
2016-12-12 23:44:52 +00:00
|
|
|
|
b.Property<ulong?>("UserUnbannedId");
|
2016-09-05 10:27:58 +00:00
|
|
|
|
|
|
|
|
|
b.Property<bool>("UserUpdated");
|
|
|
|
|
|
2016-12-12 23:44:52 +00:00
|
|
|
|
b.Property<ulong?>("UserUpdatedId");
|
2016-09-05 10:27:58 +00:00
|
|
|
|
|
|
|
|
|
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.MusicPlaylist", b =>
|
2016-10-01 03:49:05 +00:00
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd();
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Author");
|
|
|
|
|
|
2016-10-01 17:35:11 +00:00
|
|
|
|
b.Property<ulong>("AuthorId");
|
|
|
|
|
|
2017-02-22 17:16:05 +00:00
|
|
|
|
b.Property<DateTime?>("DateAdded");
|
|
|
|
|
|
2016-10-01 03:49:05 +00:00
|
|
|
|
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 =>
|
2016-12-13 03:49:44 +00:00
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd();
|
|
|
|
|
|
2017-02-22 17:16:05 +00:00
|
|
|
|
b.Property<DateTime?>("DateAdded");
|
|
|
|
|
|
2016-12-13 03:49:44 +00:00
|
|
|
|
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.NsfwBlacklitedTag", b =>
|
2017-07-21 01:04:44 +00:00
|
|
|
|
{
|
|
|
|
|
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");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
|
2016-09-20 01:08:28 +00:00
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd();
|
|
|
|
|
|
2017-02-22 17:16:05 +00:00
|
|
|
|
b.Property<DateTime?>("DateAdded");
|
|
|
|
|
|
2016-09-27 13:26:37 +00:00
|
|
|
|
b.Property<int?>("NextId");
|
2016-09-20 01:08:28 +00:00
|
|
|
|
|
2016-09-22 18:53:49 +00:00
|
|
|
|
b.Property<int>("PrimaryTarget");
|
2016-09-20 01:08:28 +00:00
|
|
|
|
|
2016-09-22 18:53:49 +00:00
|
|
|
|
b.Property<ulong>("PrimaryTargetId");
|
2016-09-20 01:08:28 +00:00
|
|
|
|
|
2016-09-22 18:53:49 +00:00
|
|
|
|
b.Property<int>("SecondaryTarget");
|
2016-09-20 01:08:28 +00:00
|
|
|
|
|
2016-09-22 18:53:49 +00:00
|
|
|
|
b.Property<string>("SecondaryTargetName");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("State");
|
2016-09-20 01:08:28 +00:00
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
2016-09-27 13:26:37 +00:00
|
|
|
|
b.HasIndex("NextId")
|
|
|
|
|
.IsUnique();
|
2016-09-20 01:08:28 +00:00
|
|
|
|
|
|
|
|
|
b.ToTable("Permission");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permissionv2", b =>
|
2017-03-08 23:58:58 +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 =>
|
2016-08-27 00:41:41 +00:00
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd();
|
|
|
|
|
|
2016-08-28 00:46:36 +00:00
|
|
|
|
b.Property<int?>("BotConfigId");
|
2016-08-27 00:41:41 +00:00
|
|
|
|
|
2017-02-22 17:16:05 +00:00
|
|
|
|
b.Property<DateTime?>("DateAdded");
|
|
|
|
|
|
2016-08-27 00:41:41 +00:00
|
|
|
|
b.Property<string>("Status");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
2016-08-28 00:46:36 +00:00
|
|
|
|
b.HasIndex("BotConfigId");
|
2016-08-27 00:41:41 +00:00
|
|
|
|
|
|
|
|
|
b.ToTable("PlayingStatus");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
|
2016-10-01 03:49:05 +00:00
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd();
|
|
|
|
|
|
2017-02-22 17:16:05 +00:00
|
|
|
|
b.Property<DateTime?>("DateAdded");
|
|
|
|
|
|
2016-10-01 03:49:05 +00:00
|
|
|
|
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-27 16:39:56 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Poll", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd();
|
|
|
|
|
|
|
|
|
|
b.Property<ulong>("ChannelId");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime?>("DateAdded");
|
|
|
|
|
|
|
|
|
|
b.Property<ulong>("GuildId");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Question");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("GuildId")
|
|
|
|
|
.IsUnique();
|
|
|
|
|
|
|
|
|
|
b.ToTable("Poll");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PollAnswer", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd();
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime?>("DateAdded");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("Index");
|
|
|
|
|
|
|
|
|
|
b.Property<int?>("PollId");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Text");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("PollId");
|
|
|
|
|
|
|
|
|
|
b.ToTable("PollAnswer");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PollVote", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd();
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime?>("DateAdded");
|
|
|
|
|
|
|
|
|
|
b.Property<int?>("PollId");
|
|
|
|
|
|
|
|
|
|
b.Property<ulong>("UserId");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("VoteIndex");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("PollId");
|
|
|
|
|
|
|
|
|
|
b.ToTable("PollVote");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Quote", b =>
|
2016-08-24 01:32:48 +00:00
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd();
|
|
|
|
|
|
2016-08-24 13:29:01 +00:00
|
|
|
|
b.Property<ulong>("AuthorId");
|
2016-08-24 01:32:48 +00:00
|
|
|
|
|
2016-08-24 13:29:01 +00:00
|
|
|
|
b.Property<string>("AuthorName")
|
|
|
|
|
.IsRequired();
|
2016-08-24 01:32:48 +00:00
|
|
|
|
|
2017-02-22 17:16:05 +00:00
|
|
|
|
b.Property<DateTime?>("DateAdded");
|
|
|
|
|
|
2016-08-24 13:29:01 +00:00
|
|
|
|
b.Property<ulong>("GuildId");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Keyword")
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Text")
|
|
|
|
|
.IsRequired();
|
2016-08-24 01:32:48 +00:00
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.ToTable("Quotes");
|
|
|
|
|
});
|
2016-08-25 17:23:47 +00:00
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
|
2016-08-28 00:46:36 +00:00
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd();
|
|
|
|
|
|
|
|
|
|
b.Property<int?>("BotConfigId");
|
|
|
|
|
|
2017-02-22 17:16:05 +00:00
|
|
|
|
b.Property<DateTime?>("DateAdded");
|
|
|
|
|
|
2016-08-28 00:46:36 +00:00
|
|
|
|
b.Property<string>("Icon");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Name");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("BotConfigId");
|
|
|
|
|
|
2016-09-10 19:40:25 +00:00
|
|
|
|
b.ToTable("RaceAnimals");
|
2016-08-28 00:46:36 +00:00
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Reminder", b =>
|
2016-08-25 22:05:29 +00:00
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd();
|
|
|
|
|
|
|
|
|
|
b.Property<ulong>("ChannelId");
|
|
|
|
|
|
2017-02-22 17:16:05 +00:00
|
|
|
|
b.Property<DateTime?>("DateAdded");
|
|
|
|
|
|
2016-08-25 22:05:29 +00:00
|
|
|
|
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-04-01 22:01:02 +00:00
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd();
|
|
|
|
|
|
|
|
|
|
b.Property<int>("AmountRewardedThisMonth");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime?>("DateAdded");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime>("LastReward");
|
|
|
|
|
|
2017-05-02 08:52:15 +00:00
|
|
|
|
b.Property<string>("PatreonUserId");
|
|
|
|
|
|
2017-04-01 22:01:02 +00:00
|
|
|
|
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 =>
|
2016-08-26 17:25:54 +00:00
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd();
|
|
|
|
|
|
2017-02-22 17:16:05 +00:00
|
|
|
|
b.Property<DateTime?>("DateAdded");
|
|
|
|
|
|
2017-10-21 10:13:31 +00:00
|
|
|
|
b.Property<int>("Group")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasDefaultValue(0);
|
|
|
|
|
|
2016-08-26 17:25:54 +00:00
|
|
|
|
b.Property<ulong>("GuildId");
|
|
|
|
|
|
2017-11-07 13:48:39 +00:00
|
|
|
|
b.Property<int>("LevelRequirement");
|
|
|
|
|
|
2016-08-26 17:25:54 +00:00
|
|
|
|
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-04-06 19:00:46 +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-04-06 19:00:46 +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-04-01 19:40:13 +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-04-01 19:40:13 +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-03-31 12:07:18 +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.StreamRoleBlacklistedUser", b =>
|
2017-07-19 08:38:14 +00:00
|
|
|
|
{
|
|
|
|
|
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");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.StreamRoleSettings", b =>
|
2017-07-14 03:00:30 +00:00
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd();
|
|
|
|
|
|
|
|
|
|
b.Property<ulong>("AddRoleId");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime?>("DateAdded");
|
|
|
|
|
|
2017-07-19 08:38:14 +00:00
|
|
|
|
b.Property<bool>("Enabled");
|
|
|
|
|
|
2017-07-14 03:00:30 +00:00
|
|
|
|
b.Property<ulong>("FromRoleId");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("GuildConfigId");
|
|
|
|
|
|
2017-07-19 08:38:14 +00:00
|
|
|
|
b.Property<string>("Keyword");
|
|
|
|
|
|
2017-07-14 03:00:30 +00:00
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("GuildConfigId")
|
|
|
|
|
.IsUnique();
|
|
|
|
|
|
|
|
|
|
b.ToTable("StreamRoleSettings");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.StreamRoleWhitelistedUser", b =>
|
2017-07-19 08:38:14 +00:00
|
|
|
|
{
|
|
|
|
|
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");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.UnmuteTimer", b =>
|
2017-03-10 22:06:22 +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 =>
|
2016-11-28 01:14:29 +00:00
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd();
|
|
|
|
|
|
2017-02-22 17:16:05 +00:00
|
|
|
|
b.Property<DateTime?>("DateAdded");
|
|
|
|
|
|
2016-12-13 03:49:44 +00:00
|
|
|
|
b.Property<ulong>("UserId");
|
2016-11-28 01:14:29 +00:00
|
|
|
|
|
|
|
|
|
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.UserXpStats", b =>
|
2017-08-22 03:48:45 +00:00
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd();
|
|
|
|
|
|
2017-09-10 01:52:34 +00:00
|
|
|
|
b.Property<int>("AwardedXp");
|
|
|
|
|
|
2017-08-22 03:48:45 +00:00
|
|
|
|
b.Property<DateTime?>("DateAdded");
|
|
|
|
|
|
|
|
|
|
b.Property<ulong>("GuildId");
|
|
|
|
|
|
2017-09-10 01:52:34 +00:00
|
|
|
|
b.Property<DateTime>("LastLevelUp")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
2017-09-22 04:59:57 +00:00
|
|
|
|
.HasDefaultValue(new DateTime(2017, 9, 21, 20, 53, 13, 307, DateTimeKind.Local));
|
2017-09-10 01:52:34 +00:00
|
|
|
|
|
|
|
|
|
b.Property<int>("NotifyOnLevelUp");
|
2017-08-22 03:48:45 +00:00
|
|
|
|
|
|
|
|
|
b.Property<ulong>("UserId");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("Xp");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("UserId", "GuildId")
|
|
|
|
|
.IsUnique();
|
|
|
|
|
|
|
|
|
|
b.ToTable("UserXpStats");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.VcRoleInfo", b =>
|
2017-03-11 07:00:58 +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-01-22 20:06:10 +00:00
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd();
|
|
|
|
|
|
|
|
|
|
b.Property<int?>("AffinityId");
|
|
|
|
|
|
|
|
|
|
b.Property<int?>("ClaimerId");
|
|
|
|
|
|
2017-02-22 17:16:05 +00:00
|
|
|
|
b.Property<DateTime?>("DateAdded");
|
|
|
|
|
|
2017-01-22 20:06:10 +00:00
|
|
|
|
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.WaifuItem", b =>
|
2017-08-14 05:25:32 +00:00
|
|
|
|
{
|
|
|
|
|
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");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WaifuUpdate", b =>
|
2017-01-22 20:06:10 +00:00
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd();
|
|
|
|
|
|
2017-02-22 17:16:05 +00:00
|
|
|
|
b.Property<DateTime?>("DateAdded");
|
|
|
|
|
|
2017-01-22 20:06:10 +00:00
|
|
|
|
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-03-30 01:51:54 +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-03-30 01:51:54 +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-11-15 13:01:40 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.XpCurrencyReward", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd();
|
|
|
|
|
|
|
|
|
|
b.Property<int>("Amount");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime?>("DateAdded");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("Level");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("XpSettingsId");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("XpSettingsId");
|
|
|
|
|
|
|
|
|
|
b.ToTable("XpCurrencyReward");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.XpRoleReward", b =>
|
2017-08-22 03:48:45 +00:00
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd();
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime?>("DateAdded");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("Level");
|
|
|
|
|
|
|
|
|
|
b.Property<ulong>("RoleId");
|
|
|
|
|
|
2017-09-23 01:32:12 +00:00
|
|
|
|
b.Property<int>("XpSettingsId");
|
2017-08-22 03:48:45 +00:00
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
2017-09-23 01:32:12 +00:00
|
|
|
|
b.HasIndex("XpSettingsId", "Level")
|
|
|
|
|
.IsUnique();
|
2017-08-22 03:48:45 +00:00
|
|
|
|
|
|
|
|
|
b.ToTable("XpRoleReward");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.XpSettings", b =>
|
2017-08-22 03:48:45 +00:00
|
|
|
|
{
|
|
|
|
|
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");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiRaidSetting", b =>
|
2017-01-10 19:37:41 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig", "GuildConfig")
|
2017-01-10 19:37:41 +00:00
|
|
|
|
.WithOne("AntiRaidSetting")
|
2017-10-13 04:14:54 +00:00
|
|
|
|
.HasForeignKey("NadekoBot.Core.Services.Database.Models.AntiRaidSetting", "GuildConfigId")
|
2017-01-10 19:37:41 +00:00
|
|
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamIgnore", b =>
|
2017-01-10 19:37:41 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.AntiSpamSetting")
|
2017-01-10 19:37:41 +00:00
|
|
|
|
.WithMany("IgnoredChannels")
|
|
|
|
|
.HasForeignKey("AntiSpamSettingId");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamSetting", b =>
|
2017-01-10 19:37:41 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig", "GuildConfig")
|
2017-01-10 19:37:41 +00:00
|
|
|
|
.WithOne("AntiSpamSetting")
|
2017-10-13 04:14:54 +00:00
|
|
|
|
.HasForeignKey("NadekoBot.Core.Services.Database.Models.AntiSpamSetting", "GuildConfigId")
|
2017-01-10 19:37:41 +00:00
|
|
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlacklistItem", b =>
|
2016-08-28 00:46:36 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
|
2016-08-28 00:46:36 +00:00
|
|
|
|
.WithMany("Blacklist")
|
|
|
|
|
.HasForeignKey("BotConfigId");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlockedCmdOrMdl", b =>
|
2017-04-09 20:28:42 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
|
2017-04-09 20:28:42 +00:00
|
|
|
|
.WithMany("BlockedCommands")
|
|
|
|
|
.HasForeignKey("BotConfigId");
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
|
2017-04-09 20:28:42 +00:00
|
|
|
|
.WithMany("BlockedModules")
|
|
|
|
|
.HasForeignKey("BotConfigId1");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClubApplicants", b =>
|
2017-09-10 01:52:34 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.ClubInfo", "Club")
|
2017-09-10 01:52:34 +00:00
|
|
|
|
.WithMany("Applicants")
|
|
|
|
|
.HasForeignKey("ClubId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "User")
|
2017-09-10 01:52:34 +00:00
|
|
|
|
.WithMany()
|
|
|
|
|
.HasForeignKey("UserId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClubBans", b =>
|
2017-09-10 01:52:34 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.ClubInfo", "Club")
|
2017-09-10 01:52:34 +00:00
|
|
|
|
.WithMany("Bans")
|
|
|
|
|
.HasForeignKey("ClubId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "User")
|
2017-09-10 01:52:34 +00:00
|
|
|
|
.WithMany()
|
|
|
|
|
.HasForeignKey("UserId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClubInfo", b =>
|
2017-09-10 01:52:34 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "Owner")
|
2017-09-10 01:52:34 +00:00
|
|
|
|
.WithOne()
|
2017-10-13 04:14:54 +00:00
|
|
|
|
.HasForeignKey("NadekoBot.Core.Services.Database.Models.ClubInfo", "OwnerId")
|
2017-09-10 01:52:34 +00:00
|
|
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandAlias", b =>
|
2017-03-20 09:53:04 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
|
2017-03-20 09:53:04 +00:00
|
|
|
|
.WithMany("CommandAliases")
|
|
|
|
|
.HasForeignKey("GuildConfigId");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandCooldown", b =>
|
2016-10-07 22:23:41 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
|
2016-10-07 22:23:41 +00:00
|
|
|
|
.WithMany("CommandCooldowns")
|
|
|
|
|
.HasForeignKey("GuildConfigId");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandPrice", b =>
|
2017-01-12 19:19:56 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
|
2017-01-12 19:19:56 +00:00
|
|
|
|
.WithMany("CommandPrices")
|
|
|
|
|
.HasForeignKey("BotConfigId");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.DiscordUser", b =>
|
2017-09-10 01:52:34 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.ClubInfo", "Club")
|
2017-09-10 01:52:34 +00:00
|
|
|
|
.WithMany("Users")
|
|
|
|
|
.HasForeignKey("ClubId");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
|
2016-08-28 00:46:36 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
|
2016-08-28 00:46:36 +00:00
|
|
|
|
.WithMany("EightBallResponses")
|
|
|
|
|
.HasForeignKey("BotConfigId");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ExcludedItem", b =>
|
2017-08-22 03:48:45 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.XpSettings")
|
2017-08-22 03:48:45 +00:00
|
|
|
|
.WithMany("ExclusionList")
|
|
|
|
|
.HasForeignKey("XpSettingsId");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FeedSub", b =>
|
2017-09-22 04:59:57 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig", "GuildConfig")
|
2017-09-22 04:59:57 +00:00
|
|
|
|
.WithMany("FeedSubs")
|
|
|
|
|
.HasForeignKey("GuildConfigId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
|
2016-10-03 17:21:05 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
|
2016-10-03 17:21:05 +00:00
|
|
|
|
.WithMany("FilterInvitesChannelIds")
|
|
|
|
|
.HasForeignKey("GuildConfigId");
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
|
2016-10-03 17:21:05 +00:00
|
|
|
|
.WithMany("FilterWordsChannelIds")
|
|
|
|
|
.HasForeignKey("GuildConfigId1");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilteredWord", b =>
|
2016-10-03 17:21:05 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
|
2016-10-03 17:21:05 +00:00
|
|
|
|
.WithMany("FilteredWords")
|
|
|
|
|
.HasForeignKey("GuildConfigId");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FollowedStream", b =>
|
2016-09-01 00:19:29 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
|
2016-09-01 00:19:29 +00:00
|
|
|
|
.WithMany("FollowedStreams")
|
|
|
|
|
.HasForeignKey("GuildConfigId");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GCChannelId", b =>
|
2016-10-11 03:27:36 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
|
2016-10-11 03:27:36 +00:00
|
|
|
|
.WithMany("GenerateCurrencyChannelIds")
|
|
|
|
|
.HasForeignKey("GuildConfigId");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildConfig", b =>
|
2016-09-05 10:27:58 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
|
2016-09-05 10:27:58 +00:00
|
|
|
|
.WithMany()
|
|
|
|
|
.HasForeignKey("LogSettingId");
|
2016-09-27 13:26:37 +00:00
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.Permission", "RootPermission")
|
2016-09-27 13:26:37 +00:00
|
|
|
|
.WithMany()
|
|
|
|
|
.HasForeignKey("RootPermissionId");
|
2016-09-05 10:27:58 +00:00
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildRepeater", b =>
|
2017-01-10 12:37:35 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
|
2017-01-10 12:37:35 +00:00
|
|
|
|
.WithMany("GuildRepeaters")
|
|
|
|
|
.HasForeignKey("GuildConfigId");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredLogChannel", b =>
|
2016-09-05 10:27:58 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
|
2016-09-05 10:27:58 +00:00
|
|
|
|
.WithMany("IgnoredChannels")
|
|
|
|
|
.HasForeignKey("LogSettingId");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
|
2016-09-05 10:27:58 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
|
2016-09-05 10:27:58 +00:00
|
|
|
|
.WithMany("IgnoredVoicePresenceChannelIds")
|
|
|
|
|
.HasForeignKey("LogSettingId");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-15 07:39:46 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.LoadedPackage", b =>
|
2016-08-28 00:46:36 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
|
2017-10-15 07:39:46 +00:00
|
|
|
|
.WithMany("LoadedPackages")
|
2016-10-11 20:06:31 +00:00
|
|
|
|
.HasForeignKey("BotConfigId");
|
2016-08-28 00:46:36 +00:00
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MutedUserId", b =>
|
2016-12-13 03:49:44 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
|
2016-12-13 03:49:44 +00:00
|
|
|
|
.WithMany("MutedUsers")
|
|
|
|
|
.HasForeignKey("GuildConfigId");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.NsfwBlacklitedTag", b =>
|
2017-07-21 01:04:44 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
|
2017-07-21 01:04:44 +00:00
|
|
|
|
.WithMany("NsfwBlacklistedTags")
|
|
|
|
|
.HasForeignKey("GuildConfigId");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
|
2016-09-20 01:08:28 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.Permission", "Next")
|
2016-09-27 13:26:37 +00:00
|
|
|
|
.WithOne("Previous")
|
2017-10-13 04:14:54 +00:00
|
|
|
|
.HasForeignKey("NadekoBot.Core.Services.Database.Models.Permission", "NextId");
|
2016-09-20 01:08:28 +00:00
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permissionv2", b =>
|
2017-03-08 23:58:58 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
|
2017-03-08 23:58:58 +00:00
|
|
|
|
.WithMany("Permissions")
|
|
|
|
|
.HasForeignKey("GuildConfigId");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlayingStatus", b =>
|
2016-08-27 00:41:41 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
|
2016-08-27 00:41:41 +00:00
|
|
|
|
.WithMany("RotatingStatusMessages")
|
2016-08-28 00:46:36 +00:00
|
|
|
|
.HasForeignKey("BotConfigId");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
|
2016-10-01 03:49:05 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.MusicPlaylist")
|
2016-10-01 03:49:05 +00:00
|
|
|
|
.WithMany("Songs")
|
2016-10-02 02:15:57 +00:00
|
|
|
|
.HasForeignKey("MusicPlaylistId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade);
|
2016-10-01 03:49:05 +00:00
|
|
|
|
});
|
|
|
|
|
|
2017-10-27 16:39:56 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PollAnswer", b =>
|
|
|
|
|
{
|
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.Poll")
|
|
|
|
|
.WithMany("Answers")
|
|
|
|
|
.HasForeignKey("PollId");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PollVote", b =>
|
|
|
|
|
{
|
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.Poll")
|
|
|
|
|
.WithMany("Votes")
|
|
|
|
|
.HasForeignKey("PollId");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
|
2016-08-28 00:46:36 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
|
2016-08-28 00:46:36 +00:00
|
|
|
|
.WithMany("RaceAnimals")
|
|
|
|
|
.HasForeignKey("BotConfigId");
|
2016-08-27 00:41:41 +00:00
|
|
|
|
});
|
2017-01-22 20:06:10 +00:00
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ShopEntry", b =>
|
2017-04-06 19:00:46 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
|
2017-04-06 19:00:46 +00:00
|
|
|
|
.WithMany("ShopEntries")
|
|
|
|
|
.HasForeignKey("GuildConfigId");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ShopEntryItem", b =>
|
2017-04-06 19:00:46 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.ShopEntry")
|
2017-04-06 19:00:46 +00:00
|
|
|
|
.WithMany("Items")
|
|
|
|
|
.HasForeignKey("ShopEntryId");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.SlowmodeIgnoredRole", b =>
|
2017-04-01 19:40:13 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
|
2017-04-01 19:40:13 +00:00
|
|
|
|
.WithMany("SlowmodeIgnoredRoles")
|
|
|
|
|
.HasForeignKey("GuildConfigId");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.SlowmodeIgnoredUser", b =>
|
2017-04-01 19:40:13 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
|
2017-04-01 19:40:13 +00:00
|
|
|
|
.WithMany("SlowmodeIgnoredUsers")
|
|
|
|
|
.HasForeignKey("GuildConfigId");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.StartupCommand", b =>
|
2017-03-31 12:07:18 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
|
2017-03-31 12:07:18 +00:00
|
|
|
|
.WithMany("StartupCommands")
|
|
|
|
|
.HasForeignKey("BotConfigId");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.StreamRoleBlacklistedUser", b =>
|
2017-07-19 08:38:14 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.StreamRoleSettings")
|
2017-07-19 08:38:14 +00:00
|
|
|
|
.WithMany("Blacklist")
|
|
|
|
|
.HasForeignKey("StreamRoleSettingsId");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.StreamRoleSettings", b =>
|
2017-07-14 03:00:30 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig", "GuildConfig")
|
2017-07-14 03:00:30 +00:00
|
|
|
|
.WithOne("StreamRole")
|
2017-10-13 04:14:54 +00:00
|
|
|
|
.HasForeignKey("NadekoBot.Core.Services.Database.Models.StreamRoleSettings", "GuildConfigId")
|
2017-07-14 03:00:30 +00:00
|
|
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.StreamRoleWhitelistedUser", b =>
|
2017-07-19 08:38:14 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.StreamRoleSettings")
|
2017-07-19 08:38:14 +00:00
|
|
|
|
.WithMany("Whitelist")
|
|
|
|
|
.HasForeignKey("StreamRoleSettingsId");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.UnmuteTimer", b =>
|
2017-03-10 22:06:22 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
|
2017-03-10 22:06:22 +00:00
|
|
|
|
.WithMany("UnmuteTimers")
|
|
|
|
|
.HasForeignKey("GuildConfigId");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.VcRoleInfo", b =>
|
2017-03-11 07:00:58 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
|
2017-03-11 07:00:58 +00:00
|
|
|
|
.WithMany("VcRoleInfos")
|
|
|
|
|
.HasForeignKey("GuildConfigId");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WaifuInfo", b =>
|
2017-01-22 20:06:10 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "Affinity")
|
2017-01-22 20:06:10 +00:00
|
|
|
|
.WithMany()
|
|
|
|
|
.HasForeignKey("AffinityId");
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "Claimer")
|
2017-01-22 20:06:10 +00:00
|
|
|
|
.WithMany()
|
|
|
|
|
.HasForeignKey("ClaimerId");
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "Waifu")
|
2017-01-22 20:06:10 +00:00
|
|
|
|
.WithOne()
|
2017-10-13 04:14:54 +00:00
|
|
|
|
.HasForeignKey("NadekoBot.Core.Services.Database.Models.WaifuInfo", "WaifuId")
|
2017-01-22 20:06:10 +00:00
|
|
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WaifuItem", b =>
|
2017-08-14 05:25:32 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.WaifuInfo")
|
2017-08-14 05:25:32 +00:00
|
|
|
|
.WithMany("Items")
|
|
|
|
|
.HasForeignKey("WaifuInfoId");
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WaifuUpdate", b =>
|
2017-01-22 20:06:10 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "New")
|
2017-01-22 20:06:10 +00:00
|
|
|
|
.WithMany()
|
|
|
|
|
.HasForeignKey("NewId");
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "Old")
|
2017-01-22 20:06:10 +00:00
|
|
|
|
.WithMany()
|
|
|
|
|
.HasForeignKey("OldId");
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "User")
|
2017-01-22 20:06:10 +00:00
|
|
|
|
.WithMany()
|
|
|
|
|
.HasForeignKey("UserId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
|
|
|
});
|
2017-03-30 01:51:54 +00:00
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WarningPunishment", b =>
|
2017-03-30 01:51:54 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
|
2017-03-30 01:51:54 +00:00
|
|
|
|
.WithMany("WarnPunishments")
|
|
|
|
|
.HasForeignKey("GuildConfigId");
|
|
|
|
|
});
|
2017-08-22 03:48:45 +00:00
|
|
|
|
|
2017-11-15 13:01:40 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.XpCurrencyReward", b =>
|
|
|
|
|
{
|
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.XpSettings", "XpSettings")
|
|
|
|
|
.WithMany("CurrencyRewards")
|
|
|
|
|
.HasForeignKey("XpSettingsId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.XpRoleReward", b =>
|
2017-08-22 03:48:45 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.XpSettings", "XpSettings")
|
2017-08-22 03:48:45 +00:00
|
|
|
|
.WithMany("RoleRewards")
|
2017-09-23 01:32:12 +00:00
|
|
|
|
.HasForeignKey("XpSettingsId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade);
|
2017-08-22 03:48:45 +00:00
|
|
|
|
});
|
|
|
|
|
|
2017-10-13 04:14:54 +00:00
|
|
|
|
modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.XpSettings", b =>
|
2017-08-22 03:48:45 +00:00
|
|
|
|
{
|
2017-10-13 04:14:54 +00:00
|
|
|
|
b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig", "GuildConfig")
|
2017-08-22 03:48:45 +00:00
|
|
|
|
.WithOne("XpSettings")
|
2017-10-13 04:14:54 +00:00
|
|
|
|
.HasForeignKey("NadekoBot.Core.Services.Database.Models.XpSettings", "GuildConfigId")
|
2017-08-22 03:48:45 +00:00
|
|
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
|
|
|
});
|
2017-09-22 04:59:57 +00:00
|
|
|
|
#pragma warning restore 612, 618
|
2016-08-24 01:32:48 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|