Merge pull request #25 from Kwoth/1.9

ups
This commit is contained in:
samvaio 2017-11-22 12:02:47 +05:30 committed by GitHub
commit a56be583f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
565 changed files with 32039 additions and 11009 deletions

View File

@ -1,7 +1,7 @@
using System.Linq; using System.Linq;
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;
using Discord.Commands; using Discord.Commands;
using NadekoBot.Services.Impl; using NadekoBot.Core.Services.Impl;
namespace NadekoBot.Common.Attributes namespace NadekoBot.Common.Attributes
{ {
public class Aliases : AliasAttribute public class Aliases : AliasAttribute

View File

@ -1,6 +1,6 @@
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;
using Discord.Commands; using Discord.Commands;
using NadekoBot.Services.Impl; using NadekoBot.Core.Services.Impl;
namespace NadekoBot.Common.Attributes namespace NadekoBot.Common.Attributes
{ {

View File

@ -1,6 +1,6 @@
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;
using Discord.Commands; using Discord.Commands;
using NadekoBot.Services.Impl; using NadekoBot.Core.Services.Impl;
namespace NadekoBot.Common.Attributes namespace NadekoBot.Common.Attributes
{ {

View File

@ -1,7 +1,7 @@
using System; using System;
using System.Threading.Tasks; using System.Threading.Tasks;
using Discord.Commands; using Discord.Commands;
using NadekoBot.Services; using NadekoBot.Core.Services;
namespace NadekoBot.Common.Attributes namespace NadekoBot.Common.Attributes
{ {

View File

@ -1,6 +1,6 @@
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;
using Discord.Commands; using Discord.Commands;
using NadekoBot.Services.Impl; using NadekoBot.Core.Services.Impl;
using System.Linq; using System.Linq;
using Discord; using Discord;
@ -18,7 +18,6 @@ namespace NadekoBot.Common.Attributes
var usage = Localization.LoadCommand(memberName.ToLowerInvariant()).Usage; var usage = Localization.LoadCommand(memberName.ToLowerInvariant()).Usage;
return string.Join(" or ", usage return string.Join(" or ", usage
.Select(x => Format.Code(x))); .Select(x => Format.Code(x)));
} }
} }
} }

View File

@ -1,4 +1,4 @@
using System; using System;
using Discord; using Discord;
using NadekoBot.Extensions; using NadekoBot.Extensions;
using Newtonsoft.Json; using Newtonsoft.Json;
@ -12,6 +12,7 @@ namespace NadekoBot.Common
public string PlainText { get; set; } public string PlainText { get; set; }
public string Title { get; set; } public string Title { get; set; }
public string Description { get; set; } public string Description { get; set; }
public string Url { get; set; }
public CREmbedFooter Footer { get; set; } public CREmbedFooter Footer { get; set; }
public string Thumbnail { get; set; } public string Thumbnail { get; set; }
public string Image { get; set; } public string Image { get; set; }
@ -26,6 +27,7 @@ namespace NadekoBot.Common
public bool IsValid => public bool IsValid =>
!string.IsNullOrWhiteSpace(Title) || !string.IsNullOrWhiteSpace(Title) ||
!string.IsNullOrWhiteSpace(Description) || !string.IsNullOrWhiteSpace(Description) ||
!string.IsNullOrWhiteSpace(Url) ||
!string.IsNullOrWhiteSpace(Thumbnail) || !string.IsNullOrWhiteSpace(Thumbnail) ||
!string.IsNullOrWhiteSpace(Image) || !string.IsNullOrWhiteSpace(Image) ||
(Footer != null && (!string.IsNullOrWhiteSpace(Footer.Text) || !string.IsNullOrWhiteSpace(Footer.IconUrl))) || (Footer != null && (!string.IsNullOrWhiteSpace(Footer.Text) || !string.IsNullOrWhiteSpace(Footer.IconUrl))) ||
@ -39,6 +41,8 @@ namespace NadekoBot.Common
embed.WithTitle(Title); embed.WithTitle(Title);
if (!string.IsNullOrWhiteSpace(Description)) if (!string.IsNullOrWhiteSpace(Description))
embed.WithDescription(Description); embed.WithDescription(Description);
if (Url != null && Uri.IsWellFormedUriString(Url, UriKind.Absolute))
embed.WithUrl(Url);
embed.WithColor(new Discord.Color(Color)); embed.WithColor(new Discord.Color(Color));
if (Footer != null) if (Footer != null)
embed.WithFooter(efb => embed.WithFooter(efb =>

View File

@ -0,0 +1,49 @@
using System;
namespace NadekoBot.Core.Common.Caching
{
/// <summary>
/// A caching object which loads its value with a factory method when it expires.
/// </summary>
/// <typeparam name="T">Type of the value which is cached.</typeparam>
public class FactoryCache<T> : IFactoryCache
{
public DateTime LastUpdate { get; set; } = DateTime.MinValue;
private readonly object _locker = new object();
private TimeSpan _expireAfter;
private readonly Func<T> _factory;
private T Value;
/// <summary>
/// Creates a new factory cache object.
/// </summary>
/// <param name="factory">Method which loads the value when it expires or if it's not loaded the first time.</param>
/// <param name="expireAfter">Time after which the value will be reloaded.</param>
/// <param name="loadImmediately">Should the value be loaded right away. If set to false, value will load when it's first retrieved.</param>
public FactoryCache(Func<T> factory, TimeSpan expireAfter,
bool loadImmediately = false)
{
_expireAfter = expireAfter;
_factory = factory;
if (loadImmediately)
{
Value = _factory();
LastUpdate = DateTime.UtcNow;
}
}
public T GetValue()
{
lock (_locker)
{
if (DateTime.UtcNow - LastUpdate > _expireAfter)
{
LastUpdate = DateTime.UtcNow;
return Value = _factory();
}
return Value;
}
}
}
}

View File

@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace NadekoBot.Core.Common.Caching
{
public interface IFactoryCache
{
}
}

View File

@ -1,7 +1,7 @@
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using NadekoBot.Services.Database.Models; using NadekoBot.Core.Services.Database.Models;
namespace NadekoBot.Common.Collections namespace NadekoBot.Common.Collections
{ {
@ -10,6 +10,10 @@ namespace NadekoBot.Common.Collections
public List<T> Source { get; } public List<T> Source { get; }
private readonly object _locker = new object(); private readonly object _locker = new object();
public IndexedCollection()
{
Source = new List<T>();
}
public IndexedCollection(IEnumerable<T> source) public IndexedCollection(IEnumerable<T> source)
{ {
lock (_locker) lock (_locker)

View File

@ -1,12 +1,12 @@
using Discord; using Discord;
using Discord.Commands; using Discord.Commands;
using NadekoBot.Extensions; using NadekoBot.Extensions;
using NadekoBot.Services; using NadekoBot.Core.Services;
using NLog; using NLog;
using System.Globalization; using System.Globalization;
using System.Threading.Tasks; using System.Threading.Tasks;
using Discord.WebSocket; using Discord.WebSocket;
using NadekoBot.Services.Impl; using NadekoBot.Core.Services.Impl;
namespace NadekoBot.Modules namespace NadekoBot.Modules
{ {

View File

@ -0,0 +1,8 @@
namespace NadekoBot.Core.Common.Pokemon
{
public class PokemonNameId
{
public int Id { get; set; }
public string Name { get; set; }
}
}

View File

@ -1,6 +1,6 @@
using System.Collections.Generic; using System.Collections.Generic;
namespace NadekoBot.Modules.Searches.Common namespace NadekoBot.Core.Common.Pokemon
{ {
public class SearchPokemon public class SearchPokemon
{ {
@ -9,6 +9,7 @@ namespace NadekoBot.Modules.Searches.Common
public float M { get; set; } public float M { get; set; }
public float F { get; set; } public float F { get; set; }
} }
public class BaseStatsClass public class BaseStatsClass
{ {
public int HP { get; set; } public int HP { get; set; }
@ -21,6 +22,7 @@ namespace NadekoBot.Modules.Searches.Common
public override string ToString() => $@"**HP:** {HP,-4} **ATK:** {ATK,-4} **DEF:** {DEF,-4} public override string ToString() => $@"**HP:** {HP,-4} **ATK:** {ATK,-4} **DEF:** {DEF,-4}
**SPA:** {SPA,-4} **SPD:** {SPD,-4} **SPE:** {SPE,-4}"; **SPA:** {SPA,-4} **SPD:** {SPD,-4} **SPE:** {SPE,-4}";
} }
public int Id { get; set; } public int Id { get; set; }
public string Species { get; set; } public string Species { get; set; }
public string[] Types { get; set; } public string[] Types { get; set; }
@ -32,24 +34,5 @@ namespace NadekoBot.Modules.Searches.Common
public string Color { get; set; } public string Color { get; set; }
public string[] Evos { get; set; } public string[] Evos { get; set; }
public string[] EggGroups { get; set; } public string[] EggGroups { get; set; }
// public override string ToString() => $@"`Name:` {Species}
//`Types:` {string.Join(", ", Types)}
//`Stats:` {BaseStats}
//`Height:` {HeightM,4}m `Weight:` {WeightKg}kg
//`Abilities:` {string.Join(", ", Abilities.Values)}";
}
public class SearchPokemonAbility
{
public string Desc { get; set; }
public string ShortDesc { get; set; }
public string Name { get; set; }
public float Rating { get; set; }
// public override string ToString() => $@"`Name:` : {Name}
//`Rating:` {Rating}
//`Description:` {Desc}";
} }
} }

View File

@ -0,0 +1,10 @@
namespace NadekoBot.Core.Common.Pokemon
{
public class SearchPokemonAbility
{
public string Desc { get; set; }
public string ShortDesc { get; set; }
public string Name { get; set; }
public float Rating { get; set; }
}
}

View File

@ -6,8 +6,8 @@ using Discord;
using Discord.Commands; using Discord.Commands;
using Discord.WebSocket; using Discord.WebSocket;
using NadekoBot.Extensions; using NadekoBot.Extensions;
using NadekoBot.Modules.Administration.Services;
using NadekoBot.Modules.Music.Services; using NadekoBot.Modules.Music.Services;
using NadekoBot.Modules.Administration.Services;
namespace NadekoBot.Common.Replacements namespace NadekoBot.Common.Replacements
{ {
@ -97,7 +97,7 @@ namespace NadekoBot.Common.Replacements
try try
{ {
var mp = ms.MusicPlayers.FirstOrDefault(); var mp = ms.MusicPlayers.FirstOrDefault();
var title = mp.Value?.Current.Current?.Title; var title = mp.Value?.Current.Current?.Title;
return title ?? "No songs"; return title ?? "No songs";
} }
catch catch

View File

@ -9,5 +9,14 @@ namespace NadekoBot.Common.ShardCom
public ConnectionState ConnectionState { get; set; } public ConnectionState ConnectionState { get; set; }
public int Guilds { get; set; } public int Guilds { get; set; }
public DateTime Time { get; set; } public DateTime Time { get; set; }
public ShardComMessage Clone() =>
new ShardComMessage
{
ShardId = ShardId,
ConnectionState = ConnectionState,
Guilds = Guilds,
Time = Time,
};
} }
} }

View File

@ -0,0 +1,31 @@
using System;
using System.Net;
using System.Net.Sockets;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
using NadekoBot.Core.Services;
namespace NadekoBot.Common.ShardCom
{
public class ShardComServer
{
private readonly IDataCache _cache;
public ShardComServer(IDataCache cache)
{
_cache = cache;
}
public void Start()
{
var sub = _cache.Redis.GetSubscriber();
sub.SubscribeAsync("shardcoord_send", (ch, data) =>
{
var _ = OnDataReceived(JsonConvert.DeserializeObject<ShardComMessage>(data));
}, StackExchange.Redis.CommandFlags.FireAndForget);
}
public event Func<ShardComMessage, Task> OnDataReceived = delegate { return Task.CompletedTask; };
}
}

View File

@ -3,7 +3,7 @@ using Discord.WebSocket;
using System; using System;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace NadekoBot.Services.Discord namespace NadekoBot.Common
{ {
public class ReactionEventWrapper : IDisposable public class ReactionEventWrapper : IDisposable
{ {

View File

@ -2,13 +2,19 @@
using System.Linq; using System.Linq;
using System.Threading.Tasks; using System.Threading.Tasks;
using Discord.Commands; using Discord.Commands;
using NadekoBot.Core.Services;
using NadekoBot.Modules.CustomReactions.Services; using NadekoBot.Modules.CustomReactions.Services;
using NadekoBot.Services; using NadekoBot.Core.Common.TypeReaders;
using Discord.WebSocket;
namespace NadekoBot.Common.TypeReaders namespace NadekoBot.Common.TypeReaders
{ {
public class CommandTypeReader : TypeReader public class CommandTypeReader : NadekoTypeReader<CommandInfo>
{ {
public CommandTypeReader(DiscordSocketClient client, CommandService cmds) : base(client, cmds)
{
}
public override Task<TypeReaderResult> Read(ICommandContext context, string input, IServiceProvider services) public override Task<TypeReaderResult> Read(ICommandContext context, string input, IServiceProvider services)
{ {
var _cmds = ((INServiceProvider)services).GetService<CommandService>(); var _cmds = ((INServiceProvider)services).GetService<CommandService>();
@ -29,8 +35,16 @@ namespace NadekoBot.Common.TypeReaders
} }
} }
public class CommandOrCrTypeReader : CommandTypeReader public class CommandOrCrTypeReader : NadekoTypeReader<CommandOrCrInfo>
{ {
private readonly DiscordSocketClient _client;
private readonly CommandService _cmds;
public CommandOrCrTypeReader(DiscordSocketClient client, CommandService cmds) : base(client, cmds)
{
_client = client;
_cmds = cmds;
}
public override async Task<TypeReaderResult> Read(ICommandContext context, string input, IServiceProvider services) public override async Task<TypeReaderResult> Read(ICommandContext context, string input, IServiceProvider services)
{ {
input = input.ToUpperInvariant(); input = input.ToUpperInvariant();
@ -53,7 +67,7 @@ namespace NadekoBot.Common.TypeReaders
} }
} }
var cmd = await base.Read(context, input, services); var cmd = await new CommandTypeReader(_client, _cmds).Read(context, input, services);
if (cmd.IsSuccess) if (cmd.IsSuccess)
{ {
return TypeReaderResult.FromSuccess(new CommandOrCrInfo(((CommandInfo)cmd.Values.First().Value).Name)); return TypeReaderResult.FromSuccess(new CommandOrCrInfo(((CommandInfo)cmd.Values.First().Value).Name));

View File

@ -2,11 +2,17 @@
using System.Threading.Tasks; using System.Threading.Tasks;
using Discord.Commands; using Discord.Commands;
using NadekoBot.Modules.Administration.Services; using NadekoBot.Modules.Administration.Services;
using NadekoBot.Core.Common.TypeReaders;
using Discord.WebSocket;
namespace NadekoBot.Common.TypeReaders namespace NadekoBot.Common.TypeReaders
{ {
public class GuildDateTimeTypeReader : TypeReader public class GuildDateTimeTypeReader : NadekoTypeReader<GuildDateTime>
{ {
public GuildDateTimeTypeReader(DiscordSocketClient client, CommandService cmds) : base(client, cmds)
{
}
public override Task<TypeReaderResult> Read(ICommandContext context, string input, IServiceProvider services) public override Task<TypeReaderResult> Read(ICommandContext context, string input, IServiceProvider services)
{ {
var _gts = (GuildTimezoneService)services.GetService(typeof(GuildTimezoneService)); var _gts = (GuildTimezoneService)services.GetService(typeof(GuildTimezoneService));

View File

@ -3,17 +3,20 @@ using System.Linq;
using System.Threading.Tasks; using System.Threading.Tasks;
using Discord.Commands; using Discord.Commands;
using Discord.WebSocket; using Discord.WebSocket;
using NadekoBot.Core.Common.TypeReaders;
using Discord;
namespace NadekoBot.Common.TypeReaders namespace NadekoBot.Common.TypeReaders
{ {
public class GuildTypeReader : TypeReader public class GuildTypeReader : NadekoTypeReader<IGuild>
{ {
private readonly DiscordSocketClient _client; private readonly DiscordSocketClient _client;
public GuildTypeReader(DiscordSocketClient client) public GuildTypeReader(DiscordSocketClient client, CommandService cmds) : base(client, cmds)
{ {
_client = client; _client = client;
} }
public override Task<TypeReaderResult> Read(ICommandContext context, string input, IServiceProvider _) public override Task<TypeReaderResult> Read(ICommandContext context, string input, IServiceProvider _)
{ {
input = input.Trim().ToLowerInvariant(); input = input.Trim().ToLowerInvariant();

View File

@ -3,14 +3,16 @@ using System.Linq;
using System.Threading.Tasks; using System.Threading.Tasks;
using Discord.Commands; using Discord.Commands;
using NadekoBot.Extensions; using NadekoBot.Extensions;
using NadekoBot.Core.Common.TypeReaders;
using Discord.WebSocket;
namespace NadekoBot.Common.TypeReaders namespace NadekoBot.Common.TypeReaders
{ {
public class ModuleTypeReader : TypeReader public class ModuleTypeReader : NadekoTypeReader<ModuleInfo>
{ {
private readonly CommandService _cmds; private readonly CommandService _cmds;
public ModuleTypeReader(CommandService cmds) public ModuleTypeReader(DiscordSocketClient client, CommandService cmds) : base(client, cmds)
{ {
_cmds = cmds; _cmds = cmds;
} }
@ -26,11 +28,11 @@ namespace NadekoBot.Common.TypeReaders
} }
} }
public class ModuleOrCrTypeReader : TypeReader public class ModuleOrCrTypeReader : NadekoTypeReader<ModuleOrCrInfo>
{ {
private readonly CommandService _cmds; private readonly CommandService _cmds;
public ModuleOrCrTypeReader(CommandService cmds) public ModuleOrCrTypeReader(DiscordSocketClient client, CommandService cmds) : base(client, cmds)
{ {
_cmds = cmds; _cmds = cmds;
} }

View File

@ -0,0 +1,19 @@
using Discord.Commands;
using Discord.WebSocket;
namespace NadekoBot.Core.Common.TypeReaders
{
public abstract class NadekoTypeReader<T> : TypeReader where
T : class
{
private readonly DiscordSocketClient _client;
private readonly CommandService _cmds;
private NadekoTypeReader() { }
public NadekoTypeReader(DiscordSocketClient client, CommandService cmds)
{
_client = client;
_cmds = cmds;
}
}
}

View File

@ -1,15 +1,21 @@
using System; using System;
using System.Threading.Tasks; using System.Threading.Tasks;
using Discord.Commands; using Discord.Commands;
using Discord.WebSocket;
using NadekoBot.Common.TypeReaders.Models; using NadekoBot.Common.TypeReaders.Models;
using NadekoBot.Core.Common.TypeReaders;
namespace NadekoBot.Common.TypeReaders namespace NadekoBot.Common.TypeReaders
{ {
/// <summary> /// <summary>
/// Used instead of bool for more flexible keywords for true/false only in the permission module /// Used instead of bool for more flexible keywords for true/false only in the permission module
/// </summary> /// </summary>
public class PermissionActionTypeReader : TypeReader public class PermissionActionTypeReader : NadekoTypeReader<PermissionAction>
{ {
public PermissionActionTypeReader(DiscordSocketClient client, CommandService cmds) : base(client, cmds)
{
}
public override Task<TypeReaderResult> Read(ICommandContext context, string input, IServiceProvider _) public override Task<TypeReaderResult> Read(ICommandContext context, string input, IServiceProvider _)
{ {
input = input.ToUpperInvariant(); input = input.ToUpperInvariant();

View File

@ -3,7 +3,7 @@ using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Migrations;
using NadekoBot.Services.Database; using NadekoBot.Core.Services.Database;
namespace NadekoBot.Migrations namespace NadekoBot.Migrations
{ {
@ -16,7 +16,7 @@ namespace NadekoBot.Migrations
modelBuilder modelBuilder
.HasAnnotation("ProductVersion", "1.0.0-rtm-21431"); .HasAnnotation("ProductVersion", "1.0.0-rtm-21431");
modelBuilder.Entity("NadekoBot.Services.Database.Models.BlacklistItem", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlacklistItem", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -34,7 +34,7 @@ namespace NadekoBot.Migrations
b.ToTable("BlacklistItem"); b.ToTable("BlacklistItem");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.BotConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BotConfig", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -70,7 +70,7 @@ namespace NadekoBot.Migrations
b.ToTable("BotConfig"); b.ToTable("BotConfig");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashCaller", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashCaller", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -92,7 +92,7 @@ namespace NadekoBot.Migrations
b.ToTable("ClashCallers"); b.ToTable("ClashCallers");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashWar", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashWar", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -114,7 +114,7 @@ namespace NadekoBot.Migrations
b.ToTable("ClashOfClans"); b.ToTable("ClashOfClans");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandCooldown", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandCooldown", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -132,7 +132,7 @@ namespace NadekoBot.Migrations
b.ToTable("CommandCooldown"); b.ToTable("CommandCooldown");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ConvertUnit", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ConvertUnit", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -148,7 +148,7 @@ namespace NadekoBot.Migrations
b.ToTable("ConversionUnits"); b.ToTable("ConversionUnits");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Currency", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Currency", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -165,7 +165,7 @@ namespace NadekoBot.Migrations
b.ToTable("Currency"); b.ToTable("Currency");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CustomReaction", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CustomReaction", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -185,7 +185,7 @@ namespace NadekoBot.Migrations
b.ToTable("CustomReactions"); b.ToTable("CustomReactions");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Donator", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Donator", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -204,7 +204,7 @@ namespace NadekoBot.Migrations
b.ToTable("Donators"); b.ToTable("Donators");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.EightBallResponse", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -220,7 +220,7 @@ namespace NadekoBot.Migrations
b.ToTable("EightBallResponses"); b.ToTable("EightBallResponses");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilterChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -240,7 +240,7 @@ namespace NadekoBot.Migrations
b.ToTable("FilterChannelId"); b.ToTable("FilterChannelId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilteredWord", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilteredWord", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -256,7 +256,7 @@ namespace NadekoBot.Migrations
b.ToTable("FilteredWord"); b.ToTable("FilteredWord");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FollowedStream", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FollowedStream", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -278,7 +278,7 @@ namespace NadekoBot.Migrations
b.ToTable("FollowedStream"); b.ToTable("FollowedStream");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GCChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GCChannelId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -294,7 +294,7 @@ namespace NadekoBot.Migrations
b.ToTable("GCChannelId"); b.ToTable("GCChannelId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildConfig", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -359,7 +359,7 @@ namespace NadekoBot.Migrations
b.ToTable("GuildConfigs"); b.ToTable("GuildConfigs");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredLogChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredLogChannel", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -375,7 +375,7 @@ namespace NadekoBot.Migrations
b.ToTable("IgnoredLogChannels"); b.ToTable("IgnoredLogChannels");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredVoicePresenceChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -391,7 +391,7 @@ namespace NadekoBot.Migrations
b.ToTable("IgnoredVoicePresenceCHannels"); b.ToTable("IgnoredVoicePresenceCHannels");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.LogSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.LogSetting", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -433,7 +433,7 @@ namespace NadekoBot.Migrations
b.ToTable("LogSettings"); b.ToTable("LogSettings");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ModulePrefix", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ModulePrefix", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -451,7 +451,7 @@ namespace NadekoBot.Migrations
b.ToTable("ModulePrefixes"); b.ToTable("ModulePrefixes");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.MusicPlaylist", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MusicPlaylist", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -467,7 +467,7 @@ namespace NadekoBot.Migrations
b.ToTable("MusicPlaylists"); b.ToTable("MusicPlaylists");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permission", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -492,7 +492,7 @@ namespace NadekoBot.Migrations
b.ToTable("Permission"); b.ToTable("Permission");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlayingStatus", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlayingStatus", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -508,7 +508,7 @@ namespace NadekoBot.Migrations
b.ToTable("PlayingStatus"); b.ToTable("PlayingStatus");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlaylistSong", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -532,7 +532,7 @@ namespace NadekoBot.Migrations
b.ToTable("PlaylistSong"); b.ToTable("PlaylistSong");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Quote", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Quote", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -555,7 +555,7 @@ namespace NadekoBot.Migrations
b.ToTable("Quotes"); b.ToTable("Quotes");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.RaceAnimal", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -573,7 +573,7 @@ namespace NadekoBot.Migrations
b.ToTable("RaceAnimals"); b.ToTable("RaceAnimals");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Reminder", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Reminder", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -595,7 +595,7 @@ namespace NadekoBot.Migrations
b.ToTable("Reminders"); b.ToTable("Reminders");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Repeater", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Repeater", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -616,7 +616,7 @@ namespace NadekoBot.Migrations
b.ToTable("Repeaters"); b.ToTable("Repeaters");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.SelfAssignedRole", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.SelfAssignedRole", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -633,124 +633,124 @@ namespace NadekoBot.Migrations
b.ToTable("SelfAssignableRoles"); b.ToTable("SelfAssignableRoles");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.BlacklistItem", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlacklistItem", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("Blacklist") .WithMany("Blacklist")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashCaller", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashCaller", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.ClashWar", "ClashWar") b.HasOne("NadekoBot.Core.Services.Database.Models.ClashWar", "ClashWar")
.WithMany("Bases") .WithMany("Bases")
.HasForeignKey("ClashWarId") .HasForeignKey("ClashWarId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandCooldown", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandCooldown", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("CommandCooldowns") .WithMany("CommandCooldowns")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.EightBallResponse", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("EightBallResponses") .WithMany("EightBallResponses")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilterChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilterInvitesChannelIds") .WithMany("FilterInvitesChannelIds")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilterWordsChannelIds") .WithMany("FilterWordsChannelIds")
.HasForeignKey("GuildConfigId1"); .HasForeignKey("GuildConfigId1");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilteredWord", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilteredWord", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilteredWords") .WithMany("FilteredWords")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FollowedStream", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FollowedStream", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FollowedStreams") .WithMany("FollowedStreams")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GCChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GCChannelId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("GenerateCurrencyChannelIds") .WithMany("GenerateCurrencyChannelIds")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildConfig", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany() .WithMany()
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
b.HasOne("NadekoBot.Services.Database.Models.Permission", "RootPermission") b.HasOne("NadekoBot.Core.Services.Database.Models.Permission", "RootPermission")
.WithMany() .WithMany()
.HasForeignKey("RootPermissionId"); .HasForeignKey("RootPermissionId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredLogChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredLogChannel", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany("IgnoredChannels") .WithMany("IgnoredChannels")
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredVoicePresenceChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany("IgnoredVoicePresenceChannelIds") .WithMany("IgnoredVoicePresenceChannelIds")
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ModulePrefix", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ModulePrefix", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("ModulePrefixes") .WithMany("ModulePrefixes")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permission", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.Permission", "Next") b.HasOne("NadekoBot.Core.Services.Database.Models.Permission", "Next")
.WithOne("Previous") .WithOne("Previous")
.HasForeignKey("NadekoBot.Services.Database.Models.Permission", "NextId"); .HasForeignKey("NadekoBot.Core.Services.Database.Models.Permission", "NextId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlayingStatus", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlayingStatus", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("RotatingStatusMessages") .WithMany("RotatingStatusMessages")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlaylistSong", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.MusicPlaylist") b.HasOne("NadekoBot.Core.Services.Database.Models.MusicPlaylist")
.WithMany("Songs") .WithMany("Songs")
.HasForeignKey("MusicPlaylistId") .HasForeignKey("MusicPlaylistId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.RaceAnimal", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("RaceAnimals") .WithMany("RaceAnimals")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });

View File

@ -3,7 +3,7 @@ using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Migrations;
using NadekoBot.Services.Database; using NadekoBot.Core.Services.Database;
namespace NadekoBot.Migrations namespace NadekoBot.Migrations
{ {
@ -16,7 +16,7 @@ namespace NadekoBot.Migrations
modelBuilder modelBuilder
.HasAnnotation("ProductVersion", "1.0.0-rtm-21431"); .HasAnnotation("ProductVersion", "1.0.0-rtm-21431");
modelBuilder.Entity("NadekoBot.Services.Database.Models.BlacklistItem", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlacklistItem", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -34,7 +34,7 @@ namespace NadekoBot.Migrations
b.ToTable("BlacklistItem"); b.ToTable("BlacklistItem");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.BotConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BotConfig", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -70,7 +70,7 @@ namespace NadekoBot.Migrations
b.ToTable("BotConfig"); b.ToTable("BotConfig");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashCaller", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashCaller", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -92,7 +92,7 @@ namespace NadekoBot.Migrations
b.ToTable("ClashCallers"); b.ToTable("ClashCallers");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashWar", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashWar", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -114,7 +114,7 @@ namespace NadekoBot.Migrations
b.ToTable("ClashOfClans"); b.ToTable("ClashOfClans");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandCooldown", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandCooldown", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -132,7 +132,7 @@ namespace NadekoBot.Migrations
b.ToTable("CommandCooldown"); b.ToTable("CommandCooldown");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ConvertUnit", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ConvertUnit", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -148,7 +148,7 @@ namespace NadekoBot.Migrations
b.ToTable("ConversionUnits"); b.ToTable("ConversionUnits");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Currency", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Currency", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -165,7 +165,7 @@ namespace NadekoBot.Migrations
b.ToTable("Currency"); b.ToTable("Currency");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CurrencyTransaction", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CurrencyTransaction", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -181,7 +181,7 @@ namespace NadekoBot.Migrations
b.ToTable("CurrencyTransactions"); b.ToTable("CurrencyTransactions");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CustomReaction", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CustomReaction", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -201,7 +201,7 @@ namespace NadekoBot.Migrations
b.ToTable("CustomReactions"); b.ToTable("CustomReactions");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Donator", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Donator", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -220,7 +220,7 @@ namespace NadekoBot.Migrations
b.ToTable("Donators"); b.ToTable("Donators");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.EightBallResponse", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -236,7 +236,7 @@ namespace NadekoBot.Migrations
b.ToTable("EightBallResponses"); b.ToTable("EightBallResponses");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilterChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -256,7 +256,7 @@ namespace NadekoBot.Migrations
b.ToTable("FilterChannelId"); b.ToTable("FilterChannelId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilteredWord", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilteredWord", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -272,7 +272,7 @@ namespace NadekoBot.Migrations
b.ToTable("FilteredWord"); b.ToTable("FilteredWord");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FollowedStream", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FollowedStream", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -294,7 +294,7 @@ namespace NadekoBot.Migrations
b.ToTable("FollowedStream"); b.ToTable("FollowedStream");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GCChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GCChannelId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -310,7 +310,7 @@ namespace NadekoBot.Migrations
b.ToTable("GCChannelId"); b.ToTable("GCChannelId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildConfig", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -375,7 +375,7 @@ namespace NadekoBot.Migrations
b.ToTable("GuildConfigs"); b.ToTable("GuildConfigs");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredLogChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredLogChannel", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -391,7 +391,7 @@ namespace NadekoBot.Migrations
b.ToTable("IgnoredLogChannels"); b.ToTable("IgnoredLogChannels");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredVoicePresenceChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -407,7 +407,7 @@ namespace NadekoBot.Migrations
b.ToTable("IgnoredVoicePresenceCHannels"); b.ToTable("IgnoredVoicePresenceCHannels");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.LogSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.LogSetting", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -449,7 +449,7 @@ namespace NadekoBot.Migrations
b.ToTable("LogSettings"); b.ToTable("LogSettings");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ModulePrefix", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ModulePrefix", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -467,7 +467,7 @@ namespace NadekoBot.Migrations
b.ToTable("ModulePrefixes"); b.ToTable("ModulePrefixes");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.MusicPlaylist", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MusicPlaylist", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -483,7 +483,7 @@ namespace NadekoBot.Migrations
b.ToTable("MusicPlaylists"); b.ToTable("MusicPlaylists");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permission", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -508,7 +508,7 @@ namespace NadekoBot.Migrations
b.ToTable("Permission"); b.ToTable("Permission");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlayingStatus", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlayingStatus", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -524,7 +524,7 @@ namespace NadekoBot.Migrations
b.ToTable("PlayingStatus"); b.ToTable("PlayingStatus");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlaylistSong", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -548,7 +548,7 @@ namespace NadekoBot.Migrations
b.ToTable("PlaylistSong"); b.ToTable("PlaylistSong");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Quote", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Quote", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -571,7 +571,7 @@ namespace NadekoBot.Migrations
b.ToTable("Quotes"); b.ToTable("Quotes");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.RaceAnimal", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -589,7 +589,7 @@ namespace NadekoBot.Migrations
b.ToTable("RaceAnimals"); b.ToTable("RaceAnimals");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Reminder", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Reminder", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -611,7 +611,7 @@ namespace NadekoBot.Migrations
b.ToTable("Reminders"); b.ToTable("Reminders");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Repeater", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Repeater", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -632,7 +632,7 @@ namespace NadekoBot.Migrations
b.ToTable("Repeaters"); b.ToTable("Repeaters");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.SelfAssignedRole", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.SelfAssignedRole", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -649,124 +649,124 @@ namespace NadekoBot.Migrations
b.ToTable("SelfAssignableRoles"); b.ToTable("SelfAssignableRoles");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.BlacklistItem", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlacklistItem", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("Blacklist") .WithMany("Blacklist")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashCaller", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashCaller", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.ClashWar", "ClashWar") b.HasOne("NadekoBot.Core.Services.Database.Models.ClashWar", "ClashWar")
.WithMany("Bases") .WithMany("Bases")
.HasForeignKey("ClashWarId") .HasForeignKey("ClashWarId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandCooldown", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandCooldown", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("CommandCooldowns") .WithMany("CommandCooldowns")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.EightBallResponse", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("EightBallResponses") .WithMany("EightBallResponses")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilterChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilterInvitesChannelIds") .WithMany("FilterInvitesChannelIds")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilterWordsChannelIds") .WithMany("FilterWordsChannelIds")
.HasForeignKey("GuildConfigId1"); .HasForeignKey("GuildConfigId1");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilteredWord", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilteredWord", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilteredWords") .WithMany("FilteredWords")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FollowedStream", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FollowedStream", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FollowedStreams") .WithMany("FollowedStreams")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GCChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GCChannelId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("GenerateCurrencyChannelIds") .WithMany("GenerateCurrencyChannelIds")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildConfig", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany() .WithMany()
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
b.HasOne("NadekoBot.Services.Database.Models.Permission", "RootPermission") b.HasOne("NadekoBot.Core.Services.Database.Models.Permission", "RootPermission")
.WithMany() .WithMany()
.HasForeignKey("RootPermissionId"); .HasForeignKey("RootPermissionId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredLogChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredLogChannel", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany("IgnoredChannels") .WithMany("IgnoredChannels")
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredVoicePresenceChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany("IgnoredVoicePresenceChannelIds") .WithMany("IgnoredVoicePresenceChannelIds")
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ModulePrefix", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ModulePrefix", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("ModulePrefixes") .WithMany("ModulePrefixes")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permission", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.Permission", "Next") b.HasOne("NadekoBot.Core.Services.Database.Models.Permission", "Next")
.WithOne("Previous") .WithOne("Previous")
.HasForeignKey("NadekoBot.Services.Database.Models.Permission", "NextId"); .HasForeignKey("NadekoBot.Core.Services.Database.Models.Permission", "NextId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlayingStatus", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlayingStatus", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("RotatingStatusMessages") .WithMany("RotatingStatusMessages")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlaylistSong", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.MusicPlaylist") b.HasOne("NadekoBot.Core.Services.Database.Models.MusicPlaylist")
.WithMany("Songs") .WithMany("Songs")
.HasForeignKey("MusicPlaylistId") .HasForeignKey("MusicPlaylistId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.RaceAnimal", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("RaceAnimals") .WithMany("RaceAnimals")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });

View File

@ -3,7 +3,7 @@ using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Migrations;
using NadekoBot.Services.Database; using NadekoBot.Core.Services.Database;
namespace NadekoBot.Migrations namespace NadekoBot.Migrations
{ {
@ -16,7 +16,7 @@ namespace NadekoBot.Migrations
modelBuilder modelBuilder
.HasAnnotation("ProductVersion", "1.0.0-rtm-21431"); .HasAnnotation("ProductVersion", "1.0.0-rtm-21431");
modelBuilder.Entity("NadekoBot.Services.Database.Models.BlacklistItem", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlacklistItem", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -34,7 +34,7 @@ namespace NadekoBot.Migrations
b.ToTable("BlacklistItem"); b.ToTable("BlacklistItem");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.BotConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BotConfig", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -70,7 +70,7 @@ namespace NadekoBot.Migrations
b.ToTable("BotConfig"); b.ToTable("BotConfig");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashCaller", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashCaller", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -94,7 +94,7 @@ namespace NadekoBot.Migrations
b.ToTable("ClashCallers"); b.ToTable("ClashCallers");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashWar", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashWar", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -116,7 +116,7 @@ namespace NadekoBot.Migrations
b.ToTable("ClashOfClans"); b.ToTable("ClashOfClans");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandCooldown", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandCooldown", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -134,7 +134,7 @@ namespace NadekoBot.Migrations
b.ToTable("CommandCooldown"); b.ToTable("CommandCooldown");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ConvertUnit", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ConvertUnit", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -150,7 +150,7 @@ namespace NadekoBot.Migrations
b.ToTable("ConversionUnits"); b.ToTable("ConversionUnits");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Currency", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Currency", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -167,7 +167,7 @@ namespace NadekoBot.Migrations
b.ToTable("Currency"); b.ToTable("Currency");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CurrencyTransaction", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CurrencyTransaction", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -183,7 +183,7 @@ namespace NadekoBot.Migrations
b.ToTable("CurrencyTransactions"); b.ToTable("CurrencyTransactions");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CustomReaction", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CustomReaction", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -203,7 +203,7 @@ namespace NadekoBot.Migrations
b.ToTable("CustomReactions"); b.ToTable("CustomReactions");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Donator", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Donator", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -222,7 +222,7 @@ namespace NadekoBot.Migrations
b.ToTable("Donators"); b.ToTable("Donators");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.EightBallResponse", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -238,7 +238,7 @@ namespace NadekoBot.Migrations
b.ToTable("EightBallResponses"); b.ToTable("EightBallResponses");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilterChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -258,7 +258,7 @@ namespace NadekoBot.Migrations
b.ToTable("FilterChannelId"); b.ToTable("FilterChannelId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilteredWord", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilteredWord", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -274,7 +274,7 @@ namespace NadekoBot.Migrations
b.ToTable("FilteredWord"); b.ToTable("FilteredWord");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FollowedStream", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FollowedStream", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -296,7 +296,7 @@ namespace NadekoBot.Migrations
b.ToTable("FollowedStream"); b.ToTable("FollowedStream");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GCChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GCChannelId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -312,7 +312,7 @@ namespace NadekoBot.Migrations
b.ToTable("GCChannelId"); b.ToTable("GCChannelId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildConfig", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -377,7 +377,7 @@ namespace NadekoBot.Migrations
b.ToTable("GuildConfigs"); b.ToTable("GuildConfigs");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredLogChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredLogChannel", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -393,7 +393,7 @@ namespace NadekoBot.Migrations
b.ToTable("IgnoredLogChannels"); b.ToTable("IgnoredLogChannels");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredVoicePresenceChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -409,7 +409,7 @@ namespace NadekoBot.Migrations
b.ToTable("IgnoredVoicePresenceCHannels"); b.ToTable("IgnoredVoicePresenceCHannels");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.LogSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.LogSetting", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -451,7 +451,7 @@ namespace NadekoBot.Migrations
b.ToTable("LogSettings"); b.ToTable("LogSettings");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ModulePrefix", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ModulePrefix", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -469,7 +469,7 @@ namespace NadekoBot.Migrations
b.ToTable("ModulePrefixes"); b.ToTable("ModulePrefixes");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.MusicPlaylist", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MusicPlaylist", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -485,7 +485,7 @@ namespace NadekoBot.Migrations
b.ToTable("MusicPlaylists"); b.ToTable("MusicPlaylists");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permission", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -510,7 +510,7 @@ namespace NadekoBot.Migrations
b.ToTable("Permission"); b.ToTable("Permission");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlayingStatus", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlayingStatus", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -526,7 +526,7 @@ namespace NadekoBot.Migrations
b.ToTable("PlayingStatus"); b.ToTable("PlayingStatus");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlaylistSong", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -550,7 +550,7 @@ namespace NadekoBot.Migrations
b.ToTable("PlaylistSong"); b.ToTable("PlaylistSong");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Quote", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Quote", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -573,7 +573,7 @@ namespace NadekoBot.Migrations
b.ToTable("Quotes"); b.ToTable("Quotes");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.RaceAnimal", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -591,7 +591,7 @@ namespace NadekoBot.Migrations
b.ToTable("RaceAnimals"); b.ToTable("RaceAnimals");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Reminder", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Reminder", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -613,7 +613,7 @@ namespace NadekoBot.Migrations
b.ToTable("Reminders"); b.ToTable("Reminders");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Repeater", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Repeater", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -634,7 +634,7 @@ namespace NadekoBot.Migrations
b.ToTable("Repeaters"); b.ToTable("Repeaters");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.SelfAssignedRole", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.SelfAssignedRole", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -651,124 +651,124 @@ namespace NadekoBot.Migrations
b.ToTable("SelfAssignableRoles"); b.ToTable("SelfAssignableRoles");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.BlacklistItem", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlacklistItem", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("Blacklist") .WithMany("Blacklist")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashCaller", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashCaller", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.ClashWar", "ClashWar") b.HasOne("NadekoBot.Core.Services.Database.Models.ClashWar", "ClashWar")
.WithMany("Bases") .WithMany("Bases")
.HasForeignKey("ClashWarId") .HasForeignKey("ClashWarId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandCooldown", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandCooldown", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("CommandCooldowns") .WithMany("CommandCooldowns")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.EightBallResponse", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("EightBallResponses") .WithMany("EightBallResponses")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilterChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilterInvitesChannelIds") .WithMany("FilterInvitesChannelIds")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilterWordsChannelIds") .WithMany("FilterWordsChannelIds")
.HasForeignKey("GuildConfigId1"); .HasForeignKey("GuildConfigId1");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilteredWord", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilteredWord", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilteredWords") .WithMany("FilteredWords")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FollowedStream", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FollowedStream", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FollowedStreams") .WithMany("FollowedStreams")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GCChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GCChannelId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("GenerateCurrencyChannelIds") .WithMany("GenerateCurrencyChannelIds")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildConfig", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany() .WithMany()
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
b.HasOne("NadekoBot.Services.Database.Models.Permission", "RootPermission") b.HasOne("NadekoBot.Core.Services.Database.Models.Permission", "RootPermission")
.WithMany() .WithMany()
.HasForeignKey("RootPermissionId"); .HasForeignKey("RootPermissionId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredLogChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredLogChannel", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany("IgnoredChannels") .WithMany("IgnoredChannels")
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredVoicePresenceChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany("IgnoredVoicePresenceChannelIds") .WithMany("IgnoredVoicePresenceChannelIds")
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ModulePrefix", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ModulePrefix", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("ModulePrefixes") .WithMany("ModulePrefixes")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permission", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.Permission", "Next") b.HasOne("NadekoBot.Core.Services.Database.Models.Permission", "Next")
.WithOne("Previous") .WithOne("Previous")
.HasForeignKey("NadekoBot.Services.Database.Models.Permission", "NextId"); .HasForeignKey("NadekoBot.Core.Services.Database.Models.Permission", "NextId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlayingStatus", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlayingStatus", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("RotatingStatusMessages") .WithMany("RotatingStatusMessages")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlaylistSong", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.MusicPlaylist") b.HasOne("NadekoBot.Core.Services.Database.Models.MusicPlaylist")
.WithMany("Songs") .WithMany("Songs")
.HasForeignKey("MusicPlaylistId") .HasForeignKey("MusicPlaylistId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.RaceAnimal", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("RaceAnimals") .WithMany("RaceAnimals")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });

View File

@ -3,7 +3,7 @@ using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Migrations;
using NadekoBot.Services.Database; using NadekoBot.Core.Services.Database;
namespace NadekoBot.Migrations namespace NadekoBot.Migrations
{ {
@ -16,7 +16,7 @@ namespace NadekoBot.Migrations
modelBuilder modelBuilder
.HasAnnotation("ProductVersion", "1.0.0-rtm-21431"); .HasAnnotation("ProductVersion", "1.0.0-rtm-21431");
modelBuilder.Entity("NadekoBot.Services.Database.Models.BlacklistItem", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlacklistItem", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -34,7 +34,7 @@ namespace NadekoBot.Migrations
b.ToTable("BlacklistItem"); b.ToTable("BlacklistItem");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.BotConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BotConfig", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -70,7 +70,7 @@ namespace NadekoBot.Migrations
b.ToTable("BotConfig"); b.ToTable("BotConfig");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashCaller", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashCaller", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -94,7 +94,7 @@ namespace NadekoBot.Migrations
b.ToTable("ClashCallers"); b.ToTable("ClashCallers");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashWar", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashWar", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -116,7 +116,7 @@ namespace NadekoBot.Migrations
b.ToTable("ClashOfClans"); b.ToTable("ClashOfClans");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandCooldown", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandCooldown", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -134,7 +134,7 @@ namespace NadekoBot.Migrations
b.ToTable("CommandCooldown"); b.ToTable("CommandCooldown");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ConvertUnit", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ConvertUnit", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -150,7 +150,7 @@ namespace NadekoBot.Migrations
b.ToTable("ConversionUnits"); b.ToTable("ConversionUnits");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Currency", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Currency", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -167,7 +167,7 @@ namespace NadekoBot.Migrations
b.ToTable("Currency"); b.ToTable("Currency");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CurrencyTransaction", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CurrencyTransaction", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -183,7 +183,7 @@ namespace NadekoBot.Migrations
b.ToTable("CurrencyTransactions"); b.ToTable("CurrencyTransactions");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CustomReaction", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CustomReaction", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -203,7 +203,7 @@ namespace NadekoBot.Migrations
b.ToTable("CustomReactions"); b.ToTable("CustomReactions");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Donator", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Donator", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -222,7 +222,7 @@ namespace NadekoBot.Migrations
b.ToTable("Donators"); b.ToTable("Donators");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.EightBallResponse", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -238,7 +238,7 @@ namespace NadekoBot.Migrations
b.ToTable("EightBallResponses"); b.ToTable("EightBallResponses");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilterChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -258,7 +258,7 @@ namespace NadekoBot.Migrations
b.ToTable("FilterChannelId"); b.ToTable("FilterChannelId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilteredWord", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilteredWord", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -274,7 +274,7 @@ namespace NadekoBot.Migrations
b.ToTable("FilteredWord"); b.ToTable("FilteredWord");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FollowedStream", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FollowedStream", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -296,7 +296,7 @@ namespace NadekoBot.Migrations
b.ToTable("FollowedStream"); b.ToTable("FollowedStream");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GCChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GCChannelId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -312,7 +312,7 @@ namespace NadekoBot.Migrations
b.ToTable("GCChannelId"); b.ToTable("GCChannelId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildConfig", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -379,7 +379,7 @@ namespace NadekoBot.Migrations
b.ToTable("GuildConfigs"); b.ToTable("GuildConfigs");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredLogChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredLogChannel", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -395,7 +395,7 @@ namespace NadekoBot.Migrations
b.ToTable("IgnoredLogChannels"); b.ToTable("IgnoredLogChannels");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredVoicePresenceChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -411,7 +411,7 @@ namespace NadekoBot.Migrations
b.ToTable("IgnoredVoicePresenceCHannels"); b.ToTable("IgnoredVoicePresenceCHannels");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.LogSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.LogSetting", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -453,7 +453,7 @@ namespace NadekoBot.Migrations
b.ToTable("LogSettings"); b.ToTable("LogSettings");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ModulePrefix", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ModulePrefix", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -471,7 +471,7 @@ namespace NadekoBot.Migrations
b.ToTable("ModulePrefixes"); b.ToTable("ModulePrefixes");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.MusicPlaylist", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MusicPlaylist", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -487,7 +487,7 @@ namespace NadekoBot.Migrations
b.ToTable("MusicPlaylists"); b.ToTable("MusicPlaylists");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permission", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -512,7 +512,7 @@ namespace NadekoBot.Migrations
b.ToTable("Permission"); b.ToTable("Permission");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlayingStatus", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlayingStatus", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -528,7 +528,7 @@ namespace NadekoBot.Migrations
b.ToTable("PlayingStatus"); b.ToTable("PlayingStatus");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlaylistSong", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -552,7 +552,7 @@ namespace NadekoBot.Migrations
b.ToTable("PlaylistSong"); b.ToTable("PlaylistSong");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Quote", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Quote", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -575,7 +575,7 @@ namespace NadekoBot.Migrations
b.ToTable("Quotes"); b.ToTable("Quotes");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.RaceAnimal", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -593,7 +593,7 @@ namespace NadekoBot.Migrations
b.ToTable("RaceAnimals"); b.ToTable("RaceAnimals");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Reminder", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Reminder", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -615,7 +615,7 @@ namespace NadekoBot.Migrations
b.ToTable("Reminders"); b.ToTable("Reminders");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Repeater", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Repeater", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -636,7 +636,7 @@ namespace NadekoBot.Migrations
b.ToTable("Repeaters"); b.ToTable("Repeaters");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.SelfAssignedRole", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.SelfAssignedRole", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -653,124 +653,124 @@ namespace NadekoBot.Migrations
b.ToTable("SelfAssignableRoles"); b.ToTable("SelfAssignableRoles");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.BlacklistItem", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlacklistItem", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("Blacklist") .WithMany("Blacklist")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashCaller", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashCaller", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.ClashWar", "ClashWar") b.HasOne("NadekoBot.Core.Services.Database.Models.ClashWar", "ClashWar")
.WithMany("Bases") .WithMany("Bases")
.HasForeignKey("ClashWarId") .HasForeignKey("ClashWarId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandCooldown", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandCooldown", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("CommandCooldowns") .WithMany("CommandCooldowns")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.EightBallResponse", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("EightBallResponses") .WithMany("EightBallResponses")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilterChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilterInvitesChannelIds") .WithMany("FilterInvitesChannelIds")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilterWordsChannelIds") .WithMany("FilterWordsChannelIds")
.HasForeignKey("GuildConfigId1"); .HasForeignKey("GuildConfigId1");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilteredWord", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilteredWord", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilteredWords") .WithMany("FilteredWords")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FollowedStream", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FollowedStream", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FollowedStreams") .WithMany("FollowedStreams")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GCChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GCChannelId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("GenerateCurrencyChannelIds") .WithMany("GenerateCurrencyChannelIds")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildConfig", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany() .WithMany()
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
b.HasOne("NadekoBot.Services.Database.Models.Permission", "RootPermission") b.HasOne("NadekoBot.Core.Services.Database.Models.Permission", "RootPermission")
.WithMany() .WithMany()
.HasForeignKey("RootPermissionId"); .HasForeignKey("RootPermissionId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredLogChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredLogChannel", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany("IgnoredChannels") .WithMany("IgnoredChannels")
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredVoicePresenceChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany("IgnoredVoicePresenceChannelIds") .WithMany("IgnoredVoicePresenceChannelIds")
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ModulePrefix", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ModulePrefix", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("ModulePrefixes") .WithMany("ModulePrefixes")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permission", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.Permission", "Next") b.HasOne("NadekoBot.Core.Services.Database.Models.Permission", "Next")
.WithOne("Previous") .WithOne("Previous")
.HasForeignKey("NadekoBot.Services.Database.Models.Permission", "NextId"); .HasForeignKey("NadekoBot.Core.Services.Database.Models.Permission", "NextId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlayingStatus", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlayingStatus", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("RotatingStatusMessages") .WithMany("RotatingStatusMessages")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlaylistSong", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.MusicPlaylist") b.HasOne("NadekoBot.Core.Services.Database.Models.MusicPlaylist")
.WithMany("Songs") .WithMany("Songs")
.HasForeignKey("MusicPlaylistId") .HasForeignKey("MusicPlaylistId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.RaceAnimal", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("RaceAnimals") .WithMany("RaceAnimals")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });

View File

@ -3,7 +3,7 @@ using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Migrations;
using NadekoBot.Services.Database; using NadekoBot.Core.Services.Database;
namespace NadekoBot.Migrations namespace NadekoBot.Migrations
{ {
@ -16,7 +16,7 @@ namespace NadekoBot.Migrations
modelBuilder modelBuilder
.HasAnnotation("ProductVersion", "1.0.0-rtm-21431"); .HasAnnotation("ProductVersion", "1.0.0-rtm-21431");
modelBuilder.Entity("NadekoBot.Services.Database.Models.BlacklistItem", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlacklistItem", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -34,7 +34,7 @@ namespace NadekoBot.Migrations
b.ToTable("BlacklistItem"); b.ToTable("BlacklistItem");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.BotConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BotConfig", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -70,7 +70,7 @@ namespace NadekoBot.Migrations
b.ToTable("BotConfig"); b.ToTable("BotConfig");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashCaller", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashCaller", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -94,7 +94,7 @@ namespace NadekoBot.Migrations
b.ToTable("ClashCallers"); b.ToTable("ClashCallers");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashWar", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashWar", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -116,7 +116,7 @@ namespace NadekoBot.Migrations
b.ToTable("ClashOfClans"); b.ToTable("ClashOfClans");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandCooldown", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandCooldown", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -134,7 +134,7 @@ namespace NadekoBot.Migrations
b.ToTable("CommandCooldown"); b.ToTable("CommandCooldown");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ConvertUnit", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ConvertUnit", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -150,7 +150,7 @@ namespace NadekoBot.Migrations
b.ToTable("ConversionUnits"); b.ToTable("ConversionUnits");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Currency", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Currency", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -167,7 +167,7 @@ namespace NadekoBot.Migrations
b.ToTable("Currency"); b.ToTable("Currency");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CurrencyTransaction", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CurrencyTransaction", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -183,7 +183,7 @@ namespace NadekoBot.Migrations
b.ToTable("CurrencyTransactions"); b.ToTable("CurrencyTransactions");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CustomReaction", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CustomReaction", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -203,7 +203,7 @@ namespace NadekoBot.Migrations
b.ToTable("CustomReactions"); b.ToTable("CustomReactions");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Donator", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Donator", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -222,7 +222,7 @@ namespace NadekoBot.Migrations
b.ToTable("Donators"); b.ToTable("Donators");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.EightBallResponse", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -238,7 +238,7 @@ namespace NadekoBot.Migrations
b.ToTable("EightBallResponses"); b.ToTable("EightBallResponses");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilterChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -258,7 +258,7 @@ namespace NadekoBot.Migrations
b.ToTable("FilterChannelId"); b.ToTable("FilterChannelId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilteredWord", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilteredWord", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -274,7 +274,7 @@ namespace NadekoBot.Migrations
b.ToTable("FilteredWord"); b.ToTable("FilteredWord");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FollowedStream", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FollowedStream", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -296,7 +296,7 @@ namespace NadekoBot.Migrations
b.ToTable("FollowedStream"); b.ToTable("FollowedStream");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GCChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GCChannelId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -312,7 +312,7 @@ namespace NadekoBot.Migrations
b.ToTable("GCChannelId"); b.ToTable("GCChannelId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildConfig", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -381,7 +381,7 @@ namespace NadekoBot.Migrations
b.ToTable("GuildConfigs"); b.ToTable("GuildConfigs");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredLogChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredLogChannel", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -397,7 +397,7 @@ namespace NadekoBot.Migrations
b.ToTable("IgnoredLogChannels"); b.ToTable("IgnoredLogChannels");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredVoicePresenceChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -413,7 +413,7 @@ namespace NadekoBot.Migrations
b.ToTable("IgnoredVoicePresenceCHannels"); b.ToTable("IgnoredVoicePresenceCHannels");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.LogSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.LogSetting", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -455,7 +455,7 @@ namespace NadekoBot.Migrations
b.ToTable("LogSettings"); b.ToTable("LogSettings");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ModulePrefix", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ModulePrefix", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -473,7 +473,7 @@ namespace NadekoBot.Migrations
b.ToTable("ModulePrefixes"); b.ToTable("ModulePrefixes");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.MusicPlaylist", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MusicPlaylist", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -489,7 +489,7 @@ namespace NadekoBot.Migrations
b.ToTable("MusicPlaylists"); b.ToTable("MusicPlaylists");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permission", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -514,7 +514,7 @@ namespace NadekoBot.Migrations
b.ToTable("Permission"); b.ToTable("Permission");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlayingStatus", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlayingStatus", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -530,7 +530,7 @@ namespace NadekoBot.Migrations
b.ToTable("PlayingStatus"); b.ToTable("PlayingStatus");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlaylistSong", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -554,7 +554,7 @@ namespace NadekoBot.Migrations
b.ToTable("PlaylistSong"); b.ToTable("PlaylistSong");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Quote", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Quote", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -577,7 +577,7 @@ namespace NadekoBot.Migrations
b.ToTable("Quotes"); b.ToTable("Quotes");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.RaceAnimal", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -595,7 +595,7 @@ namespace NadekoBot.Migrations
b.ToTable("RaceAnimals"); b.ToTable("RaceAnimals");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Reminder", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Reminder", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -617,7 +617,7 @@ namespace NadekoBot.Migrations
b.ToTable("Reminders"); b.ToTable("Reminders");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Repeater", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Repeater", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -638,7 +638,7 @@ namespace NadekoBot.Migrations
b.ToTable("Repeaters"); b.ToTable("Repeaters");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.SelfAssignedRole", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.SelfAssignedRole", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -655,124 +655,124 @@ namespace NadekoBot.Migrations
b.ToTable("SelfAssignableRoles"); b.ToTable("SelfAssignableRoles");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.BlacklistItem", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlacklistItem", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("Blacklist") .WithMany("Blacklist")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashCaller", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashCaller", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.ClashWar", "ClashWar") b.HasOne("NadekoBot.Core.Services.Database.Models.ClashWar", "ClashWar")
.WithMany("Bases") .WithMany("Bases")
.HasForeignKey("ClashWarId") .HasForeignKey("ClashWarId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandCooldown", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandCooldown", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("CommandCooldowns") .WithMany("CommandCooldowns")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.EightBallResponse", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("EightBallResponses") .WithMany("EightBallResponses")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilterChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilterInvitesChannelIds") .WithMany("FilterInvitesChannelIds")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilterWordsChannelIds") .WithMany("FilterWordsChannelIds")
.HasForeignKey("GuildConfigId1"); .HasForeignKey("GuildConfigId1");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilteredWord", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilteredWord", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilteredWords") .WithMany("FilteredWords")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FollowedStream", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FollowedStream", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FollowedStreams") .WithMany("FollowedStreams")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GCChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GCChannelId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("GenerateCurrencyChannelIds") .WithMany("GenerateCurrencyChannelIds")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildConfig", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany() .WithMany()
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
b.HasOne("NadekoBot.Services.Database.Models.Permission", "RootPermission") b.HasOne("NadekoBot.Core.Services.Database.Models.Permission", "RootPermission")
.WithMany() .WithMany()
.HasForeignKey("RootPermissionId"); .HasForeignKey("RootPermissionId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredLogChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredLogChannel", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany("IgnoredChannels") .WithMany("IgnoredChannels")
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredVoicePresenceChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany("IgnoredVoicePresenceChannelIds") .WithMany("IgnoredVoicePresenceChannelIds")
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ModulePrefix", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ModulePrefix", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("ModulePrefixes") .WithMany("ModulePrefixes")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permission", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.Permission", "Next") b.HasOne("NadekoBot.Core.Services.Database.Models.Permission", "Next")
.WithOne("Previous") .WithOne("Previous")
.HasForeignKey("NadekoBot.Services.Database.Models.Permission", "NextId"); .HasForeignKey("NadekoBot.Core.Services.Database.Models.Permission", "NextId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlayingStatus", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlayingStatus", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("RotatingStatusMessages") .WithMany("RotatingStatusMessages")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlaylistSong", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.MusicPlaylist") b.HasOne("NadekoBot.Core.Services.Database.Models.MusicPlaylist")
.WithMany("Songs") .WithMany("Songs")
.HasForeignKey("MusicPlaylistId") .HasForeignKey("MusicPlaylistId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.RaceAnimal", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("RaceAnimals") .WithMany("RaceAnimals")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });

View File

@ -3,7 +3,7 @@ using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Migrations;
using NadekoBot.Services.Database; using NadekoBot.Core.Services.Database;
namespace NadekoBot.Migrations namespace NadekoBot.Migrations
{ {
@ -16,7 +16,7 @@ namespace NadekoBot.Migrations
modelBuilder modelBuilder
.HasAnnotation("ProductVersion", "1.1.0-rtm-22752"); .HasAnnotation("ProductVersion", "1.1.0-rtm-22752");
modelBuilder.Entity("NadekoBot.Services.Database.Models.BlacklistItem", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlacklistItem", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -34,7 +34,7 @@ namespace NadekoBot.Migrations
b.ToTable("BlacklistItem"); b.ToTable("BlacklistItem");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.BotConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BotConfig", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -70,7 +70,7 @@ namespace NadekoBot.Migrations
b.ToTable("BotConfig"); b.ToTable("BotConfig");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashCaller", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashCaller", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -94,7 +94,7 @@ namespace NadekoBot.Migrations
b.ToTable("ClashCallers"); b.ToTable("ClashCallers");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashWar", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashWar", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -116,7 +116,7 @@ namespace NadekoBot.Migrations
b.ToTable("ClashOfClans"); b.ToTable("ClashOfClans");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandCooldown", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandCooldown", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -134,7 +134,7 @@ namespace NadekoBot.Migrations
b.ToTable("CommandCooldown"); b.ToTable("CommandCooldown");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ConvertUnit", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ConvertUnit", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -150,7 +150,7 @@ namespace NadekoBot.Migrations
b.ToTable("ConversionUnits"); b.ToTable("ConversionUnits");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Currency", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Currency", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -167,7 +167,7 @@ namespace NadekoBot.Migrations
b.ToTable("Currency"); b.ToTable("Currency");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CurrencyTransaction", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CurrencyTransaction", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -183,7 +183,7 @@ namespace NadekoBot.Migrations
b.ToTable("CurrencyTransactions"); b.ToTable("CurrencyTransactions");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CustomReaction", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CustomReaction", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -203,7 +203,7 @@ namespace NadekoBot.Migrations
b.ToTable("CustomReactions"); b.ToTable("CustomReactions");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Donator", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Donator", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -222,7 +222,7 @@ namespace NadekoBot.Migrations
b.ToTable("Donators"); b.ToTable("Donators");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.EightBallResponse", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -238,7 +238,7 @@ namespace NadekoBot.Migrations
b.ToTable("EightBallResponses"); b.ToTable("EightBallResponses");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilterChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -258,7 +258,7 @@ namespace NadekoBot.Migrations
b.ToTable("FilterChannelId"); b.ToTable("FilterChannelId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilteredWord", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilteredWord", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -274,7 +274,7 @@ namespace NadekoBot.Migrations
b.ToTable("FilteredWord"); b.ToTable("FilteredWord");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FollowedStream", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FollowedStream", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -296,7 +296,7 @@ namespace NadekoBot.Migrations
b.ToTable("FollowedStream"); b.ToTable("FollowedStream");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GCChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GCChannelId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -312,7 +312,7 @@ namespace NadekoBot.Migrations
b.ToTable("GCChannelId"); b.ToTable("GCChannelId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildConfig", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -383,7 +383,7 @@ namespace NadekoBot.Migrations
b.ToTable("GuildConfigs"); b.ToTable("GuildConfigs");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredLogChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredLogChannel", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -399,7 +399,7 @@ namespace NadekoBot.Migrations
b.ToTable("IgnoredLogChannels"); b.ToTable("IgnoredLogChannels");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredVoicePresenceChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -415,7 +415,7 @@ namespace NadekoBot.Migrations
b.ToTable("IgnoredVoicePresenceCHannels"); b.ToTable("IgnoredVoicePresenceCHannels");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.LogSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.LogSetting", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -457,7 +457,7 @@ namespace NadekoBot.Migrations
b.ToTable("LogSettings"); b.ToTable("LogSettings");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ModulePrefix", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ModulePrefix", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -475,7 +475,7 @@ namespace NadekoBot.Migrations
b.ToTable("ModulePrefixes"); b.ToTable("ModulePrefixes");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.MusicPlaylist", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MusicPlaylist", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -491,7 +491,7 @@ namespace NadekoBot.Migrations
b.ToTable("MusicPlaylists"); b.ToTable("MusicPlaylists");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permission", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -516,7 +516,7 @@ namespace NadekoBot.Migrations
b.ToTable("Permission"); b.ToTable("Permission");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlayingStatus", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlayingStatus", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -532,7 +532,7 @@ namespace NadekoBot.Migrations
b.ToTable("PlayingStatus"); b.ToTable("PlayingStatus");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlaylistSong", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -556,7 +556,7 @@ namespace NadekoBot.Migrations
b.ToTable("PlaylistSong"); b.ToTable("PlaylistSong");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Quote", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Quote", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -579,7 +579,7 @@ namespace NadekoBot.Migrations
b.ToTable("Quotes"); b.ToTable("Quotes");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.RaceAnimal", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -597,7 +597,7 @@ namespace NadekoBot.Migrations
b.ToTable("RaceAnimals"); b.ToTable("RaceAnimals");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Reminder", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Reminder", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -619,7 +619,7 @@ namespace NadekoBot.Migrations
b.ToTable("Reminders"); b.ToTable("Reminders");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Repeater", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Repeater", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -640,7 +640,7 @@ namespace NadekoBot.Migrations
b.ToTable("Repeaters"); b.ToTable("Repeaters");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.SelfAssignedRole", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.SelfAssignedRole", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -657,124 +657,124 @@ namespace NadekoBot.Migrations
b.ToTable("SelfAssignableRoles"); b.ToTable("SelfAssignableRoles");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.BlacklistItem", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlacklistItem", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("Blacklist") .WithMany("Blacklist")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashCaller", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashCaller", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.ClashWar", "ClashWar") b.HasOne("NadekoBot.Core.Services.Database.Models.ClashWar", "ClashWar")
.WithMany("Bases") .WithMany("Bases")
.HasForeignKey("ClashWarId") .HasForeignKey("ClashWarId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandCooldown", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandCooldown", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("CommandCooldowns") .WithMany("CommandCooldowns")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.EightBallResponse", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("EightBallResponses") .WithMany("EightBallResponses")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilterChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilterInvitesChannelIds") .WithMany("FilterInvitesChannelIds")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilterWordsChannelIds") .WithMany("FilterWordsChannelIds")
.HasForeignKey("GuildConfigId1"); .HasForeignKey("GuildConfigId1");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilteredWord", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilteredWord", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilteredWords") .WithMany("FilteredWords")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FollowedStream", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FollowedStream", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FollowedStreams") .WithMany("FollowedStreams")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GCChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GCChannelId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("GenerateCurrencyChannelIds") .WithMany("GenerateCurrencyChannelIds")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildConfig", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany() .WithMany()
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
b.HasOne("NadekoBot.Services.Database.Models.Permission", "RootPermission") b.HasOne("NadekoBot.Core.Services.Database.Models.Permission", "RootPermission")
.WithMany() .WithMany()
.HasForeignKey("RootPermissionId"); .HasForeignKey("RootPermissionId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredLogChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredLogChannel", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany("IgnoredChannels") .WithMany("IgnoredChannels")
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredVoicePresenceChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany("IgnoredVoicePresenceChannelIds") .WithMany("IgnoredVoicePresenceChannelIds")
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ModulePrefix", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ModulePrefix", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("ModulePrefixes") .WithMany("ModulePrefixes")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permission", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.Permission", "Next") b.HasOne("NadekoBot.Core.Services.Database.Models.Permission", "Next")
.WithOne("Previous") .WithOne("Previous")
.HasForeignKey("NadekoBot.Services.Database.Models.Permission", "NextId"); .HasForeignKey("NadekoBot.Core.Services.Database.Models.Permission", "NextId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlayingStatus", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlayingStatus", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("RotatingStatusMessages") .WithMany("RotatingStatusMessages")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlaylistSong", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.MusicPlaylist") b.HasOne("NadekoBot.Core.Services.Database.Models.MusicPlaylist")
.WithMany("Songs") .WithMany("Songs")
.HasForeignKey("MusicPlaylistId") .HasForeignKey("MusicPlaylistId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.RaceAnimal", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("RaceAnimals") .WithMany("RaceAnimals")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });

View File

@ -3,7 +3,7 @@ using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Migrations;
using NadekoBot.Services.Database; using NadekoBot.Core.Services.Database;
namespace NadekoBot.Migrations namespace NadekoBot.Migrations
{ {
@ -16,7 +16,7 @@ namespace NadekoBot.Migrations
modelBuilder modelBuilder
.HasAnnotation("ProductVersion", "1.1.0-rtm-22752"); .HasAnnotation("ProductVersion", "1.1.0-rtm-22752");
modelBuilder.Entity("NadekoBot.Services.Database.Models.BlacklistItem", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlacklistItem", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -34,7 +34,7 @@ namespace NadekoBot.Migrations
b.ToTable("BlacklistItem"); b.ToTable("BlacklistItem");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.BotConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BotConfig", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -70,7 +70,7 @@ namespace NadekoBot.Migrations
b.ToTable("BotConfig"); b.ToTable("BotConfig");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashCaller", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashCaller", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -94,7 +94,7 @@ namespace NadekoBot.Migrations
b.ToTable("ClashCallers"); b.ToTable("ClashCallers");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashWar", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashWar", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -116,7 +116,7 @@ namespace NadekoBot.Migrations
b.ToTable("ClashOfClans"); b.ToTable("ClashOfClans");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandCooldown", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandCooldown", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -134,7 +134,7 @@ namespace NadekoBot.Migrations
b.ToTable("CommandCooldown"); b.ToTable("CommandCooldown");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ConvertUnit", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ConvertUnit", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -150,7 +150,7 @@ namespace NadekoBot.Migrations
b.ToTable("ConversionUnits"); b.ToTable("ConversionUnits");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Currency", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Currency", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -167,7 +167,7 @@ namespace NadekoBot.Migrations
b.ToTable("Currency"); b.ToTable("Currency");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CurrencyTransaction", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CurrencyTransaction", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -183,7 +183,7 @@ namespace NadekoBot.Migrations
b.ToTable("CurrencyTransactions"); b.ToTable("CurrencyTransactions");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CustomReaction", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CustomReaction", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -203,7 +203,7 @@ namespace NadekoBot.Migrations
b.ToTable("CustomReactions"); b.ToTable("CustomReactions");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Donator", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Donator", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -222,7 +222,7 @@ namespace NadekoBot.Migrations
b.ToTable("Donators"); b.ToTable("Donators");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.EightBallResponse", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -238,7 +238,7 @@ namespace NadekoBot.Migrations
b.ToTable("EightBallResponses"); b.ToTable("EightBallResponses");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilterChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -258,7 +258,7 @@ namespace NadekoBot.Migrations
b.ToTable("FilterChannelId"); b.ToTable("FilterChannelId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilteredWord", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilteredWord", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -274,7 +274,7 @@ namespace NadekoBot.Migrations
b.ToTable("FilteredWord"); b.ToTable("FilteredWord");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FollowedStream", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FollowedStream", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -296,7 +296,7 @@ namespace NadekoBot.Migrations
b.ToTable("FollowedStream"); b.ToTable("FollowedStream");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GCChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GCChannelId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -312,7 +312,7 @@ namespace NadekoBot.Migrations
b.ToTable("GCChannelId"); b.ToTable("GCChannelId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildConfig", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -383,7 +383,7 @@ namespace NadekoBot.Migrations
b.ToTable("GuildConfigs"); b.ToTable("GuildConfigs");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredLogChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredLogChannel", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -399,7 +399,7 @@ namespace NadekoBot.Migrations
b.ToTable("IgnoredLogChannels"); b.ToTable("IgnoredLogChannels");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredVoicePresenceChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -415,7 +415,7 @@ namespace NadekoBot.Migrations
b.ToTable("IgnoredVoicePresenceCHannels"); b.ToTable("IgnoredVoicePresenceCHannels");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.LogSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.LogSetting", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -457,7 +457,7 @@ namespace NadekoBot.Migrations
b.ToTable("LogSettings"); b.ToTable("LogSettings");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ModulePrefix", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ModulePrefix", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -475,7 +475,7 @@ namespace NadekoBot.Migrations
b.ToTable("ModulePrefixes"); b.ToTable("ModulePrefixes");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.MusicPlaylist", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MusicPlaylist", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -491,7 +491,7 @@ namespace NadekoBot.Migrations
b.ToTable("MusicPlaylists"); b.ToTable("MusicPlaylists");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permission", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -516,7 +516,7 @@ namespace NadekoBot.Migrations
b.ToTable("Permission"); b.ToTable("Permission");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlayingStatus", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlayingStatus", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -532,7 +532,7 @@ namespace NadekoBot.Migrations
b.ToTable("PlayingStatus"); b.ToTable("PlayingStatus");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlaylistSong", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -556,7 +556,7 @@ namespace NadekoBot.Migrations
b.ToTable("PlaylistSong"); b.ToTable("PlaylistSong");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Quote", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Quote", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -579,7 +579,7 @@ namespace NadekoBot.Migrations
b.ToTable("Quotes"); b.ToTable("Quotes");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.RaceAnimal", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -597,7 +597,7 @@ namespace NadekoBot.Migrations
b.ToTable("RaceAnimals"); b.ToTable("RaceAnimals");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Reminder", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Reminder", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -619,7 +619,7 @@ namespace NadekoBot.Migrations
b.ToTable("Reminders"); b.ToTable("Reminders");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Repeater", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Repeater", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -640,7 +640,7 @@ namespace NadekoBot.Migrations
b.ToTable("Repeaters"); b.ToTable("Repeaters");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.SelfAssignedRole", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.SelfAssignedRole", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -657,7 +657,7 @@ namespace NadekoBot.Migrations
b.ToTable("SelfAssignableRoles"); b.ToTable("SelfAssignableRoles");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.UserPokeTypes", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.UserPokeTypes", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -674,124 +674,124 @@ namespace NadekoBot.Migrations
b.ToTable("PokeGame"); b.ToTable("PokeGame");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.BlacklistItem", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlacklistItem", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("Blacklist") .WithMany("Blacklist")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashCaller", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashCaller", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.ClashWar", "ClashWar") b.HasOne("NadekoBot.Core.Services.Database.Models.ClashWar", "ClashWar")
.WithMany("Bases") .WithMany("Bases")
.HasForeignKey("ClashWarId") .HasForeignKey("ClashWarId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandCooldown", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandCooldown", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("CommandCooldowns") .WithMany("CommandCooldowns")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.EightBallResponse", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("EightBallResponses") .WithMany("EightBallResponses")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilterChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilterInvitesChannelIds") .WithMany("FilterInvitesChannelIds")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilterWordsChannelIds") .WithMany("FilterWordsChannelIds")
.HasForeignKey("GuildConfigId1"); .HasForeignKey("GuildConfigId1");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilteredWord", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilteredWord", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilteredWords") .WithMany("FilteredWords")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FollowedStream", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FollowedStream", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FollowedStreams") .WithMany("FollowedStreams")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GCChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GCChannelId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("GenerateCurrencyChannelIds") .WithMany("GenerateCurrencyChannelIds")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildConfig", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany() .WithMany()
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
b.HasOne("NadekoBot.Services.Database.Models.Permission", "RootPermission") b.HasOne("NadekoBot.Core.Services.Database.Models.Permission", "RootPermission")
.WithMany() .WithMany()
.HasForeignKey("RootPermissionId"); .HasForeignKey("RootPermissionId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredLogChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredLogChannel", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany("IgnoredChannels") .WithMany("IgnoredChannels")
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredVoicePresenceChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany("IgnoredVoicePresenceChannelIds") .WithMany("IgnoredVoicePresenceChannelIds")
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ModulePrefix", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ModulePrefix", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("ModulePrefixes") .WithMany("ModulePrefixes")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permission", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.Permission", "Next") b.HasOne("NadekoBot.Core.Services.Database.Models.Permission", "Next")
.WithOne("Previous") .WithOne("Previous")
.HasForeignKey("NadekoBot.Services.Database.Models.Permission", "NextId"); .HasForeignKey("NadekoBot.Core.Services.Database.Models.Permission", "NextId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlayingStatus", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlayingStatus", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("RotatingStatusMessages") .WithMany("RotatingStatusMessages")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlaylistSong", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.MusicPlaylist") b.HasOne("NadekoBot.Core.Services.Database.Models.MusicPlaylist")
.WithMany("Songs") .WithMany("Songs")
.HasForeignKey("MusicPlaylistId") .HasForeignKey("MusicPlaylistId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.RaceAnimal", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("RaceAnimals") .WithMany("RaceAnimals")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });

View File

@ -3,7 +3,7 @@ using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Migrations;
using NadekoBot.Services.Database; using NadekoBot.Core.Services.Database;
namespace NadekoBot.Migrations namespace NadekoBot.Migrations
{ {
@ -16,7 +16,7 @@ namespace NadekoBot.Migrations
modelBuilder modelBuilder
.HasAnnotation("ProductVersion", "1.1.0-rtm-22752"); .HasAnnotation("ProductVersion", "1.1.0-rtm-22752");
modelBuilder.Entity("NadekoBot.Services.Database.Models.BlacklistItem", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlacklistItem", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -34,7 +34,7 @@ namespace NadekoBot.Migrations
b.ToTable("BlacklistItem"); b.ToTable("BlacklistItem");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.BotConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BotConfig", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -70,7 +70,7 @@ namespace NadekoBot.Migrations
b.ToTable("BotConfig"); b.ToTable("BotConfig");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashCaller", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashCaller", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -94,7 +94,7 @@ namespace NadekoBot.Migrations
b.ToTable("ClashCallers"); b.ToTable("ClashCallers");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashWar", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashWar", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -116,7 +116,7 @@ namespace NadekoBot.Migrations
b.ToTable("ClashOfClans"); b.ToTable("ClashOfClans");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandCooldown", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandCooldown", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -134,7 +134,7 @@ namespace NadekoBot.Migrations
b.ToTable("CommandCooldown"); b.ToTable("CommandCooldown");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ConvertUnit", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ConvertUnit", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -150,7 +150,7 @@ namespace NadekoBot.Migrations
b.ToTable("ConversionUnits"); b.ToTable("ConversionUnits");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Currency", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Currency", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -167,7 +167,7 @@ namespace NadekoBot.Migrations
b.ToTable("Currency"); b.ToTable("Currency");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CurrencyTransaction", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CurrencyTransaction", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -183,7 +183,7 @@ namespace NadekoBot.Migrations
b.ToTable("CurrencyTransactions"); b.ToTable("CurrencyTransactions");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CustomReaction", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CustomReaction", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -203,7 +203,7 @@ namespace NadekoBot.Migrations
b.ToTable("CustomReactions"); b.ToTable("CustomReactions");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Donator", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Donator", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -222,7 +222,7 @@ namespace NadekoBot.Migrations
b.ToTable("Donators"); b.ToTable("Donators");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.EightBallResponse", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -238,7 +238,7 @@ namespace NadekoBot.Migrations
b.ToTable("EightBallResponses"); b.ToTable("EightBallResponses");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilterChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -258,7 +258,7 @@ namespace NadekoBot.Migrations
b.ToTable("FilterChannelId"); b.ToTable("FilterChannelId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilteredWord", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilteredWord", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -274,7 +274,7 @@ namespace NadekoBot.Migrations
b.ToTable("FilteredWord"); b.ToTable("FilteredWord");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FollowedStream", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FollowedStream", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -296,7 +296,7 @@ namespace NadekoBot.Migrations
b.ToTable("FollowedStream"); b.ToTable("FollowedStream");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GCChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GCChannelId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -312,7 +312,7 @@ namespace NadekoBot.Migrations
b.ToTable("GCChannelId"); b.ToTable("GCChannelId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildConfig", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -383,7 +383,7 @@ namespace NadekoBot.Migrations
b.ToTable("GuildConfigs"); b.ToTable("GuildConfigs");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredLogChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredLogChannel", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -399,7 +399,7 @@ namespace NadekoBot.Migrations
b.ToTable("IgnoredLogChannels"); b.ToTable("IgnoredLogChannels");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredVoicePresenceChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -415,7 +415,7 @@ namespace NadekoBot.Migrations
b.ToTable("IgnoredVoicePresenceCHannels"); b.ToTable("IgnoredVoicePresenceCHannels");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.LogSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.LogSetting", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -457,7 +457,7 @@ namespace NadekoBot.Migrations
b.ToTable("LogSettings"); b.ToTable("LogSettings");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ModulePrefix", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ModulePrefix", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -475,7 +475,7 @@ namespace NadekoBot.Migrations
b.ToTable("ModulePrefixes"); b.ToTable("ModulePrefixes");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.MusicPlaylist", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MusicPlaylist", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -491,7 +491,7 @@ namespace NadekoBot.Migrations
b.ToTable("MusicPlaylists"); b.ToTable("MusicPlaylists");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.MutedUserId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MutedUserId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -507,7 +507,7 @@ namespace NadekoBot.Migrations
b.ToTable("MutedUserId"); b.ToTable("MutedUserId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permission", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -532,7 +532,7 @@ namespace NadekoBot.Migrations
b.ToTable("Permission"); b.ToTable("Permission");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlayingStatus", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlayingStatus", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -548,7 +548,7 @@ namespace NadekoBot.Migrations
b.ToTable("PlayingStatus"); b.ToTable("PlayingStatus");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlaylistSong", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -572,7 +572,7 @@ namespace NadekoBot.Migrations
b.ToTable("PlaylistSong"); b.ToTable("PlaylistSong");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Quote", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Quote", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -595,7 +595,7 @@ namespace NadekoBot.Migrations
b.ToTable("Quotes"); b.ToTable("Quotes");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.RaceAnimal", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -613,7 +613,7 @@ namespace NadekoBot.Migrations
b.ToTable("RaceAnimals"); b.ToTable("RaceAnimals");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Reminder", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Reminder", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -635,7 +635,7 @@ namespace NadekoBot.Migrations
b.ToTable("Reminders"); b.ToTable("Reminders");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Repeater", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Repeater", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -656,7 +656,7 @@ namespace NadekoBot.Migrations
b.ToTable("Repeaters"); b.ToTable("Repeaters");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.SelfAssignedRole", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.SelfAssignedRole", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -673,7 +673,7 @@ namespace NadekoBot.Migrations
b.ToTable("SelfAssignableRoles"); b.ToTable("SelfAssignableRoles");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.UserPokeTypes", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.UserPokeTypes", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -690,131 +690,131 @@ namespace NadekoBot.Migrations
b.ToTable("PokeGame"); b.ToTable("PokeGame");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.BlacklistItem", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlacklistItem", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("Blacklist") .WithMany("Blacklist")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashCaller", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashCaller", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.ClashWar", "ClashWar") b.HasOne("NadekoBot.Core.Services.Database.Models.ClashWar", "ClashWar")
.WithMany("Bases") .WithMany("Bases")
.HasForeignKey("ClashWarId") .HasForeignKey("ClashWarId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandCooldown", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandCooldown", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("CommandCooldowns") .WithMany("CommandCooldowns")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.EightBallResponse", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("EightBallResponses") .WithMany("EightBallResponses")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilterChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilterInvitesChannelIds") .WithMany("FilterInvitesChannelIds")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilterWordsChannelIds") .WithMany("FilterWordsChannelIds")
.HasForeignKey("GuildConfigId1"); .HasForeignKey("GuildConfigId1");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilteredWord", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilteredWord", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilteredWords") .WithMany("FilteredWords")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FollowedStream", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FollowedStream", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FollowedStreams") .WithMany("FollowedStreams")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GCChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GCChannelId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("GenerateCurrencyChannelIds") .WithMany("GenerateCurrencyChannelIds")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildConfig", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany() .WithMany()
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
b.HasOne("NadekoBot.Services.Database.Models.Permission", "RootPermission") b.HasOne("NadekoBot.Core.Services.Database.Models.Permission", "RootPermission")
.WithMany() .WithMany()
.HasForeignKey("RootPermissionId"); .HasForeignKey("RootPermissionId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredLogChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredLogChannel", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany("IgnoredChannels") .WithMany("IgnoredChannels")
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredVoicePresenceChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany("IgnoredVoicePresenceChannelIds") .WithMany("IgnoredVoicePresenceChannelIds")
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ModulePrefix", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ModulePrefix", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("ModulePrefixes") .WithMany("ModulePrefixes")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.MutedUserId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MutedUserId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("MutedUsers") .WithMany("MutedUsers")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permission", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.Permission", "Next") b.HasOne("NadekoBot.Core.Services.Database.Models.Permission", "Next")
.WithOne("Previous") .WithOne("Previous")
.HasForeignKey("NadekoBot.Services.Database.Models.Permission", "NextId"); .HasForeignKey("NadekoBot.Core.Services.Database.Models.Permission", "NextId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlayingStatus", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlayingStatus", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("RotatingStatusMessages") .WithMany("RotatingStatusMessages")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlaylistSong", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.MusicPlaylist") b.HasOne("NadekoBot.Core.Services.Database.Models.MusicPlaylist")
.WithMany("Songs") .WithMany("Songs")
.HasForeignKey("MusicPlaylistId") .HasForeignKey("MusicPlaylistId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.RaceAnimal", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("RaceAnimals") .WithMany("RaceAnimals")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });

View File

@ -3,7 +3,7 @@ using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Migrations;
using NadekoBot.Services.Database; using NadekoBot.Core.Services.Database;
namespace NadekoBot.Migrations namespace NadekoBot.Migrations
{ {
@ -16,7 +16,7 @@ namespace NadekoBot.Migrations
modelBuilder modelBuilder
.HasAnnotation("ProductVersion", "1.1.0-rtm-22752"); .HasAnnotation("ProductVersion", "1.1.0-rtm-22752");
modelBuilder.Entity("NadekoBot.Services.Database.Models.BlacklistItem", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlacklistItem", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -34,7 +34,7 @@ namespace NadekoBot.Migrations
b.ToTable("BlacklistItem"); b.ToTable("BlacklistItem");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.BotConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BotConfig", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -70,7 +70,7 @@ namespace NadekoBot.Migrations
b.ToTable("BotConfig"); b.ToTable("BotConfig");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashCaller", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashCaller", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -94,7 +94,7 @@ namespace NadekoBot.Migrations
b.ToTable("ClashCallers"); b.ToTable("ClashCallers");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashWar", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashWar", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -116,7 +116,7 @@ namespace NadekoBot.Migrations
b.ToTable("ClashOfClans"); b.ToTable("ClashOfClans");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandCooldown", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandCooldown", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -134,7 +134,7 @@ namespace NadekoBot.Migrations
b.ToTable("CommandCooldown"); b.ToTable("CommandCooldown");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ConvertUnit", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ConvertUnit", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -150,7 +150,7 @@ namespace NadekoBot.Migrations
b.ToTable("ConversionUnits"); b.ToTable("ConversionUnits");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Currency", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Currency", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -167,7 +167,7 @@ namespace NadekoBot.Migrations
b.ToTable("Currency"); b.ToTable("Currency");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CurrencyTransaction", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CurrencyTransaction", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -183,7 +183,7 @@ namespace NadekoBot.Migrations
b.ToTable("CurrencyTransactions"); b.ToTable("CurrencyTransactions");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CustomReaction", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CustomReaction", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -203,7 +203,7 @@ namespace NadekoBot.Migrations
b.ToTable("CustomReactions"); b.ToTable("CustomReactions");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Donator", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Donator", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -222,7 +222,7 @@ namespace NadekoBot.Migrations
b.ToTable("Donators"); b.ToTable("Donators");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.EightBallResponse", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -238,7 +238,7 @@ namespace NadekoBot.Migrations
b.ToTable("EightBallResponses"); b.ToTable("EightBallResponses");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilterChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -258,7 +258,7 @@ namespace NadekoBot.Migrations
b.ToTable("FilterChannelId"); b.ToTable("FilterChannelId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilteredWord", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilteredWord", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -274,7 +274,7 @@ namespace NadekoBot.Migrations
b.ToTable("FilteredWord"); b.ToTable("FilteredWord");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FollowedStream", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FollowedStream", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -296,7 +296,7 @@ namespace NadekoBot.Migrations
b.ToTable("FollowedStream"); b.ToTable("FollowedStream");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GCChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GCChannelId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -312,7 +312,7 @@ namespace NadekoBot.Migrations
b.ToTable("GCChannelId"); b.ToTable("GCChannelId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildConfig", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -383,7 +383,7 @@ namespace NadekoBot.Migrations
b.ToTable("GuildConfigs"); b.ToTable("GuildConfigs");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredLogChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredLogChannel", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -399,7 +399,7 @@ namespace NadekoBot.Migrations
b.ToTable("IgnoredLogChannels"); b.ToTable("IgnoredLogChannels");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredVoicePresenceChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -415,7 +415,7 @@ namespace NadekoBot.Migrations
b.ToTable("IgnoredVoicePresenceCHannels"); b.ToTable("IgnoredVoicePresenceCHannels");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.LogSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.LogSetting", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -487,7 +487,7 @@ namespace NadekoBot.Migrations
b.ToTable("LogSettings"); b.ToTable("LogSettings");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ModulePrefix", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ModulePrefix", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -505,7 +505,7 @@ namespace NadekoBot.Migrations
b.ToTable("ModulePrefixes"); b.ToTable("ModulePrefixes");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.MusicPlaylist", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MusicPlaylist", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -521,7 +521,7 @@ namespace NadekoBot.Migrations
b.ToTable("MusicPlaylists"); b.ToTable("MusicPlaylists");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.MutedUserId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MutedUserId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -537,7 +537,7 @@ namespace NadekoBot.Migrations
b.ToTable("MutedUserId"); b.ToTable("MutedUserId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permission", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -562,7 +562,7 @@ namespace NadekoBot.Migrations
b.ToTable("Permission"); b.ToTable("Permission");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlayingStatus", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlayingStatus", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -578,7 +578,7 @@ namespace NadekoBot.Migrations
b.ToTable("PlayingStatus"); b.ToTable("PlayingStatus");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlaylistSong", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -602,7 +602,7 @@ namespace NadekoBot.Migrations
b.ToTable("PlaylistSong"); b.ToTable("PlaylistSong");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Quote", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Quote", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -625,7 +625,7 @@ namespace NadekoBot.Migrations
b.ToTable("Quotes"); b.ToTable("Quotes");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.RaceAnimal", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -643,7 +643,7 @@ namespace NadekoBot.Migrations
b.ToTable("RaceAnimals"); b.ToTable("RaceAnimals");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Reminder", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Reminder", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -665,7 +665,7 @@ namespace NadekoBot.Migrations
b.ToTable("Reminders"); b.ToTable("Reminders");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Repeater", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Repeater", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -686,7 +686,7 @@ namespace NadekoBot.Migrations
b.ToTable("Repeaters"); b.ToTable("Repeaters");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.SelfAssignedRole", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.SelfAssignedRole", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -703,7 +703,7 @@ namespace NadekoBot.Migrations
b.ToTable("SelfAssignableRoles"); b.ToTable("SelfAssignableRoles");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.UserPokeTypes", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.UserPokeTypes", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -720,131 +720,131 @@ namespace NadekoBot.Migrations
b.ToTable("PokeGame"); b.ToTable("PokeGame");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.BlacklistItem", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlacklistItem", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("Blacklist") .WithMany("Blacklist")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashCaller", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashCaller", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.ClashWar", "ClashWar") b.HasOne("NadekoBot.Core.Services.Database.Models.ClashWar", "ClashWar")
.WithMany("Bases") .WithMany("Bases")
.HasForeignKey("ClashWarId") .HasForeignKey("ClashWarId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandCooldown", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandCooldown", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("CommandCooldowns") .WithMany("CommandCooldowns")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.EightBallResponse", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("EightBallResponses") .WithMany("EightBallResponses")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilterChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilterInvitesChannelIds") .WithMany("FilterInvitesChannelIds")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilterWordsChannelIds") .WithMany("FilterWordsChannelIds")
.HasForeignKey("GuildConfigId1"); .HasForeignKey("GuildConfigId1");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilteredWord", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilteredWord", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilteredWords") .WithMany("FilteredWords")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FollowedStream", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FollowedStream", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FollowedStreams") .WithMany("FollowedStreams")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GCChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GCChannelId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("GenerateCurrencyChannelIds") .WithMany("GenerateCurrencyChannelIds")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildConfig", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany() .WithMany()
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
b.HasOne("NadekoBot.Services.Database.Models.Permission", "RootPermission") b.HasOne("NadekoBot.Core.Services.Database.Models.Permission", "RootPermission")
.WithMany() .WithMany()
.HasForeignKey("RootPermissionId"); .HasForeignKey("RootPermissionId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredLogChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredLogChannel", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany("IgnoredChannels") .WithMany("IgnoredChannels")
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredVoicePresenceChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany("IgnoredVoicePresenceChannelIds") .WithMany("IgnoredVoicePresenceChannelIds")
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ModulePrefix", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ModulePrefix", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("ModulePrefixes") .WithMany("ModulePrefixes")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.MutedUserId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MutedUserId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("MutedUsers") .WithMany("MutedUsers")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permission", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.Permission", "Next") b.HasOne("NadekoBot.Core.Services.Database.Models.Permission", "Next")
.WithOne("Previous") .WithOne("Previous")
.HasForeignKey("NadekoBot.Services.Database.Models.Permission", "NextId"); .HasForeignKey("NadekoBot.Core.Services.Database.Models.Permission", "NextId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlayingStatus", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlayingStatus", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("RotatingStatusMessages") .WithMany("RotatingStatusMessages")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlaylistSong", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.MusicPlaylist") b.HasOne("NadekoBot.Core.Services.Database.Models.MusicPlaylist")
.WithMany("Songs") .WithMany("Songs")
.HasForeignKey("MusicPlaylistId") .HasForeignKey("MusicPlaylistId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.RaceAnimal", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("RaceAnimals") .WithMany("RaceAnimals")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });

View File

@ -3,7 +3,7 @@ using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Migrations;
using NadekoBot.Services.Database; using NadekoBot.Core.Services.Database;
namespace NadekoBot.Migrations namespace NadekoBot.Migrations
{ {
@ -16,7 +16,7 @@ namespace NadekoBot.Migrations
modelBuilder modelBuilder
.HasAnnotation("ProductVersion", "1.1.0-rtm-22752"); .HasAnnotation("ProductVersion", "1.1.0-rtm-22752");
modelBuilder.Entity("NadekoBot.Services.Database.Models.BlacklistItem", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlacklistItem", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -34,7 +34,7 @@ namespace NadekoBot.Migrations
b.ToTable("BlacklistItem"); b.ToTable("BlacklistItem");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.BotConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BotConfig", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -70,7 +70,7 @@ namespace NadekoBot.Migrations
b.ToTable("BotConfig"); b.ToTable("BotConfig");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashCaller", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashCaller", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -94,7 +94,7 @@ namespace NadekoBot.Migrations
b.ToTable("ClashCallers"); b.ToTable("ClashCallers");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashWar", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashWar", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -116,7 +116,7 @@ namespace NadekoBot.Migrations
b.ToTable("ClashOfClans"); b.ToTable("ClashOfClans");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandCooldown", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandCooldown", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -134,7 +134,7 @@ namespace NadekoBot.Migrations
b.ToTable("CommandCooldown"); b.ToTable("CommandCooldown");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ConvertUnit", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ConvertUnit", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -150,7 +150,7 @@ namespace NadekoBot.Migrations
b.ToTable("ConversionUnits"); b.ToTable("ConversionUnits");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Currency", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Currency", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -167,7 +167,7 @@ namespace NadekoBot.Migrations
b.ToTable("Currency"); b.ToTable("Currency");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CurrencyTransaction", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CurrencyTransaction", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -183,7 +183,7 @@ namespace NadekoBot.Migrations
b.ToTable("CurrencyTransactions"); b.ToTable("CurrencyTransactions");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CustomReaction", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CustomReaction", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -203,7 +203,7 @@ namespace NadekoBot.Migrations
b.ToTable("CustomReactions"); b.ToTable("CustomReactions");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Donator", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Donator", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -222,7 +222,7 @@ namespace NadekoBot.Migrations
b.ToTable("Donators"); b.ToTable("Donators");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.EightBallResponse", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -238,7 +238,7 @@ namespace NadekoBot.Migrations
b.ToTable("EightBallResponses"); b.ToTable("EightBallResponses");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilterChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -258,7 +258,7 @@ namespace NadekoBot.Migrations
b.ToTable("FilterChannelId"); b.ToTable("FilterChannelId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilteredWord", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilteredWord", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -274,7 +274,7 @@ namespace NadekoBot.Migrations
b.ToTable("FilteredWord"); b.ToTable("FilteredWord");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FollowedStream", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FollowedStream", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -296,7 +296,7 @@ namespace NadekoBot.Migrations
b.ToTable("FollowedStream"); b.ToTable("FollowedStream");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GCChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GCChannelId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -312,7 +312,7 @@ namespace NadekoBot.Migrations
b.ToTable("GCChannelId"); b.ToTable("GCChannelId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildConfig", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -383,7 +383,7 @@ namespace NadekoBot.Migrations
b.ToTable("GuildConfigs"); b.ToTable("GuildConfigs");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredLogChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredLogChannel", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -399,7 +399,7 @@ namespace NadekoBot.Migrations
b.ToTable("IgnoredLogChannels"); b.ToTable("IgnoredLogChannels");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredVoicePresenceChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -415,7 +415,7 @@ namespace NadekoBot.Migrations
b.ToTable("IgnoredVoicePresenceCHannels"); b.ToTable("IgnoredVoicePresenceCHannels");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.LogSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.LogSetting", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -487,7 +487,7 @@ namespace NadekoBot.Migrations
b.ToTable("LogSettings"); b.ToTable("LogSettings");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ModulePrefix", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ModulePrefix", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -505,7 +505,7 @@ namespace NadekoBot.Migrations
b.ToTable("ModulePrefixes"); b.ToTable("ModulePrefixes");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.MusicPlaylist", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MusicPlaylist", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -521,7 +521,7 @@ namespace NadekoBot.Migrations
b.ToTable("MusicPlaylists"); b.ToTable("MusicPlaylists");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.MutedUserId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MutedUserId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -537,7 +537,7 @@ namespace NadekoBot.Migrations
b.ToTable("MutedUserId"); b.ToTable("MutedUserId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permission", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -562,7 +562,7 @@ namespace NadekoBot.Migrations
b.ToTable("Permission"); b.ToTable("Permission");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlayingStatus", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlayingStatus", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -578,7 +578,7 @@ namespace NadekoBot.Migrations
b.ToTable("PlayingStatus"); b.ToTable("PlayingStatus");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlaylistSong", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -602,7 +602,7 @@ namespace NadekoBot.Migrations
b.ToTable("PlaylistSong"); b.ToTable("PlaylistSong");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Quote", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Quote", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -625,7 +625,7 @@ namespace NadekoBot.Migrations
b.ToTable("Quotes"); b.ToTable("Quotes");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.RaceAnimal", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -643,7 +643,7 @@ namespace NadekoBot.Migrations
b.ToTable("RaceAnimals"); b.ToTable("RaceAnimals");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Reminder", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Reminder", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -665,7 +665,7 @@ namespace NadekoBot.Migrations
b.ToTable("Reminders"); b.ToTable("Reminders");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.SelfAssignedRole", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.SelfAssignedRole", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -682,7 +682,7 @@ namespace NadekoBot.Migrations
b.ToTable("SelfAssignableRoles"); b.ToTable("SelfAssignableRoles");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.UserPokeTypes", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.UserPokeTypes", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -699,131 +699,131 @@ namespace NadekoBot.Migrations
b.ToTable("PokeGame"); b.ToTable("PokeGame");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.BlacklistItem", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlacklistItem", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("Blacklist") .WithMany("Blacklist")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashCaller", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashCaller", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.ClashWar", "ClashWar") b.HasOne("NadekoBot.Core.Services.Database.Models.ClashWar", "ClashWar")
.WithMany("Bases") .WithMany("Bases")
.HasForeignKey("ClashWarId") .HasForeignKey("ClashWarId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandCooldown", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandCooldown", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("CommandCooldowns") .WithMany("CommandCooldowns")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.EightBallResponse", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("EightBallResponses") .WithMany("EightBallResponses")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilterChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilterInvitesChannelIds") .WithMany("FilterInvitesChannelIds")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilterWordsChannelIds") .WithMany("FilterWordsChannelIds")
.HasForeignKey("GuildConfigId1"); .HasForeignKey("GuildConfigId1");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilteredWord", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilteredWord", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilteredWords") .WithMany("FilteredWords")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FollowedStream", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FollowedStream", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FollowedStreams") .WithMany("FollowedStreams")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GCChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GCChannelId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("GenerateCurrencyChannelIds") .WithMany("GenerateCurrencyChannelIds")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildConfig", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany() .WithMany()
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
b.HasOne("NadekoBot.Services.Database.Models.Permission", "RootPermission") b.HasOne("NadekoBot.Core.Services.Database.Models.Permission", "RootPermission")
.WithMany() .WithMany()
.HasForeignKey("RootPermissionId"); .HasForeignKey("RootPermissionId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredLogChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredLogChannel", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany("IgnoredChannels") .WithMany("IgnoredChannels")
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredVoicePresenceChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany("IgnoredVoicePresenceChannelIds") .WithMany("IgnoredVoicePresenceChannelIds")
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ModulePrefix", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ModulePrefix", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("ModulePrefixes") .WithMany("ModulePrefixes")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.MutedUserId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MutedUserId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("MutedUsers") .WithMany("MutedUsers")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permission", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.Permission", "Next") b.HasOne("NadekoBot.Core.Services.Database.Models.Permission", "Next")
.WithOne("Previous") .WithOne("Previous")
.HasForeignKey("NadekoBot.Services.Database.Models.Permission", "NextId"); .HasForeignKey("NadekoBot.Core.Services.Database.Models.Permission", "NextId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlayingStatus", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlayingStatus", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("RotatingStatusMessages") .WithMany("RotatingStatusMessages")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlaylistSong", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.MusicPlaylist") b.HasOne("NadekoBot.Core.Services.Database.Models.MusicPlaylist")
.WithMany("Songs") .WithMany("Songs")
.HasForeignKey("MusicPlaylistId") .HasForeignKey("MusicPlaylistId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.RaceAnimal", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("RaceAnimals") .WithMany("RaceAnimals")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });

View File

@ -3,7 +3,7 @@ using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Migrations;
using NadekoBot.Services.Database; using NadekoBot.Core.Services.Database;
namespace NadekoBot.Migrations namespace NadekoBot.Migrations
{ {
@ -16,7 +16,7 @@ namespace NadekoBot.Migrations
modelBuilder modelBuilder
.HasAnnotation("ProductVersion", "1.1.0-rtm-22752"); .HasAnnotation("ProductVersion", "1.1.0-rtm-22752");
modelBuilder.Entity("NadekoBot.Services.Database.Models.BlacklistItem", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlacklistItem", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -34,7 +34,7 @@ namespace NadekoBot.Migrations
b.ToTable("BlacklistItem"); b.ToTable("BlacklistItem");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.BotConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BotConfig", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -70,7 +70,7 @@ namespace NadekoBot.Migrations
b.ToTable("BotConfig"); b.ToTable("BotConfig");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashCaller", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashCaller", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -94,7 +94,7 @@ namespace NadekoBot.Migrations
b.ToTable("ClashCallers"); b.ToTable("ClashCallers");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashWar", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashWar", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -116,7 +116,7 @@ namespace NadekoBot.Migrations
b.ToTable("ClashOfClans"); b.ToTable("ClashOfClans");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandCooldown", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandCooldown", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -134,7 +134,7 @@ namespace NadekoBot.Migrations
b.ToTable("CommandCooldown"); b.ToTable("CommandCooldown");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ConvertUnit", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ConvertUnit", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -150,7 +150,7 @@ namespace NadekoBot.Migrations
b.ToTable("ConversionUnits"); b.ToTable("ConversionUnits");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Currency", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Currency", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -167,7 +167,7 @@ namespace NadekoBot.Migrations
b.ToTable("Currency"); b.ToTable("Currency");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CurrencyTransaction", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CurrencyTransaction", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -183,7 +183,7 @@ namespace NadekoBot.Migrations
b.ToTable("CurrencyTransactions"); b.ToTable("CurrencyTransactions");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CustomReaction", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CustomReaction", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -203,7 +203,7 @@ namespace NadekoBot.Migrations
b.ToTable("CustomReactions"); b.ToTable("CustomReactions");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Donator", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Donator", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -222,7 +222,7 @@ namespace NadekoBot.Migrations
b.ToTable("Donators"); b.ToTable("Donators");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.EightBallResponse", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -238,7 +238,7 @@ namespace NadekoBot.Migrations
b.ToTable("EightBallResponses"); b.ToTable("EightBallResponses");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilterChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -258,7 +258,7 @@ namespace NadekoBot.Migrations
b.ToTable("FilterChannelId"); b.ToTable("FilterChannelId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilteredWord", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilteredWord", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -274,7 +274,7 @@ namespace NadekoBot.Migrations
b.ToTable("FilteredWord"); b.ToTable("FilteredWord");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FollowedStream", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FollowedStream", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -296,7 +296,7 @@ namespace NadekoBot.Migrations
b.ToTable("FollowedStream"); b.ToTable("FollowedStream");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GCChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GCChannelId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -312,7 +312,7 @@ namespace NadekoBot.Migrations
b.ToTable("GCChannelId"); b.ToTable("GCChannelId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildConfig", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -383,7 +383,7 @@ namespace NadekoBot.Migrations
b.ToTable("GuildConfigs"); b.ToTable("GuildConfigs");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildRepeater", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildRepeater", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -405,7 +405,7 @@ namespace NadekoBot.Migrations
b.ToTable("GuildRepeater"); b.ToTable("GuildRepeater");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredLogChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredLogChannel", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -421,7 +421,7 @@ namespace NadekoBot.Migrations
b.ToTable("IgnoredLogChannels"); b.ToTable("IgnoredLogChannels");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredVoicePresenceChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -437,7 +437,7 @@ namespace NadekoBot.Migrations
b.ToTable("IgnoredVoicePresenceCHannels"); b.ToTable("IgnoredVoicePresenceCHannels");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.LogSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.LogSetting", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -509,7 +509,7 @@ namespace NadekoBot.Migrations
b.ToTable("LogSettings"); b.ToTable("LogSettings");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ModulePrefix", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ModulePrefix", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -527,7 +527,7 @@ namespace NadekoBot.Migrations
b.ToTable("ModulePrefixes"); b.ToTable("ModulePrefixes");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.MusicPlaylist", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MusicPlaylist", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -543,7 +543,7 @@ namespace NadekoBot.Migrations
b.ToTable("MusicPlaylists"); b.ToTable("MusicPlaylists");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.MutedUserId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MutedUserId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -559,7 +559,7 @@ namespace NadekoBot.Migrations
b.ToTable("MutedUserId"); b.ToTable("MutedUserId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permission", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -584,7 +584,7 @@ namespace NadekoBot.Migrations
b.ToTable("Permission"); b.ToTable("Permission");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlayingStatus", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlayingStatus", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -600,7 +600,7 @@ namespace NadekoBot.Migrations
b.ToTable("PlayingStatus"); b.ToTable("PlayingStatus");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlaylistSong", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -624,7 +624,7 @@ namespace NadekoBot.Migrations
b.ToTable("PlaylistSong"); b.ToTable("PlaylistSong");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Quote", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Quote", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -647,7 +647,7 @@ namespace NadekoBot.Migrations
b.ToTable("Quotes"); b.ToTable("Quotes");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.RaceAnimal", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -665,7 +665,7 @@ namespace NadekoBot.Migrations
b.ToTable("RaceAnimals"); b.ToTable("RaceAnimals");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Reminder", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Reminder", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -687,7 +687,7 @@ namespace NadekoBot.Migrations
b.ToTable("Reminders"); b.ToTable("Reminders");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.SelfAssignedRole", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.SelfAssignedRole", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -704,7 +704,7 @@ namespace NadekoBot.Migrations
b.ToTable("SelfAssignableRoles"); b.ToTable("SelfAssignableRoles");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.UserPokeTypes", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.UserPokeTypes", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -721,138 +721,138 @@ namespace NadekoBot.Migrations
b.ToTable("PokeGame"); b.ToTable("PokeGame");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.BlacklistItem", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlacklistItem", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("Blacklist") .WithMany("Blacklist")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashCaller", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashCaller", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.ClashWar", "ClashWar") b.HasOne("NadekoBot.Core.Services.Database.Models.ClashWar", "ClashWar")
.WithMany("Bases") .WithMany("Bases")
.HasForeignKey("ClashWarId") .HasForeignKey("ClashWarId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandCooldown", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandCooldown", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("CommandCooldowns") .WithMany("CommandCooldowns")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.EightBallResponse", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("EightBallResponses") .WithMany("EightBallResponses")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilterChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilterInvitesChannelIds") .WithMany("FilterInvitesChannelIds")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilterWordsChannelIds") .WithMany("FilterWordsChannelIds")
.HasForeignKey("GuildConfigId1"); .HasForeignKey("GuildConfigId1");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilteredWord", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilteredWord", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilteredWords") .WithMany("FilteredWords")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FollowedStream", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FollowedStream", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FollowedStreams") .WithMany("FollowedStreams")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GCChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GCChannelId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("GenerateCurrencyChannelIds") .WithMany("GenerateCurrencyChannelIds")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildConfig", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany() .WithMany()
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
b.HasOne("NadekoBot.Services.Database.Models.Permission", "RootPermission") b.HasOne("NadekoBot.Core.Services.Database.Models.Permission", "RootPermission")
.WithMany() .WithMany()
.HasForeignKey("RootPermissionId"); .HasForeignKey("RootPermissionId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildRepeater", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildRepeater", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("GuildRepeaters") .WithMany("GuildRepeaters")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredLogChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredLogChannel", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany("IgnoredChannels") .WithMany("IgnoredChannels")
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredVoicePresenceChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany("IgnoredVoicePresenceChannelIds") .WithMany("IgnoredVoicePresenceChannelIds")
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ModulePrefix", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ModulePrefix", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("ModulePrefixes") .WithMany("ModulePrefixes")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.MutedUserId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MutedUserId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("MutedUsers") .WithMany("MutedUsers")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permission", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.Permission", "Next") b.HasOne("NadekoBot.Core.Services.Database.Models.Permission", "Next")
.WithOne("Previous") .WithOne("Previous")
.HasForeignKey("NadekoBot.Services.Database.Models.Permission", "NextId"); .HasForeignKey("NadekoBot.Core.Services.Database.Models.Permission", "NextId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlayingStatus", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlayingStatus", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("RotatingStatusMessages") .WithMany("RotatingStatusMessages")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlaylistSong", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.MusicPlaylist") b.HasOne("NadekoBot.Core.Services.Database.Models.MusicPlaylist")
.WithMany("Songs") .WithMany("Songs")
.HasForeignKey("MusicPlaylistId") .HasForeignKey("MusicPlaylistId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.RaceAnimal", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("RaceAnimals") .WithMany("RaceAnimals")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });

View File

@ -3,7 +3,7 @@ using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Migrations;
using NadekoBot.Services.Database; using NadekoBot.Core.Services.Database;
namespace NadekoBot.Migrations namespace NadekoBot.Migrations
{ {
@ -16,7 +16,7 @@ namespace NadekoBot.Migrations
modelBuilder modelBuilder
.HasAnnotation("ProductVersion", "1.1.0-rtm-22752"); .HasAnnotation("ProductVersion", "1.1.0-rtm-22752");
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiRaidSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiRaidSetting", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -37,7 +37,7 @@ namespace NadekoBot.Migrations
b.ToTable("AntiRaidSetting"); b.ToTable("AntiRaidSetting");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiSpamIgnore", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamIgnore", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -53,7 +53,7 @@ namespace NadekoBot.Migrations
b.ToTable("AntiSpamIgnore"); b.ToTable("AntiSpamIgnore");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiSpamSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamSetting", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -72,7 +72,7 @@ namespace NadekoBot.Migrations
b.ToTable("AntiSpamSetting"); b.ToTable("AntiSpamSetting");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.BlacklistItem", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlacklistItem", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -90,7 +90,7 @@ namespace NadekoBot.Migrations
b.ToTable("BlacklistItem"); b.ToTable("BlacklistItem");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.BotConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BotConfig", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -126,7 +126,7 @@ namespace NadekoBot.Migrations
b.ToTable("BotConfig"); b.ToTable("BotConfig");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashCaller", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashCaller", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -150,7 +150,7 @@ namespace NadekoBot.Migrations
b.ToTable("ClashCallers"); b.ToTable("ClashCallers");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashWar", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashWar", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -172,7 +172,7 @@ namespace NadekoBot.Migrations
b.ToTable("ClashOfClans"); b.ToTable("ClashOfClans");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandCooldown", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandCooldown", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -190,7 +190,7 @@ namespace NadekoBot.Migrations
b.ToTable("CommandCooldown"); b.ToTable("CommandCooldown");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ConvertUnit", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ConvertUnit", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -206,7 +206,7 @@ namespace NadekoBot.Migrations
b.ToTable("ConversionUnits"); b.ToTable("ConversionUnits");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Currency", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Currency", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -223,7 +223,7 @@ namespace NadekoBot.Migrations
b.ToTable("Currency"); b.ToTable("Currency");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CurrencyTransaction", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CurrencyTransaction", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -239,7 +239,7 @@ namespace NadekoBot.Migrations
b.ToTable("CurrencyTransactions"); b.ToTable("CurrencyTransactions");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CustomReaction", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CustomReaction", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -259,7 +259,7 @@ namespace NadekoBot.Migrations
b.ToTable("CustomReactions"); b.ToTable("CustomReactions");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Donator", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Donator", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -278,7 +278,7 @@ namespace NadekoBot.Migrations
b.ToTable("Donators"); b.ToTable("Donators");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.EightBallResponse", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -294,7 +294,7 @@ namespace NadekoBot.Migrations
b.ToTable("EightBallResponses"); b.ToTable("EightBallResponses");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilterChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -314,7 +314,7 @@ namespace NadekoBot.Migrations
b.ToTable("FilterChannelId"); b.ToTable("FilterChannelId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilteredWord", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilteredWord", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -330,7 +330,7 @@ namespace NadekoBot.Migrations
b.ToTable("FilteredWord"); b.ToTable("FilteredWord");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FollowedStream", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FollowedStream", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -352,7 +352,7 @@ namespace NadekoBot.Migrations
b.ToTable("FollowedStream"); b.ToTable("FollowedStream");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GCChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GCChannelId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -368,7 +368,7 @@ namespace NadekoBot.Migrations
b.ToTable("GCChannelId"); b.ToTable("GCChannelId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildConfig", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -439,7 +439,7 @@ namespace NadekoBot.Migrations
b.ToTable("GuildConfigs"); b.ToTable("GuildConfigs");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildRepeater", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildRepeater", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -461,7 +461,7 @@ namespace NadekoBot.Migrations
b.ToTable("GuildRepeater"); b.ToTable("GuildRepeater");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredLogChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredLogChannel", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -477,7 +477,7 @@ namespace NadekoBot.Migrations
b.ToTable("IgnoredLogChannels"); b.ToTable("IgnoredLogChannels");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredVoicePresenceChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -493,7 +493,7 @@ namespace NadekoBot.Migrations
b.ToTable("IgnoredVoicePresenceCHannels"); b.ToTable("IgnoredVoicePresenceCHannels");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.LogSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.LogSetting", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -565,7 +565,7 @@ namespace NadekoBot.Migrations
b.ToTable("LogSettings"); b.ToTable("LogSettings");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ModulePrefix", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ModulePrefix", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -583,7 +583,7 @@ namespace NadekoBot.Migrations
b.ToTable("ModulePrefixes"); b.ToTable("ModulePrefixes");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.MusicPlaylist", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MusicPlaylist", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -599,7 +599,7 @@ namespace NadekoBot.Migrations
b.ToTable("MusicPlaylists"); b.ToTable("MusicPlaylists");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.MutedUserId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MutedUserId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -615,7 +615,7 @@ namespace NadekoBot.Migrations
b.ToTable("MutedUserId"); b.ToTable("MutedUserId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permission", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -640,7 +640,7 @@ namespace NadekoBot.Migrations
b.ToTable("Permission"); b.ToTable("Permission");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlayingStatus", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlayingStatus", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -656,7 +656,7 @@ namespace NadekoBot.Migrations
b.ToTable("PlayingStatus"); b.ToTable("PlayingStatus");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlaylistSong", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -680,7 +680,7 @@ namespace NadekoBot.Migrations
b.ToTable("PlaylistSong"); b.ToTable("PlaylistSong");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Quote", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Quote", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -703,7 +703,7 @@ namespace NadekoBot.Migrations
b.ToTable("Quotes"); b.ToTable("Quotes");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.RaceAnimal", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -721,7 +721,7 @@ namespace NadekoBot.Migrations
b.ToTable("RaceAnimals"); b.ToTable("RaceAnimals");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Reminder", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Reminder", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -743,7 +743,7 @@ namespace NadekoBot.Migrations
b.ToTable("Reminders"); b.ToTable("Reminders");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.SelfAssignedRole", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.SelfAssignedRole", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -760,7 +760,7 @@ namespace NadekoBot.Migrations
b.ToTable("SelfAssignableRoles"); b.ToTable("SelfAssignableRoles");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.UserPokeTypes", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.UserPokeTypes", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -777,161 +777,161 @@ namespace NadekoBot.Migrations
b.ToTable("PokeGame"); b.ToTable("PokeGame");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiRaidSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiRaidSetting", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig", "GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig", "GuildConfig")
.WithOne("AntiRaidSetting") .WithOne("AntiRaidSetting")
.HasForeignKey("NadekoBot.Services.Database.Models.AntiRaidSetting", "GuildConfigId") .HasForeignKey("NadekoBot.Core.Services.Database.Models.AntiRaidSetting", "GuildConfigId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiSpamIgnore", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamIgnore", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.AntiSpamSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.AntiSpamSetting")
.WithMany("IgnoredChannels") .WithMany("IgnoredChannels")
.HasForeignKey("AntiSpamSettingId"); .HasForeignKey("AntiSpamSettingId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiSpamSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamSetting", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig", "GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig", "GuildConfig")
.WithOne("AntiSpamSetting") .WithOne("AntiSpamSetting")
.HasForeignKey("NadekoBot.Services.Database.Models.AntiSpamSetting", "GuildConfigId") .HasForeignKey("NadekoBot.Core.Services.Database.Models.AntiSpamSetting", "GuildConfigId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.BlacklistItem", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlacklistItem", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("Blacklist") .WithMany("Blacklist")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashCaller", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashCaller", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.ClashWar", "ClashWar") b.HasOne("NadekoBot.Core.Services.Database.Models.ClashWar", "ClashWar")
.WithMany("Bases") .WithMany("Bases")
.HasForeignKey("ClashWarId") .HasForeignKey("ClashWarId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandCooldown", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandCooldown", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("CommandCooldowns") .WithMany("CommandCooldowns")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.EightBallResponse", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("EightBallResponses") .WithMany("EightBallResponses")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilterChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilterInvitesChannelIds") .WithMany("FilterInvitesChannelIds")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilterWordsChannelIds") .WithMany("FilterWordsChannelIds")
.HasForeignKey("GuildConfigId1"); .HasForeignKey("GuildConfigId1");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilteredWord", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilteredWord", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilteredWords") .WithMany("FilteredWords")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FollowedStream", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FollowedStream", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FollowedStreams") .WithMany("FollowedStreams")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GCChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GCChannelId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("GenerateCurrencyChannelIds") .WithMany("GenerateCurrencyChannelIds")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildConfig", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany() .WithMany()
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
b.HasOne("NadekoBot.Services.Database.Models.Permission", "RootPermission") b.HasOne("NadekoBot.Core.Services.Database.Models.Permission", "RootPermission")
.WithMany() .WithMany()
.HasForeignKey("RootPermissionId"); .HasForeignKey("RootPermissionId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildRepeater", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildRepeater", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("GuildRepeaters") .WithMany("GuildRepeaters")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredLogChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredLogChannel", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany("IgnoredChannels") .WithMany("IgnoredChannels")
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredVoicePresenceChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany("IgnoredVoicePresenceChannelIds") .WithMany("IgnoredVoicePresenceChannelIds")
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ModulePrefix", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ModulePrefix", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("ModulePrefixes") .WithMany("ModulePrefixes")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.MutedUserId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MutedUserId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("MutedUsers") .WithMany("MutedUsers")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permission", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.Permission", "Next") b.HasOne("NadekoBot.Core.Services.Database.Models.Permission", "Next")
.WithOne("Previous") .WithOne("Previous")
.HasForeignKey("NadekoBot.Services.Database.Models.Permission", "NextId"); .HasForeignKey("NadekoBot.Core.Services.Database.Models.Permission", "NextId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlayingStatus", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlayingStatus", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("RotatingStatusMessages") .WithMany("RotatingStatusMessages")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlaylistSong", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.MusicPlaylist") b.HasOne("NadekoBot.Core.Services.Database.Models.MusicPlaylist")
.WithMany("Songs") .WithMany("Songs")
.HasForeignKey("MusicPlaylistId") .HasForeignKey("MusicPlaylistId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.RaceAnimal", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("RaceAnimals") .WithMany("RaceAnimals")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });

View File

@ -3,7 +3,7 @@ using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Migrations;
using NadekoBot.Services.Database; using NadekoBot.Core.Services.Database;
namespace NadekoBot.Migrations namespace NadekoBot.Migrations
{ {
@ -16,7 +16,7 @@ namespace NadekoBot.Migrations
modelBuilder modelBuilder
.HasAnnotation("ProductVersion", "1.1.0-rtm-22752"); .HasAnnotation("ProductVersion", "1.1.0-rtm-22752");
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiRaidSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiRaidSetting", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -37,7 +37,7 @@ namespace NadekoBot.Migrations
b.ToTable("AntiRaidSetting"); b.ToTable("AntiRaidSetting");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiSpamIgnore", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamIgnore", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -53,7 +53,7 @@ namespace NadekoBot.Migrations
b.ToTable("AntiSpamIgnore"); b.ToTable("AntiSpamIgnore");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiSpamSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamSetting", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -72,7 +72,7 @@ namespace NadekoBot.Migrations
b.ToTable("AntiSpamSetting"); b.ToTable("AntiSpamSetting");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.BlacklistItem", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlacklistItem", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -90,7 +90,7 @@ namespace NadekoBot.Migrations
b.ToTable("BlacklistItem"); b.ToTable("BlacklistItem");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.BotConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BotConfig", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -140,7 +140,7 @@ namespace NadekoBot.Migrations
b.ToTable("BotConfig"); b.ToTable("BotConfig");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashCaller", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashCaller", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -164,7 +164,7 @@ namespace NadekoBot.Migrations
b.ToTable("ClashCallers"); b.ToTable("ClashCallers");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashWar", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashWar", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -186,7 +186,7 @@ namespace NadekoBot.Migrations
b.ToTable("ClashOfClans"); b.ToTable("ClashOfClans");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandCooldown", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandCooldown", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -204,7 +204,7 @@ namespace NadekoBot.Migrations
b.ToTable("CommandCooldown"); b.ToTable("CommandCooldown");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandPrice", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandPrice", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -225,7 +225,7 @@ namespace NadekoBot.Migrations
b.ToTable("CommandPrice"); b.ToTable("CommandPrice");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ConvertUnit", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ConvertUnit", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -241,7 +241,7 @@ namespace NadekoBot.Migrations
b.ToTable("ConversionUnits"); b.ToTable("ConversionUnits");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Currency", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Currency", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -258,7 +258,7 @@ namespace NadekoBot.Migrations
b.ToTable("Currency"); b.ToTable("Currency");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CurrencyTransaction", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CurrencyTransaction", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -274,7 +274,7 @@ namespace NadekoBot.Migrations
b.ToTable("CurrencyTransactions"); b.ToTable("CurrencyTransactions");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CustomReaction", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CustomReaction", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -294,7 +294,7 @@ namespace NadekoBot.Migrations
b.ToTable("CustomReactions"); b.ToTable("CustomReactions");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Donator", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Donator", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -313,7 +313,7 @@ namespace NadekoBot.Migrations
b.ToTable("Donators"); b.ToTable("Donators");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.EightBallResponse", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -329,7 +329,7 @@ namespace NadekoBot.Migrations
b.ToTable("EightBallResponses"); b.ToTable("EightBallResponses");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilterChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -349,7 +349,7 @@ namespace NadekoBot.Migrations
b.ToTable("FilterChannelId"); b.ToTable("FilterChannelId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilteredWord", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilteredWord", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -365,7 +365,7 @@ namespace NadekoBot.Migrations
b.ToTable("FilteredWord"); b.ToTable("FilteredWord");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FollowedStream", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FollowedStream", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -387,7 +387,7 @@ namespace NadekoBot.Migrations
b.ToTable("FollowedStream"); b.ToTable("FollowedStream");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GCChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GCChannelId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -403,7 +403,7 @@ namespace NadekoBot.Migrations
b.ToTable("GCChannelId"); b.ToTable("GCChannelId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildConfig", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -474,7 +474,7 @@ namespace NadekoBot.Migrations
b.ToTable("GuildConfigs"); b.ToTable("GuildConfigs");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildRepeater", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildRepeater", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -496,7 +496,7 @@ namespace NadekoBot.Migrations
b.ToTable("GuildRepeater"); b.ToTable("GuildRepeater");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredLogChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredLogChannel", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -512,7 +512,7 @@ namespace NadekoBot.Migrations
b.ToTable("IgnoredLogChannels"); b.ToTable("IgnoredLogChannels");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredVoicePresenceChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -528,7 +528,7 @@ namespace NadekoBot.Migrations
b.ToTable("IgnoredVoicePresenceCHannels"); b.ToTable("IgnoredVoicePresenceCHannels");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.LogSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.LogSetting", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -600,7 +600,7 @@ namespace NadekoBot.Migrations
b.ToTable("LogSettings"); b.ToTable("LogSettings");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ModulePrefix", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ModulePrefix", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -618,7 +618,7 @@ namespace NadekoBot.Migrations
b.ToTable("ModulePrefixes"); b.ToTable("ModulePrefixes");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.MusicPlaylist", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MusicPlaylist", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -634,7 +634,7 @@ namespace NadekoBot.Migrations
b.ToTable("MusicPlaylists"); b.ToTable("MusicPlaylists");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.MutedUserId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MutedUserId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -650,7 +650,7 @@ namespace NadekoBot.Migrations
b.ToTable("MutedUserId"); b.ToTable("MutedUserId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permission", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -675,7 +675,7 @@ namespace NadekoBot.Migrations
b.ToTable("Permission"); b.ToTable("Permission");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlayingStatus", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlayingStatus", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -691,7 +691,7 @@ namespace NadekoBot.Migrations
b.ToTable("PlayingStatus"); b.ToTable("PlayingStatus");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlaylistSong", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -715,7 +715,7 @@ namespace NadekoBot.Migrations
b.ToTable("PlaylistSong"); b.ToTable("PlaylistSong");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Quote", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Quote", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -738,7 +738,7 @@ namespace NadekoBot.Migrations
b.ToTable("Quotes"); b.ToTable("Quotes");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.RaceAnimal", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -756,7 +756,7 @@ namespace NadekoBot.Migrations
b.ToTable("RaceAnimals"); b.ToTable("RaceAnimals");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Reminder", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Reminder", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -778,7 +778,7 @@ namespace NadekoBot.Migrations
b.ToTable("Reminders"); b.ToTable("Reminders");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.SelfAssignedRole", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.SelfAssignedRole", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -795,7 +795,7 @@ namespace NadekoBot.Migrations
b.ToTable("SelfAssignableRoles"); b.ToTable("SelfAssignableRoles");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.UserPokeTypes", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.UserPokeTypes", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -812,168 +812,168 @@ namespace NadekoBot.Migrations
b.ToTable("PokeGame"); b.ToTable("PokeGame");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiRaidSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiRaidSetting", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig", "GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig", "GuildConfig")
.WithOne("AntiRaidSetting") .WithOne("AntiRaidSetting")
.HasForeignKey("NadekoBot.Services.Database.Models.AntiRaidSetting", "GuildConfigId") .HasForeignKey("NadekoBot.Core.Services.Database.Models.AntiRaidSetting", "GuildConfigId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiSpamIgnore", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamIgnore", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.AntiSpamSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.AntiSpamSetting")
.WithMany("IgnoredChannels") .WithMany("IgnoredChannels")
.HasForeignKey("AntiSpamSettingId"); .HasForeignKey("AntiSpamSettingId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiSpamSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamSetting", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig", "GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig", "GuildConfig")
.WithOne("AntiSpamSetting") .WithOne("AntiSpamSetting")
.HasForeignKey("NadekoBot.Services.Database.Models.AntiSpamSetting", "GuildConfigId") .HasForeignKey("NadekoBot.Core.Services.Database.Models.AntiSpamSetting", "GuildConfigId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.BlacklistItem", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlacklistItem", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("Blacklist") .WithMany("Blacklist")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashCaller", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashCaller", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.ClashWar", "ClashWar") b.HasOne("NadekoBot.Core.Services.Database.Models.ClashWar", "ClashWar")
.WithMany("Bases") .WithMany("Bases")
.HasForeignKey("ClashWarId") .HasForeignKey("ClashWarId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandCooldown", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandCooldown", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("CommandCooldowns") .WithMany("CommandCooldowns")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandPrice", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandPrice", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("CommandPrices") .WithMany("CommandPrices")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.EightBallResponse", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("EightBallResponses") .WithMany("EightBallResponses")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilterChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilterInvitesChannelIds") .WithMany("FilterInvitesChannelIds")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilterWordsChannelIds") .WithMany("FilterWordsChannelIds")
.HasForeignKey("GuildConfigId1"); .HasForeignKey("GuildConfigId1");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilteredWord", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilteredWord", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilteredWords") .WithMany("FilteredWords")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FollowedStream", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FollowedStream", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FollowedStreams") .WithMany("FollowedStreams")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GCChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GCChannelId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("GenerateCurrencyChannelIds") .WithMany("GenerateCurrencyChannelIds")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildConfig", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany() .WithMany()
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
b.HasOne("NadekoBot.Services.Database.Models.Permission", "RootPermission") b.HasOne("NadekoBot.Core.Services.Database.Models.Permission", "RootPermission")
.WithMany() .WithMany()
.HasForeignKey("RootPermissionId"); .HasForeignKey("RootPermissionId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildRepeater", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildRepeater", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("GuildRepeaters") .WithMany("GuildRepeaters")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredLogChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredLogChannel", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany("IgnoredChannels") .WithMany("IgnoredChannels")
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredVoicePresenceChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany("IgnoredVoicePresenceChannelIds") .WithMany("IgnoredVoicePresenceChannelIds")
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ModulePrefix", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ModulePrefix", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("ModulePrefixes") .WithMany("ModulePrefixes")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.MutedUserId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MutedUserId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("MutedUsers") .WithMany("MutedUsers")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permission", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.Permission", "Next") b.HasOne("NadekoBot.Core.Services.Database.Models.Permission", "Next")
.WithOne("Previous") .WithOne("Previous")
.HasForeignKey("NadekoBot.Services.Database.Models.Permission", "NextId"); .HasForeignKey("NadekoBot.Core.Services.Database.Models.Permission", "NextId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlayingStatus", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlayingStatus", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("RotatingStatusMessages") .WithMany("RotatingStatusMessages")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlaylistSong", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.MusicPlaylist") b.HasOne("NadekoBot.Core.Services.Database.Models.MusicPlaylist")
.WithMany("Songs") .WithMany("Songs")
.HasForeignKey("MusicPlaylistId") .HasForeignKey("MusicPlaylistId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.RaceAnimal", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("RaceAnimals") .WithMany("RaceAnimals")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });

View File

@ -3,7 +3,7 @@ using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Migrations;
using NadekoBot.Services.Database; using NadekoBot.Core.Services.Database;
namespace NadekoBot.Migrations namespace NadekoBot.Migrations
{ {
@ -16,7 +16,7 @@ namespace NadekoBot.Migrations
modelBuilder modelBuilder
.HasAnnotation("ProductVersion", "1.1.0-rtm-22752"); .HasAnnotation("ProductVersion", "1.1.0-rtm-22752");
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiRaidSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiRaidSetting", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -37,7 +37,7 @@ namespace NadekoBot.Migrations
b.ToTable("AntiRaidSetting"); b.ToTable("AntiRaidSetting");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiSpamIgnore", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamIgnore", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -53,7 +53,7 @@ namespace NadekoBot.Migrations
b.ToTable("AntiSpamIgnore"); b.ToTable("AntiSpamIgnore");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiSpamSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamSetting", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -72,7 +72,7 @@ namespace NadekoBot.Migrations
b.ToTable("AntiSpamSetting"); b.ToTable("AntiSpamSetting");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.BlacklistItem", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlacklistItem", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -90,7 +90,7 @@ namespace NadekoBot.Migrations
b.ToTable("BlacklistItem"); b.ToTable("BlacklistItem");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.BotConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BotConfig", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -144,7 +144,7 @@ namespace NadekoBot.Migrations
b.ToTable("BotConfig"); b.ToTable("BotConfig");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashCaller", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashCaller", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -168,7 +168,7 @@ namespace NadekoBot.Migrations
b.ToTable("ClashCallers"); b.ToTable("ClashCallers");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashWar", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashWar", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -190,7 +190,7 @@ namespace NadekoBot.Migrations
b.ToTable("ClashOfClans"); b.ToTable("ClashOfClans");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandCooldown", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandCooldown", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -208,7 +208,7 @@ namespace NadekoBot.Migrations
b.ToTable("CommandCooldown"); b.ToTable("CommandCooldown");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandPrice", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandPrice", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -229,7 +229,7 @@ namespace NadekoBot.Migrations
b.ToTable("CommandPrice"); b.ToTable("CommandPrice");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ConvertUnit", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ConvertUnit", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -245,7 +245,7 @@ namespace NadekoBot.Migrations
b.ToTable("ConversionUnits"); b.ToTable("ConversionUnits");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Currency", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Currency", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -262,7 +262,7 @@ namespace NadekoBot.Migrations
b.ToTable("Currency"); b.ToTable("Currency");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CurrencyTransaction", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CurrencyTransaction", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -278,7 +278,7 @@ namespace NadekoBot.Migrations
b.ToTable("CurrencyTransactions"); b.ToTable("CurrencyTransactions");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CustomReaction", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CustomReaction", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -298,7 +298,7 @@ namespace NadekoBot.Migrations
b.ToTable("CustomReactions"); b.ToTable("CustomReactions");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Donator", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Donator", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -317,7 +317,7 @@ namespace NadekoBot.Migrations
b.ToTable("Donators"); b.ToTable("Donators");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.EightBallResponse", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -333,7 +333,7 @@ namespace NadekoBot.Migrations
b.ToTable("EightBallResponses"); b.ToTable("EightBallResponses");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilterChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -353,7 +353,7 @@ namespace NadekoBot.Migrations
b.ToTable("FilterChannelId"); b.ToTable("FilterChannelId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilteredWord", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilteredWord", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -369,7 +369,7 @@ namespace NadekoBot.Migrations
b.ToTable("FilteredWord"); b.ToTable("FilteredWord");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FollowedStream", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FollowedStream", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -391,7 +391,7 @@ namespace NadekoBot.Migrations
b.ToTable("FollowedStream"); b.ToTable("FollowedStream");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GCChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GCChannelId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -407,7 +407,7 @@ namespace NadekoBot.Migrations
b.ToTable("GCChannelId"); b.ToTable("GCChannelId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildConfig", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -478,7 +478,7 @@ namespace NadekoBot.Migrations
b.ToTable("GuildConfigs"); b.ToTable("GuildConfigs");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildRepeater", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildRepeater", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -500,7 +500,7 @@ namespace NadekoBot.Migrations
b.ToTable("GuildRepeater"); b.ToTable("GuildRepeater");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredLogChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredLogChannel", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -516,7 +516,7 @@ namespace NadekoBot.Migrations
b.ToTable("IgnoredLogChannels"); b.ToTable("IgnoredLogChannels");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredVoicePresenceChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -532,7 +532,7 @@ namespace NadekoBot.Migrations
b.ToTable("IgnoredVoicePresenceCHannels"); b.ToTable("IgnoredVoicePresenceCHannels");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.LogSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.LogSetting", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -604,7 +604,7 @@ namespace NadekoBot.Migrations
b.ToTable("LogSettings"); b.ToTable("LogSettings");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ModulePrefix", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ModulePrefix", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -622,7 +622,7 @@ namespace NadekoBot.Migrations
b.ToTable("ModulePrefixes"); b.ToTable("ModulePrefixes");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.MusicPlaylist", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MusicPlaylist", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -638,7 +638,7 @@ namespace NadekoBot.Migrations
b.ToTable("MusicPlaylists"); b.ToTable("MusicPlaylists");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.MutedUserId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MutedUserId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -654,7 +654,7 @@ namespace NadekoBot.Migrations
b.ToTable("MutedUserId"); b.ToTable("MutedUserId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permission", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -679,7 +679,7 @@ namespace NadekoBot.Migrations
b.ToTable("Permission"); b.ToTable("Permission");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlayingStatus", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlayingStatus", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -695,7 +695,7 @@ namespace NadekoBot.Migrations
b.ToTable("PlayingStatus"); b.ToTable("PlayingStatus");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlaylistSong", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -719,7 +719,7 @@ namespace NadekoBot.Migrations
b.ToTable("PlaylistSong"); b.ToTable("PlaylistSong");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Quote", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Quote", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -742,7 +742,7 @@ namespace NadekoBot.Migrations
b.ToTable("Quotes"); b.ToTable("Quotes");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.RaceAnimal", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -760,7 +760,7 @@ namespace NadekoBot.Migrations
b.ToTable("RaceAnimals"); b.ToTable("RaceAnimals");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Reminder", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Reminder", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -782,7 +782,7 @@ namespace NadekoBot.Migrations
b.ToTable("Reminders"); b.ToTable("Reminders");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.SelfAssignedRole", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.SelfAssignedRole", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -799,7 +799,7 @@ namespace NadekoBot.Migrations
b.ToTable("SelfAssignableRoles"); b.ToTable("SelfAssignableRoles");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.UserPokeTypes", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.UserPokeTypes", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -816,168 +816,168 @@ namespace NadekoBot.Migrations
b.ToTable("PokeGame"); b.ToTable("PokeGame");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiRaidSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiRaidSetting", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig", "GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig", "GuildConfig")
.WithOne("AntiRaidSetting") .WithOne("AntiRaidSetting")
.HasForeignKey("NadekoBot.Services.Database.Models.AntiRaidSetting", "GuildConfigId") .HasForeignKey("NadekoBot.Core.Services.Database.Models.AntiRaidSetting", "GuildConfigId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiSpamIgnore", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamIgnore", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.AntiSpamSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.AntiSpamSetting")
.WithMany("IgnoredChannels") .WithMany("IgnoredChannels")
.HasForeignKey("AntiSpamSettingId"); .HasForeignKey("AntiSpamSettingId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiSpamSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamSetting", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig", "GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig", "GuildConfig")
.WithOne("AntiSpamSetting") .WithOne("AntiSpamSetting")
.HasForeignKey("NadekoBot.Services.Database.Models.AntiSpamSetting", "GuildConfigId") .HasForeignKey("NadekoBot.Core.Services.Database.Models.AntiSpamSetting", "GuildConfigId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.BlacklistItem", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlacklistItem", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("Blacklist") .WithMany("Blacklist")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashCaller", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashCaller", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.ClashWar", "ClashWar") b.HasOne("NadekoBot.Core.Services.Database.Models.ClashWar", "ClashWar")
.WithMany("Bases") .WithMany("Bases")
.HasForeignKey("ClashWarId") .HasForeignKey("ClashWarId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandCooldown", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandCooldown", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("CommandCooldowns") .WithMany("CommandCooldowns")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandPrice", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandPrice", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("CommandPrices") .WithMany("CommandPrices")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.EightBallResponse", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("EightBallResponses") .WithMany("EightBallResponses")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilterChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilterInvitesChannelIds") .WithMany("FilterInvitesChannelIds")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilterWordsChannelIds") .WithMany("FilterWordsChannelIds")
.HasForeignKey("GuildConfigId1"); .HasForeignKey("GuildConfigId1");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilteredWord", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilteredWord", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilteredWords") .WithMany("FilteredWords")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FollowedStream", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FollowedStream", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FollowedStreams") .WithMany("FollowedStreams")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GCChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GCChannelId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("GenerateCurrencyChannelIds") .WithMany("GenerateCurrencyChannelIds")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildConfig", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany() .WithMany()
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
b.HasOne("NadekoBot.Services.Database.Models.Permission", "RootPermission") b.HasOne("NadekoBot.Core.Services.Database.Models.Permission", "RootPermission")
.WithMany() .WithMany()
.HasForeignKey("RootPermissionId"); .HasForeignKey("RootPermissionId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildRepeater", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildRepeater", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("GuildRepeaters") .WithMany("GuildRepeaters")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredLogChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredLogChannel", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany("IgnoredChannels") .WithMany("IgnoredChannels")
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredVoicePresenceChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany("IgnoredVoicePresenceChannelIds") .WithMany("IgnoredVoicePresenceChannelIds")
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ModulePrefix", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ModulePrefix", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("ModulePrefixes") .WithMany("ModulePrefixes")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.MutedUserId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MutedUserId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("MutedUsers") .WithMany("MutedUsers")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permission", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.Permission", "Next") b.HasOne("NadekoBot.Core.Services.Database.Models.Permission", "Next")
.WithOne("Previous") .WithOne("Previous")
.HasForeignKey("NadekoBot.Services.Database.Models.Permission", "NextId"); .HasForeignKey("NadekoBot.Core.Services.Database.Models.Permission", "NextId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlayingStatus", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlayingStatus", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("RotatingStatusMessages") .WithMany("RotatingStatusMessages")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlaylistSong", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.MusicPlaylist") b.HasOne("NadekoBot.Core.Services.Database.Models.MusicPlaylist")
.WithMany("Songs") .WithMany("Songs")
.HasForeignKey("MusicPlaylistId") .HasForeignKey("MusicPlaylistId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.RaceAnimal", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("RaceAnimals") .WithMany("RaceAnimals")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });

View File

@ -3,7 +3,7 @@ using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Migrations;
using NadekoBot.Services.Database; using NadekoBot.Core.Services.Database;
namespace NadekoBot.Migrations namespace NadekoBot.Migrations
{ {
@ -16,7 +16,7 @@ namespace NadekoBot.Migrations
modelBuilder modelBuilder
.HasAnnotation("ProductVersion", "1.1.0-rtm-22752"); .HasAnnotation("ProductVersion", "1.1.0-rtm-22752");
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiRaidSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiRaidSetting", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -37,7 +37,7 @@ namespace NadekoBot.Migrations
b.ToTable("AntiRaidSetting"); b.ToTable("AntiRaidSetting");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiSpamIgnore", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamIgnore", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -53,7 +53,7 @@ namespace NadekoBot.Migrations
b.ToTable("AntiSpamIgnore"); b.ToTable("AntiSpamIgnore");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiSpamSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamSetting", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -72,7 +72,7 @@ namespace NadekoBot.Migrations
b.ToTable("AntiSpamSetting"); b.ToTable("AntiSpamSetting");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.BlacklistItem", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlacklistItem", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -90,7 +90,7 @@ namespace NadekoBot.Migrations
b.ToTable("BlacklistItem"); b.ToTable("BlacklistItem");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.BotConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BotConfig", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -144,7 +144,7 @@ namespace NadekoBot.Migrations
b.ToTable("BotConfig"); b.ToTable("BotConfig");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashCaller", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashCaller", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -168,7 +168,7 @@ namespace NadekoBot.Migrations
b.ToTable("ClashCallers"); b.ToTable("ClashCallers");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashWar", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashWar", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -190,7 +190,7 @@ namespace NadekoBot.Migrations
b.ToTable("ClashOfClans"); b.ToTable("ClashOfClans");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandCooldown", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandCooldown", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -208,7 +208,7 @@ namespace NadekoBot.Migrations
b.ToTable("CommandCooldown"); b.ToTable("CommandCooldown");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandPrice", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandPrice", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -229,7 +229,7 @@ namespace NadekoBot.Migrations
b.ToTable("CommandPrice"); b.ToTable("CommandPrice");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ConvertUnit", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ConvertUnit", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -245,7 +245,7 @@ namespace NadekoBot.Migrations
b.ToTable("ConversionUnits"); b.ToTable("ConversionUnits");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Currency", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Currency", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -262,7 +262,7 @@ namespace NadekoBot.Migrations
b.ToTable("Currency"); b.ToTable("Currency");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CurrencyTransaction", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CurrencyTransaction", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -278,7 +278,7 @@ namespace NadekoBot.Migrations
b.ToTable("CurrencyTransactions"); b.ToTable("CurrencyTransactions");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CustomReaction", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CustomReaction", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -298,7 +298,7 @@ namespace NadekoBot.Migrations
b.ToTable("CustomReactions"); b.ToTable("CustomReactions");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.DiscordUser", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.DiscordUser", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -318,7 +318,7 @@ namespace NadekoBot.Migrations
b.ToTable("DiscordUser"); b.ToTable("DiscordUser");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Donator", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Donator", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -337,7 +337,7 @@ namespace NadekoBot.Migrations
b.ToTable("Donators"); b.ToTable("Donators");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.EightBallResponse", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -353,7 +353,7 @@ namespace NadekoBot.Migrations
b.ToTable("EightBallResponses"); b.ToTable("EightBallResponses");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilterChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -373,7 +373,7 @@ namespace NadekoBot.Migrations
b.ToTable("FilterChannelId"); b.ToTable("FilterChannelId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilteredWord", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilteredWord", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -389,7 +389,7 @@ namespace NadekoBot.Migrations
b.ToTable("FilteredWord"); b.ToTable("FilteredWord");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FollowedStream", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FollowedStream", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -411,7 +411,7 @@ namespace NadekoBot.Migrations
b.ToTable("FollowedStream"); b.ToTable("FollowedStream");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GCChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GCChannelId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -427,7 +427,7 @@ namespace NadekoBot.Migrations
b.ToTable("GCChannelId"); b.ToTable("GCChannelId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildConfig", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -498,7 +498,7 @@ namespace NadekoBot.Migrations
b.ToTable("GuildConfigs"); b.ToTable("GuildConfigs");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildRepeater", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildRepeater", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -520,7 +520,7 @@ namespace NadekoBot.Migrations
b.ToTable("GuildRepeater"); b.ToTable("GuildRepeater");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredLogChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredLogChannel", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -536,7 +536,7 @@ namespace NadekoBot.Migrations
b.ToTable("IgnoredLogChannels"); b.ToTable("IgnoredLogChannels");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredVoicePresenceChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -552,7 +552,7 @@ namespace NadekoBot.Migrations
b.ToTable("IgnoredVoicePresenceCHannels"); b.ToTable("IgnoredVoicePresenceCHannels");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.LogSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.LogSetting", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -624,7 +624,7 @@ namespace NadekoBot.Migrations
b.ToTable("LogSettings"); b.ToTable("LogSettings");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ModulePrefix", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ModulePrefix", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -642,7 +642,7 @@ namespace NadekoBot.Migrations
b.ToTable("ModulePrefixes"); b.ToTable("ModulePrefixes");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.MusicPlaylist", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MusicPlaylist", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -658,7 +658,7 @@ namespace NadekoBot.Migrations
b.ToTable("MusicPlaylists"); b.ToTable("MusicPlaylists");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.MutedUserId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MutedUserId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -674,7 +674,7 @@ namespace NadekoBot.Migrations
b.ToTable("MutedUserId"); b.ToTable("MutedUserId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permission", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -699,7 +699,7 @@ namespace NadekoBot.Migrations
b.ToTable("Permission"); b.ToTable("Permission");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlayingStatus", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlayingStatus", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -715,7 +715,7 @@ namespace NadekoBot.Migrations
b.ToTable("PlayingStatus"); b.ToTable("PlayingStatus");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlaylistSong", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -739,7 +739,7 @@ namespace NadekoBot.Migrations
b.ToTable("PlaylistSong"); b.ToTable("PlaylistSong");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Quote", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Quote", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -762,7 +762,7 @@ namespace NadekoBot.Migrations
b.ToTable("Quotes"); b.ToTable("Quotes");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.RaceAnimal", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -780,7 +780,7 @@ namespace NadekoBot.Migrations
b.ToTable("RaceAnimals"); b.ToTable("RaceAnimals");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Reminder", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Reminder", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -802,7 +802,7 @@ namespace NadekoBot.Migrations
b.ToTable("Reminders"); b.ToTable("Reminders");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.SelfAssignedRole", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.SelfAssignedRole", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -819,7 +819,7 @@ namespace NadekoBot.Migrations
b.ToTable("SelfAssignableRoles"); b.ToTable("SelfAssignableRoles");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.UserPokeTypes", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.UserPokeTypes", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -836,7 +836,7 @@ namespace NadekoBot.Migrations
b.ToTable("PokeGame"); b.ToTable("PokeGame");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.WaifuInfo", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WaifuInfo", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -861,7 +861,7 @@ namespace NadekoBot.Migrations
b.ToTable("WaifuInfo"); b.ToTable("WaifuInfo");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.WaifuUpdate", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WaifuUpdate", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -885,199 +885,199 @@ namespace NadekoBot.Migrations
b.ToTable("WaifuUpdates"); b.ToTable("WaifuUpdates");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiRaidSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiRaidSetting", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig", "GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig", "GuildConfig")
.WithOne("AntiRaidSetting") .WithOne("AntiRaidSetting")
.HasForeignKey("NadekoBot.Services.Database.Models.AntiRaidSetting", "GuildConfigId") .HasForeignKey("NadekoBot.Core.Services.Database.Models.AntiRaidSetting", "GuildConfigId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiSpamIgnore", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamIgnore", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.AntiSpamSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.AntiSpamSetting")
.WithMany("IgnoredChannels") .WithMany("IgnoredChannels")
.HasForeignKey("AntiSpamSettingId"); .HasForeignKey("AntiSpamSettingId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiSpamSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamSetting", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig", "GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig", "GuildConfig")
.WithOne("AntiSpamSetting") .WithOne("AntiSpamSetting")
.HasForeignKey("NadekoBot.Services.Database.Models.AntiSpamSetting", "GuildConfigId") .HasForeignKey("NadekoBot.Core.Services.Database.Models.AntiSpamSetting", "GuildConfigId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.BlacklistItem", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlacklistItem", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("Blacklist") .WithMany("Blacklist")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashCaller", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashCaller", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.ClashWar", "ClashWar") b.HasOne("NadekoBot.Core.Services.Database.Models.ClashWar", "ClashWar")
.WithMany("Bases") .WithMany("Bases")
.HasForeignKey("ClashWarId") .HasForeignKey("ClashWarId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandCooldown", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandCooldown", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("CommandCooldowns") .WithMany("CommandCooldowns")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandPrice", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandPrice", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("CommandPrices") .WithMany("CommandPrices")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.EightBallResponse", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("EightBallResponses") .WithMany("EightBallResponses")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilterChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilterInvitesChannelIds") .WithMany("FilterInvitesChannelIds")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilterWordsChannelIds") .WithMany("FilterWordsChannelIds")
.HasForeignKey("GuildConfigId1"); .HasForeignKey("GuildConfigId1");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilteredWord", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilteredWord", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilteredWords") .WithMany("FilteredWords")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FollowedStream", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FollowedStream", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FollowedStreams") .WithMany("FollowedStreams")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GCChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GCChannelId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("GenerateCurrencyChannelIds") .WithMany("GenerateCurrencyChannelIds")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildConfig", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany() .WithMany()
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
b.HasOne("NadekoBot.Services.Database.Models.Permission", "RootPermission") b.HasOne("NadekoBot.Core.Services.Database.Models.Permission", "RootPermission")
.WithMany() .WithMany()
.HasForeignKey("RootPermissionId"); .HasForeignKey("RootPermissionId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildRepeater", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildRepeater", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("GuildRepeaters") .WithMany("GuildRepeaters")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredLogChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredLogChannel", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany("IgnoredChannels") .WithMany("IgnoredChannels")
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredVoicePresenceChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany("IgnoredVoicePresenceChannelIds") .WithMany("IgnoredVoicePresenceChannelIds")
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ModulePrefix", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ModulePrefix", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("ModulePrefixes") .WithMany("ModulePrefixes")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.MutedUserId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MutedUserId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("MutedUsers") .WithMany("MutedUsers")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permission", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.Permission", "Next") b.HasOne("NadekoBot.Core.Services.Database.Models.Permission", "Next")
.WithOne("Previous") .WithOne("Previous")
.HasForeignKey("NadekoBot.Services.Database.Models.Permission", "NextId"); .HasForeignKey("NadekoBot.Core.Services.Database.Models.Permission", "NextId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlayingStatus", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlayingStatus", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("RotatingStatusMessages") .WithMany("RotatingStatusMessages")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlaylistSong", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.MusicPlaylist") b.HasOne("NadekoBot.Core.Services.Database.Models.MusicPlaylist")
.WithMany("Songs") .WithMany("Songs")
.HasForeignKey("MusicPlaylistId") .HasForeignKey("MusicPlaylistId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.RaceAnimal", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("RaceAnimals") .WithMany("RaceAnimals")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.WaifuInfo", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WaifuInfo", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "Affinity") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "Affinity")
.WithMany() .WithMany()
.HasForeignKey("AffinityId"); .HasForeignKey("AffinityId");
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "Claimer") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "Claimer")
.WithMany() .WithMany()
.HasForeignKey("ClaimerId"); .HasForeignKey("ClaimerId");
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "Waifu") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "Waifu")
.WithOne() .WithOne()
.HasForeignKey("NadekoBot.Services.Database.Models.WaifuInfo", "WaifuId") .HasForeignKey("NadekoBot.Core.Services.Database.Models.WaifuInfo", "WaifuId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.WaifuUpdate", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WaifuUpdate", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "New") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "New")
.WithMany() .WithMany()
.HasForeignKey("NewId"); .HasForeignKey("NewId");
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "Old") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "Old")
.WithMany() .WithMany()
.HasForeignKey("OldId"); .HasForeignKey("OldId");
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "User") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "User")
.WithMany() .WithMany()
.HasForeignKey("UserId") .HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);

View File

@ -3,7 +3,7 @@ using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Migrations;
using NadekoBot.Services.Database; using NadekoBot.Core.Services.Database;
namespace NadekoBot.Migrations namespace NadekoBot.Migrations
{ {
@ -16,7 +16,7 @@ namespace NadekoBot.Migrations
modelBuilder modelBuilder
.HasAnnotation("ProductVersion", "1.1.0-rtm-22752"); .HasAnnotation("ProductVersion", "1.1.0-rtm-22752");
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiRaidSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiRaidSetting", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -37,7 +37,7 @@ namespace NadekoBot.Migrations
b.ToTable("AntiRaidSetting"); b.ToTable("AntiRaidSetting");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiSpamIgnore", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamIgnore", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -53,7 +53,7 @@ namespace NadekoBot.Migrations
b.ToTable("AntiSpamIgnore"); b.ToTable("AntiSpamIgnore");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiSpamSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamSetting", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -72,7 +72,7 @@ namespace NadekoBot.Migrations
b.ToTable("AntiSpamSetting"); b.ToTable("AntiSpamSetting");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.BlacklistItem", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlacklistItem", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -90,7 +90,7 @@ namespace NadekoBot.Migrations
b.ToTable("BlacklistItem"); b.ToTable("BlacklistItem");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.BotConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BotConfig", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -146,7 +146,7 @@ namespace NadekoBot.Migrations
b.ToTable("BotConfig"); b.ToTable("BotConfig");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashCaller", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashCaller", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -170,7 +170,7 @@ namespace NadekoBot.Migrations
b.ToTable("ClashCallers"); b.ToTable("ClashCallers");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashWar", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashWar", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -192,7 +192,7 @@ namespace NadekoBot.Migrations
b.ToTable("ClashOfClans"); b.ToTable("ClashOfClans");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandCooldown", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandCooldown", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -210,7 +210,7 @@ namespace NadekoBot.Migrations
b.ToTable("CommandCooldown"); b.ToTable("CommandCooldown");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandPrice", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandPrice", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -231,7 +231,7 @@ namespace NadekoBot.Migrations
b.ToTable("CommandPrice"); b.ToTable("CommandPrice");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ConvertUnit", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ConvertUnit", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -247,7 +247,7 @@ namespace NadekoBot.Migrations
b.ToTable("ConversionUnits"); b.ToTable("ConversionUnits");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Currency", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Currency", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -264,7 +264,7 @@ namespace NadekoBot.Migrations
b.ToTable("Currency"); b.ToTable("Currency");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CurrencyTransaction", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CurrencyTransaction", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -280,7 +280,7 @@ namespace NadekoBot.Migrations
b.ToTable("CurrencyTransactions"); b.ToTable("CurrencyTransactions");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CustomReaction", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CustomReaction", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -300,7 +300,7 @@ namespace NadekoBot.Migrations
b.ToTable("CustomReactions"); b.ToTable("CustomReactions");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.DiscordUser", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.DiscordUser", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -320,7 +320,7 @@ namespace NadekoBot.Migrations
b.ToTable("DiscordUser"); b.ToTable("DiscordUser");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Donator", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Donator", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -339,7 +339,7 @@ namespace NadekoBot.Migrations
b.ToTable("Donators"); b.ToTable("Donators");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.EightBallResponse", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -355,7 +355,7 @@ namespace NadekoBot.Migrations
b.ToTable("EightBallResponses"); b.ToTable("EightBallResponses");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilterChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -375,7 +375,7 @@ namespace NadekoBot.Migrations
b.ToTable("FilterChannelId"); b.ToTable("FilterChannelId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilteredWord", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilteredWord", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -391,7 +391,7 @@ namespace NadekoBot.Migrations
b.ToTable("FilteredWord"); b.ToTable("FilteredWord");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FollowedStream", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FollowedStream", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -413,7 +413,7 @@ namespace NadekoBot.Migrations
b.ToTable("FollowedStream"); b.ToTable("FollowedStream");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GCChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GCChannelId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -429,7 +429,7 @@ namespace NadekoBot.Migrations
b.ToTable("GCChannelId"); b.ToTable("GCChannelId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildConfig", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -504,7 +504,7 @@ namespace NadekoBot.Migrations
b.ToTable("GuildConfigs"); b.ToTable("GuildConfigs");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildRepeater", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildRepeater", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -526,7 +526,7 @@ namespace NadekoBot.Migrations
b.ToTable("GuildRepeater"); b.ToTable("GuildRepeater");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredLogChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredLogChannel", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -542,7 +542,7 @@ namespace NadekoBot.Migrations
b.ToTable("IgnoredLogChannels"); b.ToTable("IgnoredLogChannels");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredVoicePresenceChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -558,7 +558,7 @@ namespace NadekoBot.Migrations
b.ToTable("IgnoredVoicePresenceCHannels"); b.ToTable("IgnoredVoicePresenceCHannels");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.LogSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.LogSetting", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -630,7 +630,7 @@ namespace NadekoBot.Migrations
b.ToTable("LogSettings"); b.ToTable("LogSettings");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ModulePrefix", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ModulePrefix", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -648,7 +648,7 @@ namespace NadekoBot.Migrations
b.ToTable("ModulePrefixes"); b.ToTable("ModulePrefixes");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.MusicPlaylist", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MusicPlaylist", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -664,7 +664,7 @@ namespace NadekoBot.Migrations
b.ToTable("MusicPlaylists"); b.ToTable("MusicPlaylists");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.MutedUserId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MutedUserId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -680,7 +680,7 @@ namespace NadekoBot.Migrations
b.ToTable("MutedUserId"); b.ToTable("MutedUserId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permission", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -705,7 +705,7 @@ namespace NadekoBot.Migrations
b.ToTable("Permission"); b.ToTable("Permission");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlayingStatus", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlayingStatus", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -721,7 +721,7 @@ namespace NadekoBot.Migrations
b.ToTable("PlayingStatus"); b.ToTable("PlayingStatus");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlaylistSong", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -745,7 +745,7 @@ namespace NadekoBot.Migrations
b.ToTable("PlaylistSong"); b.ToTable("PlaylistSong");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Quote", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Quote", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -768,7 +768,7 @@ namespace NadekoBot.Migrations
b.ToTable("Quotes"); b.ToTable("Quotes");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.RaceAnimal", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -786,7 +786,7 @@ namespace NadekoBot.Migrations
b.ToTable("RaceAnimals"); b.ToTable("RaceAnimals");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Reminder", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Reminder", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -808,7 +808,7 @@ namespace NadekoBot.Migrations
b.ToTable("Reminders"); b.ToTable("Reminders");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.SelfAssignedRole", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.SelfAssignedRole", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -825,7 +825,7 @@ namespace NadekoBot.Migrations
b.ToTable("SelfAssignableRoles"); b.ToTable("SelfAssignableRoles");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.UserPokeTypes", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.UserPokeTypes", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -842,7 +842,7 @@ namespace NadekoBot.Migrations
b.ToTable("PokeGame"); b.ToTable("PokeGame");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.WaifuInfo", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WaifuInfo", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -867,7 +867,7 @@ namespace NadekoBot.Migrations
b.ToTable("WaifuInfo"); b.ToTable("WaifuInfo");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.WaifuUpdate", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WaifuUpdate", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -891,199 +891,199 @@ namespace NadekoBot.Migrations
b.ToTable("WaifuUpdates"); b.ToTable("WaifuUpdates");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiRaidSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiRaidSetting", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig", "GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig", "GuildConfig")
.WithOne("AntiRaidSetting") .WithOne("AntiRaidSetting")
.HasForeignKey("NadekoBot.Services.Database.Models.AntiRaidSetting", "GuildConfigId") .HasForeignKey("NadekoBot.Core.Services.Database.Models.AntiRaidSetting", "GuildConfigId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiSpamIgnore", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamIgnore", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.AntiSpamSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.AntiSpamSetting")
.WithMany("IgnoredChannels") .WithMany("IgnoredChannels")
.HasForeignKey("AntiSpamSettingId"); .HasForeignKey("AntiSpamSettingId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiSpamSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamSetting", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig", "GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig", "GuildConfig")
.WithOne("AntiSpamSetting") .WithOne("AntiSpamSetting")
.HasForeignKey("NadekoBot.Services.Database.Models.AntiSpamSetting", "GuildConfigId") .HasForeignKey("NadekoBot.Core.Services.Database.Models.AntiSpamSetting", "GuildConfigId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.BlacklistItem", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlacklistItem", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("Blacklist") .WithMany("Blacklist")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashCaller", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashCaller", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.ClashWar", "ClashWar") b.HasOne("NadekoBot.Core.Services.Database.Models.ClashWar", "ClashWar")
.WithMany("Bases") .WithMany("Bases")
.HasForeignKey("ClashWarId") .HasForeignKey("ClashWarId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandCooldown", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandCooldown", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("CommandCooldowns") .WithMany("CommandCooldowns")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandPrice", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandPrice", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("CommandPrices") .WithMany("CommandPrices")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.EightBallResponse", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("EightBallResponses") .WithMany("EightBallResponses")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilterChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilterInvitesChannelIds") .WithMany("FilterInvitesChannelIds")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilterWordsChannelIds") .WithMany("FilterWordsChannelIds")
.HasForeignKey("GuildConfigId1"); .HasForeignKey("GuildConfigId1");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilteredWord", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilteredWord", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilteredWords") .WithMany("FilteredWords")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FollowedStream", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FollowedStream", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FollowedStreams") .WithMany("FollowedStreams")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GCChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GCChannelId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("GenerateCurrencyChannelIds") .WithMany("GenerateCurrencyChannelIds")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildConfig", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany() .WithMany()
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
b.HasOne("NadekoBot.Services.Database.Models.Permission", "RootPermission") b.HasOne("NadekoBot.Core.Services.Database.Models.Permission", "RootPermission")
.WithMany() .WithMany()
.HasForeignKey("RootPermissionId"); .HasForeignKey("RootPermissionId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildRepeater", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildRepeater", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("GuildRepeaters") .WithMany("GuildRepeaters")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredLogChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredLogChannel", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany("IgnoredChannels") .WithMany("IgnoredChannels")
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredVoicePresenceChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany("IgnoredVoicePresenceChannelIds") .WithMany("IgnoredVoicePresenceChannelIds")
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ModulePrefix", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ModulePrefix", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("ModulePrefixes") .WithMany("ModulePrefixes")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.MutedUserId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MutedUserId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("MutedUsers") .WithMany("MutedUsers")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permission", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.Permission", "Next") b.HasOne("NadekoBot.Core.Services.Database.Models.Permission", "Next")
.WithOne("Previous") .WithOne("Previous")
.HasForeignKey("NadekoBot.Services.Database.Models.Permission", "NextId"); .HasForeignKey("NadekoBot.Core.Services.Database.Models.Permission", "NextId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlayingStatus", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlayingStatus", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("RotatingStatusMessages") .WithMany("RotatingStatusMessages")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlaylistSong", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.MusicPlaylist") b.HasOne("NadekoBot.Core.Services.Database.Models.MusicPlaylist")
.WithMany("Songs") .WithMany("Songs")
.HasForeignKey("MusicPlaylistId") .HasForeignKey("MusicPlaylistId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.RaceAnimal", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("RaceAnimals") .WithMany("RaceAnimals")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.WaifuInfo", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WaifuInfo", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "Affinity") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "Affinity")
.WithMany() .WithMany()
.HasForeignKey("AffinityId"); .HasForeignKey("AffinityId");
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "Claimer") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "Claimer")
.WithMany() .WithMany()
.HasForeignKey("ClaimerId"); .HasForeignKey("ClaimerId");
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "Waifu") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "Waifu")
.WithOne() .WithOne()
.HasForeignKey("NadekoBot.Services.Database.Models.WaifuInfo", "WaifuId") .HasForeignKey("NadekoBot.Core.Services.Database.Models.WaifuInfo", "WaifuId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.WaifuUpdate", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WaifuUpdate", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "New") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "New")
.WithMany() .WithMany()
.HasForeignKey("NewId"); .HasForeignKey("NewId");
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "Old") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "Old")
.WithMany() .WithMany()
.HasForeignKey("OldId"); .HasForeignKey("OldId");
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "User") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "User")
.WithMany() .WithMany()
.HasForeignKey("UserId") .HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);

View File

@ -3,7 +3,7 @@ using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Migrations;
using NadekoBot.Services.Database; using NadekoBot.Core.Services.Database;
namespace NadekoBot.Migrations namespace NadekoBot.Migrations
{ {
@ -16,7 +16,7 @@ namespace NadekoBot.Migrations
modelBuilder modelBuilder
.HasAnnotation("ProductVersion", "1.1.0-rtm-22752"); .HasAnnotation("ProductVersion", "1.1.0-rtm-22752");
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiRaidSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiRaidSetting", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -39,7 +39,7 @@ namespace NadekoBot.Migrations
b.ToTable("AntiRaidSetting"); b.ToTable("AntiRaidSetting");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiSpamIgnore", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamIgnore", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -57,7 +57,7 @@ namespace NadekoBot.Migrations
b.ToTable("AntiSpamIgnore"); b.ToTable("AntiSpamIgnore");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiSpamSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamSetting", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -78,7 +78,7 @@ namespace NadekoBot.Migrations
b.ToTable("AntiSpamSetting"); b.ToTable("AntiSpamSetting");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.BlacklistItem", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlacklistItem", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -98,7 +98,7 @@ namespace NadekoBot.Migrations
b.ToTable("BlacklistItem"); b.ToTable("BlacklistItem");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.BotConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BotConfig", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -156,7 +156,7 @@ namespace NadekoBot.Migrations
b.ToTable("BotConfig"); b.ToTable("BotConfig");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashCaller", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashCaller", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -182,7 +182,7 @@ namespace NadekoBot.Migrations
b.ToTable("ClashCallers"); b.ToTable("ClashCallers");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashWar", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashWar", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -206,7 +206,7 @@ namespace NadekoBot.Migrations
b.ToTable("ClashOfClans"); b.ToTable("ClashOfClans");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandCooldown", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandCooldown", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -226,7 +226,7 @@ namespace NadekoBot.Migrations
b.ToTable("CommandCooldown"); b.ToTable("CommandCooldown");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandPrice", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandPrice", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -249,7 +249,7 @@ namespace NadekoBot.Migrations
b.ToTable("CommandPrice"); b.ToTable("CommandPrice");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ConvertUnit", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ConvertUnit", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -267,7 +267,7 @@ namespace NadekoBot.Migrations
b.ToTable("ConversionUnits"); b.ToTable("ConversionUnits");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Currency", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Currency", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -286,7 +286,7 @@ namespace NadekoBot.Migrations
b.ToTable("Currency"); b.ToTable("Currency");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CurrencyTransaction", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CurrencyTransaction", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -304,7 +304,7 @@ namespace NadekoBot.Migrations
b.ToTable("CurrencyTransactions"); b.ToTable("CurrencyTransactions");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CustomReaction", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CustomReaction", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -326,7 +326,7 @@ namespace NadekoBot.Migrations
b.ToTable("CustomReactions"); b.ToTable("CustomReactions");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.DiscordUser", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.DiscordUser", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -348,7 +348,7 @@ namespace NadekoBot.Migrations
b.ToTable("DiscordUser"); b.ToTable("DiscordUser");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Donator", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Donator", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -369,7 +369,7 @@ namespace NadekoBot.Migrations
b.ToTable("Donators"); b.ToTable("Donators");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.EightBallResponse", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -387,7 +387,7 @@ namespace NadekoBot.Migrations
b.ToTable("EightBallResponses"); b.ToTable("EightBallResponses");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilterChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -409,7 +409,7 @@ namespace NadekoBot.Migrations
b.ToTable("FilterChannelId"); b.ToTable("FilterChannelId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilteredWord", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilteredWord", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -427,7 +427,7 @@ namespace NadekoBot.Migrations
b.ToTable("FilteredWord"); b.ToTable("FilteredWord");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FollowedStream", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FollowedStream", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -451,7 +451,7 @@ namespace NadekoBot.Migrations
b.ToTable("FollowedStream"); b.ToTable("FollowedStream");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GCChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GCChannelId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -469,7 +469,7 @@ namespace NadekoBot.Migrations
b.ToTable("GCChannelId"); b.ToTable("GCChannelId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildConfig", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -546,7 +546,7 @@ namespace NadekoBot.Migrations
b.ToTable("GuildConfigs"); b.ToTable("GuildConfigs");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildRepeater", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildRepeater", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -570,7 +570,7 @@ namespace NadekoBot.Migrations
b.ToTable("GuildRepeater"); b.ToTable("GuildRepeater");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredLogChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredLogChannel", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -588,7 +588,7 @@ namespace NadekoBot.Migrations
b.ToTable("IgnoredLogChannels"); b.ToTable("IgnoredLogChannels");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredVoicePresenceChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -606,7 +606,7 @@ namespace NadekoBot.Migrations
b.ToTable("IgnoredVoicePresenceCHannels"); b.ToTable("IgnoredVoicePresenceCHannels");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.LogSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.LogSetting", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -680,7 +680,7 @@ namespace NadekoBot.Migrations
b.ToTable("LogSettings"); b.ToTable("LogSettings");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ModulePrefix", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ModulePrefix", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -700,7 +700,7 @@ namespace NadekoBot.Migrations
b.ToTable("ModulePrefixes"); b.ToTable("ModulePrefixes");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.MusicPlaylist", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MusicPlaylist", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -718,7 +718,7 @@ namespace NadekoBot.Migrations
b.ToTable("MusicPlaylists"); b.ToTable("MusicPlaylists");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.MutedUserId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MutedUserId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -736,7 +736,7 @@ namespace NadekoBot.Migrations
b.ToTable("MutedUserId"); b.ToTable("MutedUserId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permission", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -763,7 +763,7 @@ namespace NadekoBot.Migrations
b.ToTable("Permission"); b.ToTable("Permission");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlayingStatus", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlayingStatus", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -781,7 +781,7 @@ namespace NadekoBot.Migrations
b.ToTable("PlayingStatus"); b.ToTable("PlayingStatus");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlaylistSong", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -807,7 +807,7 @@ namespace NadekoBot.Migrations
b.ToTable("PlaylistSong"); b.ToTable("PlaylistSong");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Quote", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Quote", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -832,7 +832,7 @@ namespace NadekoBot.Migrations
b.ToTable("Quotes"); b.ToTable("Quotes");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.RaceAnimal", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -852,7 +852,7 @@ namespace NadekoBot.Migrations
b.ToTable("RaceAnimals"); b.ToTable("RaceAnimals");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Reminder", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Reminder", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -876,7 +876,7 @@ namespace NadekoBot.Migrations
b.ToTable("Reminders"); b.ToTable("Reminders");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.SelfAssignedRole", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.SelfAssignedRole", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -895,7 +895,7 @@ namespace NadekoBot.Migrations
b.ToTable("SelfAssignableRoles"); b.ToTable("SelfAssignableRoles");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.UserPokeTypes", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.UserPokeTypes", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -914,7 +914,7 @@ namespace NadekoBot.Migrations
b.ToTable("PokeGame"); b.ToTable("PokeGame");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.WaifuInfo", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WaifuInfo", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -941,7 +941,7 @@ namespace NadekoBot.Migrations
b.ToTable("WaifuInfo"); b.ToTable("WaifuInfo");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.WaifuUpdate", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WaifuUpdate", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -967,199 +967,199 @@ namespace NadekoBot.Migrations
b.ToTable("WaifuUpdates"); b.ToTable("WaifuUpdates");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiRaidSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiRaidSetting", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig", "GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig", "GuildConfig")
.WithOne("AntiRaidSetting") .WithOne("AntiRaidSetting")
.HasForeignKey("NadekoBot.Services.Database.Models.AntiRaidSetting", "GuildConfigId") .HasForeignKey("NadekoBot.Core.Services.Database.Models.AntiRaidSetting", "GuildConfigId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiSpamIgnore", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamIgnore", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.AntiSpamSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.AntiSpamSetting")
.WithMany("IgnoredChannels") .WithMany("IgnoredChannels")
.HasForeignKey("AntiSpamSettingId"); .HasForeignKey("AntiSpamSettingId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiSpamSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamSetting", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig", "GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig", "GuildConfig")
.WithOne("AntiSpamSetting") .WithOne("AntiSpamSetting")
.HasForeignKey("NadekoBot.Services.Database.Models.AntiSpamSetting", "GuildConfigId") .HasForeignKey("NadekoBot.Core.Services.Database.Models.AntiSpamSetting", "GuildConfigId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.BlacklistItem", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlacklistItem", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("Blacklist") .WithMany("Blacklist")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashCaller", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashCaller", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.ClashWar", "ClashWar") b.HasOne("NadekoBot.Core.Services.Database.Models.ClashWar", "ClashWar")
.WithMany("Bases") .WithMany("Bases")
.HasForeignKey("ClashWarId") .HasForeignKey("ClashWarId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandCooldown", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandCooldown", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("CommandCooldowns") .WithMany("CommandCooldowns")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandPrice", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandPrice", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("CommandPrices") .WithMany("CommandPrices")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.EightBallResponse", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("EightBallResponses") .WithMany("EightBallResponses")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilterChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilterInvitesChannelIds") .WithMany("FilterInvitesChannelIds")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilterWordsChannelIds") .WithMany("FilterWordsChannelIds")
.HasForeignKey("GuildConfigId1"); .HasForeignKey("GuildConfigId1");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilteredWord", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilteredWord", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilteredWords") .WithMany("FilteredWords")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FollowedStream", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FollowedStream", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FollowedStreams") .WithMany("FollowedStreams")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GCChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GCChannelId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("GenerateCurrencyChannelIds") .WithMany("GenerateCurrencyChannelIds")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildConfig", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany() .WithMany()
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
b.HasOne("NadekoBot.Services.Database.Models.Permission", "RootPermission") b.HasOne("NadekoBot.Core.Services.Database.Models.Permission", "RootPermission")
.WithMany() .WithMany()
.HasForeignKey("RootPermissionId"); .HasForeignKey("RootPermissionId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildRepeater", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildRepeater", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("GuildRepeaters") .WithMany("GuildRepeaters")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredLogChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredLogChannel", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany("IgnoredChannels") .WithMany("IgnoredChannels")
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredVoicePresenceChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany("IgnoredVoicePresenceChannelIds") .WithMany("IgnoredVoicePresenceChannelIds")
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ModulePrefix", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ModulePrefix", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("ModulePrefixes") .WithMany("ModulePrefixes")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.MutedUserId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MutedUserId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("MutedUsers") .WithMany("MutedUsers")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permission", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.Permission", "Next") b.HasOne("NadekoBot.Core.Services.Database.Models.Permission", "Next")
.WithOne("Previous") .WithOne("Previous")
.HasForeignKey("NadekoBot.Services.Database.Models.Permission", "NextId"); .HasForeignKey("NadekoBot.Core.Services.Database.Models.Permission", "NextId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlayingStatus", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlayingStatus", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("RotatingStatusMessages") .WithMany("RotatingStatusMessages")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlaylistSong", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.MusicPlaylist") b.HasOne("NadekoBot.Core.Services.Database.Models.MusicPlaylist")
.WithMany("Songs") .WithMany("Songs")
.HasForeignKey("MusicPlaylistId") .HasForeignKey("MusicPlaylistId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.RaceAnimal", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("RaceAnimals") .WithMany("RaceAnimals")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.WaifuInfo", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WaifuInfo", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "Affinity") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "Affinity")
.WithMany() .WithMany()
.HasForeignKey("AffinityId"); .HasForeignKey("AffinityId");
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "Claimer") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "Claimer")
.WithMany() .WithMany()
.HasForeignKey("ClaimerId"); .HasForeignKey("ClaimerId");
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "Waifu") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "Waifu")
.WithOne() .WithOne()
.HasForeignKey("NadekoBot.Services.Database.Models.WaifuInfo", "WaifuId") .HasForeignKey("NadekoBot.Core.Services.Database.Models.WaifuInfo", "WaifuId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.WaifuUpdate", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WaifuUpdate", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "New") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "New")
.WithMany() .WithMany()
.HasForeignKey("NewId"); .HasForeignKey("NewId");
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "Old") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "Old")
.WithMany() .WithMany()
.HasForeignKey("OldId"); .HasForeignKey("OldId");
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "User") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "User")
.WithMany() .WithMany()
.HasForeignKey("UserId") .HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);

View File

@ -3,7 +3,7 @@ using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Migrations;
using NadekoBot.Services.Database; using NadekoBot.Core.Services.Database;
namespace NadekoBot.Migrations namespace NadekoBot.Migrations
{ {
@ -16,7 +16,7 @@ namespace NadekoBot.Migrations
modelBuilder modelBuilder
.HasAnnotation("ProductVersion", "1.1.0-rtm-22752"); .HasAnnotation("ProductVersion", "1.1.0-rtm-22752");
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiRaidSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiRaidSetting", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -39,7 +39,7 @@ namespace NadekoBot.Migrations
b.ToTable("AntiRaidSetting"); b.ToTable("AntiRaidSetting");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiSpamIgnore", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamIgnore", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -57,7 +57,7 @@ namespace NadekoBot.Migrations
b.ToTable("AntiSpamIgnore"); b.ToTable("AntiSpamIgnore");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiSpamSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamSetting", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -78,7 +78,7 @@ namespace NadekoBot.Migrations
b.ToTable("AntiSpamSetting"); b.ToTable("AntiSpamSetting");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.BlacklistItem", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlacklistItem", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -98,7 +98,7 @@ namespace NadekoBot.Migrations
b.ToTable("BlacklistItem"); b.ToTable("BlacklistItem");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.BotConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BotConfig", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -156,7 +156,7 @@ namespace NadekoBot.Migrations
b.ToTable("BotConfig"); b.ToTable("BotConfig");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashCaller", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashCaller", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -182,7 +182,7 @@ namespace NadekoBot.Migrations
b.ToTable("ClashCallers"); b.ToTable("ClashCallers");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashWar", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashWar", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -206,7 +206,7 @@ namespace NadekoBot.Migrations
b.ToTable("ClashOfClans"); b.ToTable("ClashOfClans");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandCooldown", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandCooldown", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -226,7 +226,7 @@ namespace NadekoBot.Migrations
b.ToTable("CommandCooldown"); b.ToTable("CommandCooldown");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandPrice", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandPrice", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -249,7 +249,7 @@ namespace NadekoBot.Migrations
b.ToTable("CommandPrice"); b.ToTable("CommandPrice");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ConvertUnit", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ConvertUnit", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -267,7 +267,7 @@ namespace NadekoBot.Migrations
b.ToTable("ConversionUnits"); b.ToTable("ConversionUnits");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Currency", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Currency", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -286,7 +286,7 @@ namespace NadekoBot.Migrations
b.ToTable("Currency"); b.ToTable("Currency");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CurrencyTransaction", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CurrencyTransaction", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -304,7 +304,7 @@ namespace NadekoBot.Migrations
b.ToTable("CurrencyTransactions"); b.ToTable("CurrencyTransactions");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CustomReaction", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CustomReaction", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -326,7 +326,7 @@ namespace NadekoBot.Migrations
b.ToTable("CustomReactions"); b.ToTable("CustomReactions");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.DiscordUser", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.DiscordUser", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -348,7 +348,7 @@ namespace NadekoBot.Migrations
b.ToTable("DiscordUser"); b.ToTable("DiscordUser");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Donator", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Donator", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -369,7 +369,7 @@ namespace NadekoBot.Migrations
b.ToTable("Donators"); b.ToTable("Donators");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.EightBallResponse", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -387,7 +387,7 @@ namespace NadekoBot.Migrations
b.ToTable("EightBallResponses"); b.ToTable("EightBallResponses");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilterChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -409,7 +409,7 @@ namespace NadekoBot.Migrations
b.ToTable("FilterChannelId"); b.ToTable("FilterChannelId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilteredWord", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilteredWord", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -427,7 +427,7 @@ namespace NadekoBot.Migrations
b.ToTable("FilteredWord"); b.ToTable("FilteredWord");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FollowedStream", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FollowedStream", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -451,7 +451,7 @@ namespace NadekoBot.Migrations
b.ToTable("FollowedStream"); b.ToTable("FollowedStream");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GCChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GCChannelId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -469,7 +469,7 @@ namespace NadekoBot.Migrations
b.ToTable("GCChannelId"); b.ToTable("GCChannelId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildConfig", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -546,7 +546,7 @@ namespace NadekoBot.Migrations
b.ToTable("GuildConfigs"); b.ToTable("GuildConfigs");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildRepeater", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildRepeater", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -570,7 +570,7 @@ namespace NadekoBot.Migrations
b.ToTable("GuildRepeater"); b.ToTable("GuildRepeater");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredLogChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredLogChannel", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -588,7 +588,7 @@ namespace NadekoBot.Migrations
b.ToTable("IgnoredLogChannels"); b.ToTable("IgnoredLogChannels");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredVoicePresenceChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -606,7 +606,7 @@ namespace NadekoBot.Migrations
b.ToTable("IgnoredVoicePresenceCHannels"); b.ToTable("IgnoredVoicePresenceCHannels");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.LogSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.LogSetting", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -680,7 +680,7 @@ namespace NadekoBot.Migrations
b.ToTable("LogSettings"); b.ToTable("LogSettings");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ModulePrefix", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ModulePrefix", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -700,7 +700,7 @@ namespace NadekoBot.Migrations
b.ToTable("ModulePrefixes"); b.ToTable("ModulePrefixes");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.MusicPlaylist", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MusicPlaylist", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -718,7 +718,7 @@ namespace NadekoBot.Migrations
b.ToTable("MusicPlaylists"); b.ToTable("MusicPlaylists");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.MutedUserId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MutedUserId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -736,7 +736,7 @@ namespace NadekoBot.Migrations
b.ToTable("MutedUserId"); b.ToTable("MutedUserId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permission", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -763,7 +763,7 @@ namespace NadekoBot.Migrations
b.ToTable("Permission"); b.ToTable("Permission");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permissionv2", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permissionv2", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -791,7 +791,7 @@ namespace NadekoBot.Migrations
b.ToTable("Permissionv2"); b.ToTable("Permissionv2");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlayingStatus", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlayingStatus", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -809,7 +809,7 @@ namespace NadekoBot.Migrations
b.ToTable("PlayingStatus"); b.ToTable("PlayingStatus");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlaylistSong", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -835,7 +835,7 @@ namespace NadekoBot.Migrations
b.ToTable("PlaylistSong"); b.ToTable("PlaylistSong");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Quote", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Quote", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -860,7 +860,7 @@ namespace NadekoBot.Migrations
b.ToTable("Quotes"); b.ToTable("Quotes");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.RaceAnimal", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -880,7 +880,7 @@ namespace NadekoBot.Migrations
b.ToTable("RaceAnimals"); b.ToTable("RaceAnimals");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Reminder", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Reminder", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -904,7 +904,7 @@ namespace NadekoBot.Migrations
b.ToTable("Reminders"); b.ToTable("Reminders");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.SelfAssignedRole", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.SelfAssignedRole", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -923,7 +923,7 @@ namespace NadekoBot.Migrations
b.ToTable("SelfAssignableRoles"); b.ToTable("SelfAssignableRoles");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.UserPokeTypes", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.UserPokeTypes", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -942,7 +942,7 @@ namespace NadekoBot.Migrations
b.ToTable("PokeGame"); b.ToTable("PokeGame");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.WaifuInfo", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WaifuInfo", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -969,7 +969,7 @@ namespace NadekoBot.Migrations
b.ToTable("WaifuInfo"); b.ToTable("WaifuInfo");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.WaifuUpdate", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WaifuUpdate", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -995,206 +995,206 @@ namespace NadekoBot.Migrations
b.ToTable("WaifuUpdates"); b.ToTable("WaifuUpdates");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiRaidSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiRaidSetting", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig", "GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig", "GuildConfig")
.WithOne("AntiRaidSetting") .WithOne("AntiRaidSetting")
.HasForeignKey("NadekoBot.Services.Database.Models.AntiRaidSetting", "GuildConfigId") .HasForeignKey("NadekoBot.Core.Services.Database.Models.AntiRaidSetting", "GuildConfigId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiSpamIgnore", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamIgnore", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.AntiSpamSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.AntiSpamSetting")
.WithMany("IgnoredChannels") .WithMany("IgnoredChannels")
.HasForeignKey("AntiSpamSettingId"); .HasForeignKey("AntiSpamSettingId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiSpamSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamSetting", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig", "GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig", "GuildConfig")
.WithOne("AntiSpamSetting") .WithOne("AntiSpamSetting")
.HasForeignKey("NadekoBot.Services.Database.Models.AntiSpamSetting", "GuildConfigId") .HasForeignKey("NadekoBot.Core.Services.Database.Models.AntiSpamSetting", "GuildConfigId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.BlacklistItem", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlacklistItem", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("Blacklist") .WithMany("Blacklist")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashCaller", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashCaller", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.ClashWar", "ClashWar") b.HasOne("NadekoBot.Core.Services.Database.Models.ClashWar", "ClashWar")
.WithMany("Bases") .WithMany("Bases")
.HasForeignKey("ClashWarId") .HasForeignKey("ClashWarId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandCooldown", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandCooldown", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("CommandCooldowns") .WithMany("CommandCooldowns")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandPrice", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandPrice", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("CommandPrices") .WithMany("CommandPrices")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.EightBallResponse", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("EightBallResponses") .WithMany("EightBallResponses")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilterChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilterInvitesChannelIds") .WithMany("FilterInvitesChannelIds")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilterWordsChannelIds") .WithMany("FilterWordsChannelIds")
.HasForeignKey("GuildConfigId1"); .HasForeignKey("GuildConfigId1");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilteredWord", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilteredWord", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilteredWords") .WithMany("FilteredWords")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FollowedStream", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FollowedStream", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FollowedStreams") .WithMany("FollowedStreams")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GCChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GCChannelId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("GenerateCurrencyChannelIds") .WithMany("GenerateCurrencyChannelIds")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildConfig", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany() .WithMany()
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
b.HasOne("NadekoBot.Services.Database.Models.Permission", "RootPermission") b.HasOne("NadekoBot.Core.Services.Database.Models.Permission", "RootPermission")
.WithMany() .WithMany()
.HasForeignKey("RootPermissionId"); .HasForeignKey("RootPermissionId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildRepeater", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildRepeater", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("GuildRepeaters") .WithMany("GuildRepeaters")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredLogChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredLogChannel", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany("IgnoredChannels") .WithMany("IgnoredChannels")
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredVoicePresenceChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany("IgnoredVoicePresenceChannelIds") .WithMany("IgnoredVoicePresenceChannelIds")
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ModulePrefix", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ModulePrefix", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("ModulePrefixes") .WithMany("ModulePrefixes")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.MutedUserId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MutedUserId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("MutedUsers") .WithMany("MutedUsers")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permission", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.Permission", "Next") b.HasOne("NadekoBot.Core.Services.Database.Models.Permission", "Next")
.WithOne("Previous") .WithOne("Previous")
.HasForeignKey("NadekoBot.Services.Database.Models.Permission", "NextId"); .HasForeignKey("NadekoBot.Core.Services.Database.Models.Permission", "NextId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permissionv2", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permissionv2", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("Permissions") .WithMany("Permissions")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlayingStatus", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlayingStatus", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("RotatingStatusMessages") .WithMany("RotatingStatusMessages")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlaylistSong", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.MusicPlaylist") b.HasOne("NadekoBot.Core.Services.Database.Models.MusicPlaylist")
.WithMany("Songs") .WithMany("Songs")
.HasForeignKey("MusicPlaylistId") .HasForeignKey("MusicPlaylistId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.RaceAnimal", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("RaceAnimals") .WithMany("RaceAnimals")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.WaifuInfo", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WaifuInfo", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "Affinity") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "Affinity")
.WithMany() .WithMany()
.HasForeignKey("AffinityId"); .HasForeignKey("AffinityId");
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "Claimer") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "Claimer")
.WithMany() .WithMany()
.HasForeignKey("ClaimerId"); .HasForeignKey("ClaimerId");
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "Waifu") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "Waifu")
.WithOne() .WithOne()
.HasForeignKey("NadekoBot.Services.Database.Models.WaifuInfo", "WaifuId") .HasForeignKey("NadekoBot.Core.Services.Database.Models.WaifuInfo", "WaifuId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.WaifuUpdate", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WaifuUpdate", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "New") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "New")
.WithMany() .WithMany()
.HasForeignKey("NewId"); .HasForeignKey("NewId");
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "Old") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "Old")
.WithMany() .WithMany()
.HasForeignKey("OldId"); .HasForeignKey("OldId");
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "User") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "User")
.WithMany() .WithMany()
.HasForeignKey("UserId") .HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);

View File

@ -3,7 +3,7 @@ using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Migrations;
using NadekoBot.Services.Database; using NadekoBot.Core.Services.Database;
namespace NadekoBot.Migrations namespace NadekoBot.Migrations
{ {
@ -16,7 +16,7 @@ namespace NadekoBot.Migrations
modelBuilder modelBuilder
.HasAnnotation("ProductVersion", "1.1.0-rtm-22752"); .HasAnnotation("ProductVersion", "1.1.0-rtm-22752");
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiRaidSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiRaidSetting", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -39,7 +39,7 @@ namespace NadekoBot.Migrations
b.ToTable("AntiRaidSetting"); b.ToTable("AntiRaidSetting");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiSpamIgnore", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamIgnore", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -57,7 +57,7 @@ namespace NadekoBot.Migrations
b.ToTable("AntiSpamIgnore"); b.ToTable("AntiSpamIgnore");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiSpamSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamSetting", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -78,7 +78,7 @@ namespace NadekoBot.Migrations
b.ToTable("AntiSpamSetting"); b.ToTable("AntiSpamSetting");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.BlacklistItem", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlacklistItem", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -98,7 +98,7 @@ namespace NadekoBot.Migrations
b.ToTable("BlacklistItem"); b.ToTable("BlacklistItem");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.BotConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BotConfig", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -156,7 +156,7 @@ namespace NadekoBot.Migrations
b.ToTable("BotConfig"); b.ToTable("BotConfig");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashCaller", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashCaller", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -182,7 +182,7 @@ namespace NadekoBot.Migrations
b.ToTable("ClashCallers"); b.ToTable("ClashCallers");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashWar", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashWar", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -206,7 +206,7 @@ namespace NadekoBot.Migrations
b.ToTable("ClashOfClans"); b.ToTable("ClashOfClans");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandCooldown", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandCooldown", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -226,7 +226,7 @@ namespace NadekoBot.Migrations
b.ToTable("CommandCooldown"); b.ToTable("CommandCooldown");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandPrice", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandPrice", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -249,7 +249,7 @@ namespace NadekoBot.Migrations
b.ToTable("CommandPrice"); b.ToTable("CommandPrice");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ConvertUnit", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ConvertUnit", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -267,7 +267,7 @@ namespace NadekoBot.Migrations
b.ToTable("ConversionUnits"); b.ToTable("ConversionUnits");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Currency", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Currency", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -286,7 +286,7 @@ namespace NadekoBot.Migrations
b.ToTable("Currency"); b.ToTable("Currency");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CurrencyTransaction", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CurrencyTransaction", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -304,7 +304,7 @@ namespace NadekoBot.Migrations
b.ToTable("CurrencyTransactions"); b.ToTable("CurrencyTransactions");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CustomReaction", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CustomReaction", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -326,7 +326,7 @@ namespace NadekoBot.Migrations
b.ToTable("CustomReactions"); b.ToTable("CustomReactions");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.DiscordUser", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.DiscordUser", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -348,7 +348,7 @@ namespace NadekoBot.Migrations
b.ToTable("DiscordUser"); b.ToTable("DiscordUser");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Donator", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Donator", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -369,7 +369,7 @@ namespace NadekoBot.Migrations
b.ToTable("Donators"); b.ToTable("Donators");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.EightBallResponse", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -387,7 +387,7 @@ namespace NadekoBot.Migrations
b.ToTable("EightBallResponses"); b.ToTable("EightBallResponses");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilterChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -409,7 +409,7 @@ namespace NadekoBot.Migrations
b.ToTable("FilterChannelId"); b.ToTable("FilterChannelId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilteredWord", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilteredWord", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -427,7 +427,7 @@ namespace NadekoBot.Migrations
b.ToTable("FilteredWord"); b.ToTable("FilteredWord");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FollowedStream", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FollowedStream", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -451,7 +451,7 @@ namespace NadekoBot.Migrations
b.ToTable("FollowedStream"); b.ToTable("FollowedStream");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GCChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GCChannelId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -469,7 +469,7 @@ namespace NadekoBot.Migrations
b.ToTable("GCChannelId"); b.ToTable("GCChannelId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildConfig", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -546,7 +546,7 @@ namespace NadekoBot.Migrations
b.ToTable("GuildConfigs"); b.ToTable("GuildConfigs");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildRepeater", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildRepeater", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -570,7 +570,7 @@ namespace NadekoBot.Migrations
b.ToTable("GuildRepeater"); b.ToTable("GuildRepeater");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredLogChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredLogChannel", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -588,7 +588,7 @@ namespace NadekoBot.Migrations
b.ToTable("IgnoredLogChannels"); b.ToTable("IgnoredLogChannels");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredVoicePresenceChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -606,7 +606,7 @@ namespace NadekoBot.Migrations
b.ToTable("IgnoredVoicePresenceCHannels"); b.ToTable("IgnoredVoicePresenceCHannels");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.LogSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.LogSetting", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -680,7 +680,7 @@ namespace NadekoBot.Migrations
b.ToTable("LogSettings"); b.ToTable("LogSettings");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ModulePrefix", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ModulePrefix", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -700,7 +700,7 @@ namespace NadekoBot.Migrations
b.ToTable("ModulePrefixes"); b.ToTable("ModulePrefixes");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.MusicPlaylist", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MusicPlaylist", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -718,7 +718,7 @@ namespace NadekoBot.Migrations
b.ToTable("MusicPlaylists"); b.ToTable("MusicPlaylists");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.MutedUserId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MutedUserId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -736,7 +736,7 @@ namespace NadekoBot.Migrations
b.ToTable("MutedUserId"); b.ToTable("MutedUserId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permission", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -763,7 +763,7 @@ namespace NadekoBot.Migrations
b.ToTable("Permission"); b.ToTable("Permission");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permissionv2", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permissionv2", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -791,7 +791,7 @@ namespace NadekoBot.Migrations
b.ToTable("Permissionv2"); b.ToTable("Permissionv2");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlayingStatus", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlayingStatus", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -809,7 +809,7 @@ namespace NadekoBot.Migrations
b.ToTable("PlayingStatus"); b.ToTable("PlayingStatus");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlaylistSong", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -835,7 +835,7 @@ namespace NadekoBot.Migrations
b.ToTable("PlaylistSong"); b.ToTable("PlaylistSong");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Quote", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Quote", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -860,7 +860,7 @@ namespace NadekoBot.Migrations
b.ToTable("Quotes"); b.ToTable("Quotes");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.RaceAnimal", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -880,7 +880,7 @@ namespace NadekoBot.Migrations
b.ToTable("RaceAnimals"); b.ToTable("RaceAnimals");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Reminder", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Reminder", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -904,7 +904,7 @@ namespace NadekoBot.Migrations
b.ToTable("Reminders"); b.ToTable("Reminders");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.SelfAssignedRole", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.SelfAssignedRole", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -923,7 +923,7 @@ namespace NadekoBot.Migrations
b.ToTable("SelfAssignableRoles"); b.ToTable("SelfAssignableRoles");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.UnmuteTimer", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.UnmuteTimer", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -943,7 +943,7 @@ namespace NadekoBot.Migrations
b.ToTable("UnmuteTimer"); b.ToTable("UnmuteTimer");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.UserPokeTypes", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.UserPokeTypes", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -962,7 +962,7 @@ namespace NadekoBot.Migrations
b.ToTable("PokeGame"); b.ToTable("PokeGame");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.WaifuInfo", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WaifuInfo", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -989,7 +989,7 @@ namespace NadekoBot.Migrations
b.ToTable("WaifuInfo"); b.ToTable("WaifuInfo");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.WaifuUpdate", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WaifuUpdate", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -1015,213 +1015,213 @@ namespace NadekoBot.Migrations
b.ToTable("WaifuUpdates"); b.ToTable("WaifuUpdates");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiRaidSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiRaidSetting", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig", "GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig", "GuildConfig")
.WithOne("AntiRaidSetting") .WithOne("AntiRaidSetting")
.HasForeignKey("NadekoBot.Services.Database.Models.AntiRaidSetting", "GuildConfigId") .HasForeignKey("NadekoBot.Core.Services.Database.Models.AntiRaidSetting", "GuildConfigId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiSpamIgnore", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamIgnore", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.AntiSpamSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.AntiSpamSetting")
.WithMany("IgnoredChannels") .WithMany("IgnoredChannels")
.HasForeignKey("AntiSpamSettingId"); .HasForeignKey("AntiSpamSettingId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiSpamSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamSetting", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig", "GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig", "GuildConfig")
.WithOne("AntiSpamSetting") .WithOne("AntiSpamSetting")
.HasForeignKey("NadekoBot.Services.Database.Models.AntiSpamSetting", "GuildConfigId") .HasForeignKey("NadekoBot.Core.Services.Database.Models.AntiSpamSetting", "GuildConfigId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.BlacklistItem", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlacklistItem", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("Blacklist") .WithMany("Blacklist")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashCaller", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashCaller", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.ClashWar", "ClashWar") b.HasOne("NadekoBot.Core.Services.Database.Models.ClashWar", "ClashWar")
.WithMany("Bases") .WithMany("Bases")
.HasForeignKey("ClashWarId") .HasForeignKey("ClashWarId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandCooldown", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandCooldown", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("CommandCooldowns") .WithMany("CommandCooldowns")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandPrice", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandPrice", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("CommandPrices") .WithMany("CommandPrices")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.EightBallResponse", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("EightBallResponses") .WithMany("EightBallResponses")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilterChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilterInvitesChannelIds") .WithMany("FilterInvitesChannelIds")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilterWordsChannelIds") .WithMany("FilterWordsChannelIds")
.HasForeignKey("GuildConfigId1"); .HasForeignKey("GuildConfigId1");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilteredWord", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilteredWord", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilteredWords") .WithMany("FilteredWords")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FollowedStream", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FollowedStream", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FollowedStreams") .WithMany("FollowedStreams")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GCChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GCChannelId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("GenerateCurrencyChannelIds") .WithMany("GenerateCurrencyChannelIds")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildConfig", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany() .WithMany()
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
b.HasOne("NadekoBot.Services.Database.Models.Permission", "RootPermission") b.HasOne("NadekoBot.Core.Services.Database.Models.Permission", "RootPermission")
.WithMany() .WithMany()
.HasForeignKey("RootPermissionId"); .HasForeignKey("RootPermissionId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildRepeater", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildRepeater", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("GuildRepeaters") .WithMany("GuildRepeaters")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredLogChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredLogChannel", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany("IgnoredChannels") .WithMany("IgnoredChannels")
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredVoicePresenceChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany("IgnoredVoicePresenceChannelIds") .WithMany("IgnoredVoicePresenceChannelIds")
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ModulePrefix", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ModulePrefix", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("ModulePrefixes") .WithMany("ModulePrefixes")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.MutedUserId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MutedUserId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("MutedUsers") .WithMany("MutedUsers")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permission", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.Permission", "Next") b.HasOne("NadekoBot.Core.Services.Database.Models.Permission", "Next")
.WithOne("Previous") .WithOne("Previous")
.HasForeignKey("NadekoBot.Services.Database.Models.Permission", "NextId"); .HasForeignKey("NadekoBot.Core.Services.Database.Models.Permission", "NextId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permissionv2", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permissionv2", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("Permissions") .WithMany("Permissions")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlayingStatus", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlayingStatus", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("RotatingStatusMessages") .WithMany("RotatingStatusMessages")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlaylistSong", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.MusicPlaylist") b.HasOne("NadekoBot.Core.Services.Database.Models.MusicPlaylist")
.WithMany("Songs") .WithMany("Songs")
.HasForeignKey("MusicPlaylistId") .HasForeignKey("MusicPlaylistId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.RaceAnimal", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("RaceAnimals") .WithMany("RaceAnimals")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.UnmuteTimer", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.UnmuteTimer", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("UnmuteTimers") .WithMany("UnmuteTimers")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.WaifuInfo", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WaifuInfo", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "Affinity") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "Affinity")
.WithMany() .WithMany()
.HasForeignKey("AffinityId"); .HasForeignKey("AffinityId");
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "Claimer") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "Claimer")
.WithMany() .WithMany()
.HasForeignKey("ClaimerId"); .HasForeignKey("ClaimerId");
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "Waifu") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "Waifu")
.WithOne() .WithOne()
.HasForeignKey("NadekoBot.Services.Database.Models.WaifuInfo", "WaifuId") .HasForeignKey("NadekoBot.Core.Services.Database.Models.WaifuInfo", "WaifuId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.WaifuUpdate", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WaifuUpdate", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "New") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "New")
.WithMany() .WithMany()
.HasForeignKey("NewId"); .HasForeignKey("NewId");
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "Old") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "Old")
.WithMany() .WithMany()
.HasForeignKey("OldId"); .HasForeignKey("OldId");
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "User") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "User")
.WithMany() .WithMany()
.HasForeignKey("UserId") .HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);

View File

@ -3,7 +3,7 @@ using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Migrations;
using NadekoBot.Services.Database; using NadekoBot.Core.Services.Database;
namespace NadekoBot.Migrations namespace NadekoBot.Migrations
{ {
@ -16,7 +16,7 @@ namespace NadekoBot.Migrations
modelBuilder modelBuilder
.HasAnnotation("ProductVersion", "1.1.0-rtm-22752"); .HasAnnotation("ProductVersion", "1.1.0-rtm-22752");
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiRaidSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiRaidSetting", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -39,7 +39,7 @@ namespace NadekoBot.Migrations
b.ToTable("AntiRaidSetting"); b.ToTable("AntiRaidSetting");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiSpamIgnore", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamIgnore", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -57,7 +57,7 @@ namespace NadekoBot.Migrations
b.ToTable("AntiSpamIgnore"); b.ToTable("AntiSpamIgnore");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiSpamSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamSetting", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -78,7 +78,7 @@ namespace NadekoBot.Migrations
b.ToTable("AntiSpamSetting"); b.ToTable("AntiSpamSetting");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.BlacklistItem", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlacklistItem", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -98,7 +98,7 @@ namespace NadekoBot.Migrations
b.ToTable("BlacklistItem"); b.ToTable("BlacklistItem");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.BotConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BotConfig", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -156,7 +156,7 @@ namespace NadekoBot.Migrations
b.ToTable("BotConfig"); b.ToTable("BotConfig");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashCaller", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashCaller", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -182,7 +182,7 @@ namespace NadekoBot.Migrations
b.ToTable("ClashCallers"); b.ToTable("ClashCallers");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashWar", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashWar", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -206,7 +206,7 @@ namespace NadekoBot.Migrations
b.ToTable("ClashOfClans"); b.ToTable("ClashOfClans");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandCooldown", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandCooldown", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -226,7 +226,7 @@ namespace NadekoBot.Migrations
b.ToTable("CommandCooldown"); b.ToTable("CommandCooldown");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandPrice", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandPrice", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -249,7 +249,7 @@ namespace NadekoBot.Migrations
b.ToTable("CommandPrice"); b.ToTable("CommandPrice");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ConvertUnit", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ConvertUnit", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -267,7 +267,7 @@ namespace NadekoBot.Migrations
b.ToTable("ConversionUnits"); b.ToTable("ConversionUnits");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Currency", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Currency", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -286,7 +286,7 @@ namespace NadekoBot.Migrations
b.ToTable("Currency"); b.ToTable("Currency");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CurrencyTransaction", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CurrencyTransaction", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -304,7 +304,7 @@ namespace NadekoBot.Migrations
b.ToTable("CurrencyTransactions"); b.ToTable("CurrencyTransactions");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CustomReaction", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CustomReaction", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -326,7 +326,7 @@ namespace NadekoBot.Migrations
b.ToTable("CustomReactions"); b.ToTable("CustomReactions");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.DiscordUser", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.DiscordUser", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -348,7 +348,7 @@ namespace NadekoBot.Migrations
b.ToTable("DiscordUser"); b.ToTable("DiscordUser");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Donator", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Donator", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -369,7 +369,7 @@ namespace NadekoBot.Migrations
b.ToTable("Donators"); b.ToTable("Donators");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.EightBallResponse", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -387,7 +387,7 @@ namespace NadekoBot.Migrations
b.ToTable("EightBallResponses"); b.ToTable("EightBallResponses");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilterChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -409,7 +409,7 @@ namespace NadekoBot.Migrations
b.ToTable("FilterChannelId"); b.ToTable("FilterChannelId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilteredWord", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilteredWord", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -427,7 +427,7 @@ namespace NadekoBot.Migrations
b.ToTable("FilteredWord"); b.ToTable("FilteredWord");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FollowedStream", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FollowedStream", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -451,7 +451,7 @@ namespace NadekoBot.Migrations
b.ToTable("FollowedStream"); b.ToTable("FollowedStream");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GCChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GCChannelId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -469,7 +469,7 @@ namespace NadekoBot.Migrations
b.ToTable("GCChannelId"); b.ToTable("GCChannelId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildConfig", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -546,7 +546,7 @@ namespace NadekoBot.Migrations
b.ToTable("GuildConfigs"); b.ToTable("GuildConfigs");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildRepeater", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildRepeater", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -570,7 +570,7 @@ namespace NadekoBot.Migrations
b.ToTable("GuildRepeater"); b.ToTable("GuildRepeater");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredLogChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredLogChannel", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -588,7 +588,7 @@ namespace NadekoBot.Migrations
b.ToTable("IgnoredLogChannels"); b.ToTable("IgnoredLogChannels");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredVoicePresenceChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -606,7 +606,7 @@ namespace NadekoBot.Migrations
b.ToTable("IgnoredVoicePresenceCHannels"); b.ToTable("IgnoredVoicePresenceCHannels");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.LogSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.LogSetting", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -680,7 +680,7 @@ namespace NadekoBot.Migrations
b.ToTable("LogSettings"); b.ToTable("LogSettings");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ModulePrefix", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ModulePrefix", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -700,7 +700,7 @@ namespace NadekoBot.Migrations
b.ToTable("ModulePrefixes"); b.ToTable("ModulePrefixes");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.MusicPlaylist", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MusicPlaylist", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -718,7 +718,7 @@ namespace NadekoBot.Migrations
b.ToTable("MusicPlaylists"); b.ToTable("MusicPlaylists");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.MutedUserId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MutedUserId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -736,7 +736,7 @@ namespace NadekoBot.Migrations
b.ToTable("MutedUserId"); b.ToTable("MutedUserId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permission", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -763,7 +763,7 @@ namespace NadekoBot.Migrations
b.ToTable("Permission"); b.ToTable("Permission");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permissionv2", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permissionv2", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -791,7 +791,7 @@ namespace NadekoBot.Migrations
b.ToTable("Permissionv2"); b.ToTable("Permissionv2");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlayingStatus", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlayingStatus", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -809,7 +809,7 @@ namespace NadekoBot.Migrations
b.ToTable("PlayingStatus"); b.ToTable("PlayingStatus");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlaylistSong", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -835,7 +835,7 @@ namespace NadekoBot.Migrations
b.ToTable("PlaylistSong"); b.ToTable("PlaylistSong");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Quote", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Quote", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -860,7 +860,7 @@ namespace NadekoBot.Migrations
b.ToTable("Quotes"); b.ToTable("Quotes");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.RaceAnimal", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -880,7 +880,7 @@ namespace NadekoBot.Migrations
b.ToTable("RaceAnimals"); b.ToTable("RaceAnimals");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Reminder", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Reminder", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -904,7 +904,7 @@ namespace NadekoBot.Migrations
b.ToTable("Reminders"); b.ToTable("Reminders");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.SelfAssignedRole", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.SelfAssignedRole", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -923,7 +923,7 @@ namespace NadekoBot.Migrations
b.ToTable("SelfAssignableRoles"); b.ToTable("SelfAssignableRoles");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.UnmuteTimer", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.UnmuteTimer", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -943,7 +943,7 @@ namespace NadekoBot.Migrations
b.ToTable("UnmuteTimer"); b.ToTable("UnmuteTimer");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.UserPokeTypes", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.UserPokeTypes", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -962,7 +962,7 @@ namespace NadekoBot.Migrations
b.ToTable("PokeGame"); b.ToTable("PokeGame");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.VcRoleInfo", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.VcRoleInfo", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -982,7 +982,7 @@ namespace NadekoBot.Migrations
b.ToTable("VcRoleInfo"); b.ToTable("VcRoleInfo");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.WaifuInfo", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WaifuInfo", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -1009,7 +1009,7 @@ namespace NadekoBot.Migrations
b.ToTable("WaifuInfo"); b.ToTable("WaifuInfo");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.WaifuUpdate", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WaifuUpdate", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -1035,220 +1035,220 @@ namespace NadekoBot.Migrations
b.ToTable("WaifuUpdates"); b.ToTable("WaifuUpdates");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiRaidSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiRaidSetting", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig", "GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig", "GuildConfig")
.WithOne("AntiRaidSetting") .WithOne("AntiRaidSetting")
.HasForeignKey("NadekoBot.Services.Database.Models.AntiRaidSetting", "GuildConfigId") .HasForeignKey("NadekoBot.Core.Services.Database.Models.AntiRaidSetting", "GuildConfigId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiSpamIgnore", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamIgnore", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.AntiSpamSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.AntiSpamSetting")
.WithMany("IgnoredChannels") .WithMany("IgnoredChannels")
.HasForeignKey("AntiSpamSettingId"); .HasForeignKey("AntiSpamSettingId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiSpamSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamSetting", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig", "GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig", "GuildConfig")
.WithOne("AntiSpamSetting") .WithOne("AntiSpamSetting")
.HasForeignKey("NadekoBot.Services.Database.Models.AntiSpamSetting", "GuildConfigId") .HasForeignKey("NadekoBot.Core.Services.Database.Models.AntiSpamSetting", "GuildConfigId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.BlacklistItem", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlacklistItem", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("Blacklist") .WithMany("Blacklist")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashCaller", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashCaller", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.ClashWar", "ClashWar") b.HasOne("NadekoBot.Core.Services.Database.Models.ClashWar", "ClashWar")
.WithMany("Bases") .WithMany("Bases")
.HasForeignKey("ClashWarId") .HasForeignKey("ClashWarId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandCooldown", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandCooldown", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("CommandCooldowns") .WithMany("CommandCooldowns")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandPrice", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandPrice", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("CommandPrices") .WithMany("CommandPrices")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.EightBallResponse", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("EightBallResponses") .WithMany("EightBallResponses")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilterChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilterInvitesChannelIds") .WithMany("FilterInvitesChannelIds")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilterWordsChannelIds") .WithMany("FilterWordsChannelIds")
.HasForeignKey("GuildConfigId1"); .HasForeignKey("GuildConfigId1");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilteredWord", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilteredWord", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilteredWords") .WithMany("FilteredWords")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FollowedStream", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FollowedStream", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FollowedStreams") .WithMany("FollowedStreams")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GCChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GCChannelId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("GenerateCurrencyChannelIds") .WithMany("GenerateCurrencyChannelIds")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildConfig", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany() .WithMany()
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
b.HasOne("NadekoBot.Services.Database.Models.Permission", "RootPermission") b.HasOne("NadekoBot.Core.Services.Database.Models.Permission", "RootPermission")
.WithMany() .WithMany()
.HasForeignKey("RootPermissionId"); .HasForeignKey("RootPermissionId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildRepeater", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildRepeater", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("GuildRepeaters") .WithMany("GuildRepeaters")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredLogChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredLogChannel", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany("IgnoredChannels") .WithMany("IgnoredChannels")
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredVoicePresenceChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany("IgnoredVoicePresenceChannelIds") .WithMany("IgnoredVoicePresenceChannelIds")
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ModulePrefix", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ModulePrefix", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("ModulePrefixes") .WithMany("ModulePrefixes")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.MutedUserId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MutedUserId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("MutedUsers") .WithMany("MutedUsers")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permission", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.Permission", "Next") b.HasOne("NadekoBot.Core.Services.Database.Models.Permission", "Next")
.WithOne("Previous") .WithOne("Previous")
.HasForeignKey("NadekoBot.Services.Database.Models.Permission", "NextId"); .HasForeignKey("NadekoBot.Core.Services.Database.Models.Permission", "NextId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permissionv2", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permissionv2", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("Permissions") .WithMany("Permissions")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlayingStatus", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlayingStatus", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("RotatingStatusMessages") .WithMany("RotatingStatusMessages")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlaylistSong", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.MusicPlaylist") b.HasOne("NadekoBot.Core.Services.Database.Models.MusicPlaylist")
.WithMany("Songs") .WithMany("Songs")
.HasForeignKey("MusicPlaylistId") .HasForeignKey("MusicPlaylistId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.RaceAnimal", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("RaceAnimals") .WithMany("RaceAnimals")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.UnmuteTimer", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.UnmuteTimer", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("UnmuteTimers") .WithMany("UnmuteTimers")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.VcRoleInfo", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.VcRoleInfo", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("VcRoleInfos") .WithMany("VcRoleInfos")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.WaifuInfo", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WaifuInfo", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "Affinity") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "Affinity")
.WithMany() .WithMany()
.HasForeignKey("AffinityId"); .HasForeignKey("AffinityId");
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "Claimer") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "Claimer")
.WithMany() .WithMany()
.HasForeignKey("ClaimerId"); .HasForeignKey("ClaimerId");
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "Waifu") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "Waifu")
.WithOne() .WithOne()
.HasForeignKey("NadekoBot.Services.Database.Models.WaifuInfo", "WaifuId") .HasForeignKey("NadekoBot.Core.Services.Database.Models.WaifuInfo", "WaifuId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.WaifuUpdate", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WaifuUpdate", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "New") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "New")
.WithMany() .WithMany()
.HasForeignKey("NewId"); .HasForeignKey("NewId");
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "Old") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "Old")
.WithMany() .WithMany()
.HasForeignKey("OldId"); .HasForeignKey("OldId");
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "User") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "User")
.WithMany() .WithMany()
.HasForeignKey("UserId") .HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);

View File

@ -3,7 +3,7 @@ using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Migrations;
using NadekoBot.Services.Database; using NadekoBot.Core.Services.Database;
namespace NadekoBot.Migrations namespace NadekoBot.Migrations
{ {
@ -16,7 +16,7 @@ namespace NadekoBot.Migrations
modelBuilder modelBuilder
.HasAnnotation("ProductVersion", "1.1.0-rtm-22752"); .HasAnnotation("ProductVersion", "1.1.0-rtm-22752");
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiRaidSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiRaidSetting", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -39,7 +39,7 @@ namespace NadekoBot.Migrations
b.ToTable("AntiRaidSetting"); b.ToTable("AntiRaidSetting");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiSpamIgnore", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamIgnore", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -57,7 +57,7 @@ namespace NadekoBot.Migrations
b.ToTable("AntiSpamIgnore"); b.ToTable("AntiSpamIgnore");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiSpamSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamSetting", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -78,7 +78,7 @@ namespace NadekoBot.Migrations
b.ToTable("AntiSpamSetting"); b.ToTable("AntiSpamSetting");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.BlacklistItem", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlacklistItem", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -98,7 +98,7 @@ namespace NadekoBot.Migrations
b.ToTable("BlacklistItem"); b.ToTable("BlacklistItem");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.BotConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BotConfig", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -156,7 +156,7 @@ namespace NadekoBot.Migrations
b.ToTable("BotConfig"); b.ToTable("BotConfig");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashCaller", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashCaller", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -182,7 +182,7 @@ namespace NadekoBot.Migrations
b.ToTable("ClashCallers"); b.ToTable("ClashCallers");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashWar", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashWar", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -206,7 +206,7 @@ namespace NadekoBot.Migrations
b.ToTable("ClashOfClans"); b.ToTable("ClashOfClans");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandCooldown", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandCooldown", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -226,7 +226,7 @@ namespace NadekoBot.Migrations
b.ToTable("CommandCooldown"); b.ToTable("CommandCooldown");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandPrice", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandPrice", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -249,7 +249,7 @@ namespace NadekoBot.Migrations
b.ToTable("CommandPrice"); b.ToTable("CommandPrice");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ConvertUnit", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ConvertUnit", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -267,7 +267,7 @@ namespace NadekoBot.Migrations
b.ToTable("ConversionUnits"); b.ToTable("ConversionUnits");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Currency", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Currency", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -286,7 +286,7 @@ namespace NadekoBot.Migrations
b.ToTable("Currency"); b.ToTable("Currency");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CurrencyTransaction", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CurrencyTransaction", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -304,7 +304,7 @@ namespace NadekoBot.Migrations
b.ToTable("CurrencyTransactions"); b.ToTable("CurrencyTransactions");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CustomReaction", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CustomReaction", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -330,7 +330,7 @@ namespace NadekoBot.Migrations
b.ToTable("CustomReactions"); b.ToTable("CustomReactions");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.DiscordUser", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.DiscordUser", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -352,7 +352,7 @@ namespace NadekoBot.Migrations
b.ToTable("DiscordUser"); b.ToTable("DiscordUser");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Donator", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Donator", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -373,7 +373,7 @@ namespace NadekoBot.Migrations
b.ToTable("Donators"); b.ToTable("Donators");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.EightBallResponse", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -391,7 +391,7 @@ namespace NadekoBot.Migrations
b.ToTable("EightBallResponses"); b.ToTable("EightBallResponses");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilterChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -413,7 +413,7 @@ namespace NadekoBot.Migrations
b.ToTable("FilterChannelId"); b.ToTable("FilterChannelId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilteredWord", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilteredWord", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -431,7 +431,7 @@ namespace NadekoBot.Migrations
b.ToTable("FilteredWord"); b.ToTable("FilteredWord");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FollowedStream", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FollowedStream", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -455,7 +455,7 @@ namespace NadekoBot.Migrations
b.ToTable("FollowedStream"); b.ToTable("FollowedStream");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GCChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GCChannelId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -473,7 +473,7 @@ namespace NadekoBot.Migrations
b.ToTable("GCChannelId"); b.ToTable("GCChannelId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildConfig", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -550,7 +550,7 @@ namespace NadekoBot.Migrations
b.ToTable("GuildConfigs"); b.ToTable("GuildConfigs");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildRepeater", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildRepeater", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -574,7 +574,7 @@ namespace NadekoBot.Migrations
b.ToTable("GuildRepeater"); b.ToTable("GuildRepeater");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredLogChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredLogChannel", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -592,7 +592,7 @@ namespace NadekoBot.Migrations
b.ToTable("IgnoredLogChannels"); b.ToTable("IgnoredLogChannels");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredVoicePresenceChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -610,7 +610,7 @@ namespace NadekoBot.Migrations
b.ToTable("IgnoredVoicePresenceCHannels"); b.ToTable("IgnoredVoicePresenceCHannels");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.LogSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.LogSetting", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -684,7 +684,7 @@ namespace NadekoBot.Migrations
b.ToTable("LogSettings"); b.ToTable("LogSettings");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ModulePrefix", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ModulePrefix", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -704,7 +704,7 @@ namespace NadekoBot.Migrations
b.ToTable("ModulePrefixes"); b.ToTable("ModulePrefixes");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.MusicPlaylist", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MusicPlaylist", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -722,7 +722,7 @@ namespace NadekoBot.Migrations
b.ToTable("MusicPlaylists"); b.ToTable("MusicPlaylists");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.MutedUserId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MutedUserId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -740,7 +740,7 @@ namespace NadekoBot.Migrations
b.ToTable("MutedUserId"); b.ToTable("MutedUserId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permission", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -767,7 +767,7 @@ namespace NadekoBot.Migrations
b.ToTable("Permission"); b.ToTable("Permission");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permissionv2", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permissionv2", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -795,7 +795,7 @@ namespace NadekoBot.Migrations
b.ToTable("Permissionv2"); b.ToTable("Permissionv2");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlayingStatus", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlayingStatus", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -813,7 +813,7 @@ namespace NadekoBot.Migrations
b.ToTable("PlayingStatus"); b.ToTable("PlayingStatus");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlaylistSong", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -839,7 +839,7 @@ namespace NadekoBot.Migrations
b.ToTable("PlaylistSong"); b.ToTable("PlaylistSong");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Quote", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Quote", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -864,7 +864,7 @@ namespace NadekoBot.Migrations
b.ToTable("Quotes"); b.ToTable("Quotes");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.RaceAnimal", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -884,7 +884,7 @@ namespace NadekoBot.Migrations
b.ToTable("RaceAnimals"); b.ToTable("RaceAnimals");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Reminder", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Reminder", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -908,7 +908,7 @@ namespace NadekoBot.Migrations
b.ToTable("Reminders"); b.ToTable("Reminders");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.SelfAssignedRole", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.SelfAssignedRole", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -927,7 +927,7 @@ namespace NadekoBot.Migrations
b.ToTable("SelfAssignableRoles"); b.ToTable("SelfAssignableRoles");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.UnmuteTimer", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.UnmuteTimer", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -947,7 +947,7 @@ namespace NadekoBot.Migrations
b.ToTable("UnmuteTimer"); b.ToTable("UnmuteTimer");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.UserPokeTypes", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.UserPokeTypes", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -966,7 +966,7 @@ namespace NadekoBot.Migrations
b.ToTable("PokeGame"); b.ToTable("PokeGame");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.VcRoleInfo", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.VcRoleInfo", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -986,7 +986,7 @@ namespace NadekoBot.Migrations
b.ToTable("VcRoleInfo"); b.ToTable("VcRoleInfo");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.WaifuInfo", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WaifuInfo", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -1013,7 +1013,7 @@ namespace NadekoBot.Migrations
b.ToTable("WaifuInfo"); b.ToTable("WaifuInfo");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.WaifuUpdate", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WaifuUpdate", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -1039,220 +1039,220 @@ namespace NadekoBot.Migrations
b.ToTable("WaifuUpdates"); b.ToTable("WaifuUpdates");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiRaidSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiRaidSetting", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig", "GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig", "GuildConfig")
.WithOne("AntiRaidSetting") .WithOne("AntiRaidSetting")
.HasForeignKey("NadekoBot.Services.Database.Models.AntiRaidSetting", "GuildConfigId") .HasForeignKey("NadekoBot.Core.Services.Database.Models.AntiRaidSetting", "GuildConfigId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiSpamIgnore", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamIgnore", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.AntiSpamSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.AntiSpamSetting")
.WithMany("IgnoredChannels") .WithMany("IgnoredChannels")
.HasForeignKey("AntiSpamSettingId"); .HasForeignKey("AntiSpamSettingId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiSpamSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamSetting", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig", "GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig", "GuildConfig")
.WithOne("AntiSpamSetting") .WithOne("AntiSpamSetting")
.HasForeignKey("NadekoBot.Services.Database.Models.AntiSpamSetting", "GuildConfigId") .HasForeignKey("NadekoBot.Core.Services.Database.Models.AntiSpamSetting", "GuildConfigId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.BlacklistItem", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlacklistItem", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("Blacklist") .WithMany("Blacklist")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashCaller", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashCaller", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.ClashWar", "ClashWar") b.HasOne("NadekoBot.Core.Services.Database.Models.ClashWar", "ClashWar")
.WithMany("Bases") .WithMany("Bases")
.HasForeignKey("ClashWarId") .HasForeignKey("ClashWarId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandCooldown", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandCooldown", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("CommandCooldowns") .WithMany("CommandCooldowns")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandPrice", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandPrice", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("CommandPrices") .WithMany("CommandPrices")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.EightBallResponse", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("EightBallResponses") .WithMany("EightBallResponses")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilterChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilterInvitesChannelIds") .WithMany("FilterInvitesChannelIds")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilterWordsChannelIds") .WithMany("FilterWordsChannelIds")
.HasForeignKey("GuildConfigId1"); .HasForeignKey("GuildConfigId1");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilteredWord", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilteredWord", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilteredWords") .WithMany("FilteredWords")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FollowedStream", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FollowedStream", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FollowedStreams") .WithMany("FollowedStreams")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GCChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GCChannelId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("GenerateCurrencyChannelIds") .WithMany("GenerateCurrencyChannelIds")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildConfig", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany() .WithMany()
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
b.HasOne("NadekoBot.Services.Database.Models.Permission", "RootPermission") b.HasOne("NadekoBot.Core.Services.Database.Models.Permission", "RootPermission")
.WithMany() .WithMany()
.HasForeignKey("RootPermissionId"); .HasForeignKey("RootPermissionId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildRepeater", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildRepeater", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("GuildRepeaters") .WithMany("GuildRepeaters")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredLogChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredLogChannel", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany("IgnoredChannels") .WithMany("IgnoredChannels")
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredVoicePresenceChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany("IgnoredVoicePresenceChannelIds") .WithMany("IgnoredVoicePresenceChannelIds")
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ModulePrefix", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ModulePrefix", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("ModulePrefixes") .WithMany("ModulePrefixes")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.MutedUserId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MutedUserId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("MutedUsers") .WithMany("MutedUsers")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permission", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.Permission", "Next") b.HasOne("NadekoBot.Core.Services.Database.Models.Permission", "Next")
.WithOne("Previous") .WithOne("Previous")
.HasForeignKey("NadekoBot.Services.Database.Models.Permission", "NextId"); .HasForeignKey("NadekoBot.Core.Services.Database.Models.Permission", "NextId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permissionv2", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permissionv2", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("Permissions") .WithMany("Permissions")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlayingStatus", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlayingStatus", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("RotatingStatusMessages") .WithMany("RotatingStatusMessages")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlaylistSong", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.MusicPlaylist") b.HasOne("NadekoBot.Core.Services.Database.Models.MusicPlaylist")
.WithMany("Songs") .WithMany("Songs")
.HasForeignKey("MusicPlaylistId") .HasForeignKey("MusicPlaylistId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.RaceAnimal", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("RaceAnimals") .WithMany("RaceAnimals")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.UnmuteTimer", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.UnmuteTimer", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("UnmuteTimers") .WithMany("UnmuteTimers")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.VcRoleInfo", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.VcRoleInfo", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("VcRoleInfos") .WithMany("VcRoleInfos")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.WaifuInfo", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WaifuInfo", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "Affinity") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "Affinity")
.WithMany() .WithMany()
.HasForeignKey("AffinityId"); .HasForeignKey("AffinityId");
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "Claimer") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "Claimer")
.WithMany() .WithMany()
.HasForeignKey("ClaimerId"); .HasForeignKey("ClaimerId");
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "Waifu") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "Waifu")
.WithOne() .WithOne()
.HasForeignKey("NadekoBot.Services.Database.Models.WaifuInfo", "WaifuId") .HasForeignKey("NadekoBot.Core.Services.Database.Models.WaifuInfo", "WaifuId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.WaifuUpdate", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WaifuUpdate", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "New") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "New")
.WithMany() .WithMany()
.HasForeignKey("NewId"); .HasForeignKey("NewId");
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "Old") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "Old")
.WithMany() .WithMany()
.HasForeignKey("OldId"); .HasForeignKey("OldId");
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "User") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "User")
.WithMany() .WithMany()
.HasForeignKey("UserId") .HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);

View File

@ -3,7 +3,7 @@ using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Migrations;
using NadekoBot.Services.Database; using NadekoBot.Core.Services.Database;
namespace NadekoBot.Migrations namespace NadekoBot.Migrations
{ {
@ -16,7 +16,7 @@ namespace NadekoBot.Migrations
modelBuilder modelBuilder
.HasAnnotation("ProductVersion", "1.1.0-rtm-22752"); .HasAnnotation("ProductVersion", "1.1.0-rtm-22752");
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiRaidSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiRaidSetting", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -39,7 +39,7 @@ namespace NadekoBot.Migrations
b.ToTable("AntiRaidSetting"); b.ToTable("AntiRaidSetting");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiSpamIgnore", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamIgnore", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -57,7 +57,7 @@ namespace NadekoBot.Migrations
b.ToTable("AntiSpamIgnore"); b.ToTable("AntiSpamIgnore");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiSpamSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamSetting", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -78,7 +78,7 @@ namespace NadekoBot.Migrations
b.ToTable("AntiSpamSetting"); b.ToTable("AntiSpamSetting");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.BlacklistItem", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlacklistItem", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -98,7 +98,7 @@ namespace NadekoBot.Migrations
b.ToTable("BlacklistItem"); b.ToTable("BlacklistItem");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.BotConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BotConfig", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -156,7 +156,7 @@ namespace NadekoBot.Migrations
b.ToTable("BotConfig"); b.ToTable("BotConfig");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashCaller", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashCaller", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -182,7 +182,7 @@ namespace NadekoBot.Migrations
b.ToTable("ClashCallers"); b.ToTable("ClashCallers");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashWar", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashWar", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -206,7 +206,7 @@ namespace NadekoBot.Migrations
b.ToTable("ClashOfClans"); b.ToTable("ClashOfClans");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandAlias", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandAlias", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -226,7 +226,7 @@ namespace NadekoBot.Migrations
b.ToTable("CommandAlias"); b.ToTable("CommandAlias");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandCooldown", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandCooldown", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -246,7 +246,7 @@ namespace NadekoBot.Migrations
b.ToTable("CommandCooldown"); b.ToTable("CommandCooldown");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandPrice", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandPrice", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -269,7 +269,7 @@ namespace NadekoBot.Migrations
b.ToTable("CommandPrice"); b.ToTable("CommandPrice");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ConvertUnit", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ConvertUnit", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -287,7 +287,7 @@ namespace NadekoBot.Migrations
b.ToTable("ConversionUnits"); b.ToTable("ConversionUnits");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Currency", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Currency", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -306,7 +306,7 @@ namespace NadekoBot.Migrations
b.ToTable("Currency"); b.ToTable("Currency");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CurrencyTransaction", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CurrencyTransaction", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -324,7 +324,7 @@ namespace NadekoBot.Migrations
b.ToTable("CurrencyTransactions"); b.ToTable("CurrencyTransactions");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CustomReaction", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CustomReaction", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -350,7 +350,7 @@ namespace NadekoBot.Migrations
b.ToTable("CustomReactions"); b.ToTable("CustomReactions");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.DiscordUser", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.DiscordUser", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -372,7 +372,7 @@ namespace NadekoBot.Migrations
b.ToTable("DiscordUser"); b.ToTable("DiscordUser");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Donator", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Donator", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -393,7 +393,7 @@ namespace NadekoBot.Migrations
b.ToTable("Donators"); b.ToTable("Donators");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.EightBallResponse", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -411,7 +411,7 @@ namespace NadekoBot.Migrations
b.ToTable("EightBallResponses"); b.ToTable("EightBallResponses");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilterChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -433,7 +433,7 @@ namespace NadekoBot.Migrations
b.ToTable("FilterChannelId"); b.ToTable("FilterChannelId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilteredWord", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilteredWord", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -451,7 +451,7 @@ namespace NadekoBot.Migrations
b.ToTable("FilteredWord"); b.ToTable("FilteredWord");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FollowedStream", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FollowedStream", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -475,7 +475,7 @@ namespace NadekoBot.Migrations
b.ToTable("FollowedStream"); b.ToTable("FollowedStream");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GCChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GCChannelId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -493,7 +493,7 @@ namespace NadekoBot.Migrations
b.ToTable("GCChannelId"); b.ToTable("GCChannelId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildConfig", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -570,7 +570,7 @@ namespace NadekoBot.Migrations
b.ToTable("GuildConfigs"); b.ToTable("GuildConfigs");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildRepeater", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildRepeater", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -594,7 +594,7 @@ namespace NadekoBot.Migrations
b.ToTable("GuildRepeater"); b.ToTable("GuildRepeater");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredLogChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredLogChannel", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -612,7 +612,7 @@ namespace NadekoBot.Migrations
b.ToTable("IgnoredLogChannels"); b.ToTable("IgnoredLogChannels");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredVoicePresenceChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -630,7 +630,7 @@ namespace NadekoBot.Migrations
b.ToTable("IgnoredVoicePresenceCHannels"); b.ToTable("IgnoredVoicePresenceCHannels");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.LogSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.LogSetting", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -704,7 +704,7 @@ namespace NadekoBot.Migrations
b.ToTable("LogSettings"); b.ToTable("LogSettings");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ModulePrefix", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ModulePrefix", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -724,7 +724,7 @@ namespace NadekoBot.Migrations
b.ToTable("ModulePrefixes"); b.ToTable("ModulePrefixes");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.MusicPlaylist", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MusicPlaylist", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -742,7 +742,7 @@ namespace NadekoBot.Migrations
b.ToTable("MusicPlaylists"); b.ToTable("MusicPlaylists");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.MutedUserId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MutedUserId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -760,7 +760,7 @@ namespace NadekoBot.Migrations
b.ToTable("MutedUserId"); b.ToTable("MutedUserId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permission", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -787,7 +787,7 @@ namespace NadekoBot.Migrations
b.ToTable("Permission"); b.ToTable("Permission");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permissionv2", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permissionv2", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -815,7 +815,7 @@ namespace NadekoBot.Migrations
b.ToTable("Permissionv2"); b.ToTable("Permissionv2");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlayingStatus", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlayingStatus", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -833,7 +833,7 @@ namespace NadekoBot.Migrations
b.ToTable("PlayingStatus"); b.ToTable("PlayingStatus");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlaylistSong", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -859,7 +859,7 @@ namespace NadekoBot.Migrations
b.ToTable("PlaylistSong"); b.ToTable("PlaylistSong");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Quote", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Quote", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -884,7 +884,7 @@ namespace NadekoBot.Migrations
b.ToTable("Quotes"); b.ToTable("Quotes");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.RaceAnimal", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -904,7 +904,7 @@ namespace NadekoBot.Migrations
b.ToTable("RaceAnimals"); b.ToTable("RaceAnimals");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Reminder", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Reminder", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -928,7 +928,7 @@ namespace NadekoBot.Migrations
b.ToTable("Reminders"); b.ToTable("Reminders");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.SelfAssignedRole", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.SelfAssignedRole", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -947,7 +947,7 @@ namespace NadekoBot.Migrations
b.ToTable("SelfAssignableRoles"); b.ToTable("SelfAssignableRoles");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.UnmuteTimer", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.UnmuteTimer", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -967,7 +967,7 @@ namespace NadekoBot.Migrations
b.ToTable("UnmuteTimer"); b.ToTable("UnmuteTimer");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.UserPokeTypes", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.UserPokeTypes", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -986,7 +986,7 @@ namespace NadekoBot.Migrations
b.ToTable("PokeGame"); b.ToTable("PokeGame");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.VcRoleInfo", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.VcRoleInfo", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -1006,7 +1006,7 @@ namespace NadekoBot.Migrations
b.ToTable("VcRoleInfo"); b.ToTable("VcRoleInfo");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.WaifuInfo", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WaifuInfo", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -1033,7 +1033,7 @@ namespace NadekoBot.Migrations
b.ToTable("WaifuInfo"); b.ToTable("WaifuInfo");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.WaifuUpdate", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WaifuUpdate", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -1059,227 +1059,227 @@ namespace NadekoBot.Migrations
b.ToTable("WaifuUpdates"); b.ToTable("WaifuUpdates");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiRaidSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiRaidSetting", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig", "GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig", "GuildConfig")
.WithOne("AntiRaidSetting") .WithOne("AntiRaidSetting")
.HasForeignKey("NadekoBot.Services.Database.Models.AntiRaidSetting", "GuildConfigId") .HasForeignKey("NadekoBot.Core.Services.Database.Models.AntiRaidSetting", "GuildConfigId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiSpamIgnore", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamIgnore", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.AntiSpamSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.AntiSpamSetting")
.WithMany("IgnoredChannels") .WithMany("IgnoredChannels")
.HasForeignKey("AntiSpamSettingId"); .HasForeignKey("AntiSpamSettingId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiSpamSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamSetting", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig", "GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig", "GuildConfig")
.WithOne("AntiSpamSetting") .WithOne("AntiSpamSetting")
.HasForeignKey("NadekoBot.Services.Database.Models.AntiSpamSetting", "GuildConfigId") .HasForeignKey("NadekoBot.Core.Services.Database.Models.AntiSpamSetting", "GuildConfigId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.BlacklistItem", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlacklistItem", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("Blacklist") .WithMany("Blacklist")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashCaller", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashCaller", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.ClashWar", "ClashWar") b.HasOne("NadekoBot.Core.Services.Database.Models.ClashWar", "ClashWar")
.WithMany("Bases") .WithMany("Bases")
.HasForeignKey("ClashWarId") .HasForeignKey("ClashWarId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandAlias", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandAlias", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("CommandAliases") .WithMany("CommandAliases")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandCooldown", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandCooldown", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("CommandCooldowns") .WithMany("CommandCooldowns")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandPrice", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandPrice", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("CommandPrices") .WithMany("CommandPrices")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.EightBallResponse", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("EightBallResponses") .WithMany("EightBallResponses")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilterChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilterInvitesChannelIds") .WithMany("FilterInvitesChannelIds")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilterWordsChannelIds") .WithMany("FilterWordsChannelIds")
.HasForeignKey("GuildConfigId1"); .HasForeignKey("GuildConfigId1");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilteredWord", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilteredWord", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilteredWords") .WithMany("FilteredWords")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FollowedStream", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FollowedStream", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FollowedStreams") .WithMany("FollowedStreams")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GCChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GCChannelId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("GenerateCurrencyChannelIds") .WithMany("GenerateCurrencyChannelIds")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildConfig", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany() .WithMany()
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
b.HasOne("NadekoBot.Services.Database.Models.Permission", "RootPermission") b.HasOne("NadekoBot.Core.Services.Database.Models.Permission", "RootPermission")
.WithMany() .WithMany()
.HasForeignKey("RootPermissionId"); .HasForeignKey("RootPermissionId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildRepeater", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildRepeater", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("GuildRepeaters") .WithMany("GuildRepeaters")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredLogChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredLogChannel", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany("IgnoredChannels") .WithMany("IgnoredChannels")
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredVoicePresenceChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany("IgnoredVoicePresenceChannelIds") .WithMany("IgnoredVoicePresenceChannelIds")
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ModulePrefix", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ModulePrefix", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("ModulePrefixes") .WithMany("ModulePrefixes")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.MutedUserId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MutedUserId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("MutedUsers") .WithMany("MutedUsers")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permission", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.Permission", "Next") b.HasOne("NadekoBot.Core.Services.Database.Models.Permission", "Next")
.WithOne("Previous") .WithOne("Previous")
.HasForeignKey("NadekoBot.Services.Database.Models.Permission", "NextId"); .HasForeignKey("NadekoBot.Core.Services.Database.Models.Permission", "NextId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permissionv2", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permissionv2", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("Permissions") .WithMany("Permissions")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlayingStatus", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlayingStatus", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("RotatingStatusMessages") .WithMany("RotatingStatusMessages")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlaylistSong", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.MusicPlaylist") b.HasOne("NadekoBot.Core.Services.Database.Models.MusicPlaylist")
.WithMany("Songs") .WithMany("Songs")
.HasForeignKey("MusicPlaylistId") .HasForeignKey("MusicPlaylistId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.RaceAnimal", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("RaceAnimals") .WithMany("RaceAnimals")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.UnmuteTimer", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.UnmuteTimer", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("UnmuteTimers") .WithMany("UnmuteTimers")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.VcRoleInfo", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.VcRoleInfo", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("VcRoleInfos") .WithMany("VcRoleInfos")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.WaifuInfo", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WaifuInfo", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "Affinity") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "Affinity")
.WithMany() .WithMany()
.HasForeignKey("AffinityId"); .HasForeignKey("AffinityId");
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "Claimer") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "Claimer")
.WithMany() .WithMany()
.HasForeignKey("ClaimerId"); .HasForeignKey("ClaimerId");
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "Waifu") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "Waifu")
.WithOne() .WithOne()
.HasForeignKey("NadekoBot.Services.Database.Models.WaifuInfo", "WaifuId") .HasForeignKey("NadekoBot.Core.Services.Database.Models.WaifuInfo", "WaifuId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.WaifuUpdate", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WaifuUpdate", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "New") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "New")
.WithMany() .WithMany()
.HasForeignKey("NewId"); .HasForeignKey("NewId");
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "Old") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "Old")
.WithMany() .WithMany()
.HasForeignKey("OldId"); .HasForeignKey("OldId");
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "User") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "User")
.WithMany() .WithMany()
.HasForeignKey("UserId") .HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);

View File

@ -3,7 +3,7 @@ using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Migrations;
using NadekoBot.Services.Database; using NadekoBot.Core.Services.Database;
namespace NadekoBot.Migrations namespace NadekoBot.Migrations
{ {
@ -16,7 +16,7 @@ namespace NadekoBot.Migrations
modelBuilder modelBuilder
.HasAnnotation("ProductVersion", "1.1.0-rtm-22752"); .HasAnnotation("ProductVersion", "1.1.0-rtm-22752");
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiRaidSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiRaidSetting", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -39,7 +39,7 @@ namespace NadekoBot.Migrations
b.ToTable("AntiRaidSetting"); b.ToTable("AntiRaidSetting");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiSpamIgnore", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamIgnore", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -57,7 +57,7 @@ namespace NadekoBot.Migrations
b.ToTable("AntiSpamIgnore"); b.ToTable("AntiSpamIgnore");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiSpamSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamSetting", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -78,7 +78,7 @@ namespace NadekoBot.Migrations
b.ToTable("AntiSpamSetting"); b.ToTable("AntiSpamSetting");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.BlacklistItem", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlacklistItem", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -98,7 +98,7 @@ namespace NadekoBot.Migrations
b.ToTable("BlacklistItem"); b.ToTable("BlacklistItem");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.BotConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BotConfig", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -156,7 +156,7 @@ namespace NadekoBot.Migrations
b.ToTable("BotConfig"); b.ToTable("BotConfig");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashCaller", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashCaller", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -182,7 +182,7 @@ namespace NadekoBot.Migrations
b.ToTable("ClashCallers"); b.ToTable("ClashCallers");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashWar", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashWar", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -206,7 +206,7 @@ namespace NadekoBot.Migrations
b.ToTable("ClashOfClans"); b.ToTable("ClashOfClans");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandAlias", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandAlias", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -226,7 +226,7 @@ namespace NadekoBot.Migrations
b.ToTable("CommandAlias"); b.ToTable("CommandAlias");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandCooldown", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandCooldown", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -246,7 +246,7 @@ namespace NadekoBot.Migrations
b.ToTable("CommandCooldown"); b.ToTable("CommandCooldown");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandPrice", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandPrice", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -269,7 +269,7 @@ namespace NadekoBot.Migrations
b.ToTable("CommandPrice"); b.ToTable("CommandPrice");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ConvertUnit", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ConvertUnit", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -287,7 +287,7 @@ namespace NadekoBot.Migrations
b.ToTable("ConversionUnits"); b.ToTable("ConversionUnits");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Currency", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Currency", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -306,7 +306,7 @@ namespace NadekoBot.Migrations
b.ToTable("Currency"); b.ToTable("Currency");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CurrencyTransaction", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CurrencyTransaction", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -324,7 +324,7 @@ namespace NadekoBot.Migrations
b.ToTable("CurrencyTransactions"); b.ToTable("CurrencyTransactions");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CustomReaction", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CustomReaction", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -350,7 +350,7 @@ namespace NadekoBot.Migrations
b.ToTable("CustomReactions"); b.ToTable("CustomReactions");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.DiscordUser", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.DiscordUser", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -372,7 +372,7 @@ namespace NadekoBot.Migrations
b.ToTable("DiscordUser"); b.ToTable("DiscordUser");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Donator", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Donator", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -393,7 +393,7 @@ namespace NadekoBot.Migrations
b.ToTable("Donators"); b.ToTable("Donators");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.EightBallResponse", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -411,7 +411,7 @@ namespace NadekoBot.Migrations
b.ToTable("EightBallResponses"); b.ToTable("EightBallResponses");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilterChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -433,7 +433,7 @@ namespace NadekoBot.Migrations
b.ToTable("FilterChannelId"); b.ToTable("FilterChannelId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilteredWord", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilteredWord", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -451,7 +451,7 @@ namespace NadekoBot.Migrations
b.ToTable("FilteredWord"); b.ToTable("FilteredWord");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FollowedStream", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FollowedStream", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -475,7 +475,7 @@ namespace NadekoBot.Migrations
b.ToTable("FollowedStream"); b.ToTable("FollowedStream");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GCChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GCChannelId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -493,7 +493,7 @@ namespace NadekoBot.Migrations
b.ToTable("GCChannelId"); b.ToTable("GCChannelId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildConfig", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -572,7 +572,7 @@ namespace NadekoBot.Migrations
b.ToTable("GuildConfigs"); b.ToTable("GuildConfigs");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildRepeater", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildRepeater", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -596,7 +596,7 @@ namespace NadekoBot.Migrations
b.ToTable("GuildRepeater"); b.ToTable("GuildRepeater");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredLogChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredLogChannel", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -614,7 +614,7 @@ namespace NadekoBot.Migrations
b.ToTable("IgnoredLogChannels"); b.ToTable("IgnoredLogChannels");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredVoicePresenceChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -632,7 +632,7 @@ namespace NadekoBot.Migrations
b.ToTable("IgnoredVoicePresenceCHannels"); b.ToTable("IgnoredVoicePresenceCHannels");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.LogSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.LogSetting", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -706,7 +706,7 @@ namespace NadekoBot.Migrations
b.ToTable("LogSettings"); b.ToTable("LogSettings");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ModulePrefix", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ModulePrefix", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -726,7 +726,7 @@ namespace NadekoBot.Migrations
b.ToTable("ModulePrefixes"); b.ToTable("ModulePrefixes");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.MusicPlaylist", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MusicPlaylist", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -744,7 +744,7 @@ namespace NadekoBot.Migrations
b.ToTable("MusicPlaylists"); b.ToTable("MusicPlaylists");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.MutedUserId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MutedUserId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -762,7 +762,7 @@ namespace NadekoBot.Migrations
b.ToTable("MutedUserId"); b.ToTable("MutedUserId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permission", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -789,7 +789,7 @@ namespace NadekoBot.Migrations
b.ToTable("Permission"); b.ToTable("Permission");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permissionv2", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permissionv2", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -817,7 +817,7 @@ namespace NadekoBot.Migrations
b.ToTable("Permissionv2"); b.ToTable("Permissionv2");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlayingStatus", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlayingStatus", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -835,7 +835,7 @@ namespace NadekoBot.Migrations
b.ToTable("PlayingStatus"); b.ToTable("PlayingStatus");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlaylistSong", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -861,7 +861,7 @@ namespace NadekoBot.Migrations
b.ToTable("PlaylistSong"); b.ToTable("PlaylistSong");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Quote", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Quote", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -886,7 +886,7 @@ namespace NadekoBot.Migrations
b.ToTable("Quotes"); b.ToTable("Quotes");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.RaceAnimal", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -906,7 +906,7 @@ namespace NadekoBot.Migrations
b.ToTable("RaceAnimals"); b.ToTable("RaceAnimals");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Reminder", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Reminder", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -930,7 +930,7 @@ namespace NadekoBot.Migrations
b.ToTable("Reminders"); b.ToTable("Reminders");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.SelfAssignedRole", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.SelfAssignedRole", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -949,7 +949,7 @@ namespace NadekoBot.Migrations
b.ToTable("SelfAssignableRoles"); b.ToTable("SelfAssignableRoles");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.UnmuteTimer", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.UnmuteTimer", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -969,7 +969,7 @@ namespace NadekoBot.Migrations
b.ToTable("UnmuteTimer"); b.ToTable("UnmuteTimer");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.UserPokeTypes", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.UserPokeTypes", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -988,7 +988,7 @@ namespace NadekoBot.Migrations
b.ToTable("PokeGame"); b.ToTable("PokeGame");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.VcRoleInfo", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.VcRoleInfo", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -1008,7 +1008,7 @@ namespace NadekoBot.Migrations
b.ToTable("VcRoleInfo"); b.ToTable("VcRoleInfo");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.WaifuInfo", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WaifuInfo", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -1035,7 +1035,7 @@ namespace NadekoBot.Migrations
b.ToTable("WaifuInfo"); b.ToTable("WaifuInfo");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.WaifuUpdate", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WaifuUpdate", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -1061,7 +1061,7 @@ namespace NadekoBot.Migrations
b.ToTable("WaifuUpdates"); b.ToTable("WaifuUpdates");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Warning", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Warning", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -1085,7 +1085,7 @@ namespace NadekoBot.Migrations
b.ToTable("Warnings"); b.ToTable("Warnings");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.WarningPunishment", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WarningPunishment", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -1107,235 +1107,235 @@ namespace NadekoBot.Migrations
b.ToTable("WarningPunishment"); b.ToTable("WarningPunishment");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiRaidSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiRaidSetting", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig", "GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig", "GuildConfig")
.WithOne("AntiRaidSetting") .WithOne("AntiRaidSetting")
.HasForeignKey("NadekoBot.Services.Database.Models.AntiRaidSetting", "GuildConfigId") .HasForeignKey("NadekoBot.Core.Services.Database.Models.AntiRaidSetting", "GuildConfigId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiSpamIgnore", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamIgnore", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.AntiSpamSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.AntiSpamSetting")
.WithMany("IgnoredChannels") .WithMany("IgnoredChannels")
.HasForeignKey("AntiSpamSettingId"); .HasForeignKey("AntiSpamSettingId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiSpamSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamSetting", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig", "GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig", "GuildConfig")
.WithOne("AntiSpamSetting") .WithOne("AntiSpamSetting")
.HasForeignKey("NadekoBot.Services.Database.Models.AntiSpamSetting", "GuildConfigId") .HasForeignKey("NadekoBot.Core.Services.Database.Models.AntiSpamSetting", "GuildConfigId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.BlacklistItem", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlacklistItem", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("Blacklist") .WithMany("Blacklist")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashCaller", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashCaller", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.ClashWar", "ClashWar") b.HasOne("NadekoBot.Core.Services.Database.Models.ClashWar", "ClashWar")
.WithMany("Bases") .WithMany("Bases")
.HasForeignKey("ClashWarId") .HasForeignKey("ClashWarId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandAlias", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandAlias", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("CommandAliases") .WithMany("CommandAliases")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandCooldown", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandCooldown", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("CommandCooldowns") .WithMany("CommandCooldowns")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandPrice", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandPrice", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("CommandPrices") .WithMany("CommandPrices")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.EightBallResponse", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("EightBallResponses") .WithMany("EightBallResponses")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilterChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilterInvitesChannelIds") .WithMany("FilterInvitesChannelIds")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilterWordsChannelIds") .WithMany("FilterWordsChannelIds")
.HasForeignKey("GuildConfigId1"); .HasForeignKey("GuildConfigId1");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilteredWord", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilteredWord", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilteredWords") .WithMany("FilteredWords")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FollowedStream", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FollowedStream", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FollowedStreams") .WithMany("FollowedStreams")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GCChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GCChannelId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("GenerateCurrencyChannelIds") .WithMany("GenerateCurrencyChannelIds")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildConfig", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany() .WithMany()
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
b.HasOne("NadekoBot.Services.Database.Models.Permission", "RootPermission") b.HasOne("NadekoBot.Core.Services.Database.Models.Permission", "RootPermission")
.WithMany() .WithMany()
.HasForeignKey("RootPermissionId"); .HasForeignKey("RootPermissionId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildRepeater", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildRepeater", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("GuildRepeaters") .WithMany("GuildRepeaters")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredLogChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredLogChannel", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany("IgnoredChannels") .WithMany("IgnoredChannels")
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredVoicePresenceChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany("IgnoredVoicePresenceChannelIds") .WithMany("IgnoredVoicePresenceChannelIds")
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ModulePrefix", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ModulePrefix", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("ModulePrefixes") .WithMany("ModulePrefixes")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.MutedUserId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MutedUserId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("MutedUsers") .WithMany("MutedUsers")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permission", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.Permission", "Next") b.HasOne("NadekoBot.Core.Services.Database.Models.Permission", "Next")
.WithOne("Previous") .WithOne("Previous")
.HasForeignKey("NadekoBot.Services.Database.Models.Permission", "NextId"); .HasForeignKey("NadekoBot.Core.Services.Database.Models.Permission", "NextId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permissionv2", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permissionv2", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("Permissions") .WithMany("Permissions")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlayingStatus", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlayingStatus", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("RotatingStatusMessages") .WithMany("RotatingStatusMessages")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlaylistSong", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.MusicPlaylist") b.HasOne("NadekoBot.Core.Services.Database.Models.MusicPlaylist")
.WithMany("Songs") .WithMany("Songs")
.HasForeignKey("MusicPlaylistId") .HasForeignKey("MusicPlaylistId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.RaceAnimal", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("RaceAnimals") .WithMany("RaceAnimals")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.UnmuteTimer", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.UnmuteTimer", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("UnmuteTimers") .WithMany("UnmuteTimers")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.VcRoleInfo", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.VcRoleInfo", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("VcRoleInfos") .WithMany("VcRoleInfos")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.WaifuInfo", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WaifuInfo", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "Affinity") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "Affinity")
.WithMany() .WithMany()
.HasForeignKey("AffinityId"); .HasForeignKey("AffinityId");
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "Claimer") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "Claimer")
.WithMany() .WithMany()
.HasForeignKey("ClaimerId"); .HasForeignKey("ClaimerId");
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "Waifu") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "Waifu")
.WithOne() .WithOne()
.HasForeignKey("NadekoBot.Services.Database.Models.WaifuInfo", "WaifuId") .HasForeignKey("NadekoBot.Core.Services.Database.Models.WaifuInfo", "WaifuId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.WaifuUpdate", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WaifuUpdate", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "New") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "New")
.WithMany() .WithMany()
.HasForeignKey("NewId"); .HasForeignKey("NewId");
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "Old") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "Old")
.WithMany() .WithMany()
.HasForeignKey("OldId"); .HasForeignKey("OldId");
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "User") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "User")
.WithMany() .WithMany()
.HasForeignKey("UserId") .HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.WarningPunishment", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WarningPunishment", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("WarnPunishments") .WithMany("WarnPunishments")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });

View File

@ -3,7 +3,7 @@ using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Migrations;
using NadekoBot.Services.Database; using NadekoBot.Core.Services.Database;
namespace NadekoBot.Migrations namespace NadekoBot.Migrations
{ {
@ -16,7 +16,7 @@ namespace NadekoBot.Migrations
modelBuilder modelBuilder
.HasAnnotation("ProductVersion", "1.1.0-rtm-22752"); .HasAnnotation("ProductVersion", "1.1.0-rtm-22752");
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiRaidSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiRaidSetting", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -39,7 +39,7 @@ namespace NadekoBot.Migrations
b.ToTable("AntiRaidSetting"); b.ToTable("AntiRaidSetting");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiSpamIgnore", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamIgnore", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -57,7 +57,7 @@ namespace NadekoBot.Migrations
b.ToTable("AntiSpamIgnore"); b.ToTable("AntiSpamIgnore");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiSpamSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamSetting", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -78,7 +78,7 @@ namespace NadekoBot.Migrations
b.ToTable("AntiSpamSetting"); b.ToTable("AntiSpamSetting");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.BlacklistItem", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlacklistItem", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -98,7 +98,7 @@ namespace NadekoBot.Migrations
b.ToTable("BlacklistItem"); b.ToTable("BlacklistItem");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.BotConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BotConfig", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -156,7 +156,7 @@ namespace NadekoBot.Migrations
b.ToTable("BotConfig"); b.ToTable("BotConfig");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashCaller", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashCaller", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -182,7 +182,7 @@ namespace NadekoBot.Migrations
b.ToTable("ClashCallers"); b.ToTable("ClashCallers");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashWar", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashWar", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -206,7 +206,7 @@ namespace NadekoBot.Migrations
b.ToTable("ClashOfClans"); b.ToTable("ClashOfClans");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandAlias", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandAlias", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -226,7 +226,7 @@ namespace NadekoBot.Migrations
b.ToTable("CommandAlias"); b.ToTable("CommandAlias");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandCooldown", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandCooldown", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -246,7 +246,7 @@ namespace NadekoBot.Migrations
b.ToTable("CommandCooldown"); b.ToTable("CommandCooldown");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandPrice", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandPrice", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -269,7 +269,7 @@ namespace NadekoBot.Migrations
b.ToTable("CommandPrice"); b.ToTable("CommandPrice");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ConvertUnit", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ConvertUnit", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -287,7 +287,7 @@ namespace NadekoBot.Migrations
b.ToTable("ConversionUnits"); b.ToTable("ConversionUnits");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Currency", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Currency", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -306,7 +306,7 @@ namespace NadekoBot.Migrations
b.ToTable("Currency"); b.ToTable("Currency");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CurrencyTransaction", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CurrencyTransaction", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -324,7 +324,7 @@ namespace NadekoBot.Migrations
b.ToTable("CurrencyTransactions"); b.ToTable("CurrencyTransactions");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CustomReaction", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CustomReaction", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -350,7 +350,7 @@ namespace NadekoBot.Migrations
b.ToTable("CustomReactions"); b.ToTable("CustomReactions");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.DiscordUser", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.DiscordUser", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -372,7 +372,7 @@ namespace NadekoBot.Migrations
b.ToTable("DiscordUser"); b.ToTable("DiscordUser");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Donator", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Donator", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -393,7 +393,7 @@ namespace NadekoBot.Migrations
b.ToTable("Donators"); b.ToTable("Donators");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.EightBallResponse", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -411,7 +411,7 @@ namespace NadekoBot.Migrations
b.ToTable("EightBallResponses"); b.ToTable("EightBallResponses");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilterChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -433,7 +433,7 @@ namespace NadekoBot.Migrations
b.ToTable("FilterChannelId"); b.ToTable("FilterChannelId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilteredWord", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilteredWord", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -451,7 +451,7 @@ namespace NadekoBot.Migrations
b.ToTable("FilteredWord"); b.ToTable("FilteredWord");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FollowedStream", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FollowedStream", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -475,7 +475,7 @@ namespace NadekoBot.Migrations
b.ToTable("FollowedStream"); b.ToTable("FollowedStream");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GCChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GCChannelId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -493,7 +493,7 @@ namespace NadekoBot.Migrations
b.ToTable("GCChannelId"); b.ToTable("GCChannelId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildConfig", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -572,7 +572,7 @@ namespace NadekoBot.Migrations
b.ToTable("GuildConfigs"); b.ToTable("GuildConfigs");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildRepeater", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildRepeater", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -596,7 +596,7 @@ namespace NadekoBot.Migrations
b.ToTable("GuildRepeater"); b.ToTable("GuildRepeater");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredLogChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredLogChannel", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -614,7 +614,7 @@ namespace NadekoBot.Migrations
b.ToTable("IgnoredLogChannels"); b.ToTable("IgnoredLogChannels");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredVoicePresenceChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -632,7 +632,7 @@ namespace NadekoBot.Migrations
b.ToTable("IgnoredVoicePresenceCHannels"); b.ToTable("IgnoredVoicePresenceCHannels");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.LogSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.LogSetting", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -706,7 +706,7 @@ namespace NadekoBot.Migrations
b.ToTable("LogSettings"); b.ToTable("LogSettings");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ModulePrefix", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ModulePrefix", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -726,7 +726,7 @@ namespace NadekoBot.Migrations
b.ToTable("ModulePrefixes"); b.ToTable("ModulePrefixes");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.MusicPlaylist", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MusicPlaylist", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -744,7 +744,7 @@ namespace NadekoBot.Migrations
b.ToTable("MusicPlaylists"); b.ToTable("MusicPlaylists");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.MutedUserId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MutedUserId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -762,7 +762,7 @@ namespace NadekoBot.Migrations
b.ToTable("MutedUserId"); b.ToTable("MutedUserId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permission", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -789,7 +789,7 @@ namespace NadekoBot.Migrations
b.ToTable("Permission"); b.ToTable("Permission");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permissionv2", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permissionv2", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -817,7 +817,7 @@ namespace NadekoBot.Migrations
b.ToTable("Permissionv2"); b.ToTable("Permissionv2");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlayingStatus", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlayingStatus", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -835,7 +835,7 @@ namespace NadekoBot.Migrations
b.ToTable("PlayingStatus"); b.ToTable("PlayingStatus");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlaylistSong", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -861,7 +861,7 @@ namespace NadekoBot.Migrations
b.ToTable("PlaylistSong"); b.ToTable("PlaylistSong");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Quote", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Quote", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -886,7 +886,7 @@ namespace NadekoBot.Migrations
b.ToTable("Quotes"); b.ToTable("Quotes");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.RaceAnimal", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -906,7 +906,7 @@ namespace NadekoBot.Migrations
b.ToTable("RaceAnimals"); b.ToTable("RaceAnimals");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Reminder", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Reminder", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -930,7 +930,7 @@ namespace NadekoBot.Migrations
b.ToTable("Reminders"); b.ToTable("Reminders");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.SelfAssignedRole", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.SelfAssignedRole", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -949,7 +949,7 @@ namespace NadekoBot.Migrations
b.ToTable("SelfAssignableRoles"); b.ToTable("SelfAssignableRoles");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.StartupCommand", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.StartupCommand", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -981,7 +981,7 @@ namespace NadekoBot.Migrations
b.ToTable("StartupCommand"); b.ToTable("StartupCommand");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.UnmuteTimer", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.UnmuteTimer", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -1001,7 +1001,7 @@ namespace NadekoBot.Migrations
b.ToTable("UnmuteTimer"); b.ToTable("UnmuteTimer");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.UserPokeTypes", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.UserPokeTypes", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -1020,7 +1020,7 @@ namespace NadekoBot.Migrations
b.ToTable("PokeGame"); b.ToTable("PokeGame");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.VcRoleInfo", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.VcRoleInfo", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -1040,7 +1040,7 @@ namespace NadekoBot.Migrations
b.ToTable("VcRoleInfo"); b.ToTable("VcRoleInfo");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.WaifuInfo", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WaifuInfo", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -1067,7 +1067,7 @@ namespace NadekoBot.Migrations
b.ToTable("WaifuInfo"); b.ToTable("WaifuInfo");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.WaifuUpdate", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WaifuUpdate", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -1093,7 +1093,7 @@ namespace NadekoBot.Migrations
b.ToTable("WaifuUpdates"); b.ToTable("WaifuUpdates");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Warning", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Warning", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -1117,7 +1117,7 @@ namespace NadekoBot.Migrations
b.ToTable("Warnings"); b.ToTable("Warnings");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.WarningPunishment", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WarningPunishment", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -1139,242 +1139,242 @@ namespace NadekoBot.Migrations
b.ToTable("WarningPunishment"); b.ToTable("WarningPunishment");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiRaidSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiRaidSetting", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig", "GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig", "GuildConfig")
.WithOne("AntiRaidSetting") .WithOne("AntiRaidSetting")
.HasForeignKey("NadekoBot.Services.Database.Models.AntiRaidSetting", "GuildConfigId") .HasForeignKey("NadekoBot.Core.Services.Database.Models.AntiRaidSetting", "GuildConfigId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiSpamIgnore", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamIgnore", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.AntiSpamSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.AntiSpamSetting")
.WithMany("IgnoredChannels") .WithMany("IgnoredChannels")
.HasForeignKey("AntiSpamSettingId"); .HasForeignKey("AntiSpamSettingId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiSpamSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamSetting", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig", "GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig", "GuildConfig")
.WithOne("AntiSpamSetting") .WithOne("AntiSpamSetting")
.HasForeignKey("NadekoBot.Services.Database.Models.AntiSpamSetting", "GuildConfigId") .HasForeignKey("NadekoBot.Core.Services.Database.Models.AntiSpamSetting", "GuildConfigId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.BlacklistItem", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlacklistItem", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("Blacklist") .WithMany("Blacklist")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashCaller", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashCaller", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.ClashWar", "ClashWar") b.HasOne("NadekoBot.Core.Services.Database.Models.ClashWar", "ClashWar")
.WithMany("Bases") .WithMany("Bases")
.HasForeignKey("ClashWarId") .HasForeignKey("ClashWarId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandAlias", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandAlias", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("CommandAliases") .WithMany("CommandAliases")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandCooldown", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandCooldown", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("CommandCooldowns") .WithMany("CommandCooldowns")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandPrice", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandPrice", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("CommandPrices") .WithMany("CommandPrices")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.EightBallResponse", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("EightBallResponses") .WithMany("EightBallResponses")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilterChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilterInvitesChannelIds") .WithMany("FilterInvitesChannelIds")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilterWordsChannelIds") .WithMany("FilterWordsChannelIds")
.HasForeignKey("GuildConfigId1"); .HasForeignKey("GuildConfigId1");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilteredWord", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilteredWord", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilteredWords") .WithMany("FilteredWords")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FollowedStream", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FollowedStream", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FollowedStreams") .WithMany("FollowedStreams")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GCChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GCChannelId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("GenerateCurrencyChannelIds") .WithMany("GenerateCurrencyChannelIds")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildConfig", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany() .WithMany()
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
b.HasOne("NadekoBot.Services.Database.Models.Permission", "RootPermission") b.HasOne("NadekoBot.Core.Services.Database.Models.Permission", "RootPermission")
.WithMany() .WithMany()
.HasForeignKey("RootPermissionId"); .HasForeignKey("RootPermissionId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildRepeater", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildRepeater", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("GuildRepeaters") .WithMany("GuildRepeaters")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredLogChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredLogChannel", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany("IgnoredChannels") .WithMany("IgnoredChannels")
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredVoicePresenceChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany("IgnoredVoicePresenceChannelIds") .WithMany("IgnoredVoicePresenceChannelIds")
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ModulePrefix", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ModulePrefix", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("ModulePrefixes") .WithMany("ModulePrefixes")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.MutedUserId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MutedUserId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("MutedUsers") .WithMany("MutedUsers")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permission", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.Permission", "Next") b.HasOne("NadekoBot.Core.Services.Database.Models.Permission", "Next")
.WithOne("Previous") .WithOne("Previous")
.HasForeignKey("NadekoBot.Services.Database.Models.Permission", "NextId"); .HasForeignKey("NadekoBot.Core.Services.Database.Models.Permission", "NextId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permissionv2", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permissionv2", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("Permissions") .WithMany("Permissions")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlayingStatus", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlayingStatus", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("RotatingStatusMessages") .WithMany("RotatingStatusMessages")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlaylistSong", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.MusicPlaylist") b.HasOne("NadekoBot.Core.Services.Database.Models.MusicPlaylist")
.WithMany("Songs") .WithMany("Songs")
.HasForeignKey("MusicPlaylistId") .HasForeignKey("MusicPlaylistId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.RaceAnimal", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("RaceAnimals") .WithMany("RaceAnimals")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.StartupCommand", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.StartupCommand", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("StartupCommands") .WithMany("StartupCommands")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.UnmuteTimer", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.UnmuteTimer", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("UnmuteTimers") .WithMany("UnmuteTimers")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.VcRoleInfo", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.VcRoleInfo", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("VcRoleInfos") .WithMany("VcRoleInfos")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.WaifuInfo", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WaifuInfo", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "Affinity") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "Affinity")
.WithMany() .WithMany()
.HasForeignKey("AffinityId"); .HasForeignKey("AffinityId");
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "Claimer") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "Claimer")
.WithMany() .WithMany()
.HasForeignKey("ClaimerId"); .HasForeignKey("ClaimerId");
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "Waifu") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "Waifu")
.WithOne() .WithOne()
.HasForeignKey("NadekoBot.Services.Database.Models.WaifuInfo", "WaifuId") .HasForeignKey("NadekoBot.Core.Services.Database.Models.WaifuInfo", "WaifuId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.WaifuUpdate", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WaifuUpdate", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "New") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "New")
.WithMany() .WithMany()
.HasForeignKey("NewId"); .HasForeignKey("NewId");
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "Old") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "Old")
.WithMany() .WithMany()
.HasForeignKey("OldId"); .HasForeignKey("OldId");
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "User") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "User")
.WithMany() .WithMany()
.HasForeignKey("UserId") .HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.WarningPunishment", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WarningPunishment", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("WarnPunishments") .WithMany("WarnPunishments")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });

View File

@ -3,7 +3,7 @@ using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Migrations;
using NadekoBot.Services.Database; using NadekoBot.Core.Services.Database;
namespace NadekoBot.Migrations namespace NadekoBot.Migrations
{ {
@ -16,7 +16,7 @@ namespace NadekoBot.Migrations
modelBuilder modelBuilder
.HasAnnotation("ProductVersion", "1.1.0-rtm-22752"); .HasAnnotation("ProductVersion", "1.1.0-rtm-22752");
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiRaidSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiRaidSetting", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -39,7 +39,7 @@ namespace NadekoBot.Migrations
b.ToTable("AntiRaidSetting"); b.ToTable("AntiRaidSetting");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiSpamIgnore", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamIgnore", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -57,7 +57,7 @@ namespace NadekoBot.Migrations
b.ToTable("AntiSpamIgnore"); b.ToTable("AntiSpamIgnore");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiSpamSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamSetting", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -78,7 +78,7 @@ namespace NadekoBot.Migrations
b.ToTable("AntiSpamSetting"); b.ToTable("AntiSpamSetting");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.BlacklistItem", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlacklistItem", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -98,7 +98,7 @@ namespace NadekoBot.Migrations
b.ToTable("BlacklistItem"); b.ToTable("BlacklistItem");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.BotConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BotConfig", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -156,7 +156,7 @@ namespace NadekoBot.Migrations
b.ToTable("BotConfig"); b.ToTable("BotConfig");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashCaller", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashCaller", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -182,7 +182,7 @@ namespace NadekoBot.Migrations
b.ToTable("ClashCallers"); b.ToTable("ClashCallers");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashWar", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashWar", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -206,7 +206,7 @@ namespace NadekoBot.Migrations
b.ToTable("ClashOfClans"); b.ToTable("ClashOfClans");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandAlias", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandAlias", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -226,7 +226,7 @@ namespace NadekoBot.Migrations
b.ToTable("CommandAlias"); b.ToTable("CommandAlias");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandCooldown", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandCooldown", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -246,7 +246,7 @@ namespace NadekoBot.Migrations
b.ToTable("CommandCooldown"); b.ToTable("CommandCooldown");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandPrice", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandPrice", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -269,7 +269,7 @@ namespace NadekoBot.Migrations
b.ToTable("CommandPrice"); b.ToTable("CommandPrice");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ConvertUnit", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ConvertUnit", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -287,7 +287,7 @@ namespace NadekoBot.Migrations
b.ToTable("ConversionUnits"); b.ToTable("ConversionUnits");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Currency", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Currency", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -306,7 +306,7 @@ namespace NadekoBot.Migrations
b.ToTable("Currency"); b.ToTable("Currency");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CurrencyTransaction", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CurrencyTransaction", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -324,7 +324,7 @@ namespace NadekoBot.Migrations
b.ToTable("CurrencyTransactions"); b.ToTable("CurrencyTransactions");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CustomReaction", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CustomReaction", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -350,7 +350,7 @@ namespace NadekoBot.Migrations
b.ToTable("CustomReactions"); b.ToTable("CustomReactions");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.DiscordUser", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.DiscordUser", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -372,7 +372,7 @@ namespace NadekoBot.Migrations
b.ToTable("DiscordUser"); b.ToTable("DiscordUser");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Donator", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Donator", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -393,7 +393,7 @@ namespace NadekoBot.Migrations
b.ToTable("Donators"); b.ToTable("Donators");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.EightBallResponse", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -411,7 +411,7 @@ namespace NadekoBot.Migrations
b.ToTable("EightBallResponses"); b.ToTable("EightBallResponses");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilterChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -433,7 +433,7 @@ namespace NadekoBot.Migrations
b.ToTable("FilterChannelId"); b.ToTable("FilterChannelId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilteredWord", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilteredWord", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -451,7 +451,7 @@ namespace NadekoBot.Migrations
b.ToTable("FilteredWord"); b.ToTable("FilteredWord");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FollowedStream", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FollowedStream", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -475,7 +475,7 @@ namespace NadekoBot.Migrations
b.ToTable("FollowedStream"); b.ToTable("FollowedStream");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GCChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GCChannelId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -493,7 +493,7 @@ namespace NadekoBot.Migrations
b.ToTable("GCChannelId"); b.ToTable("GCChannelId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildConfig", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -572,7 +572,7 @@ namespace NadekoBot.Migrations
b.ToTable("GuildConfigs"); b.ToTable("GuildConfigs");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildRepeater", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildRepeater", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -596,7 +596,7 @@ namespace NadekoBot.Migrations
b.ToTable("GuildRepeater"); b.ToTable("GuildRepeater");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredLogChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredLogChannel", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -614,7 +614,7 @@ namespace NadekoBot.Migrations
b.ToTable("IgnoredLogChannels"); b.ToTable("IgnoredLogChannels");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredVoicePresenceChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -632,7 +632,7 @@ namespace NadekoBot.Migrations
b.ToTable("IgnoredVoicePresenceCHannels"); b.ToTable("IgnoredVoicePresenceCHannels");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.LogSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.LogSetting", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -706,7 +706,7 @@ namespace NadekoBot.Migrations
b.ToTable("LogSettings"); b.ToTable("LogSettings");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ModulePrefix", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ModulePrefix", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -726,7 +726,7 @@ namespace NadekoBot.Migrations
b.ToTable("ModulePrefixes"); b.ToTable("ModulePrefixes");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.MusicPlaylist", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MusicPlaylist", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -744,7 +744,7 @@ namespace NadekoBot.Migrations
b.ToTable("MusicPlaylists"); b.ToTable("MusicPlaylists");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.MutedUserId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MutedUserId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -762,7 +762,7 @@ namespace NadekoBot.Migrations
b.ToTable("MutedUserId"); b.ToTable("MutedUserId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permission", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -789,7 +789,7 @@ namespace NadekoBot.Migrations
b.ToTable("Permission"); b.ToTable("Permission");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permissionv2", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permissionv2", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -817,7 +817,7 @@ namespace NadekoBot.Migrations
b.ToTable("Permissionv2"); b.ToTable("Permissionv2");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlayingStatus", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlayingStatus", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -835,7 +835,7 @@ namespace NadekoBot.Migrations
b.ToTable("PlayingStatus"); b.ToTable("PlayingStatus");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlaylistSong", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -861,7 +861,7 @@ namespace NadekoBot.Migrations
b.ToTable("PlaylistSong"); b.ToTable("PlaylistSong");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Quote", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Quote", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -886,7 +886,7 @@ namespace NadekoBot.Migrations
b.ToTable("Quotes"); b.ToTable("Quotes");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.RaceAnimal", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -906,7 +906,7 @@ namespace NadekoBot.Migrations
b.ToTable("RaceAnimals"); b.ToTable("RaceAnimals");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Reminder", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Reminder", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -930,7 +930,7 @@ namespace NadekoBot.Migrations
b.ToTable("Reminders"); b.ToTable("Reminders");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.SelfAssignedRole", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.SelfAssignedRole", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -949,7 +949,7 @@ namespace NadekoBot.Migrations
b.ToTable("SelfAssignableRoles"); b.ToTable("SelfAssignableRoles");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.SlowmodeIgnoredRole", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.SlowmodeIgnoredRole", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -967,7 +967,7 @@ namespace NadekoBot.Migrations
b.ToTable("SlowmodeIgnoredRole"); b.ToTable("SlowmodeIgnoredRole");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.SlowmodeIgnoredUser", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.SlowmodeIgnoredUser", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -985,7 +985,7 @@ namespace NadekoBot.Migrations
b.ToTable("SlowmodeIgnoredUser"); b.ToTable("SlowmodeIgnoredUser");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.StartupCommand", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.StartupCommand", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -1017,7 +1017,7 @@ namespace NadekoBot.Migrations
b.ToTable("StartupCommand"); b.ToTable("StartupCommand");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.UnmuteTimer", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.UnmuteTimer", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -1037,7 +1037,7 @@ namespace NadekoBot.Migrations
b.ToTable("UnmuteTimer"); b.ToTable("UnmuteTimer");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.UserPokeTypes", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.UserPokeTypes", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -1056,7 +1056,7 @@ namespace NadekoBot.Migrations
b.ToTable("PokeGame"); b.ToTable("PokeGame");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.VcRoleInfo", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.VcRoleInfo", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -1076,7 +1076,7 @@ namespace NadekoBot.Migrations
b.ToTable("VcRoleInfo"); b.ToTable("VcRoleInfo");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.WaifuInfo", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WaifuInfo", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -1103,7 +1103,7 @@ namespace NadekoBot.Migrations
b.ToTable("WaifuInfo"); b.ToTable("WaifuInfo");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.WaifuUpdate", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WaifuUpdate", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -1129,7 +1129,7 @@ namespace NadekoBot.Migrations
b.ToTable("WaifuUpdates"); b.ToTable("WaifuUpdates");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Warning", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Warning", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -1153,7 +1153,7 @@ namespace NadekoBot.Migrations
b.ToTable("Warnings"); b.ToTable("Warnings");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.WarningPunishment", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WarningPunishment", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -1175,256 +1175,256 @@ namespace NadekoBot.Migrations
b.ToTable("WarningPunishment"); b.ToTable("WarningPunishment");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiRaidSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiRaidSetting", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig", "GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig", "GuildConfig")
.WithOne("AntiRaidSetting") .WithOne("AntiRaidSetting")
.HasForeignKey("NadekoBot.Services.Database.Models.AntiRaidSetting", "GuildConfigId") .HasForeignKey("NadekoBot.Core.Services.Database.Models.AntiRaidSetting", "GuildConfigId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiSpamIgnore", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamIgnore", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.AntiSpamSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.AntiSpamSetting")
.WithMany("IgnoredChannels") .WithMany("IgnoredChannels")
.HasForeignKey("AntiSpamSettingId"); .HasForeignKey("AntiSpamSettingId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiSpamSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamSetting", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig", "GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig", "GuildConfig")
.WithOne("AntiSpamSetting") .WithOne("AntiSpamSetting")
.HasForeignKey("NadekoBot.Services.Database.Models.AntiSpamSetting", "GuildConfigId") .HasForeignKey("NadekoBot.Core.Services.Database.Models.AntiSpamSetting", "GuildConfigId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.BlacklistItem", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlacklistItem", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("Blacklist") .WithMany("Blacklist")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashCaller", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashCaller", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.ClashWar", "ClashWar") b.HasOne("NadekoBot.Core.Services.Database.Models.ClashWar", "ClashWar")
.WithMany("Bases") .WithMany("Bases")
.HasForeignKey("ClashWarId") .HasForeignKey("ClashWarId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandAlias", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandAlias", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("CommandAliases") .WithMany("CommandAliases")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandCooldown", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandCooldown", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("CommandCooldowns") .WithMany("CommandCooldowns")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandPrice", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandPrice", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("CommandPrices") .WithMany("CommandPrices")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.EightBallResponse", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("EightBallResponses") .WithMany("EightBallResponses")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilterChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilterInvitesChannelIds") .WithMany("FilterInvitesChannelIds")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilterWordsChannelIds") .WithMany("FilterWordsChannelIds")
.HasForeignKey("GuildConfigId1"); .HasForeignKey("GuildConfigId1");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilteredWord", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilteredWord", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilteredWords") .WithMany("FilteredWords")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FollowedStream", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FollowedStream", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FollowedStreams") .WithMany("FollowedStreams")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GCChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GCChannelId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("GenerateCurrencyChannelIds") .WithMany("GenerateCurrencyChannelIds")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildConfig", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany() .WithMany()
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
b.HasOne("NadekoBot.Services.Database.Models.Permission", "RootPermission") b.HasOne("NadekoBot.Core.Services.Database.Models.Permission", "RootPermission")
.WithMany() .WithMany()
.HasForeignKey("RootPermissionId"); .HasForeignKey("RootPermissionId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildRepeater", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildRepeater", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("GuildRepeaters") .WithMany("GuildRepeaters")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredLogChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredLogChannel", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany("IgnoredChannels") .WithMany("IgnoredChannels")
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredVoicePresenceChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany("IgnoredVoicePresenceChannelIds") .WithMany("IgnoredVoicePresenceChannelIds")
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ModulePrefix", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ModulePrefix", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("ModulePrefixes") .WithMany("ModulePrefixes")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.MutedUserId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MutedUserId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("MutedUsers") .WithMany("MutedUsers")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permission", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.Permission", "Next") b.HasOne("NadekoBot.Core.Services.Database.Models.Permission", "Next")
.WithOne("Previous") .WithOne("Previous")
.HasForeignKey("NadekoBot.Services.Database.Models.Permission", "NextId"); .HasForeignKey("NadekoBot.Core.Services.Database.Models.Permission", "NextId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permissionv2", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permissionv2", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("Permissions") .WithMany("Permissions")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlayingStatus", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlayingStatus", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("RotatingStatusMessages") .WithMany("RotatingStatusMessages")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlaylistSong", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.MusicPlaylist") b.HasOne("NadekoBot.Core.Services.Database.Models.MusicPlaylist")
.WithMany("Songs") .WithMany("Songs")
.HasForeignKey("MusicPlaylistId") .HasForeignKey("MusicPlaylistId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.RaceAnimal", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("RaceAnimals") .WithMany("RaceAnimals")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.SlowmodeIgnoredRole", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.SlowmodeIgnoredRole", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("SlowmodeIgnoredRoles") .WithMany("SlowmodeIgnoredRoles")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.SlowmodeIgnoredUser", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.SlowmodeIgnoredUser", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("SlowmodeIgnoredUsers") .WithMany("SlowmodeIgnoredUsers")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.StartupCommand", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.StartupCommand", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("StartupCommands") .WithMany("StartupCommands")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.UnmuteTimer", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.UnmuteTimer", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("UnmuteTimers") .WithMany("UnmuteTimers")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.VcRoleInfo", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.VcRoleInfo", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("VcRoleInfos") .WithMany("VcRoleInfos")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.WaifuInfo", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WaifuInfo", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "Affinity") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "Affinity")
.WithMany() .WithMany()
.HasForeignKey("AffinityId"); .HasForeignKey("AffinityId");
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "Claimer") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "Claimer")
.WithMany() .WithMany()
.HasForeignKey("ClaimerId"); .HasForeignKey("ClaimerId");
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "Waifu") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "Waifu")
.WithOne() .WithOne()
.HasForeignKey("NadekoBot.Services.Database.Models.WaifuInfo", "WaifuId") .HasForeignKey("NadekoBot.Core.Services.Database.Models.WaifuInfo", "WaifuId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.WaifuUpdate", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WaifuUpdate", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "New") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "New")
.WithMany() .WithMany()
.HasForeignKey("NewId"); .HasForeignKey("NewId");
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "Old") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "Old")
.WithMany() .WithMany()
.HasForeignKey("OldId"); .HasForeignKey("OldId");
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "User") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "User")
.WithMany() .WithMany()
.HasForeignKey("UserId") .HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.WarningPunishment", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WarningPunishment", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("WarnPunishments") .WithMany("WarnPunishments")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });

View File

@ -3,7 +3,7 @@ using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Migrations;
using NadekoBot.Services.Database; using NadekoBot.Core.Services.Database;
namespace NadekoBot.Migrations namespace NadekoBot.Migrations
{ {
@ -16,7 +16,7 @@ namespace NadekoBot.Migrations
modelBuilder modelBuilder
.HasAnnotation("ProductVersion", "1.1.0-rtm-22752"); .HasAnnotation("ProductVersion", "1.1.0-rtm-22752");
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiRaidSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiRaidSetting", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -39,7 +39,7 @@ namespace NadekoBot.Migrations
b.ToTable("AntiRaidSetting"); b.ToTable("AntiRaidSetting");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiSpamIgnore", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamIgnore", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -57,7 +57,7 @@ namespace NadekoBot.Migrations
b.ToTable("AntiSpamIgnore"); b.ToTable("AntiSpamIgnore");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiSpamSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamSetting", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -78,7 +78,7 @@ namespace NadekoBot.Migrations
b.ToTable("AntiSpamSetting"); b.ToTable("AntiSpamSetting");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.BlacklistItem", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlacklistItem", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -98,7 +98,7 @@ namespace NadekoBot.Migrations
b.ToTable("BlacklistItem"); b.ToTable("BlacklistItem");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.BotConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BotConfig", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -156,7 +156,7 @@ namespace NadekoBot.Migrations
b.ToTable("BotConfig"); b.ToTable("BotConfig");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashCaller", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashCaller", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -182,7 +182,7 @@ namespace NadekoBot.Migrations
b.ToTable("ClashCallers"); b.ToTable("ClashCallers");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashWar", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashWar", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -206,7 +206,7 @@ namespace NadekoBot.Migrations
b.ToTable("ClashOfClans"); b.ToTable("ClashOfClans");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandAlias", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandAlias", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -226,7 +226,7 @@ namespace NadekoBot.Migrations
b.ToTable("CommandAlias"); b.ToTable("CommandAlias");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandCooldown", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandCooldown", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -246,7 +246,7 @@ namespace NadekoBot.Migrations
b.ToTable("CommandCooldown"); b.ToTable("CommandCooldown");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandPrice", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandPrice", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -269,7 +269,7 @@ namespace NadekoBot.Migrations
b.ToTable("CommandPrice"); b.ToTable("CommandPrice");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ConvertUnit", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ConvertUnit", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -287,7 +287,7 @@ namespace NadekoBot.Migrations
b.ToTable("ConversionUnits"); b.ToTable("ConversionUnits");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Currency", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Currency", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -306,7 +306,7 @@ namespace NadekoBot.Migrations
b.ToTable("Currency"); b.ToTable("Currency");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CurrencyTransaction", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CurrencyTransaction", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -324,7 +324,7 @@ namespace NadekoBot.Migrations
b.ToTable("CurrencyTransactions"); b.ToTable("CurrencyTransactions");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CustomReaction", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CustomReaction", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -350,7 +350,7 @@ namespace NadekoBot.Migrations
b.ToTable("CustomReactions"); b.ToTable("CustomReactions");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.DiscordUser", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.DiscordUser", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -372,7 +372,7 @@ namespace NadekoBot.Migrations
b.ToTable("DiscordUser"); b.ToTable("DiscordUser");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Donator", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Donator", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -393,7 +393,7 @@ namespace NadekoBot.Migrations
b.ToTable("Donators"); b.ToTable("Donators");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.EightBallResponse", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -411,7 +411,7 @@ namespace NadekoBot.Migrations
b.ToTable("EightBallResponses"); b.ToTable("EightBallResponses");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilterChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -433,7 +433,7 @@ namespace NadekoBot.Migrations
b.ToTable("FilterChannelId"); b.ToTable("FilterChannelId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilteredWord", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilteredWord", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -451,7 +451,7 @@ namespace NadekoBot.Migrations
b.ToTable("FilteredWord"); b.ToTable("FilteredWord");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FollowedStream", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FollowedStream", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -475,7 +475,7 @@ namespace NadekoBot.Migrations
b.ToTable("FollowedStream"); b.ToTable("FollowedStream");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GCChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GCChannelId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -493,7 +493,7 @@ namespace NadekoBot.Migrations
b.ToTable("GCChannelId"); b.ToTable("GCChannelId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildConfig", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -572,7 +572,7 @@ namespace NadekoBot.Migrations
b.ToTable("GuildConfigs"); b.ToTable("GuildConfigs");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildRepeater", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildRepeater", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -596,7 +596,7 @@ namespace NadekoBot.Migrations
b.ToTable("GuildRepeater"); b.ToTable("GuildRepeater");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredLogChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredLogChannel", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -614,7 +614,7 @@ namespace NadekoBot.Migrations
b.ToTable("IgnoredLogChannels"); b.ToTable("IgnoredLogChannels");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredVoicePresenceChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -632,7 +632,7 @@ namespace NadekoBot.Migrations
b.ToTable("IgnoredVoicePresenceCHannels"); b.ToTable("IgnoredVoicePresenceCHannels");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.LogSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.LogSetting", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -706,7 +706,7 @@ namespace NadekoBot.Migrations
b.ToTable("LogSettings"); b.ToTable("LogSettings");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ModulePrefix", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ModulePrefix", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -726,7 +726,7 @@ namespace NadekoBot.Migrations
b.ToTable("ModulePrefixes"); b.ToTable("ModulePrefixes");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.MusicPlaylist", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MusicPlaylist", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -744,7 +744,7 @@ namespace NadekoBot.Migrations
b.ToTable("MusicPlaylists"); b.ToTable("MusicPlaylists");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.MutedUserId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MutedUserId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -762,7 +762,7 @@ namespace NadekoBot.Migrations
b.ToTable("MutedUserId"); b.ToTable("MutedUserId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permission", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -789,7 +789,7 @@ namespace NadekoBot.Migrations
b.ToTable("Permission"); b.ToTable("Permission");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permissionv2", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permissionv2", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -817,7 +817,7 @@ namespace NadekoBot.Migrations
b.ToTable("Permissionv2"); b.ToTable("Permissionv2");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlayingStatus", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlayingStatus", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -835,7 +835,7 @@ namespace NadekoBot.Migrations
b.ToTable("PlayingStatus"); b.ToTable("PlayingStatus");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlaylistSong", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -861,7 +861,7 @@ namespace NadekoBot.Migrations
b.ToTable("PlaylistSong"); b.ToTable("PlaylistSong");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Quote", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Quote", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -886,7 +886,7 @@ namespace NadekoBot.Migrations
b.ToTable("Quotes"); b.ToTable("Quotes");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.RaceAnimal", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -906,7 +906,7 @@ namespace NadekoBot.Migrations
b.ToTable("RaceAnimals"); b.ToTable("RaceAnimals");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Reminder", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Reminder", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -930,7 +930,7 @@ namespace NadekoBot.Migrations
b.ToTable("Reminders"); b.ToTable("Reminders");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.RewardedUser", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RewardedUser", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -951,7 +951,7 @@ namespace NadekoBot.Migrations
b.ToTable("RewardedUsers"); b.ToTable("RewardedUsers");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.SelfAssignedRole", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.SelfAssignedRole", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -970,7 +970,7 @@ namespace NadekoBot.Migrations
b.ToTable("SelfAssignableRoles"); b.ToTable("SelfAssignableRoles");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.SlowmodeIgnoredRole", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.SlowmodeIgnoredRole", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -988,7 +988,7 @@ namespace NadekoBot.Migrations
b.ToTable("SlowmodeIgnoredRole"); b.ToTable("SlowmodeIgnoredRole");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.SlowmodeIgnoredUser", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.SlowmodeIgnoredUser", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -1006,7 +1006,7 @@ namespace NadekoBot.Migrations
b.ToTable("SlowmodeIgnoredUser"); b.ToTable("SlowmodeIgnoredUser");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.StartupCommand", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.StartupCommand", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -1038,7 +1038,7 @@ namespace NadekoBot.Migrations
b.ToTable("StartupCommand"); b.ToTable("StartupCommand");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.UnmuteTimer", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.UnmuteTimer", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -1058,7 +1058,7 @@ namespace NadekoBot.Migrations
b.ToTable("UnmuteTimer"); b.ToTable("UnmuteTimer");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.UserPokeTypes", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.UserPokeTypes", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -1077,7 +1077,7 @@ namespace NadekoBot.Migrations
b.ToTable("PokeGame"); b.ToTable("PokeGame");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.VcRoleInfo", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.VcRoleInfo", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -1097,7 +1097,7 @@ namespace NadekoBot.Migrations
b.ToTable("VcRoleInfo"); b.ToTable("VcRoleInfo");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.WaifuInfo", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WaifuInfo", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -1124,7 +1124,7 @@ namespace NadekoBot.Migrations
b.ToTable("WaifuInfo"); b.ToTable("WaifuInfo");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.WaifuUpdate", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WaifuUpdate", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -1150,7 +1150,7 @@ namespace NadekoBot.Migrations
b.ToTable("WaifuUpdates"); b.ToTable("WaifuUpdates");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Warning", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Warning", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -1174,7 +1174,7 @@ namespace NadekoBot.Migrations
b.ToTable("Warnings"); b.ToTable("Warnings");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.WarningPunishment", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WarningPunishment", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -1196,256 +1196,256 @@ namespace NadekoBot.Migrations
b.ToTable("WarningPunishment"); b.ToTable("WarningPunishment");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiRaidSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiRaidSetting", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig", "GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig", "GuildConfig")
.WithOne("AntiRaidSetting") .WithOne("AntiRaidSetting")
.HasForeignKey("NadekoBot.Services.Database.Models.AntiRaidSetting", "GuildConfigId") .HasForeignKey("NadekoBot.Core.Services.Database.Models.AntiRaidSetting", "GuildConfigId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiSpamIgnore", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamIgnore", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.AntiSpamSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.AntiSpamSetting")
.WithMany("IgnoredChannels") .WithMany("IgnoredChannels")
.HasForeignKey("AntiSpamSettingId"); .HasForeignKey("AntiSpamSettingId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiSpamSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamSetting", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig", "GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig", "GuildConfig")
.WithOne("AntiSpamSetting") .WithOne("AntiSpamSetting")
.HasForeignKey("NadekoBot.Services.Database.Models.AntiSpamSetting", "GuildConfigId") .HasForeignKey("NadekoBot.Core.Services.Database.Models.AntiSpamSetting", "GuildConfigId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.BlacklistItem", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlacklistItem", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("Blacklist") .WithMany("Blacklist")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashCaller", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashCaller", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.ClashWar", "ClashWar") b.HasOne("NadekoBot.Core.Services.Database.Models.ClashWar", "ClashWar")
.WithMany("Bases") .WithMany("Bases")
.HasForeignKey("ClashWarId") .HasForeignKey("ClashWarId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandAlias", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandAlias", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("CommandAliases") .WithMany("CommandAliases")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandCooldown", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandCooldown", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("CommandCooldowns") .WithMany("CommandCooldowns")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandPrice", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandPrice", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("CommandPrices") .WithMany("CommandPrices")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.EightBallResponse", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("EightBallResponses") .WithMany("EightBallResponses")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilterChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilterInvitesChannelIds") .WithMany("FilterInvitesChannelIds")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilterWordsChannelIds") .WithMany("FilterWordsChannelIds")
.HasForeignKey("GuildConfigId1"); .HasForeignKey("GuildConfigId1");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilteredWord", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilteredWord", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilteredWords") .WithMany("FilteredWords")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FollowedStream", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FollowedStream", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FollowedStreams") .WithMany("FollowedStreams")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GCChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GCChannelId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("GenerateCurrencyChannelIds") .WithMany("GenerateCurrencyChannelIds")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildConfig", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany() .WithMany()
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
b.HasOne("NadekoBot.Services.Database.Models.Permission", "RootPermission") b.HasOne("NadekoBot.Core.Services.Database.Models.Permission", "RootPermission")
.WithMany() .WithMany()
.HasForeignKey("RootPermissionId"); .HasForeignKey("RootPermissionId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildRepeater", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildRepeater", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("GuildRepeaters") .WithMany("GuildRepeaters")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredLogChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredLogChannel", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany("IgnoredChannels") .WithMany("IgnoredChannels")
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredVoicePresenceChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany("IgnoredVoicePresenceChannelIds") .WithMany("IgnoredVoicePresenceChannelIds")
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ModulePrefix", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ModulePrefix", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("ModulePrefixes") .WithMany("ModulePrefixes")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.MutedUserId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MutedUserId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("MutedUsers") .WithMany("MutedUsers")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permission", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.Permission", "Next") b.HasOne("NadekoBot.Core.Services.Database.Models.Permission", "Next")
.WithOne("Previous") .WithOne("Previous")
.HasForeignKey("NadekoBot.Services.Database.Models.Permission", "NextId"); .HasForeignKey("NadekoBot.Core.Services.Database.Models.Permission", "NextId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permissionv2", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permissionv2", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("Permissions") .WithMany("Permissions")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlayingStatus", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlayingStatus", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("RotatingStatusMessages") .WithMany("RotatingStatusMessages")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlaylistSong", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.MusicPlaylist") b.HasOne("NadekoBot.Core.Services.Database.Models.MusicPlaylist")
.WithMany("Songs") .WithMany("Songs")
.HasForeignKey("MusicPlaylistId") .HasForeignKey("MusicPlaylistId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.RaceAnimal", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("RaceAnimals") .WithMany("RaceAnimals")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.SlowmodeIgnoredRole", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.SlowmodeIgnoredRole", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("SlowmodeIgnoredRoles") .WithMany("SlowmodeIgnoredRoles")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.SlowmodeIgnoredUser", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.SlowmodeIgnoredUser", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("SlowmodeIgnoredUsers") .WithMany("SlowmodeIgnoredUsers")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.StartupCommand", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.StartupCommand", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("StartupCommands") .WithMany("StartupCommands")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.UnmuteTimer", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.UnmuteTimer", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("UnmuteTimers") .WithMany("UnmuteTimers")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.VcRoleInfo", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.VcRoleInfo", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("VcRoleInfos") .WithMany("VcRoleInfos")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.WaifuInfo", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WaifuInfo", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "Affinity") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "Affinity")
.WithMany() .WithMany()
.HasForeignKey("AffinityId"); .HasForeignKey("AffinityId");
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "Claimer") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "Claimer")
.WithMany() .WithMany()
.HasForeignKey("ClaimerId"); .HasForeignKey("ClaimerId");
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "Waifu") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "Waifu")
.WithOne() .WithOne()
.HasForeignKey("NadekoBot.Services.Database.Models.WaifuInfo", "WaifuId") .HasForeignKey("NadekoBot.Core.Services.Database.Models.WaifuInfo", "WaifuId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.WaifuUpdate", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WaifuUpdate", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "New") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "New")
.WithMany() .WithMany()
.HasForeignKey("NewId"); .HasForeignKey("NewId");
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "Old") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "Old")
.WithMany() .WithMany()
.HasForeignKey("OldId"); .HasForeignKey("OldId");
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "User") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "User")
.WithMany() .WithMany()
.HasForeignKey("UserId") .HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.WarningPunishment", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WarningPunishment", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("WarnPunishments") .WithMany("WarnPunishments")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });

View File

@ -3,7 +3,7 @@ using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Migrations;
using NadekoBot.Services.Database; using NadekoBot.Core.Services.Database;
namespace NadekoBot.Migrations namespace NadekoBot.Migrations
{ {
@ -16,7 +16,7 @@ namespace NadekoBot.Migrations
modelBuilder modelBuilder
.HasAnnotation("ProductVersion", "1.1.0-rtm-22752"); .HasAnnotation("ProductVersion", "1.1.0-rtm-22752");
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiRaidSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiRaidSetting", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -39,7 +39,7 @@ namespace NadekoBot.Migrations
b.ToTable("AntiRaidSetting"); b.ToTable("AntiRaidSetting");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiSpamIgnore", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamIgnore", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -57,7 +57,7 @@ namespace NadekoBot.Migrations
b.ToTable("AntiSpamIgnore"); b.ToTable("AntiSpamIgnore");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiSpamSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamSetting", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -78,7 +78,7 @@ namespace NadekoBot.Migrations
b.ToTable("AntiSpamSetting"); b.ToTable("AntiSpamSetting");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.BlacklistItem", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlacklistItem", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -98,7 +98,7 @@ namespace NadekoBot.Migrations
b.ToTable("BlacklistItem"); b.ToTable("BlacklistItem");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.BotConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BotConfig", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -156,7 +156,7 @@ namespace NadekoBot.Migrations
b.ToTable("BotConfig"); b.ToTable("BotConfig");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashCaller", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashCaller", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -182,7 +182,7 @@ namespace NadekoBot.Migrations
b.ToTable("ClashCallers"); b.ToTable("ClashCallers");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashWar", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashWar", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -206,7 +206,7 @@ namespace NadekoBot.Migrations
b.ToTable("ClashOfClans"); b.ToTable("ClashOfClans");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandAlias", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandAlias", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -226,7 +226,7 @@ namespace NadekoBot.Migrations
b.ToTable("CommandAlias"); b.ToTable("CommandAlias");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandCooldown", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandCooldown", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -246,7 +246,7 @@ namespace NadekoBot.Migrations
b.ToTable("CommandCooldown"); b.ToTable("CommandCooldown");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandPrice", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandPrice", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -269,7 +269,7 @@ namespace NadekoBot.Migrations
b.ToTable("CommandPrice"); b.ToTable("CommandPrice");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ConvertUnit", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ConvertUnit", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -287,7 +287,7 @@ namespace NadekoBot.Migrations
b.ToTable("ConversionUnits"); b.ToTable("ConversionUnits");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Currency", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Currency", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -306,7 +306,7 @@ namespace NadekoBot.Migrations
b.ToTable("Currency"); b.ToTable("Currency");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CurrencyTransaction", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CurrencyTransaction", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -324,7 +324,7 @@ namespace NadekoBot.Migrations
b.ToTable("CurrencyTransactions"); b.ToTable("CurrencyTransactions");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CustomReaction", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CustomReaction", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -350,7 +350,7 @@ namespace NadekoBot.Migrations
b.ToTable("CustomReactions"); b.ToTable("CustomReactions");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.DiscordUser", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.DiscordUser", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -372,7 +372,7 @@ namespace NadekoBot.Migrations
b.ToTable("DiscordUser"); b.ToTable("DiscordUser");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Donator", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Donator", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -393,7 +393,7 @@ namespace NadekoBot.Migrations
b.ToTable("Donators"); b.ToTable("Donators");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.EightBallResponse", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -411,7 +411,7 @@ namespace NadekoBot.Migrations
b.ToTable("EightBallResponses"); b.ToTable("EightBallResponses");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilterChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -433,7 +433,7 @@ namespace NadekoBot.Migrations
b.ToTable("FilterChannelId"); b.ToTable("FilterChannelId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilteredWord", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilteredWord", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -451,7 +451,7 @@ namespace NadekoBot.Migrations
b.ToTable("FilteredWord"); b.ToTable("FilteredWord");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FollowedStream", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FollowedStream", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -475,7 +475,7 @@ namespace NadekoBot.Migrations
b.ToTable("FollowedStream"); b.ToTable("FollowedStream");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GCChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GCChannelId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -493,7 +493,7 @@ namespace NadekoBot.Migrations
b.ToTable("GCChannelId"); b.ToTable("GCChannelId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildConfig", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -572,7 +572,7 @@ namespace NadekoBot.Migrations
b.ToTable("GuildConfigs"); b.ToTable("GuildConfigs");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildRepeater", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildRepeater", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -596,7 +596,7 @@ namespace NadekoBot.Migrations
b.ToTable("GuildRepeater"); b.ToTable("GuildRepeater");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredLogChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredLogChannel", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -614,7 +614,7 @@ namespace NadekoBot.Migrations
b.ToTable("IgnoredLogChannels"); b.ToTable("IgnoredLogChannels");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredVoicePresenceChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -632,7 +632,7 @@ namespace NadekoBot.Migrations
b.ToTable("IgnoredVoicePresenceCHannels"); b.ToTable("IgnoredVoicePresenceCHannels");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.LogSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.LogSetting", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -706,7 +706,7 @@ namespace NadekoBot.Migrations
b.ToTable("LogSettings"); b.ToTable("LogSettings");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ModulePrefix", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ModulePrefix", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -726,7 +726,7 @@ namespace NadekoBot.Migrations
b.ToTable("ModulePrefixes"); b.ToTable("ModulePrefixes");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.MusicPlaylist", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MusicPlaylist", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -744,7 +744,7 @@ namespace NadekoBot.Migrations
b.ToTable("MusicPlaylists"); b.ToTable("MusicPlaylists");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.MutedUserId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MutedUserId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -762,7 +762,7 @@ namespace NadekoBot.Migrations
b.ToTable("MutedUserId"); b.ToTable("MutedUserId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permission", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -789,7 +789,7 @@ namespace NadekoBot.Migrations
b.ToTable("Permission"); b.ToTable("Permission");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permissionv2", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permissionv2", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -817,7 +817,7 @@ namespace NadekoBot.Migrations
b.ToTable("Permissionv2"); b.ToTable("Permissionv2");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlayingStatus", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlayingStatus", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -835,7 +835,7 @@ namespace NadekoBot.Migrations
b.ToTable("PlayingStatus"); b.ToTable("PlayingStatus");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlaylistSong", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -861,7 +861,7 @@ namespace NadekoBot.Migrations
b.ToTable("PlaylistSong"); b.ToTable("PlaylistSong");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Quote", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Quote", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -886,7 +886,7 @@ namespace NadekoBot.Migrations
b.ToTable("Quotes"); b.ToTable("Quotes");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.RaceAnimal", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -906,7 +906,7 @@ namespace NadekoBot.Migrations
b.ToTable("RaceAnimals"); b.ToTable("RaceAnimals");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Reminder", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Reminder", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -930,7 +930,7 @@ namespace NadekoBot.Migrations
b.ToTable("Reminders"); b.ToTable("Reminders");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.RewardedUser", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RewardedUser", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -951,7 +951,7 @@ namespace NadekoBot.Migrations
b.ToTable("RewardedUsers"); b.ToTable("RewardedUsers");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.SelfAssignedRole", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.SelfAssignedRole", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -970,7 +970,7 @@ namespace NadekoBot.Migrations
b.ToTable("SelfAssignableRoles"); b.ToTable("SelfAssignableRoles");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ShopEntry", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ShopEntry", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -1000,7 +1000,7 @@ namespace NadekoBot.Migrations
b.ToTable("ShopEntry"); b.ToTable("ShopEntry");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ShopEntryItem", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ShopEntryItem", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -1018,7 +1018,7 @@ namespace NadekoBot.Migrations
b.ToTable("ShopEntryItem"); b.ToTable("ShopEntryItem");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.SlowmodeIgnoredRole", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.SlowmodeIgnoredRole", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -1036,7 +1036,7 @@ namespace NadekoBot.Migrations
b.ToTable("SlowmodeIgnoredRole"); b.ToTable("SlowmodeIgnoredRole");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.SlowmodeIgnoredUser", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.SlowmodeIgnoredUser", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -1054,7 +1054,7 @@ namespace NadekoBot.Migrations
b.ToTable("SlowmodeIgnoredUser"); b.ToTable("SlowmodeIgnoredUser");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.StartupCommand", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.StartupCommand", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -1086,7 +1086,7 @@ namespace NadekoBot.Migrations
b.ToTable("StartupCommand"); b.ToTable("StartupCommand");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.UnmuteTimer", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.UnmuteTimer", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -1106,7 +1106,7 @@ namespace NadekoBot.Migrations
b.ToTable("UnmuteTimer"); b.ToTable("UnmuteTimer");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.UserPokeTypes", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.UserPokeTypes", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -1125,7 +1125,7 @@ namespace NadekoBot.Migrations
b.ToTable("PokeGame"); b.ToTable("PokeGame");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.VcRoleInfo", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.VcRoleInfo", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -1145,7 +1145,7 @@ namespace NadekoBot.Migrations
b.ToTable("VcRoleInfo"); b.ToTable("VcRoleInfo");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.WaifuInfo", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WaifuInfo", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -1172,7 +1172,7 @@ namespace NadekoBot.Migrations
b.ToTable("WaifuInfo"); b.ToTable("WaifuInfo");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.WaifuUpdate", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WaifuUpdate", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -1198,7 +1198,7 @@ namespace NadekoBot.Migrations
b.ToTable("WaifuUpdates"); b.ToTable("WaifuUpdates");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Warning", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Warning", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -1222,7 +1222,7 @@ namespace NadekoBot.Migrations
b.ToTable("Warnings"); b.ToTable("Warnings");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.WarningPunishment", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WarningPunishment", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -1244,270 +1244,270 @@ namespace NadekoBot.Migrations
b.ToTable("WarningPunishment"); b.ToTable("WarningPunishment");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiRaidSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiRaidSetting", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig", "GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig", "GuildConfig")
.WithOne("AntiRaidSetting") .WithOne("AntiRaidSetting")
.HasForeignKey("NadekoBot.Services.Database.Models.AntiRaidSetting", "GuildConfigId") .HasForeignKey("NadekoBot.Core.Services.Database.Models.AntiRaidSetting", "GuildConfigId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiSpamIgnore", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamIgnore", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.AntiSpamSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.AntiSpamSetting")
.WithMany("IgnoredChannels") .WithMany("IgnoredChannels")
.HasForeignKey("AntiSpamSettingId"); .HasForeignKey("AntiSpamSettingId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiSpamSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamSetting", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig", "GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig", "GuildConfig")
.WithOne("AntiSpamSetting") .WithOne("AntiSpamSetting")
.HasForeignKey("NadekoBot.Services.Database.Models.AntiSpamSetting", "GuildConfigId") .HasForeignKey("NadekoBot.Core.Services.Database.Models.AntiSpamSetting", "GuildConfigId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.BlacklistItem", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlacklistItem", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("Blacklist") .WithMany("Blacklist")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashCaller", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashCaller", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.ClashWar", "ClashWar") b.HasOne("NadekoBot.Core.Services.Database.Models.ClashWar", "ClashWar")
.WithMany("Bases") .WithMany("Bases")
.HasForeignKey("ClashWarId") .HasForeignKey("ClashWarId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandAlias", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandAlias", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("CommandAliases") .WithMany("CommandAliases")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandCooldown", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandCooldown", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("CommandCooldowns") .WithMany("CommandCooldowns")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandPrice", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandPrice", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("CommandPrices") .WithMany("CommandPrices")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.EightBallResponse", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("EightBallResponses") .WithMany("EightBallResponses")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilterChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilterInvitesChannelIds") .WithMany("FilterInvitesChannelIds")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilterWordsChannelIds") .WithMany("FilterWordsChannelIds")
.HasForeignKey("GuildConfigId1"); .HasForeignKey("GuildConfigId1");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilteredWord", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilteredWord", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilteredWords") .WithMany("FilteredWords")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FollowedStream", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FollowedStream", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FollowedStreams") .WithMany("FollowedStreams")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GCChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GCChannelId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("GenerateCurrencyChannelIds") .WithMany("GenerateCurrencyChannelIds")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildConfig", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany() .WithMany()
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
b.HasOne("NadekoBot.Services.Database.Models.Permission", "RootPermission") b.HasOne("NadekoBot.Core.Services.Database.Models.Permission", "RootPermission")
.WithMany() .WithMany()
.HasForeignKey("RootPermissionId"); .HasForeignKey("RootPermissionId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildRepeater", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildRepeater", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("GuildRepeaters") .WithMany("GuildRepeaters")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredLogChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredLogChannel", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany("IgnoredChannels") .WithMany("IgnoredChannels")
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredVoicePresenceChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany("IgnoredVoicePresenceChannelIds") .WithMany("IgnoredVoicePresenceChannelIds")
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ModulePrefix", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ModulePrefix", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("ModulePrefixes") .WithMany("ModulePrefixes")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.MutedUserId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MutedUserId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("MutedUsers") .WithMany("MutedUsers")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permission", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.Permission", "Next") b.HasOne("NadekoBot.Core.Services.Database.Models.Permission", "Next")
.WithOne("Previous") .WithOne("Previous")
.HasForeignKey("NadekoBot.Services.Database.Models.Permission", "NextId"); .HasForeignKey("NadekoBot.Core.Services.Database.Models.Permission", "NextId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permissionv2", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permissionv2", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("Permissions") .WithMany("Permissions")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlayingStatus", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlayingStatus", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("RotatingStatusMessages") .WithMany("RotatingStatusMessages")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlaylistSong", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.MusicPlaylist") b.HasOne("NadekoBot.Core.Services.Database.Models.MusicPlaylist")
.WithMany("Songs") .WithMany("Songs")
.HasForeignKey("MusicPlaylistId") .HasForeignKey("MusicPlaylistId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.RaceAnimal", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("RaceAnimals") .WithMany("RaceAnimals")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ShopEntry", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ShopEntry", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("ShopEntries") .WithMany("ShopEntries")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ShopEntryItem", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ShopEntryItem", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.ShopEntry") b.HasOne("NadekoBot.Core.Services.Database.Models.ShopEntry")
.WithMany("Items") .WithMany("Items")
.HasForeignKey("ShopEntryId"); .HasForeignKey("ShopEntryId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.SlowmodeIgnoredRole", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.SlowmodeIgnoredRole", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("SlowmodeIgnoredRoles") .WithMany("SlowmodeIgnoredRoles")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.SlowmodeIgnoredUser", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.SlowmodeIgnoredUser", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("SlowmodeIgnoredUsers") .WithMany("SlowmodeIgnoredUsers")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.StartupCommand", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.StartupCommand", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("StartupCommands") .WithMany("StartupCommands")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.UnmuteTimer", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.UnmuteTimer", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("UnmuteTimers") .WithMany("UnmuteTimers")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.VcRoleInfo", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.VcRoleInfo", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("VcRoleInfos") .WithMany("VcRoleInfos")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.WaifuInfo", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WaifuInfo", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "Affinity") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "Affinity")
.WithMany() .WithMany()
.HasForeignKey("AffinityId"); .HasForeignKey("AffinityId");
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "Claimer") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "Claimer")
.WithMany() .WithMany()
.HasForeignKey("ClaimerId"); .HasForeignKey("ClaimerId");
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "Waifu") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "Waifu")
.WithOne() .WithOne()
.HasForeignKey("NadekoBot.Services.Database.Models.WaifuInfo", "WaifuId") .HasForeignKey("NadekoBot.Core.Services.Database.Models.WaifuInfo", "WaifuId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.WaifuUpdate", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WaifuUpdate", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "New") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "New")
.WithMany() .WithMany()
.HasForeignKey("NewId"); .HasForeignKey("NewId");
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "Old") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "Old")
.WithMany() .WithMany()
.HasForeignKey("OldId"); .HasForeignKey("OldId");
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "User") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "User")
.WithMany() .WithMany()
.HasForeignKey("UserId") .HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.WarningPunishment", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WarningPunishment", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("WarnPunishments") .WithMany("WarnPunishments")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });

View File

@ -3,7 +3,7 @@ using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Migrations;
using NadekoBot.Services.Database; using NadekoBot.Core.Services.Database;
namespace NadekoBot.Migrations namespace NadekoBot.Migrations
{ {
@ -16,7 +16,7 @@ namespace NadekoBot.Migrations
modelBuilder modelBuilder
.HasAnnotation("ProductVersion", "1.1.0-rtm-22752"); .HasAnnotation("ProductVersion", "1.1.0-rtm-22752");
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiRaidSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiRaidSetting", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -39,7 +39,7 @@ namespace NadekoBot.Migrations
b.ToTable("AntiRaidSetting"); b.ToTable("AntiRaidSetting");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiSpamIgnore", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamIgnore", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -57,7 +57,7 @@ namespace NadekoBot.Migrations
b.ToTable("AntiSpamIgnore"); b.ToTable("AntiSpamIgnore");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiSpamSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamSetting", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -78,7 +78,7 @@ namespace NadekoBot.Migrations
b.ToTable("AntiSpamSetting"); b.ToTable("AntiSpamSetting");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.BlacklistItem", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlacklistItem", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -98,7 +98,7 @@ namespace NadekoBot.Migrations
b.ToTable("BlacklistItem"); b.ToTable("BlacklistItem");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.BotConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BotConfig", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -156,7 +156,7 @@ namespace NadekoBot.Migrations
b.ToTable("BotConfig"); b.ToTable("BotConfig");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashCaller", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashCaller", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -182,7 +182,7 @@ namespace NadekoBot.Migrations
b.ToTable("ClashCallers"); b.ToTable("ClashCallers");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashWar", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashWar", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -206,7 +206,7 @@ namespace NadekoBot.Migrations
b.ToTable("ClashOfClans"); b.ToTable("ClashOfClans");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandAlias", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandAlias", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -226,7 +226,7 @@ namespace NadekoBot.Migrations
b.ToTable("CommandAlias"); b.ToTable("CommandAlias");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandCooldown", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandCooldown", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -246,7 +246,7 @@ namespace NadekoBot.Migrations
b.ToTable("CommandCooldown"); b.ToTable("CommandCooldown");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandPrice", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandPrice", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -269,7 +269,7 @@ namespace NadekoBot.Migrations
b.ToTable("CommandPrice"); b.ToTable("CommandPrice");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ConvertUnit", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ConvertUnit", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -287,7 +287,7 @@ namespace NadekoBot.Migrations
b.ToTable("ConversionUnits"); b.ToTable("ConversionUnits");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Currency", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Currency", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -306,7 +306,7 @@ namespace NadekoBot.Migrations
b.ToTable("Currency"); b.ToTable("Currency");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CurrencyTransaction", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CurrencyTransaction", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -324,7 +324,7 @@ namespace NadekoBot.Migrations
b.ToTable("CurrencyTransactions"); b.ToTable("CurrencyTransactions");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CustomReaction", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CustomReaction", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -350,7 +350,7 @@ namespace NadekoBot.Migrations
b.ToTable("CustomReactions"); b.ToTable("CustomReactions");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.DiscordUser", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.DiscordUser", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -372,7 +372,7 @@ namespace NadekoBot.Migrations
b.ToTable("DiscordUser"); b.ToTable("DiscordUser");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Donator", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Donator", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -393,7 +393,7 @@ namespace NadekoBot.Migrations
b.ToTable("Donators"); b.ToTable("Donators");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.EightBallResponse", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -411,7 +411,7 @@ namespace NadekoBot.Migrations
b.ToTable("EightBallResponses"); b.ToTable("EightBallResponses");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilterChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -433,7 +433,7 @@ namespace NadekoBot.Migrations
b.ToTable("FilterChannelId"); b.ToTable("FilterChannelId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilteredWord", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilteredWord", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -451,7 +451,7 @@ namespace NadekoBot.Migrations
b.ToTable("FilteredWord"); b.ToTable("FilteredWord");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FollowedStream", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FollowedStream", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -475,7 +475,7 @@ namespace NadekoBot.Migrations
b.ToTable("FollowedStream"); b.ToTable("FollowedStream");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GCChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GCChannelId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -493,7 +493,7 @@ namespace NadekoBot.Migrations
b.ToTable("GCChannelId"); b.ToTable("GCChannelId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildConfig", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -574,7 +574,7 @@ namespace NadekoBot.Migrations
b.ToTable("GuildConfigs"); b.ToTable("GuildConfigs");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildRepeater", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildRepeater", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -598,7 +598,7 @@ namespace NadekoBot.Migrations
b.ToTable("GuildRepeater"); b.ToTable("GuildRepeater");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredLogChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredLogChannel", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -616,7 +616,7 @@ namespace NadekoBot.Migrations
b.ToTable("IgnoredLogChannels"); b.ToTable("IgnoredLogChannels");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredVoicePresenceChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -634,7 +634,7 @@ namespace NadekoBot.Migrations
b.ToTable("IgnoredVoicePresenceCHannels"); b.ToTable("IgnoredVoicePresenceCHannels");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.LogSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.LogSetting", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -708,7 +708,7 @@ namespace NadekoBot.Migrations
b.ToTable("LogSettings"); b.ToTable("LogSettings");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ModulePrefix", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ModulePrefix", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -728,7 +728,7 @@ namespace NadekoBot.Migrations
b.ToTable("ModulePrefixes"); b.ToTable("ModulePrefixes");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.MusicPlaylist", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MusicPlaylist", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -746,7 +746,7 @@ namespace NadekoBot.Migrations
b.ToTable("MusicPlaylists"); b.ToTable("MusicPlaylists");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.MutedUserId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MutedUserId", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -764,7 +764,7 @@ namespace NadekoBot.Migrations
b.ToTable("MutedUserId"); b.ToTable("MutedUserId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permission", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -791,7 +791,7 @@ namespace NadekoBot.Migrations
b.ToTable("Permission"); b.ToTable("Permission");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permissionv2", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permissionv2", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -819,7 +819,7 @@ namespace NadekoBot.Migrations
b.ToTable("Permissionv2"); b.ToTable("Permissionv2");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlayingStatus", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlayingStatus", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -837,7 +837,7 @@ namespace NadekoBot.Migrations
b.ToTable("PlayingStatus"); b.ToTable("PlayingStatus");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlaylistSong", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -863,7 +863,7 @@ namespace NadekoBot.Migrations
b.ToTable("PlaylistSong"); b.ToTable("PlaylistSong");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Quote", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Quote", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -888,7 +888,7 @@ namespace NadekoBot.Migrations
b.ToTable("Quotes"); b.ToTable("Quotes");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.RaceAnimal", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -908,7 +908,7 @@ namespace NadekoBot.Migrations
b.ToTable("RaceAnimals"); b.ToTable("RaceAnimals");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Reminder", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Reminder", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -932,7 +932,7 @@ namespace NadekoBot.Migrations
b.ToTable("Reminders"); b.ToTable("Reminders");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.RewardedUser", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RewardedUser", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -953,7 +953,7 @@ namespace NadekoBot.Migrations
b.ToTable("RewardedUsers"); b.ToTable("RewardedUsers");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.SelfAssignedRole", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.SelfAssignedRole", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -972,7 +972,7 @@ namespace NadekoBot.Migrations
b.ToTable("SelfAssignableRoles"); b.ToTable("SelfAssignableRoles");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ShopEntry", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ShopEntry", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -1002,7 +1002,7 @@ namespace NadekoBot.Migrations
b.ToTable("ShopEntry"); b.ToTable("ShopEntry");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ShopEntryItem", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ShopEntryItem", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -1020,7 +1020,7 @@ namespace NadekoBot.Migrations
b.ToTable("ShopEntryItem"); b.ToTable("ShopEntryItem");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.SlowmodeIgnoredRole", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.SlowmodeIgnoredRole", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -1038,7 +1038,7 @@ namespace NadekoBot.Migrations
b.ToTable("SlowmodeIgnoredRole"); b.ToTable("SlowmodeIgnoredRole");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.SlowmodeIgnoredUser", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.SlowmodeIgnoredUser", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -1056,7 +1056,7 @@ namespace NadekoBot.Migrations
b.ToTable("SlowmodeIgnoredUser"); b.ToTable("SlowmodeIgnoredUser");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.StartupCommand", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.StartupCommand", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -1088,7 +1088,7 @@ namespace NadekoBot.Migrations
b.ToTable("StartupCommand"); b.ToTable("StartupCommand");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.UnmuteTimer", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.UnmuteTimer", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -1108,7 +1108,7 @@ namespace NadekoBot.Migrations
b.ToTable("UnmuteTimer"); b.ToTable("UnmuteTimer");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.UserPokeTypes", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.UserPokeTypes", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -1127,7 +1127,7 @@ namespace NadekoBot.Migrations
b.ToTable("PokeGame"); b.ToTable("PokeGame");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.VcRoleInfo", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.VcRoleInfo", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -1147,7 +1147,7 @@ namespace NadekoBot.Migrations
b.ToTable("VcRoleInfo"); b.ToTable("VcRoleInfo");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.WaifuInfo", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WaifuInfo", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -1174,7 +1174,7 @@ namespace NadekoBot.Migrations
b.ToTable("WaifuInfo"); b.ToTable("WaifuInfo");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.WaifuUpdate", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WaifuUpdate", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -1200,7 +1200,7 @@ namespace NadekoBot.Migrations
b.ToTable("WaifuUpdates"); b.ToTable("WaifuUpdates");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Warning", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Warning", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -1224,7 +1224,7 @@ namespace NadekoBot.Migrations
b.ToTable("Warnings"); b.ToTable("Warnings");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.WarningPunishment", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WarningPunishment", b =>
{ {
b.Property<int>("Id") b.Property<int>("Id")
.ValueGeneratedOnAdd(); .ValueGeneratedOnAdd();
@ -1246,270 +1246,270 @@ namespace NadekoBot.Migrations
b.ToTable("WarningPunishment"); b.ToTable("WarningPunishment");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiRaidSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiRaidSetting", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig", "GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig", "GuildConfig")
.WithOne("AntiRaidSetting") .WithOne("AntiRaidSetting")
.HasForeignKey("NadekoBot.Services.Database.Models.AntiRaidSetting", "GuildConfigId") .HasForeignKey("NadekoBot.Core.Services.Database.Models.AntiRaidSetting", "GuildConfigId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiSpamIgnore", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamIgnore", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.AntiSpamSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.AntiSpamSetting")
.WithMany("IgnoredChannels") .WithMany("IgnoredChannels")
.HasForeignKey("AntiSpamSettingId"); .HasForeignKey("AntiSpamSettingId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.AntiSpamSetting", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.AntiSpamSetting", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig", "GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig", "GuildConfig")
.WithOne("AntiSpamSetting") .WithOne("AntiSpamSetting")
.HasForeignKey("NadekoBot.Services.Database.Models.AntiSpamSetting", "GuildConfigId") .HasForeignKey("NadekoBot.Core.Services.Database.Models.AntiSpamSetting", "GuildConfigId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.BlacklistItem", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.BlacklistItem", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("Blacklist") .WithMany("Blacklist")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ClashCaller", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ClashCaller", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.ClashWar", "ClashWar") b.HasOne("NadekoBot.Core.Services.Database.Models.ClashWar", "ClashWar")
.WithMany("Bases") .WithMany("Bases")
.HasForeignKey("ClashWarId") .HasForeignKey("ClashWarId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandAlias", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandAlias", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("CommandAliases") .WithMany("CommandAliases")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandCooldown", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandCooldown", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("CommandCooldowns") .WithMany("CommandCooldowns")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.CommandPrice", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.CommandPrice", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("CommandPrices") .WithMany("CommandPrices")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.EightBallResponse", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.EightBallResponse", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("EightBallResponses") .WithMany("EightBallResponses")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilterChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilterChannelId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilterInvitesChannelIds") .WithMany("FilterInvitesChannelIds")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilterWordsChannelIds") .WithMany("FilterWordsChannelIds")
.HasForeignKey("GuildConfigId1"); .HasForeignKey("GuildConfigId1");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FilteredWord", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FilteredWord", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FilteredWords") .WithMany("FilteredWords")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.FollowedStream", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.FollowedStream", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("FollowedStreams") .WithMany("FollowedStreams")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GCChannelId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GCChannelId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("GenerateCurrencyChannelIds") .WithMany("GenerateCurrencyChannelIds")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildConfig", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildConfig", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany() .WithMany()
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
b.HasOne("NadekoBot.Services.Database.Models.Permission", "RootPermission") b.HasOne("NadekoBot.Core.Services.Database.Models.Permission", "RootPermission")
.WithMany() .WithMany()
.HasForeignKey("RootPermissionId"); .HasForeignKey("RootPermissionId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.GuildRepeater", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.GuildRepeater", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("GuildRepeaters") .WithMany("GuildRepeaters")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredLogChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredLogChannel", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany("IgnoredChannels") .WithMany("IgnoredChannels")
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.IgnoredVoicePresenceChannel", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.IgnoredVoicePresenceChannel", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.LogSetting", "LogSetting") b.HasOne("NadekoBot.Core.Services.Database.Models.LogSetting", "LogSetting")
.WithMany("IgnoredVoicePresenceChannelIds") .WithMany("IgnoredVoicePresenceChannelIds")
.HasForeignKey("LogSettingId"); .HasForeignKey("LogSettingId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ModulePrefix", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ModulePrefix", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("ModulePrefixes") .WithMany("ModulePrefixes")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.MutedUserId", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.MutedUserId", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("MutedUsers") .WithMany("MutedUsers")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permission", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permission", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.Permission", "Next") b.HasOne("NadekoBot.Core.Services.Database.Models.Permission", "Next")
.WithOne("Previous") .WithOne("Previous")
.HasForeignKey("NadekoBot.Services.Database.Models.Permission", "NextId"); .HasForeignKey("NadekoBot.Core.Services.Database.Models.Permission", "NextId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.Permissionv2", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.Permissionv2", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("Permissions") .WithMany("Permissions")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlayingStatus", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlayingStatus", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("RotatingStatusMessages") .WithMany("RotatingStatusMessages")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.PlaylistSong", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.PlaylistSong", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.MusicPlaylist") b.HasOne("NadekoBot.Core.Services.Database.Models.MusicPlaylist")
.WithMany("Songs") .WithMany("Songs")
.HasForeignKey("MusicPlaylistId") .HasForeignKey("MusicPlaylistId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.RaceAnimal", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.RaceAnimal", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("RaceAnimals") .WithMany("RaceAnimals")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ShopEntry", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ShopEntry", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("ShopEntries") .WithMany("ShopEntries")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.ShopEntryItem", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.ShopEntryItem", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.ShopEntry") b.HasOne("NadekoBot.Core.Services.Database.Models.ShopEntry")
.WithMany("Items") .WithMany("Items")
.HasForeignKey("ShopEntryId"); .HasForeignKey("ShopEntryId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.SlowmodeIgnoredRole", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.SlowmodeIgnoredRole", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("SlowmodeIgnoredRoles") .WithMany("SlowmodeIgnoredRoles")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.SlowmodeIgnoredUser", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.SlowmodeIgnoredUser", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("SlowmodeIgnoredUsers") .WithMany("SlowmodeIgnoredUsers")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.StartupCommand", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.StartupCommand", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.BotConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.BotConfig")
.WithMany("StartupCommands") .WithMany("StartupCommands")
.HasForeignKey("BotConfigId"); .HasForeignKey("BotConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.UnmuteTimer", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.UnmuteTimer", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("UnmuteTimers") .WithMany("UnmuteTimers")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.VcRoleInfo", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.VcRoleInfo", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("VcRoleInfos") .WithMany("VcRoleInfos")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.WaifuInfo", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WaifuInfo", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "Affinity") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "Affinity")
.WithMany() .WithMany()
.HasForeignKey("AffinityId"); .HasForeignKey("AffinityId");
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "Claimer") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "Claimer")
.WithMany() .WithMany()
.HasForeignKey("ClaimerId"); .HasForeignKey("ClaimerId");
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "Waifu") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "Waifu")
.WithOne() .WithOne()
.HasForeignKey("NadekoBot.Services.Database.Models.WaifuInfo", "WaifuId") .HasForeignKey("NadekoBot.Core.Services.Database.Models.WaifuInfo", "WaifuId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.WaifuUpdate", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WaifuUpdate", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "New") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "New")
.WithMany() .WithMany()
.HasForeignKey("NewId"); .HasForeignKey("NewId");
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "Old") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "Old")
.WithMany() .WithMany()
.HasForeignKey("OldId"); .HasForeignKey("OldId");
b.HasOne("NadekoBot.Services.Database.Models.DiscordUser", "User") b.HasOne("NadekoBot.Core.Services.Database.Models.DiscordUser", "User")
.WithMany() .WithMany()
.HasForeignKey("UserId") .HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade); .OnDelete(DeleteBehavior.Cascade);
}); });
modelBuilder.Entity("NadekoBot.Services.Database.Models.WarningPunishment", b => modelBuilder.Entity("NadekoBot.Core.Services.Database.Models.WarningPunishment", b =>
{ {
b.HasOne("NadekoBot.Services.Database.Models.GuildConfig") b.HasOne("NadekoBot.Core.Services.Database.Models.GuildConfig")
.WithMany("WarnPunishments") .WithMany("WarnPunishments")
.HasForeignKey("GuildConfigId"); .HasForeignKey("GuildConfigId");
}); });

Some files were not shown because too many files have changed in this diff Show More