From 812b865addb94cb3923084bf6fe7bd9a5abf6928 Mon Sep 17 00:00:00 2001 From: Kwoth Date: Sat, 27 Apr 2024 16:03:48 +0000 Subject: [PATCH] Fixed some aliases and reworked namespaces --- CHANGELOG.md | 18 +- NadekoBot.sln | 9 +- src/NadekoBot/migrate.ps1 => migrate.ps1 | 0 ...move-migration.ps1 => remove-migration.ps1 | 0 src/NadekoBot.Tests/IndexedCollectionTests.cs | 2 +- src/NadekoBot.Tests/NadekoBot.Tests.csproj | 7 +- src/NadekoBot/Bot.cs | 23 +- .../CurrencyTransactionExtensions.cs | 2 +- src/NadekoBot/Db/Extensions/DbExtensions.cs | 2 +- .../Db/Extensions/GuildConfigExtensions.cs | 2 - .../Extensions/NadekoExpressionExtensions.cs | 2 +- .../Db/Extensions/QuoteExtensions.cs | 2 +- .../Db/Extensions/ReminderExtensions.cs | 2 +- .../SelfAssignableRolesExtensions.cs | 2 +- .../Db/Extensions/UserXpExtensions.cs | 2 +- .../Db/Extensions/WarningExtensions.cs | 2 +- src/NadekoBot/Db/Helpers/ActivityType.cs | 22 +- src/NadekoBot/Db/Helpers/GuildPerm.cs | 2 +- src/NadekoBot/Db/Models/AutoCommand.cs | 2 +- src/NadekoBot/Db/Models/AutoPublishChannel.cs | 2 - .../Db/Models/AutoTranslateChannel.cs | 2 +- src/NadekoBot/Db/Models/AutoTranslateUser.cs | 2 +- src/NadekoBot/Db/Models/BlacklistEntry.cs | 2 +- src/NadekoBot/Db/Models/CommandAlias.cs | 2 +- src/NadekoBot/Db/Models/CommandCooldown.cs | 2 +- .../Db/Models/CurrencyTransaction.cs | 2 +- src/NadekoBot/Db/Models/DbEntity.cs | 2 +- src/NadekoBot/Db/Models/DelMsgOnCmdChannel.cs | 2 +- src/NadekoBot/Db/Models/DiscordPemOverride.cs | 4 +- src/NadekoBot/Db/Models/DiscordUser.cs | 2 - src/NadekoBot/Db/Models/Event.cs | 2 +- src/NadekoBot/Db/Models/FeedSub.cs | 2 +- src/NadekoBot/Db/Models/FollowedStream.cs | 2 - src/NadekoBot/Db/Models/GCChannelId.cs | 2 +- src/NadekoBot/Db/Models/GamblingStats.cs | 2 +- src/NadekoBot/Db/Models/GroupName.cs | 2 +- src/NadekoBot/Db/Models/GuildConfig.cs | 4 +- src/NadekoBot/Db/Models/IgnoredLogItem.cs | 2 +- .../Db/Models/IgnoredVoicePresenceChannel.cs | 2 +- src/NadekoBot/Db/Models/ImageOnlyChannel.cs | 2 +- src/NadekoBot/Db/Models/LogSetting.cs | 2 +- src/NadekoBot/Db/Models/Permission.cs | 2 +- src/NadekoBot/Db/Models/PlantedCurrency.cs | 2 +- src/NadekoBot/Db/Models/PlaylistSong.cs | 2 +- src/NadekoBot/Db/Models/Reminder.cs | 2 +- src/NadekoBot/Db/Models/Repeater.cs | 2 +- .../Db/Models/RotatingPlayingStatus.cs | 6 +- src/NadekoBot/Db/Models/ShopEntry.cs | 2 +- .../Db/Models/StreamOnlineMessage.cs | 2 - src/NadekoBot/Db/Models/StreamRoleSettings.cs | 2 +- src/NadekoBot/Db/Models/VcRoleInfo.cs | 2 +- src/NadekoBot/Db/Models/Waifu.cs | 1 - .../Db/Models/anti/AntiAltSetting.cs | 2 +- .../Db/Models/anti/AntiRaidSetting.cs | 2 +- .../Db/Models/anti/AntiSpamIgnore.cs | 2 +- .../Db/Models/anti/AntiSpamSetting.cs | 2 +- src/NadekoBot/Db/Models/club/ClubInfo.cs | 1 - src/NadekoBot/Db/Models/currency/BankUser.cs | 4 +- .../Db/Models/expr/NadekoExpression.cs | 2 +- src/NadekoBot/Db/Models/expr/Quote.cs | 2 +- .../Db/Models/filter/FilterChannelId.cs | 2 +- .../Db/Models/filter/FilterLinksChannelId.cs | 2 +- .../Db/Models/filter/FilteredWord.cs | 2 +- src/NadekoBot/Db/Models/punish/BanTemplate.cs | 2 +- src/NadekoBot/Db/Models/punish/MutedUserId.cs | 2 +- .../Db/Models/punish/PunishmentAction.cs | 2 +- .../Db/Models/punish/WarnExpireAction.cs | 2 +- src/NadekoBot/Db/Models/punish/Warning.cs | 2 +- .../Db/Models/punish/WarningPunishment.cs | 2 +- src/NadekoBot/Db/Models/roles/ReactionRole.cs | 2 +- .../Db/Models/roles/SelfAssignableRole.cs | 2 +- src/NadekoBot/Db/Models/roles/StickyRoles.cs | 2 +- .../Db/Models/slowmode/SlowmodeIgnoredRole.cs | 2 +- .../Db/Models/slowmode/SlowmodeIgnoredUser.cs | 2 +- .../Db/Models/support/RewardedUser.cs | 2 +- src/NadekoBot/Db/Models/untimer/UnbanTimer.cs | 2 +- .../Db/Models/untimer/UnmuteTimer.cs | 2 +- .../Db/Models/untimer/UnroleTimer.cs | 2 +- src/NadekoBot/Db/Models/xp/UserXpStats.cs | 2 +- src/NadekoBot/Db/Models/xp/XpSettings.cs | 2 +- src/NadekoBot/Db/MysqlContext.cs | 2 +- src/NadekoBot/Db/NadekoContext.cs | 3 +- src/NadekoBot/Db/NadekoDbService.cs | 2 +- src/NadekoBot/Db/PostgreSqlContext.cs | 2 +- src/NadekoBot/Db/SqliteContext.cs | 2 +- .../20221122204432_feed-text.Designer.cs | 2 +- .../Mysql/20221122204432_feed-text.cs | 3 +- ...813113816_timely-reminder-type.Designer.cs | 2 +- ...0903153202_clubinfo-name-index.Designer.cs | 2 +- .../20240423140608_shopcommands.Designer.cs | 328 ++++++++--------- .../20240423153724_sticky-roles.Designer.cs | 330 +++++++++--------- .../Mysql/20240423153724_sticky-roles.cs | 3 +- .../Mysql/20240424203922_giveaway.Designer.cs | 330 +++++++++--------- .../Mysql/20240424203922_giveaway.cs | 3 +- .../Mysql/20240425132907_todolist.Designer.cs | 330 +++++++++--------- .../Mysql/20240425132907_todolist.cs | 3 +- .../Mysql/MysqlContextModelSnapshot.cs | 330 +++++++++--------- .../20221122204423_feed-text.Designer.cs | 2 +- .../Postgresql/20221122204423_feed-text.cs | 3 +- ...813113832_timely-reminder-type.Designer.cs | 2 +- ...0903154851_clubinfo-name-index.Designer.cs | 2 +- .../20240423140552_shopcommands.Designer.cs | 328 ++++++++--------- .../20240423153717_sticky-roles.Designer.cs | 330 +++++++++--------- .../Postgresql/20240423153717_sticky-roles.cs | 3 +- .../20240424203915_giveaway.Designer.cs | 330 +++++++++--------- .../Postgresql/20240424203915_giveaway.cs | 3 +- .../20240425132901_todolist.Designer.cs | 330 +++++++++--------- .../Postgresql/20240425132901_todolist.cs | 3 +- .../PostgreSqlContextModelSnapshot.cs | 330 +++++++++--------- .../20221122204324_feed-text.Designer.cs | 2 +- .../Sqlite/20221122204324_feed-text.cs | 3 +- ...813110732_timely-reminder-type.Designer.cs | 2 +- ...0903153230_clubinfo-name-index.Designer.cs | 2 +- .../20240423113453_shopcommands.Designer.cs | 328 ++++++++--------- .../20240423153708_sticky-roles.Designer.cs | 330 +++++++++--------- .../Sqlite/20240423153708_sticky-roles.cs | 3 +- .../20240424203909_giveaway.Designer.cs | 330 +++++++++--------- .../Sqlite/20240424203909_giveaway.cs | 3 +- .../20240425132855_todolist.Designer.cs | 330 +++++++++--------- .../Sqlite/20240425132855_todolist.cs | 3 +- .../Sqlite/SqliteContextModelSnapshot.cs | 330 +++++++++--------- .../Modules/Administration/Administration.cs | 2 +- .../Administration/AdministrationService.cs | 3 +- .../AutoAssignRoleService.cs | 2 +- .../DangerousCommands/DangerousCommands.cs | 222 +++++++----- .../DangerousCommandsService.cs | 1 - .../Administration/GreetBye/GreetService.cs | 3 +- .../Administration/GreetBye/GreetSettings.cs | 2 +- .../Administration/ImageOnlyChannelService.cs | 2 +- .../Administration/LocalizationCommands.cs | 2 +- .../Administration/Mute/MuteService.cs | 2 +- .../PlayingRotate/PlayingRotateService.cs | 5 +- .../Protection/ProtectionCommands.cs | 2 +- .../Protection/ProtectionService.cs | 2 +- .../Protection/ProtectionStats.cs | 2 +- .../Protection/PunishQueueItem.cs | 2 +- .../Role/IReactionRoleService.cs | 2 +- .../Role/ReactionRolesService.cs | 2 +- .../Administration/Role/RoleCommands.cs | 1 - .../Administration/Role/StickyRolesService.cs | 2 +- .../Administration/Self/SelfCommands.cs | 5 +- .../Administration/Self/SelfService.cs | 3 +- .../SelfAssignedRolesService.cs | 2 +- .../ServerLog/DummyLogCommandService.cs | 2 +- .../ServerLog/ServerLogCommandService.cs | 2 +- .../ServerLog/ServerLogCommands.cs | 4 +- .../Timezone/GuildTimezoneService.cs | 2 +- .../UserPunish/UserPunishCommands.cs | 2 +- .../UserPunish/UserPunishService.cs | 3 +- .../Administration/VcRole/VcRoleCommands.cs | 2 +- .../Administration/VcRole/VcRoleService.cs | 2 +- .../{ => Modules}/Expressions/ExportedExpr.cs | 2 +- .../{ => Modules}/Expressions/ExprField.cs | 0 .../Expressions/NadekoExpressionExtensions.cs | 3 +- .../Expressions/NadekoExpressions.cs | 4 +- .../Expressions/NadekoExpressionsService.cs | 5 +- .../TypeReaders/CommandOrExprTypeReader.cs | 1 - .../Gambling/BlackJack/BlackJackCommands.cs | 2 +- .../Modules/Gambling/CleanupCommands.cs | 39 --- .../Gambling/Connect4/Connect4Commands.cs | 2 +- .../Modules/Gambling/CurrencyProvider.cs | 3 +- .../Gambling/DiceRoll/DiceRollCommands.cs | 4 +- .../Gambling/Events/CurrencyEventsCommands.cs | 2 +- .../Gambling/Events/CurrencyEventsService.cs | 2 +- .../Gambling/Events/GameStatusEvent.cs | 2 +- .../Modules/Gambling/Events/ReactionEvent.cs | 2 +- .../Gambling/FlipCoin/FlipCoinCommands.cs | 2 +- src/NadekoBot/Modules/Gambling/Gambling.cs | 9 +- .../Modules/Gambling/GamblingService.cs | 1 - .../Gambling/GamblingTopLevelModule.cs | 1 - .../Gambling/PlantPick/PlantPickService.cs | 2 +- .../Modules/Gambling/Shop/IShopService.cs | 2 +- .../Modules/Gambling/Shop/ShopCommands.cs | 4 +- .../Modules/Gambling/Shop/ShopService.cs | 2 +- .../Gambling/Waifus/WaifuClaimCommands.cs | 4 +- .../Modules/Gambling/Waifus/WaifuService.cs | 1 - .../Modules/Gambling/Waifus/db/Waifu.cs | 4 +- .../Gambling/Waifus/db/WaifuExtensions.cs | 2 - .../Modules/Gambling/Waifus/db/WaifuItem.cs | 2 +- .../Gambling/Waifus/db/WaifuLbResult.cs | 2 +- .../Modules/Gambling/Waifus/db/WaifuUpdate.cs | 4 +- .../Gambling/Waifus/db/WaifuUpdateType.cs | 2 +- .../_common/GamblingCleanupService.cs | 32 +- .../_common/IGamblingCleanupService.cs | 2 +- .../Games/Acrophobia/AcropobiaCommands.cs | 8 +- .../Games/ChatterBot/ChatterbotService.cs | 1 - .../Games/ChatterBot/CleverBotCommands.cs | 2 +- src/NadekoBot/Modules/Games/Games.cs | 3 +- .../Modules/Games/Hangman/HangmanCommands.cs | 2 +- .../Games/SpeedTyping/SpeedTypingCommands.cs | 2 +- src/NadekoBot/Modules/Games/Trivia/Games.cs | 10 +- src/NadekoBot/Modules/Help/Help.cs | 5 +- src/NadekoBot/Modules/Help/HelpService.cs | 1 - src/NadekoBot/Modules/Medusae/Medusa.cs | 6 +- .../Modules/Music/CleanupCommands.cs | 24 -- src/NadekoBot/Modules/Music/Music.cs | 4 +- .../Modules/Music/PlaylistCommands.cs | 24 +- .../Modules/Music/Services/IMusicService.cs | 2 +- .../Modules/Music/Services/MusicService.cs | 2 +- .../Modules/Music/_common/IMusicPlayer.cs | 2 +- .../Modules/Music/_common/Impl/MusicPlayer.cs | 2 +- .../Modules/Music/_common/Impl/MusicQueue.cs | 4 +- .../db/MusicPlayerSettingsExtensions.cs | 2 +- .../Modules/Music/_common/db/MusicPlaylist.cs | 2 +- .../_common/db/MusicPlaylistExtensions.cs | 2 +- .../Modules/Music/_common/db/MusicSettings.cs | 2 +- .../Patronage/CurrencyRewardService.cs | 2 +- .../Modules/Patronage/PatronageCommands.cs | 2 +- .../Modules/Patronage/PatronageService.cs | 4 +- .../Blacklist/BlacklistCommands.cs | 2 +- .../CommandCooldown/CmdCdsCommands.cs | 2 +- .../Permissions/Filter/FilterCommands.cs | 4 +- .../Permissions/Filter/FilterService.cs | 2 +- .../GlobalPermissionCommands.cs | 2 +- .../Modules/Permissions/PermissionCache.cs | 2 +- .../Permissions/PermissionExtensions.cs | 2 +- .../Modules/Permissions/Permissions.cs | 4 +- .../Modules/Permissions/PermissionsService.cs | 2 +- .../Searches/Anime/AnimeSearchCommands.cs | 8 +- .../Modules/Searches/Crypto/CryptoCommands.cs | 2 +- .../Modules/Searches/Feeds/FeedCommands.cs | 2 +- .../Modules/Searches/Feeds/FeedsService.cs | 2 +- src/NadekoBot/Modules/Searches/OsuCommands.cs | 6 +- .../Modules/Searches/PathOfExileCommands.cs | 10 +- .../Modules/Searches/PlaceCommands.cs | 71 ---- .../Modules/Searches/PokemonSearchCommands.cs | 4 +- .../Modules/Searches/Search/SearchCommands.cs | 6 +- src/NadekoBot/Modules/Searches/Searches.cs | 16 +- .../Modules/Searches/SearchesService.cs | 3 - .../StreamNotificationCommands.cs | 2 +- .../StreamNotificationService.cs | 2 - .../Searches/Translate/TranslateService.cs | 2 +- .../Searches/Translate/TranslatorCommands.cs | 4 +- .../Modules/Searches/XkcdCommands.cs | 4 +- .../Modules/Searches/_common/AtlExtensions.cs | 2 +- .../Modules/Utility/Alias/AliasCommands.cs | 2 +- .../Modules/Utility/Alias/AliasService.cs | 2 +- .../Modules/Utility/ConfigCommands.cs | 12 +- .../Utility/Giveaway/GiveawayCommands.cs | 4 +- .../Modules/Utility/Info/InfoCommands.cs | 10 +- .../Modules/Utility/Quote/QuoteCommands.cs | 7 +- .../Modules/Utility/Quote/QuoteService.cs | 2 +- .../Modules/Utility/Remind/RemindCommands.cs | 4 +- .../Modules/Utility/Remind/RemindService.cs | 2 +- .../Utility/Repeater/RepeatCommands.cs | 9 +- .../Utility/Repeater/RepeaterService.cs | 3 +- .../Utility/Repeater/RunningRepeater.cs | 2 +- .../Utility/StreamRole/StreamRoleService.cs | 2 +- .../UnitConversion/UnitConversionCommands.cs | 2 +- src/NadekoBot/Modules/Utility/Utility.cs | 216 ++++++------ src/NadekoBot/Modules/Xp/CleanupCommands.cs | 19 - src/NadekoBot/Modules/Xp/Club/Club.cs | 6 +- src/NadekoBot/Modules/Xp/Xp.cs | 7 +- src/NadekoBot/Modules/Xp/XpService.cs | 1 - .../Modules/Xp/_common/Extensions.cs | 7 - .../Modules/Xp/_common/FullUserStats.cs | 1 - .../Modules/Xp/_common/XpCleanupService.cs | 1 - .../Modules/Xp/_common/db/XpShopOwnedItem.cs | 2 - src/NadekoBot/NadekoBot.csproj | 3 +- src/NadekoBot/Services/Impl/Localization.cs | 2 +- .../Extensions/StringExtensions.cs | 2 - .../_common/Abstractions/Helpers/LogSetup.cs | 1 - .../_common/Abstractions/QueueRunner.cs | 1 - .../_common/{_common => }/AddRemove.cs | 0 .../_common/{_common => }/CmdStrings.cs | 0 .../_common/{_common => }/CommandData.cs | 0 src/NadekoBot/_common/DbService.cs | 4 +- .../_common/{_common => }/DownloadTracker.cs | 0 src/NadekoBot/_common/Gambling/Rps/RpsGame.cs | 8 +- .../_common/{_common => }/Helpers.cs | 0 src/NadekoBot/_common/IBot.cs | 2 +- .../_common/IDiscordPermOverrideService.cs | 2 +- src/NadekoBot/_common/ILogCommandService.cs | 2 +- src/NadekoBot/_common/IPermissionChecker.cs | 4 +- .../_common/{_common => }/ImageUrls.cs | 0 .../JsonConverters/CultureInfoConverter.cs | 0 .../JsonConverters/Rgba32Converter.cs | 0 src/NadekoBot/_common/{_common => }/LbOpts.cs | 0 .../{_common => }/Linq2DbExpressions.cs | 0 .../{_common => }/LoginErrorHandler.cs | 0 .../Common}/Adapters/BehaviorAdapter.cs | 0 .../Common}/Adapters/ContextAdapterFactory.cs | 0 .../Common}/Adapters/DmContextAdapter.cs | 0 .../Medusa/Common}/Adapters/FilterAdapter.cs | 0 .../Common}/Adapters/GuildContextAdapter.cs | 0 .../Common}/Adapters/ParamParserAdapter.cs | 0 .../Medusa/Common}/CommandContextType.cs | 0 .../Common}/Config/IMedusaConfigService.cs | 0 .../Medusa/Common}/Config/MedusaConfig.cs | 0 .../Common}/Config/MedusaConfigService.cs | 0 .../Common}/MedusaAssemblyLoadContext.cs | 0 .../Medusa/Common}/MedusaIoCKernelModule.cs | 0 .../Medusa/Common}/MedusaLoaderService.cs | 0 .../Medusa/Common}/Models/ParamData.cs | 0 .../Medusa/Common}/Models/ResolvedMedusa.cs | 0 .../Medusa/Common}/Models/SnekCommandData.cs | 0 .../Medusa/Common}/Models/SnekData.cs | 0 .../Medusa/Common}/RemovablePlanner.cs | 0 src/NadekoBot/_common/NadekoModule.cs | 15 +- .../_common/{_common => }/OldCreds.cs | 0 .../_common/{_common => }/OptionsParser.cs | 0 .../{_common => }/Pokemon/PokemonNameId.cs | 0 .../{_common => }/Pokemon/SearchPokemon.cs | 0 .../Pokemon/SearchPokemonAbility.cs | 0 ...RequireObjectPropertiesContractResolver.cs | 0 .../_common/ServiceCollectionExtensions.cs | 2 +- .../Services/Currency/DefaultWallet.cs | 1 - .../Services/Currency/GamblingTxTracker.cs | 2 +- .../_common/Services/IRemindService.cs | 2 +- .../_common/Services/Impl/BlacklistService.cs | 2 - .../Impl/DiscordPermOverrideService.cs | 8 +- .../_common/Services/Impl/StatsService.cs | 2 +- .../{_common => }/TriviaQuestionModel.cs | 0 .../TypeReaders/EmoteTypeReader.cs | 0 .../TypeReaders/GuildTypeReader.cs | 0 .../TypeReaders/GuildUserTypeReader.cs | 0 .../TypeReaders/KwumTypeReader.cs | 0 .../TypeReaders/Models/PermissionAction.cs | 0 .../TypeReaders/Models/StoopidTime.cs | 0 .../TypeReaders/ModuleTypeReader.cs | 0 .../TypeReaders/PermissionActionTypeReader.cs | 0 .../TypeReaders/Rgba32TypeReader.cs | 0 .../TypeReaders/StoopidTimeTypeReader.cs | 0 .../DbExtensions.cs | 0 .../_Extensions/IMessageChannelExtensions.cs | 107 +++--- .../ImagesharpExtensions.cs | 0 src/NadekoBot/data/aliases.yml | 13 +- .../CloseCodes.cs | 0 .../LibOpus.cs | 0 .../LibSodium.cs | 0 .../Models/SelectProtocol.cs | 0 .../Models/VoiceHello.cs | 0 .../Models/VoiceIdentify.cs | 0 .../Models/VoicePayload.cs | 0 .../Models/VoiceReady.cs | 0 .../Models/VoiceResume.cs | 0 .../Models/VoiceSessionDescription.cs | 0 .../Models/VoiceSpeaking.cs | 0 .../NadekoBot.Voice.csproj} | 1 + .../PoopyBufferImmortalized.cs | 0 .../SocketClient.cs | 0 .../SongBuffer.cs | 0 .../VoiceClient.cs | 0 .../VoiceGateway.cs | 0 344 files changed, 3166 insertions(+), 3314 deletions(-) rename src/NadekoBot/migrate.ps1 => migrate.ps1 (100%) rename src/NadekoBot/remove-migration.ps1 => remove-migration.ps1 (100%) rename src/NadekoBot/{ => Modules}/Expressions/ExportedExpr.cs (96%) rename src/NadekoBot/{ => Modules}/Expressions/ExprField.cs (100%) rename src/NadekoBot/{ => Modules}/Expressions/NadekoExpressionExtensions.cs (98%) rename src/NadekoBot/{ => Modules}/Expressions/NadekoExpressions.cs (99%) rename src/NadekoBot/{ => Modules}/Expressions/NadekoExpressionsService.cs (99%) rename src/NadekoBot/{ => Modules}/Expressions/TypeReaders/CommandOrExprTypeReader.cs (98%) delete mode 100644 src/NadekoBot/Modules/Gambling/CleanupCommands.cs delete mode 100644 src/NadekoBot/Modules/Music/CleanupCommands.cs delete mode 100644 src/NadekoBot/Modules/Searches/PlaceCommands.cs delete mode 100644 src/NadekoBot/Modules/Xp/CleanupCommands.cs delete mode 100644 src/NadekoBot/Modules/Xp/_common/Extensions.cs rename src/NadekoBot/_common/{_common => }/AddRemove.cs (100%) rename src/NadekoBot/_common/{_common => }/CmdStrings.cs (100%) rename src/NadekoBot/_common/{_common => }/CommandData.cs (100%) rename src/NadekoBot/_common/{_common => }/DownloadTracker.cs (100%) rename src/NadekoBot/_common/{_common => }/Helpers.cs (100%) rename src/NadekoBot/_common/{_common => }/ImageUrls.cs (100%) rename src/NadekoBot/_common/{_common => }/JsonConverters/CultureInfoConverter.cs (100%) rename src/NadekoBot/_common/{_common => }/JsonConverters/Rgba32Converter.cs (100%) rename src/NadekoBot/_common/{_common => }/LbOpts.cs (100%) rename src/NadekoBot/_common/{_common => }/Linq2DbExpressions.cs (100%) rename src/NadekoBot/_common/{_common => }/LoginErrorHandler.cs (100%) rename src/NadekoBot/{Medusa => _common/Medusa/Common}/Adapters/BehaviorAdapter.cs (100%) rename src/NadekoBot/{Medusa => _common/Medusa/Common}/Adapters/ContextAdapterFactory.cs (100%) rename src/NadekoBot/{Medusa => _common/Medusa/Common}/Adapters/DmContextAdapter.cs (100%) rename src/NadekoBot/{Medusa => _common/Medusa/Common}/Adapters/FilterAdapter.cs (100%) rename src/NadekoBot/{Medusa => _common/Medusa/Common}/Adapters/GuildContextAdapter.cs (100%) rename src/NadekoBot/{Medusa => _common/Medusa/Common}/Adapters/ParamParserAdapter.cs (100%) rename src/NadekoBot/{Medusa => _common/Medusa/Common}/CommandContextType.cs (100%) rename src/NadekoBot/{Medusa => _common/Medusa/Common}/Config/IMedusaConfigService.cs (100%) rename src/NadekoBot/{Medusa => _common/Medusa/Common}/Config/MedusaConfig.cs (100%) rename src/NadekoBot/{Medusa => _common/Medusa/Common}/Config/MedusaConfigService.cs (100%) rename src/NadekoBot/{Medusa => _common/Medusa/Common}/MedusaAssemblyLoadContext.cs (100%) rename src/NadekoBot/{Medusa => _common/Medusa/Common}/MedusaIoCKernelModule.cs (100%) rename src/NadekoBot/{Medusa => _common/Medusa/Common}/MedusaLoaderService.cs (100%) rename src/NadekoBot/{Medusa => _common/Medusa/Common}/Models/ParamData.cs (100%) rename src/NadekoBot/{Medusa => _common/Medusa/Common}/Models/ResolvedMedusa.cs (100%) rename src/NadekoBot/{Medusa => _common/Medusa/Common}/Models/SnekCommandData.cs (100%) rename src/NadekoBot/{Medusa => _common/Medusa/Common}/Models/SnekData.cs (100%) rename src/NadekoBot/{Medusa => _common/Medusa/Common}/RemovablePlanner.cs (100%) rename src/NadekoBot/_common/{_common => }/OldCreds.cs (100%) rename src/NadekoBot/_common/{_common => }/OptionsParser.cs (100%) rename src/NadekoBot/_common/{_common => }/Pokemon/PokemonNameId.cs (100%) rename src/NadekoBot/_common/{_common => }/Pokemon/SearchPokemon.cs (100%) rename src/NadekoBot/_common/{_common => }/Pokemon/SearchPokemonAbility.cs (100%) rename src/NadekoBot/_common/{_common => }/RequireObjectPropertiesContractResolver.cs (100%) rename src/NadekoBot/_common/{_common => }/TriviaQuestionModel.cs (100%) rename src/NadekoBot/_common/{_common => }/TypeReaders/EmoteTypeReader.cs (100%) rename src/NadekoBot/_common/{_common => }/TypeReaders/GuildTypeReader.cs (100%) rename src/NadekoBot/_common/{_common => }/TypeReaders/GuildUserTypeReader.cs (100%) rename src/NadekoBot/_common/{_common => }/TypeReaders/KwumTypeReader.cs (100%) rename src/NadekoBot/_common/{_common => }/TypeReaders/Models/PermissionAction.cs (100%) rename src/NadekoBot/_common/{_common => }/TypeReaders/Models/StoopidTime.cs (100%) rename src/NadekoBot/_common/{_common => }/TypeReaders/ModuleTypeReader.cs (100%) rename src/NadekoBot/_common/{_common => }/TypeReaders/PermissionActionTypeReader.cs (100%) rename src/NadekoBot/_common/{_common => }/TypeReaders/Rgba32TypeReader.cs (100%) rename src/NadekoBot/_common/{_common => }/TypeReaders/StoopidTimeTypeReader.cs (100%) rename src/NadekoBot/_common/{Extensions => _Extensions}/DbExtensions.cs (100%) rename src/NadekoBot/_common/{Extensions => _Extensions}/ImagesharpExtensions.cs (100%) rename src/ayu/{Ayu.Discord.Voice => NadekoBot.Voice}/CloseCodes.cs (100%) rename src/ayu/{Ayu.Discord.Voice => NadekoBot.Voice}/LibOpus.cs (100%) rename src/ayu/{Ayu.Discord.Voice => NadekoBot.Voice}/LibSodium.cs (100%) rename src/ayu/{Ayu.Discord.Voice => NadekoBot.Voice}/Models/SelectProtocol.cs (100%) rename src/ayu/{Ayu.Discord.Voice => NadekoBot.Voice}/Models/VoiceHello.cs (100%) rename src/ayu/{Ayu.Discord.Voice => NadekoBot.Voice}/Models/VoiceIdentify.cs (100%) rename src/ayu/{Ayu.Discord.Voice => NadekoBot.Voice}/Models/VoicePayload.cs (100%) rename src/ayu/{Ayu.Discord.Voice => NadekoBot.Voice}/Models/VoiceReady.cs (100%) rename src/ayu/{Ayu.Discord.Voice => NadekoBot.Voice}/Models/VoiceResume.cs (100%) rename src/ayu/{Ayu.Discord.Voice => NadekoBot.Voice}/Models/VoiceSessionDescription.cs (100%) rename src/ayu/{Ayu.Discord.Voice => NadekoBot.Voice}/Models/VoiceSpeaking.cs (100%) rename src/ayu/{Ayu.Discord.Voice/Ayu.Discord.Voice.csproj => NadekoBot.Voice/NadekoBot.Voice.csproj} (90%) rename src/ayu/{Ayu.Discord.Voice => NadekoBot.Voice}/PoopyBufferImmortalized.cs (100%) rename src/ayu/{Ayu.Discord.Voice => NadekoBot.Voice}/SocketClient.cs (100%) rename src/ayu/{Ayu.Discord.Voice => NadekoBot.Voice}/SongBuffer.cs (100%) rename src/ayu/{Ayu.Discord.Voice => NadekoBot.Voice}/VoiceClient.cs (100%) rename src/ayu/{Ayu.Discord.Voice => NadekoBot.Voice}/VoiceGateway.cs (100%) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7a47a0b2c..2843dd24a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,9 +6,9 @@ Experimental changelog. Mostly based on [keepachangelog](https://keepachangelog. ### Added -- `.shopadd command` You can now sell commands in the shop. The command will execute as if you were the one running it when someone buys it +- Added `.shopadd command` You can now sell commands in the shop. The command will execute as if you were the one running it when someone buys it - type `.h .shopadd` for more info -- `.stickyroles` Users leaving the server will have their roles saved to the database and reapplied if they rejoin within 30 days. +- Added `.stickyroles` Users leaving the server will have their roles saved to the database and reapplied if they rejoin within 30 days. - Giveaway commands - `.ga start` starts the giveway with the specified duration and message (prize). You may have up to 5 giveaways on the server at once - `.ga end ` prematurely ends the giveaway and selects a winner @@ -16,20 +16,22 @@ Experimental changelog. Mostly based on [keepachangelog](https://keepachangelog. - `.ga list` lists active giveaways on the current server - `.ga reroll ` rerolls the winner on the completed giveaway. This only works for 24 hours after the giveaway has ended, or until the bot restarts. - After the giveaway has started, user join the giveaway by adding a :tada: reaction -- Selfhosters - Added `.sqlselectcsv` which will return results in a csv file instead of an embed. -- Todo Commands +- Added Todo Commands - `.todo add ` - adds a new todo - `.todo delete ` - deletes a todo item - `.todo done ` - completes a todo (marks it with a checkmark) - `.todo list` - lists all todos - `.todo edit ` - edits a todo item message - - Todo archive commands + - In addition to that, there are also Todo archive commands - `.todo archive add ` - adds all current todos (completed and not completed) to the archived list, your current todo list will become cleared - `.todo archive list` - lists all your archived todo lists - `.todo archive show ` - shows the todo items from one of your archived lists - `.todo archive delete ` - deletes and archived todo list -- `.queufairplay` / `.qfp` (music feature) re-added but it works differently +- Added `.queufairplay` / `.qfp` (music feature) re-added but it works differently - Once you run it, it will reorganize currently queued songs so that they're in a fair order. It has no effect on any subsequently queued songs +- Added `.clubrename` command to uh rename your club +- For self-hosters: + - Added `.sqlselectcsv` which will return results in a csv file instead of an embed. ### Changed @@ -37,11 +39,13 @@ Experimental changelog. Mostly based on [keepachangelog](https://keepachangelog. - You can now target a different channel with .repeat, for example `.repeat #some-other 1h Hello every hour` - `.cmds ` looks better / simpler - Cleanup: Removed a lot of obsolete aliases. - +- The bot will now send a discord Reply to every command +- A lot of code cleanup (still a lot to be done) and Quality of Life improvements ### Fixed - `.feed` should now correctly accept (and show) the message which can be passed as the third parameter +- `.say` will now correctly report errors if the user or the bot don't have sufficent perms to send a message in the targeted channel ### Removed diff --git a/NadekoBot.sln b/NadekoBot.sln index e4b9f37cd..a1f592b19 100644 --- a/NadekoBot.sln +++ b/NadekoBot.sln @@ -13,13 +13,13 @@ ProjectSection(SolutionItems) = preProject .gitlab-ci.yml = .gitlab-ci.yml Dockerfile = Dockerfile NuGet.Config = NuGet.Config + migrate.ps1 = migrate.ps1 + remove-migration.ps1 = remove-migration.ps1 EndProjectSection EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NadekoBot", "src\NadekoBot\NadekoBot.csproj", "{45EC1473-C678-4857-A544-07DFE0D0B478}" EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ayu", "ayu", "{6058FEDF-A318-4CD4-8F04-A7E8E7EC8874}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Ayu.Discord.Voice", "src\ayu\Ayu.Discord.Voice\Ayu.Discord.Voice.csproj", "{2F4CF6D6-0C2F-4944-B204-9508CDA53195}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NadekoBot.Voice", "src\ayu\NadekoBot.Voice\NadekoBot.Voice.csproj", "{2F4CF6D6-0C2F-4944-B204-9508CDA53195}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NadekoBot.Tests", "src\NadekoBot.Tests\NadekoBot.Tests.csproj", "{DB448DD4-C97F-40E9-8BD3-F605FF1FF833}" EndProject @@ -86,13 +86,12 @@ Global EndGlobalSection GlobalSection(NestedProjects) = preSolution {45EC1473-C678-4857-A544-07DFE0D0B478} = {04929013-5BAB-42B0-B9B2-8F2BB8F16AF2} - {6058FEDF-A318-4CD4-8F04-A7E8E7EC8874} = {04929013-5BAB-42B0-B9B2-8F2BB8F16AF2} - {2F4CF6D6-0C2F-4944-B204-9508CDA53195} = {6058FEDF-A318-4CD4-8F04-A7E8E7EC8874} {DB448DD4-C97F-40E9-8BD3-F605FF1FF833} = {04929013-5BAB-42B0-B9B2-8F2BB8F16AF2} {AE9B7F8C-81D7-4401-83A3-643B38258374} = {04929013-5BAB-42B0-B9B2-8F2BB8F16AF2} {3BC82CFE-BEE7-451F-986B-17EDD1570C4F} = {04929013-5BAB-42B0-B9B2-8F2BB8F16AF2} {E685977E-31A4-46F4-A5D7-4E3E39E82E43} = {04929013-5BAB-42B0-B9B2-8F2BB8F16AF2} {92770AF3-83EE-49F1-A0BB-79124D19A13D} = {04929013-5BAB-42B0-B9B2-8F2BB8F16AF2} + {2F4CF6D6-0C2F-4944-B204-9508CDA53195} = {04929013-5BAB-42B0-B9B2-8F2BB8F16AF2} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {5F3F555C-855F-4BE8-B526-D062D3E8ACA4} diff --git a/src/NadekoBot/migrate.ps1 b/migrate.ps1 similarity index 100% rename from src/NadekoBot/migrate.ps1 rename to migrate.ps1 diff --git a/src/NadekoBot/remove-migration.ps1 b/remove-migration.ps1 similarity index 100% rename from src/NadekoBot/remove-migration.ps1 rename to remove-migration.ps1 diff --git a/src/NadekoBot.Tests/IndexedCollectionTests.cs b/src/NadekoBot.Tests/IndexedCollectionTests.cs index d04455a17..bd7cf9b03 100644 --- a/src/NadekoBot.Tests/IndexedCollectionTests.cs +++ b/src/NadekoBot.Tests/IndexedCollectionTests.cs @@ -1,5 +1,5 @@ using Nadeko.Common; -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; using NUnit.Framework; using System; using System.Collections.Generic; diff --git a/src/NadekoBot.Tests/NadekoBot.Tests.csproj b/src/NadekoBot.Tests/NadekoBot.Tests.csproj index ef939e05c..c30364183 100644 --- a/src/NadekoBot.Tests/NadekoBot.Tests.csproj +++ b/src/NadekoBot.Tests/NadekoBot.Tests.csproj @@ -6,11 +6,12 @@ - - - + + + + diff --git a/src/NadekoBot/Bot.cs b/src/NadekoBot/Bot.cs index 73c3b04f0..6ce435b95 100644 --- a/src/NadekoBot/Bot.cs +++ b/src/NadekoBot/Bot.cs @@ -1,22 +1,10 @@ #nullable disable using Microsoft.Extensions.Caching.Memory; using Microsoft.Extensions.DependencyInjection; -using Nadeko.Bot.Db; +using NadekoBot.Db; using NadekoBot.Common.Configs; using NadekoBot.Common.ModuleBehaviors; -using NadekoBot.Db; -using NadekoBot.Modules.Administration; -using NadekoBot.Modules.Gambling; -using NadekoBot.Modules.Help; -using NadekoBot.Modules.Music; -using NadekoBot.Modules.NadekoExpressions; -using NadekoBot.Modules.Patronage; -using NadekoBot.Modules.Permissions; -using NadekoBot.Modules.Searches; -using NadekoBot.Modules.Utility; -using NadekoBot.Modules.Xp; - -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; using Ninject; using Ninject.Planning; using System.Collections.Immutable; @@ -98,12 +86,6 @@ public sealed class Bot : IBot _loadedAssemblies = new[] { typeof(Bot).Assembly, // bot - typeof(Creds).Assembly, // bot.common - - // modules - typeof(NadekoExpressions).Assembly, typeof(Administration).Assembly, typeof(Gambling).Assembly, - typeof(Help).Assembly, typeof(Music).Assembly, typeof(Patronage).Assembly, typeof(Permissions).Assembly, - typeof(Searches).Assembly, typeof(Utility).Assembly, typeof(Xp).Assembly, }; } @@ -145,6 +127,7 @@ public sealed class Bot : IBot svcs.AddSingleton(); svcs.AddSingleton(new MemoryCache(new MemoryCacheOptions())); svcs.AddSingleton(); + svcs.AddSingleton(); foreach (var a in _loadedAssemblies) diff --git a/src/NadekoBot/Db/Extensions/CurrencyTransactionExtensions.cs b/src/NadekoBot/Db/Extensions/CurrencyTransactionExtensions.cs index 42d978de1..ea4fe06ba 100644 --- a/src/NadekoBot/Db/Extensions/CurrencyTransactionExtensions.cs +++ b/src/NadekoBot/Db/Extensions/CurrencyTransactionExtensions.cs @@ -1,7 +1,7 @@ #nullable disable using LinqToDB.EntityFrameworkCore; using Microsoft.EntityFrameworkCore; -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; namespace NadekoBot.Db; diff --git a/src/NadekoBot/Db/Extensions/DbExtensions.cs b/src/NadekoBot/Db/Extensions/DbExtensions.cs index da70d6625..146cb5cc3 100644 --- a/src/NadekoBot/Db/Extensions/DbExtensions.cs +++ b/src/NadekoBot/Db/Extensions/DbExtensions.cs @@ -1,6 +1,6 @@ #nullable disable using Microsoft.EntityFrameworkCore; -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; namespace NadekoBot.Db; diff --git a/src/NadekoBot/Db/Extensions/GuildConfigExtensions.cs b/src/NadekoBot/Db/Extensions/GuildConfigExtensions.cs index 4fdf46385..db6b3f734 100644 --- a/src/NadekoBot/Db/Extensions/GuildConfigExtensions.cs +++ b/src/NadekoBot/Db/Extensions/GuildConfigExtensions.cs @@ -2,8 +2,6 @@ using Microsoft.EntityFrameworkCore; using NadekoBot.Db.Models; -using Nadeko.Bot.Db.Models; - namespace NadekoBot.Db; public static class GuildConfigExtensions diff --git a/src/NadekoBot/Db/Extensions/NadekoExpressionExtensions.cs b/src/NadekoBot/Db/Extensions/NadekoExpressionExtensions.cs index a2a8e0757..2f645218b 100644 --- a/src/NadekoBot/Db/Extensions/NadekoExpressionExtensions.cs +++ b/src/NadekoBot/Db/Extensions/NadekoExpressionExtensions.cs @@ -1,7 +1,7 @@ #nullable disable using LinqToDB; using Microsoft.EntityFrameworkCore; -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; namespace NadekoBot.Db; diff --git a/src/NadekoBot/Db/Extensions/QuoteExtensions.cs b/src/NadekoBot/Db/Extensions/QuoteExtensions.cs index b54880c5d..7d5a19025 100644 --- a/src/NadekoBot/Db/Extensions/QuoteExtensions.cs +++ b/src/NadekoBot/Db/Extensions/QuoteExtensions.cs @@ -1,6 +1,6 @@ #nullable disable using Microsoft.EntityFrameworkCore; -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; namespace NadekoBot.Db; diff --git a/src/NadekoBot/Db/Extensions/ReminderExtensions.cs b/src/NadekoBot/Db/Extensions/ReminderExtensions.cs index ccdd13c30..767b69969 100644 --- a/src/NadekoBot/Db/Extensions/ReminderExtensions.cs +++ b/src/NadekoBot/Db/Extensions/ReminderExtensions.cs @@ -1,6 +1,6 @@ #nullable disable using Microsoft.EntityFrameworkCore; -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; namespace NadekoBot.Db; diff --git a/src/NadekoBot/Db/Extensions/SelfAssignableRolesExtensions.cs b/src/NadekoBot/Db/Extensions/SelfAssignableRolesExtensions.cs index 06d7e6a5f..61ccb3777 100644 --- a/src/NadekoBot/Db/Extensions/SelfAssignableRolesExtensions.cs +++ b/src/NadekoBot/Db/Extensions/SelfAssignableRolesExtensions.cs @@ -1,6 +1,6 @@ #nullable disable using Microsoft.EntityFrameworkCore; -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; namespace NadekoBot.Db; diff --git a/src/NadekoBot/Db/Extensions/UserXpExtensions.cs b/src/NadekoBot/Db/Extensions/UserXpExtensions.cs index b5cb8048e..53e03117b 100644 --- a/src/NadekoBot/Db/Extensions/UserXpExtensions.cs +++ b/src/NadekoBot/Db/Extensions/UserXpExtensions.cs @@ -3,7 +3,7 @@ using LinqToDB; using LinqToDB.EntityFrameworkCore; using Microsoft.EntityFrameworkCore; -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; namespace NadekoBot.Db; diff --git a/src/NadekoBot/Db/Extensions/WarningExtensions.cs b/src/NadekoBot/Db/Extensions/WarningExtensions.cs index 2c6ac33c3..20d8c1338 100644 --- a/src/NadekoBot/Db/Extensions/WarningExtensions.cs +++ b/src/NadekoBot/Db/Extensions/WarningExtensions.cs @@ -1,6 +1,6 @@ #nullable disable using Microsoft.EntityFrameworkCore; -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; namespace NadekoBot.Db; diff --git a/src/NadekoBot/Db/Helpers/ActivityType.cs b/src/NadekoBot/Db/Helpers/ActivityType.cs index fc40d6e9e..1d33044e7 100644 --- a/src/NadekoBot/Db/Helpers/ActivityType.cs +++ b/src/NadekoBot/Db/Helpers/ActivityType.cs @@ -1,6 +1,22 @@ -namespace Nadeko.Bot.Db; +namespace NadekoBot.Db; -public enum ActivityType +public enum DbActivityType { - + /// The user is playing a game. + Playing, + + /// The user is streaming online. + Streaming, + + /// The user is listening to a song. + Listening, + + /// The user is watching some form of media. + Watching, + + /// The user has set a custom status. + CustomStatus, + + /// The user is competing in a game. + Competing, } \ No newline at end of file diff --git a/src/NadekoBot/Db/Helpers/GuildPerm.cs b/src/NadekoBot/Db/Helpers/GuildPerm.cs index f95de33a7..39d6ee09f 100644 --- a/src/NadekoBot/Db/Helpers/GuildPerm.cs +++ b/src/NadekoBot/Db/Helpers/GuildPerm.cs @@ -1,4 +1,4 @@ -namespace Nadeko.Bot.Db; +namespace NadekoBot.Db; [Flags] public enum GuildPerm : ulong diff --git a/src/NadekoBot/Db/Models/AutoCommand.cs b/src/NadekoBot/Db/Models/AutoCommand.cs index e980d83e3..d14868040 100644 --- a/src/NadekoBot/Db/Models/AutoCommand.cs +++ b/src/NadekoBot/Db/Models/AutoCommand.cs @@ -1,5 +1,5 @@ #nullable disable -namespace Nadeko.Bot.Db.Models; +namespace NadekoBot.Db.Models; public class AutoCommand : DbEntity { diff --git a/src/NadekoBot/Db/Models/AutoPublishChannel.cs b/src/NadekoBot/Db/Models/AutoPublishChannel.cs index 2dd130e0a..b158aebd0 100644 --- a/src/NadekoBot/Db/Models/AutoPublishChannel.cs +++ b/src/NadekoBot/Db/Models/AutoPublishChannel.cs @@ -1,5 +1,3 @@ -using Nadeko.Bot.Db.Models; - namespace NadekoBot.Db.Models; public class AutoPublishChannel : DbEntity diff --git a/src/NadekoBot/Db/Models/AutoTranslateChannel.cs b/src/NadekoBot/Db/Models/AutoTranslateChannel.cs index 800832141..6da0bf9c9 100644 --- a/src/NadekoBot/Db/Models/AutoTranslateChannel.cs +++ b/src/NadekoBot/Db/Models/AutoTranslateChannel.cs @@ -1,5 +1,5 @@ #nullable disable -namespace Nadeko.Bot.Db.Models; +namespace NadekoBot.Db.Models; public class AutoTranslateChannel : DbEntity { diff --git a/src/NadekoBot/Db/Models/AutoTranslateUser.cs b/src/NadekoBot/Db/Models/AutoTranslateUser.cs index 314db8279..b0bef7ae7 100644 --- a/src/NadekoBot/Db/Models/AutoTranslateUser.cs +++ b/src/NadekoBot/Db/Models/AutoTranslateUser.cs @@ -1,5 +1,5 @@ #nullable disable -namespace Nadeko.Bot.Db.Models; +namespace NadekoBot.Db.Models; public class AutoTranslateUser : DbEntity { diff --git a/src/NadekoBot/Db/Models/BlacklistEntry.cs b/src/NadekoBot/Db/Models/BlacklistEntry.cs index 0200f7c6a..86ca73a3f 100644 --- a/src/NadekoBot/Db/Models/BlacklistEntry.cs +++ b/src/NadekoBot/Db/Models/BlacklistEntry.cs @@ -1,5 +1,5 @@ #nullable disable -namespace Nadeko.Bot.Db.Models; +namespace NadekoBot.Db.Models; public class BlacklistEntry : DbEntity { diff --git a/src/NadekoBot/Db/Models/CommandAlias.cs b/src/NadekoBot/Db/Models/CommandAlias.cs index a5640a0ee..833a85c5f 100644 --- a/src/NadekoBot/Db/Models/CommandAlias.cs +++ b/src/NadekoBot/Db/Models/CommandAlias.cs @@ -1,5 +1,5 @@ #nullable disable -namespace Nadeko.Bot.Db.Models; +namespace NadekoBot.Db.Models; public class CommandAlias : DbEntity { diff --git a/src/NadekoBot/Db/Models/CommandCooldown.cs b/src/NadekoBot/Db/Models/CommandCooldown.cs index ab55d59cc..17a608a55 100644 --- a/src/NadekoBot/Db/Models/CommandCooldown.cs +++ b/src/NadekoBot/Db/Models/CommandCooldown.cs @@ -1,5 +1,5 @@ #nullable disable -namespace Nadeko.Bot.Db.Models; +namespace NadekoBot.Db.Models; public class CommandCooldown : DbEntity { diff --git a/src/NadekoBot/Db/Models/CurrencyTransaction.cs b/src/NadekoBot/Db/Models/CurrencyTransaction.cs index a17ccf54a..534c149ca 100644 --- a/src/NadekoBot/Db/Models/CurrencyTransaction.cs +++ b/src/NadekoBot/Db/Models/CurrencyTransaction.cs @@ -1,5 +1,5 @@ #nullable disable -namespace Nadeko.Bot.Db.Models; +namespace NadekoBot.Db.Models; public class CurrencyTransaction : DbEntity { diff --git a/src/NadekoBot/Db/Models/DbEntity.cs b/src/NadekoBot/Db/Models/DbEntity.cs index e91a34313..1e3e9b46d 100644 --- a/src/NadekoBot/Db/Models/DbEntity.cs +++ b/src/NadekoBot/Db/Models/DbEntity.cs @@ -1,7 +1,7 @@ #nullable disable using System.ComponentModel.DataAnnotations; -namespace Nadeko.Bot.Db.Models; +namespace NadekoBot.Db.Models; public class DbEntity { diff --git a/src/NadekoBot/Db/Models/DelMsgOnCmdChannel.cs b/src/NadekoBot/Db/Models/DelMsgOnCmdChannel.cs index e5fd7f4f6..84205719a 100644 --- a/src/NadekoBot/Db/Models/DelMsgOnCmdChannel.cs +++ b/src/NadekoBot/Db/Models/DelMsgOnCmdChannel.cs @@ -1,5 +1,5 @@ #nullable disable -namespace Nadeko.Bot.Db.Models; +namespace NadekoBot.Db.Models; public class DelMsgOnCmdChannel : DbEntity { diff --git a/src/NadekoBot/Db/Models/DiscordPemOverride.cs b/src/NadekoBot/Db/Models/DiscordPemOverride.cs index 522685416..4bb6455c5 100644 --- a/src/NadekoBot/Db/Models/DiscordPemOverride.cs +++ b/src/NadekoBot/Db/Models/DiscordPemOverride.cs @@ -1,7 +1,5 @@ #nullable disable -using Nadeko.Bot.Db; - -namespace Nadeko.Bot.Db.Models; +namespace NadekoBot.Db.Models; public class DiscordPermOverride : DbEntity { diff --git a/src/NadekoBot/Db/Models/DiscordUser.cs b/src/NadekoBot/Db/Models/DiscordUser.cs index 3cfa73ec1..13230aee0 100644 --- a/src/NadekoBot/Db/Models/DiscordUser.cs +++ b/src/NadekoBot/Db/Models/DiscordUser.cs @@ -1,6 +1,4 @@ #nullable disable -using Nadeko.Bot.Db.Models; - namespace NadekoBot.Db.Models; diff --git a/src/NadekoBot/Db/Models/Event.cs b/src/NadekoBot/Db/Models/Event.cs index cfacf9ee8..1b2623e4b 100644 --- a/src/NadekoBot/Db/Models/Event.cs +++ b/src/NadekoBot/Db/Models/Event.cs @@ -1,5 +1,5 @@ #nullable disable -namespace Nadeko.Bot.Db.Models; +namespace NadekoBot.Db.Models; public class CurrencyEvent { diff --git a/src/NadekoBot/Db/Models/FeedSub.cs b/src/NadekoBot/Db/Models/FeedSub.cs index bd02e85f1..d2f9b1544 100644 --- a/src/NadekoBot/Db/Models/FeedSub.cs +++ b/src/NadekoBot/Db/Models/FeedSub.cs @@ -1,5 +1,5 @@ #nullable disable -namespace Nadeko.Bot.Db.Models; +namespace NadekoBot.Db.Models; public class FeedSub : DbEntity { diff --git a/src/NadekoBot/Db/Models/FollowedStream.cs b/src/NadekoBot/Db/Models/FollowedStream.cs index 6cc380132..8c01d9294 100644 --- a/src/NadekoBot/Db/Models/FollowedStream.cs +++ b/src/NadekoBot/Db/Models/FollowedStream.cs @@ -1,6 +1,4 @@ #nullable disable -using Nadeko.Bot.Db.Models; - namespace NadekoBot.Db.Models; public class FollowedStream : DbEntity diff --git a/src/NadekoBot/Db/Models/GCChannelId.cs b/src/NadekoBot/Db/Models/GCChannelId.cs index e86ccdeb1..4ef3c2b28 100644 --- a/src/NadekoBot/Db/Models/GCChannelId.cs +++ b/src/NadekoBot/Db/Models/GCChannelId.cs @@ -1,5 +1,5 @@ #nullable disable -namespace Nadeko.Bot.Db.Models; +namespace NadekoBot.Db.Models; public class GCChannelId : DbEntity { diff --git a/src/NadekoBot/Db/Models/GamblingStats.cs b/src/NadekoBot/Db/Models/GamblingStats.cs index 81da9ee80..7825434fa 100644 --- a/src/NadekoBot/Db/Models/GamblingStats.cs +++ b/src/NadekoBot/Db/Models/GamblingStats.cs @@ -1,5 +1,5 @@ #nullable disable -namespace Nadeko.Bot.Db.Models; +namespace NadekoBot.Db.Models; public class GamblingStats : DbEntity { diff --git a/src/NadekoBot/Db/Models/GroupName.cs b/src/NadekoBot/Db/Models/GroupName.cs index e69311bae..cee6d9e2b 100644 --- a/src/NadekoBot/Db/Models/GroupName.cs +++ b/src/NadekoBot/Db/Models/GroupName.cs @@ -1,5 +1,5 @@ #nullable disable -namespace Nadeko.Bot.Db.Models; +namespace NadekoBot.Db.Models; public class GroupName : DbEntity { diff --git a/src/NadekoBot/Db/Models/GuildConfig.cs b/src/NadekoBot/Db/Models/GuildConfig.cs index 0ab2aa02d..27501870a 100644 --- a/src/NadekoBot/Db/Models/GuildConfig.cs +++ b/src/NadekoBot/Db/Models/GuildConfig.cs @@ -1,7 +1,5 @@ #nullable disable -using NadekoBot.Db.Models; - -namespace Nadeko.Bot.Db.Models; +namespace NadekoBot.Db.Models; public class GuildConfig : DbEntity { diff --git a/src/NadekoBot/Db/Models/IgnoredLogItem.cs b/src/NadekoBot/Db/Models/IgnoredLogItem.cs index 3dc48194a..730ae350e 100644 --- a/src/NadekoBot/Db/Models/IgnoredLogItem.cs +++ b/src/NadekoBot/Db/Models/IgnoredLogItem.cs @@ -1,5 +1,5 @@ #nullable disable -namespace Nadeko.Bot.Db.Models; +namespace NadekoBot.Db.Models; public class IgnoredLogItem : DbEntity { diff --git a/src/NadekoBot/Db/Models/IgnoredVoicePresenceChannel.cs b/src/NadekoBot/Db/Models/IgnoredVoicePresenceChannel.cs index 4a949cfbb..a018b2af7 100644 --- a/src/NadekoBot/Db/Models/IgnoredVoicePresenceChannel.cs +++ b/src/NadekoBot/Db/Models/IgnoredVoicePresenceChannel.cs @@ -1,5 +1,5 @@ #nullable disable -namespace Nadeko.Bot.Db.Models; +namespace NadekoBot.Db.Models; public class IgnoredVoicePresenceChannel : DbEntity { diff --git a/src/NadekoBot/Db/Models/ImageOnlyChannel.cs b/src/NadekoBot/Db/Models/ImageOnlyChannel.cs index d02442ae9..5c6cae8c6 100644 --- a/src/NadekoBot/Db/Models/ImageOnlyChannel.cs +++ b/src/NadekoBot/Db/Models/ImageOnlyChannel.cs @@ -1,5 +1,5 @@ #nullable disable -namespace Nadeko.Bot.Db.Models; +namespace NadekoBot.Db.Models; public class ImageOnlyChannel : DbEntity { diff --git a/src/NadekoBot/Db/Models/LogSetting.cs b/src/NadekoBot/Db/Models/LogSetting.cs index b1613a249..c957a6873 100644 --- a/src/NadekoBot/Db/Models/LogSetting.cs +++ b/src/NadekoBot/Db/Models/LogSetting.cs @@ -1,5 +1,5 @@ #nullable disable -namespace Nadeko.Bot.Db.Models; +namespace NadekoBot.Db.Models; public class LogSetting : DbEntity { diff --git a/src/NadekoBot/Db/Models/Permission.cs b/src/NadekoBot/Db/Models/Permission.cs index 63c80d564..f6b36dbfd 100644 --- a/src/NadekoBot/Db/Models/Permission.cs +++ b/src/NadekoBot/Db/Models/Permission.cs @@ -2,7 +2,7 @@ using System.ComponentModel.DataAnnotations.Schema; using System.Diagnostics; -namespace Nadeko.Bot.Db.Models; +namespace NadekoBot.Db.Models; [DebuggerDisplay("{PrimaryTarget}{SecondaryTarget} {SecondaryTargetName} {State} {PrimaryTargetId}")] public class Permissionv2 : DbEntity, IIndexed diff --git a/src/NadekoBot/Db/Models/PlantedCurrency.cs b/src/NadekoBot/Db/Models/PlantedCurrency.cs index d571fb999..dc92ee416 100644 --- a/src/NadekoBot/Db/Models/PlantedCurrency.cs +++ b/src/NadekoBot/Db/Models/PlantedCurrency.cs @@ -1,5 +1,5 @@ #nullable disable -namespace Nadeko.Bot.Db.Models; +namespace NadekoBot.Db.Models; public class PlantedCurrency : DbEntity { diff --git a/src/NadekoBot/Db/Models/PlaylistSong.cs b/src/NadekoBot/Db/Models/PlaylistSong.cs index 94486a772..43f01f469 100644 --- a/src/NadekoBot/Db/Models/PlaylistSong.cs +++ b/src/NadekoBot/Db/Models/PlaylistSong.cs @@ -1,5 +1,5 @@ #nullable disable -namespace Nadeko.Bot.Db.Models; +namespace NadekoBot.Db.Models; public class PlaylistSong : DbEntity { diff --git a/src/NadekoBot/Db/Models/Reminder.cs b/src/NadekoBot/Db/Models/Reminder.cs index 0278f556f..8bd5d50a5 100644 --- a/src/NadekoBot/Db/Models/Reminder.cs +++ b/src/NadekoBot/Db/Models/Reminder.cs @@ -1,5 +1,5 @@ #nullable disable -namespace Nadeko.Bot.Db.Models; +namespace NadekoBot.Db.Models; public class Reminder : DbEntity { diff --git a/src/NadekoBot/Db/Models/Repeater.cs b/src/NadekoBot/Db/Models/Repeater.cs index ceb8cbaa0..451f1cf92 100644 --- a/src/NadekoBot/Db/Models/Repeater.cs +++ b/src/NadekoBot/Db/Models/Repeater.cs @@ -1,5 +1,5 @@ #nullable disable -namespace Nadeko.Bot.Db.Models; +namespace NadekoBot.Db.Models; public class Repeater { diff --git a/src/NadekoBot/Db/Models/RotatingPlayingStatus.cs b/src/NadekoBot/Db/Models/RotatingPlayingStatus.cs index 3da83dcce..e74cb3144 100644 --- a/src/NadekoBot/Db/Models/RotatingPlayingStatus.cs +++ b/src/NadekoBot/Db/Models/RotatingPlayingStatus.cs @@ -1,10 +1,8 @@ #nullable disable -using Nadeko.Bot.Db; - -namespace Nadeko.Bot.Db.Models; +namespace NadekoBot.Db.Models; public class RotatingPlayingStatus : DbEntity { public string Status { get; set; } - public ActivityType Type { get; set; } + public DbActivityType Type { get; set; } } \ No newline at end of file diff --git a/src/NadekoBot/Db/Models/ShopEntry.cs b/src/NadekoBot/Db/Models/ShopEntry.cs index 2e92e78ad..aef7677ef 100644 --- a/src/NadekoBot/Db/Models/ShopEntry.cs +++ b/src/NadekoBot/Db/Models/ShopEntry.cs @@ -1,5 +1,5 @@ #nullable disable -namespace Nadeko.Bot.Db.Models; +namespace NadekoBot.Db.Models; public enum ShopEntryType { diff --git a/src/NadekoBot/Db/Models/StreamOnlineMessage.cs b/src/NadekoBot/Db/Models/StreamOnlineMessage.cs index c7719356f..f5dff4450 100644 --- a/src/NadekoBot/Db/Models/StreamOnlineMessage.cs +++ b/src/NadekoBot/Db/Models/StreamOnlineMessage.cs @@ -1,6 +1,4 @@ #nullable disable -using Nadeko.Bot.Db.Models; - namespace NadekoBot.Db.Models; public class StreamOnlineMessage : DbEntity diff --git a/src/NadekoBot/Db/Models/StreamRoleSettings.cs b/src/NadekoBot/Db/Models/StreamRoleSettings.cs index 2ffd9e9a8..8510a7e6a 100644 --- a/src/NadekoBot/Db/Models/StreamRoleSettings.cs +++ b/src/NadekoBot/Db/Models/StreamRoleSettings.cs @@ -1,5 +1,5 @@ #nullable disable -namespace Nadeko.Bot.Db.Models; +namespace NadekoBot.Db.Models; public class StreamRoleSettings : DbEntity { diff --git a/src/NadekoBot/Db/Models/VcRoleInfo.cs b/src/NadekoBot/Db/Models/VcRoleInfo.cs index d1f5c93dd..3010f4eef 100644 --- a/src/NadekoBot/Db/Models/VcRoleInfo.cs +++ b/src/NadekoBot/Db/Models/VcRoleInfo.cs @@ -1,5 +1,5 @@ #nullable disable -namespace Nadeko.Bot.Db.Models; +namespace NadekoBot.Db.Models; public class VcRoleInfo : DbEntity { diff --git a/src/NadekoBot/Db/Models/Waifu.cs b/src/NadekoBot/Db/Models/Waifu.cs index 002f3151d..43a51dec7 100644 --- a/src/NadekoBot/Db/Models/Waifu.cs +++ b/src/NadekoBot/Db/Models/Waifu.cs @@ -1,5 +1,4 @@ #nullable disable -using Nadeko.Bot.Db.Models; using NadekoBot.Db.Models; namespace NadekoBot.Services.Database.Models; diff --git a/src/NadekoBot/Db/Models/anti/AntiAltSetting.cs b/src/NadekoBot/Db/Models/anti/AntiAltSetting.cs index cd6ee694d..378ef356a 100644 --- a/src/NadekoBot/Db/Models/anti/AntiAltSetting.cs +++ b/src/NadekoBot/Db/Models/anti/AntiAltSetting.cs @@ -1,4 +1,4 @@ -namespace Nadeko.Bot.Db.Models; +namespace NadekoBot.Db.Models; public class AntiAltSetting { diff --git a/src/NadekoBot/Db/Models/anti/AntiRaidSetting.cs b/src/NadekoBot/Db/Models/anti/AntiRaidSetting.cs index 2524ac533..92f17a6b8 100644 --- a/src/NadekoBot/Db/Models/anti/AntiRaidSetting.cs +++ b/src/NadekoBot/Db/Models/anti/AntiRaidSetting.cs @@ -1,5 +1,5 @@ #nullable disable -namespace Nadeko.Bot.Db.Models; +namespace NadekoBot.Db.Models; public class AntiRaidSetting : DbEntity diff --git a/src/NadekoBot/Db/Models/anti/AntiSpamIgnore.cs b/src/NadekoBot/Db/Models/anti/AntiSpamIgnore.cs index 845a3fe7f..cc3522b69 100644 --- a/src/NadekoBot/Db/Models/anti/AntiSpamIgnore.cs +++ b/src/NadekoBot/Db/Models/anti/AntiSpamIgnore.cs @@ -1,4 +1,4 @@ -namespace Nadeko.Bot.Db.Models; +namespace NadekoBot.Db.Models; public class AntiSpamIgnore : DbEntity { diff --git a/src/NadekoBot/Db/Models/anti/AntiSpamSetting.cs b/src/NadekoBot/Db/Models/anti/AntiSpamSetting.cs index 4d9d32f2b..a77c7297b 100644 --- a/src/NadekoBot/Db/Models/anti/AntiSpamSetting.cs +++ b/src/NadekoBot/Db/Models/anti/AntiSpamSetting.cs @@ -1,4 +1,4 @@ -namespace Nadeko.Bot.Db.Models; +namespace NadekoBot.Db.Models; #nullable disable public class AntiSpamSetting : DbEntity diff --git a/src/NadekoBot/Db/Models/club/ClubInfo.cs b/src/NadekoBot/Db/Models/club/ClubInfo.cs index 4da80bdbf..c6e782217 100644 --- a/src/NadekoBot/Db/Models/club/ClubInfo.cs +++ b/src/NadekoBot/Db/Models/club/ClubInfo.cs @@ -1,5 +1,4 @@ #nullable disable -using Nadeko.Bot.Db.Models; using System.ComponentModel.DataAnnotations; namespace NadekoBot.Db.Models; diff --git a/src/NadekoBot/Db/Models/currency/BankUser.cs b/src/NadekoBot/Db/Models/currency/BankUser.cs index cfd0fb1ce..56d383ad2 100644 --- a/src/NadekoBot/Db/Models/currency/BankUser.cs +++ b/src/NadekoBot/Db/Models/currency/BankUser.cs @@ -1,6 +1,4 @@ -using Nadeko.Bot.Db.Models; - -namespace NadekoBot.Db.Models; +namespace NadekoBot.Db.Models; public class BankUser : DbEntity { diff --git a/src/NadekoBot/Db/Models/expr/NadekoExpression.cs b/src/NadekoBot/Db/Models/expr/NadekoExpression.cs index dbd1a397b..26d46ccec 100644 --- a/src/NadekoBot/Db/Models/expr/NadekoExpression.cs +++ b/src/NadekoBot/Db/Models/expr/NadekoExpression.cs @@ -1,5 +1,5 @@ #nullable disable -namespace Nadeko.Bot.Db.Models; +namespace NadekoBot.Db.Models; public class NadekoExpression : DbEntity { diff --git a/src/NadekoBot/Db/Models/expr/Quote.cs b/src/NadekoBot/Db/Models/expr/Quote.cs index 1e9162b93..70b3606aa 100644 --- a/src/NadekoBot/Db/Models/expr/Quote.cs +++ b/src/NadekoBot/Db/Models/expr/Quote.cs @@ -1,7 +1,7 @@ #nullable disable using System.ComponentModel.DataAnnotations; -namespace Nadeko.Bot.Db.Models; +namespace NadekoBot.Db.Models; public class Quote : DbEntity { diff --git a/src/NadekoBot/Db/Models/filter/FilterChannelId.cs b/src/NadekoBot/Db/Models/filter/FilterChannelId.cs index a1a056feb..41e40ba53 100644 --- a/src/NadekoBot/Db/Models/filter/FilterChannelId.cs +++ b/src/NadekoBot/Db/Models/filter/FilterChannelId.cs @@ -1,5 +1,5 @@ #nullable disable -namespace Nadeko.Bot.Db.Models; +namespace NadekoBot.Db.Models; public class FilterChannelId : DbEntity { diff --git a/src/NadekoBot/Db/Models/filter/FilterLinksChannelId.cs b/src/NadekoBot/Db/Models/filter/FilterLinksChannelId.cs index 78fe69c09..0157966d0 100644 --- a/src/NadekoBot/Db/Models/filter/FilterLinksChannelId.cs +++ b/src/NadekoBot/Db/Models/filter/FilterLinksChannelId.cs @@ -1,5 +1,5 @@ #nullable disable -namespace Nadeko.Bot.Db.Models; +namespace NadekoBot.Db.Models; public class FilterLinksChannelId : DbEntity { diff --git a/src/NadekoBot/Db/Models/filter/FilteredWord.cs b/src/NadekoBot/Db/Models/filter/FilteredWord.cs index e6e2eb444..e9420f726 100644 --- a/src/NadekoBot/Db/Models/filter/FilteredWord.cs +++ b/src/NadekoBot/Db/Models/filter/FilteredWord.cs @@ -1,5 +1,5 @@ #nullable disable -namespace Nadeko.Bot.Db.Models; +namespace NadekoBot.Db.Models; public class FilteredWord : DbEntity { diff --git a/src/NadekoBot/Db/Models/punish/BanTemplate.cs b/src/NadekoBot/Db/Models/punish/BanTemplate.cs index 16e559268..9d6decec8 100644 --- a/src/NadekoBot/Db/Models/punish/BanTemplate.cs +++ b/src/NadekoBot/Db/Models/punish/BanTemplate.cs @@ -1,5 +1,5 @@ #nullable disable -namespace Nadeko.Bot.Db.Models; +namespace NadekoBot.Db.Models; public class BanTemplate : DbEntity { diff --git a/src/NadekoBot/Db/Models/punish/MutedUserId.cs b/src/NadekoBot/Db/Models/punish/MutedUserId.cs index 61d9197dc..5d507f7d3 100644 --- a/src/NadekoBot/Db/Models/punish/MutedUserId.cs +++ b/src/NadekoBot/Db/Models/punish/MutedUserId.cs @@ -1,5 +1,5 @@ #nullable disable -namespace Nadeko.Bot.Db.Models; +namespace NadekoBot.Db.Models; public class MutedUserId : DbEntity { diff --git a/src/NadekoBot/Db/Models/punish/PunishmentAction.cs b/src/NadekoBot/Db/Models/punish/PunishmentAction.cs index c9ac664ee..46a96764a 100644 --- a/src/NadekoBot/Db/Models/punish/PunishmentAction.cs +++ b/src/NadekoBot/Db/Models/punish/PunishmentAction.cs @@ -1,4 +1,4 @@ -namespace Nadeko.Bot.Db.Models; +namespace NadekoBot.Db.Models; public enum PunishmentAction { diff --git a/src/NadekoBot/Db/Models/punish/WarnExpireAction.cs b/src/NadekoBot/Db/Models/punish/WarnExpireAction.cs index 142ccb1ba..50fc0f3b5 100644 --- a/src/NadekoBot/Db/Models/punish/WarnExpireAction.cs +++ b/src/NadekoBot/Db/Models/punish/WarnExpireAction.cs @@ -1,5 +1,5 @@ #nullable disable -namespace Nadeko.Bot.Db.Models; +namespace NadekoBot.Db.Models; public enum WarnExpireAction { diff --git a/src/NadekoBot/Db/Models/punish/Warning.cs b/src/NadekoBot/Db/Models/punish/Warning.cs index 428d4b3ef..ded0bbb04 100644 --- a/src/NadekoBot/Db/Models/punish/Warning.cs +++ b/src/NadekoBot/Db/Models/punish/Warning.cs @@ -1,5 +1,5 @@ #nullable disable -namespace Nadeko.Bot.Db.Models; +namespace NadekoBot.Db.Models; public class Warning : DbEntity { diff --git a/src/NadekoBot/Db/Models/punish/WarningPunishment.cs b/src/NadekoBot/Db/Models/punish/WarningPunishment.cs index 49b569449..3842c0a14 100644 --- a/src/NadekoBot/Db/Models/punish/WarningPunishment.cs +++ b/src/NadekoBot/Db/Models/punish/WarningPunishment.cs @@ -1,5 +1,5 @@ #nullable disable -namespace Nadeko.Bot.Db.Models; +namespace NadekoBot.Db.Models; public class WarningPunishment : DbEntity { diff --git a/src/NadekoBot/Db/Models/roles/ReactionRole.cs b/src/NadekoBot/Db/Models/roles/ReactionRole.cs index 442cfb3fb..26114ca4c 100644 --- a/src/NadekoBot/Db/Models/roles/ReactionRole.cs +++ b/src/NadekoBot/Db/Models/roles/ReactionRole.cs @@ -1,7 +1,7 @@ #nullable disable using System.ComponentModel.DataAnnotations; -namespace Nadeko.Bot.Db.Models; +namespace NadekoBot.Db.Models; public class ReactionRoleV2 : DbEntity { diff --git a/src/NadekoBot/Db/Models/roles/SelfAssignableRole.cs b/src/NadekoBot/Db/Models/roles/SelfAssignableRole.cs index 2f22eeb08..2e3bc1d83 100644 --- a/src/NadekoBot/Db/Models/roles/SelfAssignableRole.cs +++ b/src/NadekoBot/Db/Models/roles/SelfAssignableRole.cs @@ -1,5 +1,5 @@ #nullable disable -namespace Nadeko.Bot.Db.Models; +namespace NadekoBot.Db.Models; public class SelfAssignedRole : DbEntity { diff --git a/src/NadekoBot/Db/Models/roles/StickyRoles.cs b/src/NadekoBot/Db/Models/roles/StickyRoles.cs index ddf3813ba..48b29e1b0 100644 --- a/src/NadekoBot/Db/Models/roles/StickyRoles.cs +++ b/src/NadekoBot/Db/Models/roles/StickyRoles.cs @@ -1,4 +1,4 @@ -namespace Nadeko.Bot.Db.Models; +namespace NadekoBot.Db.Models; #nullable disable public class StickyRole : DbEntity diff --git a/src/NadekoBot/Db/Models/slowmode/SlowmodeIgnoredRole.cs b/src/NadekoBot/Db/Models/slowmode/SlowmodeIgnoredRole.cs index 7f7e6beca..225bda8f4 100644 --- a/src/NadekoBot/Db/Models/slowmode/SlowmodeIgnoredRole.cs +++ b/src/NadekoBot/Db/Models/slowmode/SlowmodeIgnoredRole.cs @@ -1,5 +1,5 @@ #nullable disable -namespace Nadeko.Bot.Db.Models; +namespace NadekoBot.Db.Models; public class SlowmodeIgnoredRole : DbEntity { diff --git a/src/NadekoBot/Db/Models/slowmode/SlowmodeIgnoredUser.cs b/src/NadekoBot/Db/Models/slowmode/SlowmodeIgnoredUser.cs index f1b3468eb..750b5d223 100644 --- a/src/NadekoBot/Db/Models/slowmode/SlowmodeIgnoredUser.cs +++ b/src/NadekoBot/Db/Models/slowmode/SlowmodeIgnoredUser.cs @@ -1,5 +1,5 @@ #nullable disable -namespace Nadeko.Bot.Db.Models; +namespace NadekoBot.Db.Models; public class SlowmodeIgnoredUser : DbEntity { diff --git a/src/NadekoBot/Db/Models/support/RewardedUser.cs b/src/NadekoBot/Db/Models/support/RewardedUser.cs index 58df14614..471311275 100644 --- a/src/NadekoBot/Db/Models/support/RewardedUser.cs +++ b/src/NadekoBot/Db/Models/support/RewardedUser.cs @@ -1,5 +1,5 @@ #nullable disable -namespace Nadeko.Bot.Db.Models; +namespace NadekoBot.Db.Models; public class RewardedUser : DbEntity { diff --git a/src/NadekoBot/Db/Models/untimer/UnbanTimer.cs b/src/NadekoBot/Db/Models/untimer/UnbanTimer.cs index 8724619a8..ecd21c22d 100644 --- a/src/NadekoBot/Db/Models/untimer/UnbanTimer.cs +++ b/src/NadekoBot/Db/Models/untimer/UnbanTimer.cs @@ -1,5 +1,5 @@ #nullable disable -namespace Nadeko.Bot.Db.Models; +namespace NadekoBot.Db.Models; public class UnbanTimer : DbEntity { diff --git a/src/NadekoBot/Db/Models/untimer/UnmuteTimer.cs b/src/NadekoBot/Db/Models/untimer/UnmuteTimer.cs index 5ad9bc035..ca958ccb6 100644 --- a/src/NadekoBot/Db/Models/untimer/UnmuteTimer.cs +++ b/src/NadekoBot/Db/Models/untimer/UnmuteTimer.cs @@ -1,5 +1,5 @@ #nullable disable -namespace Nadeko.Bot.Db.Models; +namespace NadekoBot.Db.Models; public class UnmuteTimer : DbEntity { diff --git a/src/NadekoBot/Db/Models/untimer/UnroleTimer.cs b/src/NadekoBot/Db/Models/untimer/UnroleTimer.cs index e20754d27..86d4d2e04 100644 --- a/src/NadekoBot/Db/Models/untimer/UnroleTimer.cs +++ b/src/NadekoBot/Db/Models/untimer/UnroleTimer.cs @@ -1,5 +1,5 @@ #nullable disable -namespace Nadeko.Bot.Db.Models; +namespace NadekoBot.Db.Models; public class UnroleTimer : DbEntity { diff --git a/src/NadekoBot/Db/Models/xp/UserXpStats.cs b/src/NadekoBot/Db/Models/xp/UserXpStats.cs index 8ca8735b6..0ecd89b0f 100644 --- a/src/NadekoBot/Db/Models/xp/UserXpStats.cs +++ b/src/NadekoBot/Db/Models/xp/UserXpStats.cs @@ -1,5 +1,5 @@ #nullable disable -namespace Nadeko.Bot.Db.Models; +namespace NadekoBot.Db.Models; public class UserXpStats : DbEntity { diff --git a/src/NadekoBot/Db/Models/xp/XpSettings.cs b/src/NadekoBot/Db/Models/xp/XpSettings.cs index cc389b0cb..832ac5f13 100644 --- a/src/NadekoBot/Db/Models/xp/XpSettings.cs +++ b/src/NadekoBot/Db/Models/xp/XpSettings.cs @@ -1,5 +1,5 @@ #nullable disable -namespace Nadeko.Bot.Db.Models; +namespace NadekoBot.Db.Models; public class XpSettings : DbEntity { diff --git a/src/NadekoBot/Db/MysqlContext.cs b/src/NadekoBot/Db/MysqlContext.cs index e2489eaf9..785c1862e 100644 --- a/src/NadekoBot/Db/MysqlContext.cs +++ b/src/NadekoBot/Db/MysqlContext.cs @@ -1,7 +1,7 @@ using Microsoft.EntityFrameworkCore; using NadekoBot.Db.Models; -namespace Nadeko.Bot.Db; +namespace NadekoBot.Db; public sealed class MysqlContext : NadekoContext { diff --git a/src/NadekoBot/Db/NadekoContext.cs b/src/NadekoBot/Db/NadekoContext.cs index bba7276a6..e4a379ed1 100644 --- a/src/NadekoBot/Db/NadekoContext.cs +++ b/src/NadekoBot/Db/NadekoContext.cs @@ -2,11 +2,10 @@ using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Logging; using NadekoBot.Db.Models; -using Nadeko.Bot.Db.Models; // ReSharper disable UnusedAutoPropertyAccessor.Global -namespace Nadeko.Bot.Db; +namespace NadekoBot.Db; public abstract class NadekoContext : DbContext { diff --git a/src/NadekoBot/Db/NadekoDbService.cs b/src/NadekoBot/Db/NadekoDbService.cs index a9975c769..ae80c8f88 100644 --- a/src/NadekoBot/Db/NadekoDbService.cs +++ b/src/NadekoBot/Db/NadekoDbService.cs @@ -2,7 +2,7 @@ using LinqToDB.EntityFrameworkCore; using Microsoft.EntityFrameworkCore; -namespace Nadeko.Bot.Db; +namespace NadekoBot.Db; public sealed class NadekoDbService : DbService { diff --git a/src/NadekoBot/Db/PostgreSqlContext.cs b/src/NadekoBot/Db/PostgreSqlContext.cs index bc7298c8f..dcc3f110b 100644 --- a/src/NadekoBot/Db/PostgreSqlContext.cs +++ b/src/NadekoBot/Db/PostgreSqlContext.cs @@ -1,6 +1,6 @@ using Microsoft.EntityFrameworkCore; -namespace Nadeko.Bot.Db; +namespace NadekoBot.Db; public sealed class PostgreSqlContext : NadekoContext { diff --git a/src/NadekoBot/Db/SqliteContext.cs b/src/NadekoBot/Db/SqliteContext.cs index 017f85a66..2387530f2 100644 --- a/src/NadekoBot/Db/SqliteContext.cs +++ b/src/NadekoBot/Db/SqliteContext.cs @@ -1,7 +1,7 @@ using Microsoft.Data.Sqlite; using Microsoft.EntityFrameworkCore; -namespace Nadeko.Bot.Db; +namespace NadekoBot.Db; public sealed class SqliteContext : NadekoContext { diff --git a/src/NadekoBot/Migrations/Mysql/20221122204432_feed-text.Designer.cs b/src/NadekoBot/Migrations/Mysql/20221122204432_feed-text.Designer.cs index f50c586e4..715bfe8c4 100644 --- a/src/NadekoBot/Migrations/Mysql/20221122204432_feed-text.Designer.cs +++ b/src/NadekoBot/Migrations/Mysql/20221122204432_feed-text.Designer.cs @@ -4,7 +4,7 @@ using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Nadeko.Bot.Db; +using NadekoBot.Db; #nullable disable diff --git a/src/NadekoBot/Migrations/Mysql/20221122204432_feed-text.cs b/src/NadekoBot/Migrations/Mysql/20221122204432_feed-text.cs index 3e1aac32b..898f968e0 100644 --- a/src/NadekoBot/Migrations/Mysql/20221122204432_feed-text.cs +++ b/src/NadekoBot/Migrations/Mysql/20221122204432_feed-text.cs @@ -1,5 +1,4 @@ -using System; -using Microsoft.EntityFrameworkCore.Metadata; +using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable diff --git a/src/NadekoBot/Migrations/Mysql/20230813113816_timely-reminder-type.Designer.cs b/src/NadekoBot/Migrations/Mysql/20230813113816_timely-reminder-type.Designer.cs index 38dda87a5..1948a4a81 100644 --- a/src/NadekoBot/Migrations/Mysql/20230813113816_timely-reminder-type.Designer.cs +++ b/src/NadekoBot/Migrations/Mysql/20230813113816_timely-reminder-type.Designer.cs @@ -4,7 +4,7 @@ using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Nadeko.Bot.Db; +using NadekoBot.Db; #nullable disable diff --git a/src/NadekoBot/Migrations/Mysql/20230903153202_clubinfo-name-index.Designer.cs b/src/NadekoBot/Migrations/Mysql/20230903153202_clubinfo-name-index.Designer.cs index b8793e562..3bd96b113 100644 --- a/src/NadekoBot/Migrations/Mysql/20230903153202_clubinfo-name-index.Designer.cs +++ b/src/NadekoBot/Migrations/Mysql/20230903153202_clubinfo-name-index.Designer.cs @@ -4,7 +4,7 @@ using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Nadeko.Bot.Db; +using NadekoBot.Db; #nullable disable diff --git a/src/NadekoBot/Migrations/Mysql/20240423140608_shopcommands.Designer.cs b/src/NadekoBot/Migrations/Mysql/20240423140608_shopcommands.Designer.cs index 419bc9d7d..58d1cc5eb 100644 --- a/src/NadekoBot/Migrations/Mysql/20240423140608_shopcommands.Designer.cs +++ b/src/NadekoBot/Migrations/Mysql/20240423140608_shopcommands.Designer.cs @@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Nadeko.Bot.Db; +using NadekoBot.Db; #nullable disable @@ -25,7 +25,7 @@ namespace NadekoBot.Db.Migrations.Mysql MySqlModelBuilderExtensions.AutoIncrementColumns(modelBuilder); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiAltSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiAltSetting", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -64,7 +64,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("antialtsetting", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiRaidSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiRaidSetting", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -107,7 +107,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("antiraidsetting", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamIgnore", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiSpamIgnore", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -137,7 +137,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("antispamignore", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiSpamSetting", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -180,7 +180,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("antispamsetting", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoCommand", b => + modelBuilder.Entity("NadekoBot.Db.Models.AutoCommand", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -231,7 +231,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("autocommands", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoTranslateChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.AutoTranslateChannel", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -269,7 +269,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("autotranslatechannels", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoTranslateUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.AutoTranslateUser", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -307,7 +307,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("autotranslateusers", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.BanTemplate", b => + modelBuilder.Entity("NadekoBot.Db.Models.BanTemplate", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -342,7 +342,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("bantemplates", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.BlacklistEntry", b => + modelBuilder.Entity("NadekoBot.Db.Models.BlacklistEntry", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -369,7 +369,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("blacklist", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.CommandAlias", b => + modelBuilder.Entity("NadekoBot.Db.Models.CommandAlias", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -403,7 +403,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("commandalias", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.CommandCooldown", b => + modelBuilder.Entity("NadekoBot.Db.Models.CommandCooldown", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -437,7 +437,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("commandcooldown", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.CurrencyTransaction", b => + modelBuilder.Entity("NadekoBot.Db.Models.CurrencyTransaction", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -487,7 +487,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("currencytransactions", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.DelMsgOnCmdChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.DelMsgOnCmdChannel", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -521,7 +521,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("delmsgoncmdchannel", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.DiscordPermOverride", b => + modelBuilder.Entity("NadekoBot.Db.Models.DiscordPermOverride", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -556,7 +556,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("discordpermoverrides", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ExcludedItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.ExcludedItem", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -590,7 +590,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("excludeditem", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FeedSub", b => + modelBuilder.Entity("NadekoBot.Db.Models.FeedSub", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -629,7 +629,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("feedsub", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterChannelId", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -659,7 +659,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("filterchannelid", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterLinksChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterLinksChannelId", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -689,7 +689,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("filterlinkschannelid", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterWordsChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterWordsChannelId", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -719,7 +719,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("filterwordschannelid", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilteredWord", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilteredWord", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -749,7 +749,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("filteredword", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GCChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.GCChannelId", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -779,7 +779,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("gcchannelid", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GamblingStats", b => + modelBuilder.Entity("NadekoBot.Db.Models.GamblingStats", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -814,7 +814,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("gamblingstats", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GroupName", b => + modelBuilder.Entity("NadekoBot.Db.Models.GroupName", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -849,7 +849,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("groupname", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GuildConfig", b => + modelBuilder.Entity("NadekoBot.Db.Models.GuildConfig", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1025,7 +1025,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("guildconfigs", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.IgnoredLogItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.IgnoredLogItem", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1060,7 +1060,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("ignoredlogchannels", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.IgnoredVoicePresenceChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.IgnoredVoicePresenceChannel", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1090,7 +1090,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("ignoredvoicepresencechannels", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ImageOnlyChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.ImageOnlyChannel", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1125,7 +1125,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("imageonlychannels", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.LogSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.LogSetting", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1224,7 +1224,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("logsettings", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.MusicPlayerSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.MusicPlayerSettings", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1273,7 +1273,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("musicplayersettings", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.MusicPlaylist", b => + modelBuilder.Entity("NadekoBot.Db.Models.MusicPlaylist", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1304,7 +1304,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("musicplaylists", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.MutedUserId", b => + modelBuilder.Entity("NadekoBot.Db.Models.MutedUserId", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1334,7 +1334,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("muteduserid", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.NadekoExpression", b => + modelBuilder.Entity("NadekoBot.Db.Models.NadekoExpression", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1385,7 +1385,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("expressions", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.NsfwBlacklistedTag", b => + modelBuilder.Entity("NadekoBot.Db.Models.NsfwBlacklistedTag", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1415,7 +1415,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("nsfwblacklistedtags", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Permissionv2", b => + modelBuilder.Entity("NadekoBot.Db.Models.Permissionv2", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1469,7 +1469,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("permissions", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PlantedCurrency", b => + modelBuilder.Entity("NadekoBot.Db.Models.PlantedCurrency", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1519,7 +1519,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("plantedcurrency", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PlaylistSong", b => + modelBuilder.Entity("NadekoBot.Db.Models.PlaylistSong", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1565,7 +1565,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("playlistsong", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Poll", b => + modelBuilder.Entity("NadekoBot.Db.Models.Poll", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1600,7 +1600,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("poll", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PollAnswer", b => + modelBuilder.Entity("NadekoBot.Db.Models.PollAnswer", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1634,7 +1634,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("pollanswer", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PollVote", b => + modelBuilder.Entity("NadekoBot.Db.Models.PollVote", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1668,7 +1668,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("pollvote", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Quote", b => + modelBuilder.Entity("NadekoBot.Db.Models.Quote", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1716,7 +1716,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("quotes", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ReactionRoleV2", b => + modelBuilder.Entity("NadekoBot.Db.Models.ReactionRoleV2", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1771,7 +1771,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("reactionroles", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Reminder", b => + modelBuilder.Entity("NadekoBot.Db.Models.Reminder", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1821,7 +1821,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("reminders", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Repeater", b => + modelBuilder.Entity("NadekoBot.Db.Models.Repeater", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1868,7 +1868,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("repeaters", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.RewardedUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.RewardedUser", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1907,7 +1907,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("rewardedusers", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.RotatingPlayingStatus", b => + modelBuilder.Entity("NadekoBot.Db.Models.RotatingPlayingStatus", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1934,7 +1934,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("rotatingstatus", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.SelfAssignedRole", b => + modelBuilder.Entity("NadekoBot.Db.Models.SelfAssignedRole", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1975,7 +1975,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("selfassignableroles", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntry", b => + modelBuilder.Entity("NadekoBot.Db.Models.ShopEntry", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2037,7 +2037,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("shopentry", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntryItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.ShopEntryItem", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2067,7 +2067,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("shopentryitem", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.SlowmodeIgnoredRole", b => + modelBuilder.Entity("NadekoBot.Db.Models.SlowmodeIgnoredRole", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2097,7 +2097,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("slowmodeignoredrole", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.SlowmodeIgnoredUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.SlowmodeIgnoredUser", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2127,7 +2127,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("slowmodeignoreduser", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleBlacklistedUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleBlacklistedUser", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2161,7 +2161,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("streamroleblacklisteduser", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleSettings", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2204,7 +2204,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("streamrolesettings", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleWhitelistedUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleWhitelistedUser", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2238,7 +2238,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("streamrolewhitelisteduser", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnbanTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnbanTimer", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2272,7 +2272,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("unbantimer", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnmuteTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnmuteTimer", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2306,7 +2306,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("unmutetimer", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnroleTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnroleTimer", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2344,7 +2344,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("unroletimer", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UserXpStats", b => + modelBuilder.Entity("NadekoBot.Db.Models.UserXpStats", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2399,7 +2399,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("userxpstats", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.VcRoleInfo", b => + modelBuilder.Entity("NadekoBot.Db.Models.VcRoleInfo", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2433,7 +2433,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("vcroleinfo", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuInfo", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuInfo", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2481,7 +2481,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("waifuinfo", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuItem", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2515,7 +2515,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("waifuitem", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuUpdate", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuUpdate", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2559,7 +2559,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("waifuupdates", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Warning", b => + modelBuilder.Entity("NadekoBot.Db.Models.Warning", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2617,7 +2617,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("warnings", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WarningPunishment", b => + modelBuilder.Entity("NadekoBot.Db.Models.WarningPunishment", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2659,7 +2659,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("warningpunishment", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpCurrencyReward", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpCurrencyReward", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2693,7 +2693,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("xpcurrencyreward", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpRoleReward", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpRoleReward", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2732,7 +2732,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("xprolereward", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpSettings", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -3181,21 +3181,21 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("xpshopowneditem", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiAltSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiAltSetting", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithOne("AntiAltSetting") - .HasForeignKey("Nadeko.Bot.Db.Models.AntiAltSetting", "GuildConfigId") + .HasForeignKey("NadekoBot.Db.Models.AntiAltSetting", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired() .HasConstraintName("fk_antialtsetting_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiRaidSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiRaidSetting", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithOne("AntiRaidSetting") - .HasForeignKey("Nadeko.Bot.Db.Models.AntiRaidSetting", "GuildConfigId") + .HasForeignKey("NadekoBot.Db.Models.AntiRaidSetting", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired() .HasConstraintName("fk_antiraidsetting_guildconfigs_guildconfigid"); @@ -3203,19 +3203,19 @@ namespace NadekoBot.Db.Migrations.Mysql b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamIgnore", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiSpamIgnore", b => { - b.HasOne("Nadeko.Bot.Db.Models.AntiSpamSetting", null) + b.HasOne("NadekoBot.Db.Models.AntiSpamSetting", null) .WithMany("IgnoredChannels") .HasForeignKey("AntiSpamSettingId") .HasConstraintName("fk_antispamignore_antispamsetting_antispamsettingid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiSpamSetting", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithOne("AntiSpamSetting") - .HasForeignKey("Nadeko.Bot.Db.Models.AntiSpamSetting", "GuildConfigId") + .HasForeignKey("NadekoBot.Db.Models.AntiSpamSetting", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired() .HasConstraintName("fk_antispamsetting_guildconfigs_guildconfigid"); @@ -3223,9 +3223,9 @@ namespace NadekoBot.Db.Migrations.Mysql b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoTranslateUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.AutoTranslateUser", b => { - b.HasOne("Nadeko.Bot.Db.Models.AutoTranslateChannel", "Channel") + b.HasOne("NadekoBot.Db.Models.AutoTranslateChannel", "Channel") .WithMany("Users") .HasForeignKey("ChannelId") .OnDelete(DeleteBehavior.Cascade) @@ -3235,41 +3235,41 @@ namespace NadekoBot.Db.Migrations.Mysql b.Navigation("Channel"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.CommandAlias", b => + modelBuilder.Entity("NadekoBot.Db.Models.CommandAlias", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("CommandAliases") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_commandalias_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.CommandCooldown", b => + modelBuilder.Entity("NadekoBot.Db.Models.CommandCooldown", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("CommandCooldowns") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_commandcooldown_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.DelMsgOnCmdChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.DelMsgOnCmdChannel", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("DelMsgOnCmdChannels") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_delmsgoncmdchannel_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ExcludedItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.ExcludedItem", b => { - b.HasOne("Nadeko.Bot.Db.Models.XpSettings", null) + b.HasOne("NadekoBot.Db.Models.XpSettings", null) .WithMany("ExclusionList") .HasForeignKey("XpSettingsId") .HasConstraintName("fk_excludeditem_xpsettings_xpsettingsid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FeedSub", b => + modelBuilder.Entity("NadekoBot.Db.Models.FeedSub", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithMany("FeedSubs") .HasForeignKey("GuildConfigId") .OnDelete(DeleteBehavior.Cascade) @@ -3279,41 +3279,41 @@ namespace NadekoBot.Db.Migrations.Mysql b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterChannelId", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("FilterInvitesChannelIds") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_filterchannelid_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterLinksChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterLinksChannelId", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("FilterLinksChannelIds") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_filterlinkschannelid_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterWordsChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterWordsChannelId", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("FilterWordsChannelIds") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_filterwordschannelid_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilteredWord", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilteredWord", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("FilteredWords") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_filteredword_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GCChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.GCChannelId", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithMany("GenerateCurrencyChannelIds") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_gcchannelid_guildconfigs_guildconfigid"); @@ -3321,9 +3321,9 @@ namespace NadekoBot.Db.Migrations.Mysql b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GroupName", b => + modelBuilder.Entity("NadekoBot.Db.Models.GroupName", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithMany("SelfAssignableRoleGroupNames") .HasForeignKey("GuildConfigId") .OnDelete(DeleteBehavior.Cascade) @@ -3333,9 +3333,9 @@ namespace NadekoBot.Db.Migrations.Mysql b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.IgnoredLogItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.IgnoredLogItem", b => { - b.HasOne("Nadeko.Bot.Db.Models.LogSetting", "LogSetting") + b.HasOne("NadekoBot.Db.Models.LogSetting", "LogSetting") .WithMany("LogIgnores") .HasForeignKey("LogSettingId") .OnDelete(DeleteBehavior.Cascade) @@ -3345,9 +3345,9 @@ namespace NadekoBot.Db.Migrations.Mysql b.Navigation("LogSetting"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.IgnoredVoicePresenceChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.IgnoredVoicePresenceChannel", b => { - b.HasOne("Nadeko.Bot.Db.Models.LogSetting", "LogSetting") + b.HasOne("NadekoBot.Db.Models.LogSetting", "LogSetting") .WithMany() .HasForeignKey("LogSettingId") .HasConstraintName("fk_ignoredvoicepresencechannels_logsettings_logsettingid"); @@ -3355,92 +3355,92 @@ namespace NadekoBot.Db.Migrations.Mysql b.Navigation("LogSetting"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.MutedUserId", b => + modelBuilder.Entity("NadekoBot.Db.Models.MutedUserId", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("MutedUsers") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_muteduserid_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Permissionv2", b => + modelBuilder.Entity("NadekoBot.Db.Models.Permissionv2", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("Permissions") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_permissions_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PlaylistSong", b => + modelBuilder.Entity("NadekoBot.Db.Models.PlaylistSong", b => { - b.HasOne("Nadeko.Bot.Db.Models.MusicPlaylist", null) + b.HasOne("NadekoBot.Db.Models.MusicPlaylist", null) .WithMany("Songs") .HasForeignKey("MusicPlaylistId") .OnDelete(DeleteBehavior.Cascade) .HasConstraintName("fk_playlistsong_musicplaylists_musicplaylistid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PollAnswer", b => + modelBuilder.Entity("NadekoBot.Db.Models.PollAnswer", b => { - b.HasOne("Nadeko.Bot.Db.Models.Poll", null) + b.HasOne("NadekoBot.Db.Models.Poll", null) .WithMany("Answers") .HasForeignKey("PollId") .HasConstraintName("fk_pollanswer_poll_pollid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PollVote", b => + modelBuilder.Entity("NadekoBot.Db.Models.PollVote", b => { - b.HasOne("Nadeko.Bot.Db.Models.Poll", null) + b.HasOne("NadekoBot.Db.Models.Poll", null) .WithMany("Votes") .HasForeignKey("PollId") .HasConstraintName("fk_pollvote_poll_pollid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntry", b => + modelBuilder.Entity("NadekoBot.Db.Models.ShopEntry", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("ShopEntries") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_shopentry_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntryItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.ShopEntryItem", b => { - b.HasOne("Nadeko.Bot.Db.Models.ShopEntry", null) + b.HasOne("NadekoBot.Db.Models.ShopEntry", null) .WithMany("Items") .HasForeignKey("ShopEntryId") .HasConstraintName("fk_shopentryitem_shopentry_shopentryid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.SlowmodeIgnoredRole", b => + modelBuilder.Entity("NadekoBot.Db.Models.SlowmodeIgnoredRole", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("SlowmodeIgnoredRoles") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_slowmodeignoredrole_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.SlowmodeIgnoredUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.SlowmodeIgnoredUser", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("SlowmodeIgnoredUsers") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_slowmodeignoreduser_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleBlacklistedUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleBlacklistedUser", b => { - b.HasOne("Nadeko.Bot.Db.Models.StreamRoleSettings", null) + b.HasOne("NadekoBot.Db.Models.StreamRoleSettings", null) .WithMany("Blacklist") .HasForeignKey("StreamRoleSettingsId") .HasConstraintName("fk_streamroleblacklisteduser_streamrolesettings_streamrolesetti~"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleSettings", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithOne("StreamRole") - .HasForeignKey("Nadeko.Bot.Db.Models.StreamRoleSettings", "GuildConfigId") + .HasForeignKey("NadekoBot.Db.Models.StreamRoleSettings", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired() .HasConstraintName("fk_streamrolesettings_guildconfigs_guildconfigid"); @@ -3448,47 +3448,47 @@ namespace NadekoBot.Db.Migrations.Mysql b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleWhitelistedUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleWhitelistedUser", b => { - b.HasOne("Nadeko.Bot.Db.Models.StreamRoleSettings", null) + b.HasOne("NadekoBot.Db.Models.StreamRoleSettings", null) .WithMany("Whitelist") .HasForeignKey("StreamRoleSettingsId") .HasConstraintName("fk_streamrolewhitelisteduser_streamrolesettings_streamrolesetti~"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnbanTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnbanTimer", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("UnbanTimer") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_unbantimer_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnmuteTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnmuteTimer", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("UnmuteTimers") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_unmutetimer_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnroleTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnroleTimer", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("UnroleTimer") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_unroletimer_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.VcRoleInfo", b => + modelBuilder.Entity("NadekoBot.Db.Models.VcRoleInfo", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("VcRoleInfos") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_vcroleinfo_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuInfo", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuInfo", b => { b.HasOne("NadekoBot.Db.Models.DiscordUser", "Affinity") .WithMany() @@ -3502,7 +3502,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.HasOne("NadekoBot.Db.Models.DiscordUser", "Waifu") .WithOne() - .HasForeignKey("Nadeko.Bot.Db.Models.WaifuInfo", "WaifuId") + .HasForeignKey("NadekoBot.Db.Models.WaifuInfo", "WaifuId") .OnDelete(DeleteBehavior.Cascade) .IsRequired() .HasConstraintName("fk_waifuinfo_discorduser_waifuid"); @@ -3514,9 +3514,9 @@ namespace NadekoBot.Db.Migrations.Mysql b.Navigation("Waifu"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuItem", b => { - b.HasOne("Nadeko.Bot.Db.Models.WaifuInfo", "WaifuInfo") + b.HasOne("NadekoBot.Db.Models.WaifuInfo", "WaifuInfo") .WithMany("Items") .HasForeignKey("WaifuInfoId") .HasConstraintName("fk_waifuitem_waifuinfo_waifuinfoid"); @@ -3524,7 +3524,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.Navigation("WaifuInfo"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuUpdate", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuUpdate", b => { b.HasOne("NadekoBot.Db.Models.DiscordUser", "New") .WithMany() @@ -3550,17 +3550,17 @@ namespace NadekoBot.Db.Migrations.Mysql b.Navigation("User"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WarningPunishment", b => + modelBuilder.Entity("NadekoBot.Db.Models.WarningPunishment", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("WarnPunishments") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_warningpunishment_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpCurrencyReward", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpCurrencyReward", b => { - b.HasOne("Nadeko.Bot.Db.Models.XpSettings", "XpSettings") + b.HasOne("NadekoBot.Db.Models.XpSettings", "XpSettings") .WithMany("CurrencyRewards") .HasForeignKey("XpSettingsId") .OnDelete(DeleteBehavior.Cascade) @@ -3570,9 +3570,9 @@ namespace NadekoBot.Db.Migrations.Mysql b.Navigation("XpSettings"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpRoleReward", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpRoleReward", b => { - b.HasOne("Nadeko.Bot.Db.Models.XpSettings", "XpSettings") + b.HasOne("NadekoBot.Db.Models.XpSettings", "XpSettings") .WithMany("RoleRewards") .HasForeignKey("XpSettingsId") .OnDelete(DeleteBehavior.Cascade) @@ -3582,11 +3582,11 @@ namespace NadekoBot.Db.Migrations.Mysql b.Navigation("XpSettings"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpSettings", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithOne("XpSettings") - .HasForeignKey("Nadeko.Bot.Db.Models.XpSettings", "GuildConfigId") + .HasForeignKey("NadekoBot.Db.Models.XpSettings", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired() .HasConstraintName("fk_xpsettings_guildconfigs_guildconfigid"); @@ -3660,23 +3660,23 @@ namespace NadekoBot.Db.Migrations.Mysql modelBuilder.Entity("NadekoBot.Db.Models.FollowedStream", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("FollowedStreams") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_followedstream_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiSpamSetting", b => { b.Navigation("IgnoredChannels"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoTranslateChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.AutoTranslateChannel", b => { b.Navigation("Users"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GuildConfig", b => + modelBuilder.Entity("NadekoBot.Db.Models.GuildConfig", b => { b.Navigation("AntiAltSetting"); @@ -3731,41 +3731,41 @@ namespace NadekoBot.Db.Migrations.Mysql b.Navigation("XpSettings"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.LogSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.LogSetting", b => { b.Navigation("LogIgnores"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.MusicPlaylist", b => + modelBuilder.Entity("NadekoBot.Db.Models.MusicPlaylist", b => { b.Navigation("Songs"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Poll", b => + modelBuilder.Entity("NadekoBot.Db.Models.Poll", b => { b.Navigation("Answers"); b.Navigation("Votes"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntry", b => + modelBuilder.Entity("NadekoBot.Db.Models.ShopEntry", b => { b.Navigation("Items"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleSettings", b => { b.Navigation("Blacklist"); b.Navigation("Whitelist"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuInfo", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuInfo", b => { b.Navigation("Items"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpSettings", b => { b.Navigation("CurrencyRewards"); diff --git a/src/NadekoBot/Migrations/Mysql/20240423153724_sticky-roles.Designer.cs b/src/NadekoBot/Migrations/Mysql/20240423153724_sticky-roles.Designer.cs index e199ac196..28a415ea5 100644 --- a/src/NadekoBot/Migrations/Mysql/20240423153724_sticky-roles.Designer.cs +++ b/src/NadekoBot/Migrations/Mysql/20240423153724_sticky-roles.Designer.cs @@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Nadeko.Bot.Db; +using NadekoBot.Db; #nullable disable @@ -25,7 +25,7 @@ namespace NadekoBot.Db.Migrations.Mysql MySqlModelBuilderExtensions.AutoIncrementColumns(modelBuilder); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiAltSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiAltSetting", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -64,7 +64,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("antialtsetting", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiRaidSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiRaidSetting", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -107,7 +107,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("antiraidsetting", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamIgnore", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiSpamIgnore", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -137,7 +137,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("antispamignore", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiSpamSetting", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -180,7 +180,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("antispamsetting", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoCommand", b => + modelBuilder.Entity("NadekoBot.Db.Models.AutoCommand", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -231,7 +231,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("autocommands", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoTranslateChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.AutoTranslateChannel", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -269,7 +269,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("autotranslatechannels", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoTranslateUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.AutoTranslateUser", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -307,7 +307,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("autotranslateusers", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.BanTemplate", b => + modelBuilder.Entity("NadekoBot.Db.Models.BanTemplate", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -342,7 +342,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("bantemplates", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.BlacklistEntry", b => + modelBuilder.Entity("NadekoBot.Db.Models.BlacklistEntry", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -369,7 +369,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("blacklist", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.CommandAlias", b => + modelBuilder.Entity("NadekoBot.Db.Models.CommandAlias", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -403,7 +403,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("commandalias", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.CommandCooldown", b => + modelBuilder.Entity("NadekoBot.Db.Models.CommandCooldown", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -437,7 +437,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("commandcooldown", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.CurrencyTransaction", b => + modelBuilder.Entity("NadekoBot.Db.Models.CurrencyTransaction", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -487,7 +487,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("currencytransactions", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.DelMsgOnCmdChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.DelMsgOnCmdChannel", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -521,7 +521,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("delmsgoncmdchannel", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.DiscordPermOverride", b => + modelBuilder.Entity("NadekoBot.Db.Models.DiscordPermOverride", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -556,7 +556,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("discordpermoverrides", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ExcludedItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.ExcludedItem", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -590,7 +590,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("excludeditem", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FeedSub", b => + modelBuilder.Entity("NadekoBot.Db.Models.FeedSub", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -629,7 +629,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("feedsub", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterChannelId", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -659,7 +659,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("filterchannelid", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterLinksChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterLinksChannelId", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -689,7 +689,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("filterlinkschannelid", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterWordsChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterWordsChannelId", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -719,7 +719,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("filterwordschannelid", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilteredWord", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilteredWord", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -749,7 +749,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("filteredword", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GCChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.GCChannelId", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -779,7 +779,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("gcchannelid", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GamblingStats", b => + modelBuilder.Entity("NadekoBot.Db.Models.GamblingStats", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -814,7 +814,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("gamblingstats", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GroupName", b => + modelBuilder.Entity("NadekoBot.Db.Models.GroupName", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -849,7 +849,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("groupname", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GuildConfig", b => + modelBuilder.Entity("NadekoBot.Db.Models.GuildConfig", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1029,7 +1029,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("guildconfigs", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.IgnoredLogItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.IgnoredLogItem", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1064,7 +1064,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("ignoredlogchannels", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.IgnoredVoicePresenceChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.IgnoredVoicePresenceChannel", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1094,7 +1094,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("ignoredvoicepresencechannels", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ImageOnlyChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.ImageOnlyChannel", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1129,7 +1129,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("imageonlychannels", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.LogSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.LogSetting", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1228,7 +1228,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("logsettings", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.MusicPlayerSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.MusicPlayerSettings", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1277,7 +1277,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("musicplayersettings", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.MusicPlaylist", b => + modelBuilder.Entity("NadekoBot.Db.Models.MusicPlaylist", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1308,7 +1308,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("musicplaylists", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.MutedUserId", b => + modelBuilder.Entity("NadekoBot.Db.Models.MutedUserId", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1338,7 +1338,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("muteduserid", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.NadekoExpression", b => + modelBuilder.Entity("NadekoBot.Db.Models.NadekoExpression", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1389,7 +1389,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("expressions", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.NsfwBlacklistedTag", b => + modelBuilder.Entity("NadekoBot.Db.Models.NsfwBlacklistedTag", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1419,7 +1419,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("nsfwblacklistedtags", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Permissionv2", b => + modelBuilder.Entity("NadekoBot.Db.Models.Permissionv2", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1473,7 +1473,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("permissions", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PlantedCurrency", b => + modelBuilder.Entity("NadekoBot.Db.Models.PlantedCurrency", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1523,7 +1523,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("plantedcurrency", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PlaylistSong", b => + modelBuilder.Entity("NadekoBot.Db.Models.PlaylistSong", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1569,7 +1569,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("playlistsong", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Poll", b => + modelBuilder.Entity("NadekoBot.Db.Models.Poll", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1604,7 +1604,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("poll", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PollAnswer", b => + modelBuilder.Entity("NadekoBot.Db.Models.PollAnswer", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1638,7 +1638,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("pollanswer", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PollVote", b => + modelBuilder.Entity("NadekoBot.Db.Models.PollVote", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1672,7 +1672,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("pollvote", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Quote", b => + modelBuilder.Entity("NadekoBot.Db.Models.Quote", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1720,7 +1720,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("quotes", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ReactionRoleV2", b => + modelBuilder.Entity("NadekoBot.Db.Models.ReactionRoleV2", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1775,7 +1775,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("reactionroles", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Reminder", b => + modelBuilder.Entity("NadekoBot.Db.Models.Reminder", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1825,7 +1825,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("reminders", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Repeater", b => + modelBuilder.Entity("NadekoBot.Db.Models.Repeater", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1872,7 +1872,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("repeaters", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.RewardedUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.RewardedUser", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1911,7 +1911,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("rewardedusers", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.RotatingPlayingStatus", b => + modelBuilder.Entity("NadekoBot.Db.Models.RotatingPlayingStatus", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1938,7 +1938,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("rotatingstatus", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.SelfAssignedRole", b => + modelBuilder.Entity("NadekoBot.Db.Models.SelfAssignedRole", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1979,7 +1979,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("selfassignableroles", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntry", b => + modelBuilder.Entity("NadekoBot.Db.Models.ShopEntry", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2041,7 +2041,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("shopentry", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntryItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.ShopEntryItem", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2071,7 +2071,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("shopentryitem", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.SlowmodeIgnoredRole", b => + modelBuilder.Entity("NadekoBot.Db.Models.SlowmodeIgnoredRole", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2101,7 +2101,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("slowmodeignoredrole", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.SlowmodeIgnoredUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.SlowmodeIgnoredUser", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2131,7 +2131,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("slowmodeignoreduser", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StickyRole", b => + modelBuilder.Entity("NadekoBot.Db.Models.StickyRole", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2167,7 +2167,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("stickyroles", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleBlacklistedUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleBlacklistedUser", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2201,7 +2201,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("streamroleblacklisteduser", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleSettings", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2244,7 +2244,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("streamrolesettings", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleWhitelistedUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleWhitelistedUser", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2278,7 +2278,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("streamrolewhitelisteduser", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnbanTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnbanTimer", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2312,7 +2312,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("unbantimer", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnmuteTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnmuteTimer", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2346,7 +2346,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("unmutetimer", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnroleTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnroleTimer", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2384,7 +2384,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("unroletimer", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UserXpStats", b => + modelBuilder.Entity("NadekoBot.Db.Models.UserXpStats", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2439,7 +2439,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("userxpstats", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.VcRoleInfo", b => + modelBuilder.Entity("NadekoBot.Db.Models.VcRoleInfo", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2473,7 +2473,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("vcroleinfo", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuInfo", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuInfo", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2521,7 +2521,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("waifuinfo", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuItem", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2555,7 +2555,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("waifuitem", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuUpdate", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuUpdate", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2599,7 +2599,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("waifuupdates", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Warning", b => + modelBuilder.Entity("NadekoBot.Db.Models.Warning", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2657,7 +2657,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("warnings", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WarningPunishment", b => + modelBuilder.Entity("NadekoBot.Db.Models.WarningPunishment", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2699,7 +2699,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("warningpunishment", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpCurrencyReward", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpCurrencyReward", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2733,7 +2733,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("xpcurrencyreward", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpRoleReward", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpRoleReward", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2772,7 +2772,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("xprolereward", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpSettings", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -3221,21 +3221,21 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("xpshopowneditem", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiAltSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiAltSetting", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithOne("AntiAltSetting") - .HasForeignKey("Nadeko.Bot.Db.Models.AntiAltSetting", "GuildConfigId") + .HasForeignKey("NadekoBot.Db.Models.AntiAltSetting", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired() .HasConstraintName("fk_antialtsetting_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiRaidSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiRaidSetting", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithOne("AntiRaidSetting") - .HasForeignKey("Nadeko.Bot.Db.Models.AntiRaidSetting", "GuildConfigId") + .HasForeignKey("NadekoBot.Db.Models.AntiRaidSetting", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired() .HasConstraintName("fk_antiraidsetting_guildconfigs_guildconfigid"); @@ -3243,19 +3243,19 @@ namespace NadekoBot.Db.Migrations.Mysql b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamIgnore", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiSpamIgnore", b => { - b.HasOne("Nadeko.Bot.Db.Models.AntiSpamSetting", null) + b.HasOne("NadekoBot.Db.Models.AntiSpamSetting", null) .WithMany("IgnoredChannels") .HasForeignKey("AntiSpamSettingId") .HasConstraintName("fk_antispamignore_antispamsetting_antispamsettingid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiSpamSetting", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithOne("AntiSpamSetting") - .HasForeignKey("Nadeko.Bot.Db.Models.AntiSpamSetting", "GuildConfigId") + .HasForeignKey("NadekoBot.Db.Models.AntiSpamSetting", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired() .HasConstraintName("fk_antispamsetting_guildconfigs_guildconfigid"); @@ -3263,9 +3263,9 @@ namespace NadekoBot.Db.Migrations.Mysql b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoTranslateUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.AutoTranslateUser", b => { - b.HasOne("Nadeko.Bot.Db.Models.AutoTranslateChannel", "Channel") + b.HasOne("NadekoBot.Db.Models.AutoTranslateChannel", "Channel") .WithMany("Users") .HasForeignKey("ChannelId") .OnDelete(DeleteBehavior.Cascade) @@ -3275,41 +3275,41 @@ namespace NadekoBot.Db.Migrations.Mysql b.Navigation("Channel"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.CommandAlias", b => + modelBuilder.Entity("NadekoBot.Db.Models.CommandAlias", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("CommandAliases") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_commandalias_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.CommandCooldown", b => + modelBuilder.Entity("NadekoBot.Db.Models.CommandCooldown", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("CommandCooldowns") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_commandcooldown_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.DelMsgOnCmdChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.DelMsgOnCmdChannel", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("DelMsgOnCmdChannels") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_delmsgoncmdchannel_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ExcludedItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.ExcludedItem", b => { - b.HasOne("Nadeko.Bot.Db.Models.XpSettings", null) + b.HasOne("NadekoBot.Db.Models.XpSettings", null) .WithMany("ExclusionList") .HasForeignKey("XpSettingsId") .HasConstraintName("fk_excludeditem_xpsettings_xpsettingsid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FeedSub", b => + modelBuilder.Entity("NadekoBot.Db.Models.FeedSub", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithMany("FeedSubs") .HasForeignKey("GuildConfigId") .OnDelete(DeleteBehavior.Cascade) @@ -3319,41 +3319,41 @@ namespace NadekoBot.Db.Migrations.Mysql b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterChannelId", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("FilterInvitesChannelIds") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_filterchannelid_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterLinksChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterLinksChannelId", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("FilterLinksChannelIds") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_filterlinkschannelid_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterWordsChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterWordsChannelId", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("FilterWordsChannelIds") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_filterwordschannelid_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilteredWord", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilteredWord", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("FilteredWords") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_filteredword_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GCChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.GCChannelId", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithMany("GenerateCurrencyChannelIds") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_gcchannelid_guildconfigs_guildconfigid"); @@ -3361,9 +3361,9 @@ namespace NadekoBot.Db.Migrations.Mysql b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GroupName", b => + modelBuilder.Entity("NadekoBot.Db.Models.GroupName", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithMany("SelfAssignableRoleGroupNames") .HasForeignKey("GuildConfigId") .OnDelete(DeleteBehavior.Cascade) @@ -3373,9 +3373,9 @@ namespace NadekoBot.Db.Migrations.Mysql b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.IgnoredLogItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.IgnoredLogItem", b => { - b.HasOne("Nadeko.Bot.Db.Models.LogSetting", "LogSetting") + b.HasOne("NadekoBot.Db.Models.LogSetting", "LogSetting") .WithMany("LogIgnores") .HasForeignKey("LogSettingId") .OnDelete(DeleteBehavior.Cascade) @@ -3385,9 +3385,9 @@ namespace NadekoBot.Db.Migrations.Mysql b.Navigation("LogSetting"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.IgnoredVoicePresenceChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.IgnoredVoicePresenceChannel", b => { - b.HasOne("Nadeko.Bot.Db.Models.LogSetting", "LogSetting") + b.HasOne("NadekoBot.Db.Models.LogSetting", "LogSetting") .WithMany() .HasForeignKey("LogSettingId") .HasConstraintName("fk_ignoredvoicepresencechannels_logsettings_logsettingid"); @@ -3395,92 +3395,92 @@ namespace NadekoBot.Db.Migrations.Mysql b.Navigation("LogSetting"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.MutedUserId", b => + modelBuilder.Entity("NadekoBot.Db.Models.MutedUserId", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("MutedUsers") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_muteduserid_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Permissionv2", b => + modelBuilder.Entity("NadekoBot.Db.Models.Permissionv2", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("Permissions") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_permissions_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PlaylistSong", b => + modelBuilder.Entity("NadekoBot.Db.Models.PlaylistSong", b => { - b.HasOne("Nadeko.Bot.Db.Models.MusicPlaylist", null) + b.HasOne("NadekoBot.Db.Models.MusicPlaylist", null) .WithMany("Songs") .HasForeignKey("MusicPlaylistId") .OnDelete(DeleteBehavior.Cascade) .HasConstraintName("fk_playlistsong_musicplaylists_musicplaylistid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PollAnswer", b => + modelBuilder.Entity("NadekoBot.Db.Models.PollAnswer", b => { - b.HasOne("Nadeko.Bot.Db.Models.Poll", null) + b.HasOne("NadekoBot.Db.Models.Poll", null) .WithMany("Answers") .HasForeignKey("PollId") .HasConstraintName("fk_pollanswer_poll_pollid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PollVote", b => + modelBuilder.Entity("NadekoBot.Db.Models.PollVote", b => { - b.HasOne("Nadeko.Bot.Db.Models.Poll", null) + b.HasOne("NadekoBot.Db.Models.Poll", null) .WithMany("Votes") .HasForeignKey("PollId") .HasConstraintName("fk_pollvote_poll_pollid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntry", b => + modelBuilder.Entity("NadekoBot.Db.Models.ShopEntry", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("ShopEntries") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_shopentry_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntryItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.ShopEntryItem", b => { - b.HasOne("Nadeko.Bot.Db.Models.ShopEntry", null) + b.HasOne("NadekoBot.Db.Models.ShopEntry", null) .WithMany("Items") .HasForeignKey("ShopEntryId") .HasConstraintName("fk_shopentryitem_shopentry_shopentryid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.SlowmodeIgnoredRole", b => + modelBuilder.Entity("NadekoBot.Db.Models.SlowmodeIgnoredRole", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("SlowmodeIgnoredRoles") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_slowmodeignoredrole_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.SlowmodeIgnoredUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.SlowmodeIgnoredUser", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("SlowmodeIgnoredUsers") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_slowmodeignoreduser_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleBlacklistedUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleBlacklistedUser", b => { - b.HasOne("Nadeko.Bot.Db.Models.StreamRoleSettings", null) + b.HasOne("NadekoBot.Db.Models.StreamRoleSettings", null) .WithMany("Blacklist") .HasForeignKey("StreamRoleSettingsId") .HasConstraintName("fk_streamroleblacklisteduser_streamrolesettings_streamrolesetti~"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleSettings", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithOne("StreamRole") - .HasForeignKey("Nadeko.Bot.Db.Models.StreamRoleSettings", "GuildConfigId") + .HasForeignKey("NadekoBot.Db.Models.StreamRoleSettings", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired() .HasConstraintName("fk_streamrolesettings_guildconfigs_guildconfigid"); @@ -3488,47 +3488,47 @@ namespace NadekoBot.Db.Migrations.Mysql b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleWhitelistedUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleWhitelistedUser", b => { - b.HasOne("Nadeko.Bot.Db.Models.StreamRoleSettings", null) + b.HasOne("NadekoBot.Db.Models.StreamRoleSettings", null) .WithMany("Whitelist") .HasForeignKey("StreamRoleSettingsId") .HasConstraintName("fk_streamrolewhitelisteduser_streamrolesettings_streamrolesetti~"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnbanTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnbanTimer", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("UnbanTimer") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_unbantimer_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnmuteTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnmuteTimer", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("UnmuteTimers") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_unmutetimer_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnroleTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnroleTimer", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("UnroleTimer") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_unroletimer_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.VcRoleInfo", b => + modelBuilder.Entity("NadekoBot.Db.Models.VcRoleInfo", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("VcRoleInfos") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_vcroleinfo_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuInfo", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuInfo", b => { b.HasOne("NadekoBot.Db.Models.DiscordUser", "Affinity") .WithMany() @@ -3542,7 +3542,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.HasOne("NadekoBot.Db.Models.DiscordUser", "Waifu") .WithOne() - .HasForeignKey("Nadeko.Bot.Db.Models.WaifuInfo", "WaifuId") + .HasForeignKey("NadekoBot.Db.Models.WaifuInfo", "WaifuId") .OnDelete(DeleteBehavior.Cascade) .IsRequired() .HasConstraintName("fk_waifuinfo_discorduser_waifuid"); @@ -3554,9 +3554,9 @@ namespace NadekoBot.Db.Migrations.Mysql b.Navigation("Waifu"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuItem", b => { - b.HasOne("Nadeko.Bot.Db.Models.WaifuInfo", "WaifuInfo") + b.HasOne("NadekoBot.Db.Models.WaifuInfo", "WaifuInfo") .WithMany("Items") .HasForeignKey("WaifuInfoId") .HasConstraintName("fk_waifuitem_waifuinfo_waifuinfoid"); @@ -3564,7 +3564,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.Navigation("WaifuInfo"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuUpdate", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuUpdate", b => { b.HasOne("NadekoBot.Db.Models.DiscordUser", "New") .WithMany() @@ -3590,17 +3590,17 @@ namespace NadekoBot.Db.Migrations.Mysql b.Navigation("User"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WarningPunishment", b => + modelBuilder.Entity("NadekoBot.Db.Models.WarningPunishment", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("WarnPunishments") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_warningpunishment_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpCurrencyReward", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpCurrencyReward", b => { - b.HasOne("Nadeko.Bot.Db.Models.XpSettings", "XpSettings") + b.HasOne("NadekoBot.Db.Models.XpSettings", "XpSettings") .WithMany("CurrencyRewards") .HasForeignKey("XpSettingsId") .OnDelete(DeleteBehavior.Cascade) @@ -3610,9 +3610,9 @@ namespace NadekoBot.Db.Migrations.Mysql b.Navigation("XpSettings"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpRoleReward", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpRoleReward", b => { - b.HasOne("Nadeko.Bot.Db.Models.XpSettings", "XpSettings") + b.HasOne("NadekoBot.Db.Models.XpSettings", "XpSettings") .WithMany("RoleRewards") .HasForeignKey("XpSettingsId") .OnDelete(DeleteBehavior.Cascade) @@ -3622,11 +3622,11 @@ namespace NadekoBot.Db.Migrations.Mysql b.Navigation("XpSettings"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpSettings", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithOne("XpSettings") - .HasForeignKey("Nadeko.Bot.Db.Models.XpSettings", "GuildConfigId") + .HasForeignKey("NadekoBot.Db.Models.XpSettings", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired() .HasConstraintName("fk_xpsettings_guildconfigs_guildconfigid"); @@ -3700,23 +3700,23 @@ namespace NadekoBot.Db.Migrations.Mysql modelBuilder.Entity("NadekoBot.Db.Models.FollowedStream", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("FollowedStreams") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_followedstream_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiSpamSetting", b => { b.Navigation("IgnoredChannels"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoTranslateChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.AutoTranslateChannel", b => { b.Navigation("Users"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GuildConfig", b => + modelBuilder.Entity("NadekoBot.Db.Models.GuildConfig", b => { b.Navigation("AntiAltSetting"); @@ -3771,41 +3771,41 @@ namespace NadekoBot.Db.Migrations.Mysql b.Navigation("XpSettings"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.LogSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.LogSetting", b => { b.Navigation("LogIgnores"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.MusicPlaylist", b => + modelBuilder.Entity("NadekoBot.Db.Models.MusicPlaylist", b => { b.Navigation("Songs"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Poll", b => + modelBuilder.Entity("NadekoBot.Db.Models.Poll", b => { b.Navigation("Answers"); b.Navigation("Votes"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntry", b => + modelBuilder.Entity("NadekoBot.Db.Models.ShopEntry", b => { b.Navigation("Items"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleSettings", b => { b.Navigation("Blacklist"); b.Navigation("Whitelist"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuInfo", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuInfo", b => { b.Navigation("Items"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpSettings", b => { b.Navigation("CurrencyRewards"); diff --git a/src/NadekoBot/Migrations/Mysql/20240423153724_sticky-roles.cs b/src/NadekoBot/Migrations/Mysql/20240423153724_sticky-roles.cs index b3af99823..68f7829bf 100644 --- a/src/NadekoBot/Migrations/Mysql/20240423153724_sticky-roles.cs +++ b/src/NadekoBot/Migrations/Mysql/20240423153724_sticky-roles.cs @@ -1,5 +1,4 @@ -using System; -using Microsoft.EntityFrameworkCore.Metadata; +using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable diff --git a/src/NadekoBot/Migrations/Mysql/20240424203922_giveaway.Designer.cs b/src/NadekoBot/Migrations/Mysql/20240424203922_giveaway.Designer.cs index 408b12712..c5016c3c8 100644 --- a/src/NadekoBot/Migrations/Mysql/20240424203922_giveaway.Designer.cs +++ b/src/NadekoBot/Migrations/Mysql/20240424203922_giveaway.Designer.cs @@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Nadeko.Bot.Db; +using NadekoBot.Db; #nullable disable @@ -25,7 +25,7 @@ namespace NadekoBot.Db.Migrations.Mysql MySqlModelBuilderExtensions.AutoIncrementColumns(modelBuilder); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiAltSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiAltSetting", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -64,7 +64,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("antialtsetting", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiRaidSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiRaidSetting", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -107,7 +107,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("antiraidsetting", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamIgnore", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiSpamIgnore", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -137,7 +137,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("antispamignore", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiSpamSetting", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -180,7 +180,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("antispamsetting", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoCommand", b => + modelBuilder.Entity("NadekoBot.Db.Models.AutoCommand", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -231,7 +231,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("autocommands", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoTranslateChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.AutoTranslateChannel", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -269,7 +269,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("autotranslatechannels", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoTranslateUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.AutoTranslateUser", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -307,7 +307,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("autotranslateusers", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.BanTemplate", b => + modelBuilder.Entity("NadekoBot.Db.Models.BanTemplate", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -342,7 +342,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("bantemplates", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.BlacklistEntry", b => + modelBuilder.Entity("NadekoBot.Db.Models.BlacklistEntry", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -369,7 +369,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("blacklist", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.CommandAlias", b => + modelBuilder.Entity("NadekoBot.Db.Models.CommandAlias", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -403,7 +403,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("commandalias", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.CommandCooldown", b => + modelBuilder.Entity("NadekoBot.Db.Models.CommandCooldown", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -437,7 +437,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("commandcooldown", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.CurrencyTransaction", b => + modelBuilder.Entity("NadekoBot.Db.Models.CurrencyTransaction", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -487,7 +487,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("currencytransactions", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.DelMsgOnCmdChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.DelMsgOnCmdChannel", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -521,7 +521,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("delmsgoncmdchannel", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.DiscordPermOverride", b => + modelBuilder.Entity("NadekoBot.Db.Models.DiscordPermOverride", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -556,7 +556,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("discordpermoverrides", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ExcludedItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.ExcludedItem", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -590,7 +590,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("excludeditem", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FeedSub", b => + modelBuilder.Entity("NadekoBot.Db.Models.FeedSub", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -629,7 +629,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("feedsub", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterChannelId", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -659,7 +659,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("filterchannelid", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterLinksChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterLinksChannelId", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -689,7 +689,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("filterlinkschannelid", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterWordsChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterWordsChannelId", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -719,7 +719,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("filterwordschannelid", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilteredWord", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilteredWord", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -749,7 +749,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("filteredword", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GCChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.GCChannelId", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -779,7 +779,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("gcchannelid", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GamblingStats", b => + modelBuilder.Entity("NadekoBot.Db.Models.GamblingStats", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -814,7 +814,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("gamblingstats", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GroupName", b => + modelBuilder.Entity("NadekoBot.Db.Models.GroupName", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -849,7 +849,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("groupname", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GuildConfig", b => + modelBuilder.Entity("NadekoBot.Db.Models.GuildConfig", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1029,7 +1029,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("guildconfigs", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.IgnoredLogItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.IgnoredLogItem", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1064,7 +1064,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("ignoredlogchannels", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.IgnoredVoicePresenceChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.IgnoredVoicePresenceChannel", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1094,7 +1094,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("ignoredvoicepresencechannels", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ImageOnlyChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.ImageOnlyChannel", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1129,7 +1129,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("imageonlychannels", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.LogSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.LogSetting", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1228,7 +1228,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("logsettings", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.MusicPlayerSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.MusicPlayerSettings", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1277,7 +1277,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("musicplayersettings", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.MusicPlaylist", b => + modelBuilder.Entity("NadekoBot.Db.Models.MusicPlaylist", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1308,7 +1308,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("musicplaylists", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.MutedUserId", b => + modelBuilder.Entity("NadekoBot.Db.Models.MutedUserId", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1338,7 +1338,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("muteduserid", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.NadekoExpression", b => + modelBuilder.Entity("NadekoBot.Db.Models.NadekoExpression", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1389,7 +1389,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("expressions", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.NsfwBlacklistedTag", b => + modelBuilder.Entity("NadekoBot.Db.Models.NsfwBlacklistedTag", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1419,7 +1419,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("nsfwblacklistedtags", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Permissionv2", b => + modelBuilder.Entity("NadekoBot.Db.Models.Permissionv2", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1473,7 +1473,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("permissions", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PlantedCurrency", b => + modelBuilder.Entity("NadekoBot.Db.Models.PlantedCurrency", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1523,7 +1523,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("plantedcurrency", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PlaylistSong", b => + modelBuilder.Entity("NadekoBot.Db.Models.PlaylistSong", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1569,7 +1569,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("playlistsong", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Poll", b => + modelBuilder.Entity("NadekoBot.Db.Models.Poll", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1604,7 +1604,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("poll", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PollAnswer", b => + modelBuilder.Entity("NadekoBot.Db.Models.PollAnswer", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1638,7 +1638,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("pollanswer", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PollVote", b => + modelBuilder.Entity("NadekoBot.Db.Models.PollVote", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1672,7 +1672,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("pollvote", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Quote", b => + modelBuilder.Entity("NadekoBot.Db.Models.Quote", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1720,7 +1720,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("quotes", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ReactionRoleV2", b => + modelBuilder.Entity("NadekoBot.Db.Models.ReactionRoleV2", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1775,7 +1775,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("reactionroles", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Reminder", b => + modelBuilder.Entity("NadekoBot.Db.Models.Reminder", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1825,7 +1825,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("reminders", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Repeater", b => + modelBuilder.Entity("NadekoBot.Db.Models.Repeater", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1872,7 +1872,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("repeaters", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.RewardedUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.RewardedUser", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1911,7 +1911,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("rewardedusers", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.RotatingPlayingStatus", b => + modelBuilder.Entity("NadekoBot.Db.Models.RotatingPlayingStatus", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1938,7 +1938,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("rotatingstatus", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.SelfAssignedRole", b => + modelBuilder.Entity("NadekoBot.Db.Models.SelfAssignedRole", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1979,7 +1979,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("selfassignableroles", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntry", b => + modelBuilder.Entity("NadekoBot.Db.Models.ShopEntry", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2041,7 +2041,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("shopentry", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntryItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.ShopEntryItem", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2071,7 +2071,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("shopentryitem", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.SlowmodeIgnoredRole", b => + modelBuilder.Entity("NadekoBot.Db.Models.SlowmodeIgnoredRole", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2101,7 +2101,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("slowmodeignoredrole", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.SlowmodeIgnoredUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.SlowmodeIgnoredUser", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2131,7 +2131,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("slowmodeignoreduser", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StickyRole", b => + modelBuilder.Entity("NadekoBot.Db.Models.StickyRole", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2167,7 +2167,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("stickyroles", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleBlacklistedUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleBlacklistedUser", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2201,7 +2201,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("streamroleblacklisteduser", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleSettings", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2244,7 +2244,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("streamrolesettings", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleWhitelistedUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleWhitelistedUser", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2278,7 +2278,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("streamrolewhitelisteduser", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnbanTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnbanTimer", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2312,7 +2312,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("unbantimer", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnmuteTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnmuteTimer", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2346,7 +2346,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("unmutetimer", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnroleTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnroleTimer", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2384,7 +2384,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("unroletimer", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UserXpStats", b => + modelBuilder.Entity("NadekoBot.Db.Models.UserXpStats", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2439,7 +2439,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("userxpstats", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.VcRoleInfo", b => + modelBuilder.Entity("NadekoBot.Db.Models.VcRoleInfo", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2473,7 +2473,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("vcroleinfo", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuInfo", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuInfo", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2521,7 +2521,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("waifuinfo", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuItem", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2555,7 +2555,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("waifuitem", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuUpdate", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuUpdate", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2599,7 +2599,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("waifuupdates", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Warning", b => + modelBuilder.Entity("NadekoBot.Db.Models.Warning", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2657,7 +2657,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("warnings", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WarningPunishment", b => + modelBuilder.Entity("NadekoBot.Db.Models.WarningPunishment", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2699,7 +2699,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("warningpunishment", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpCurrencyReward", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpCurrencyReward", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2733,7 +2733,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("xpcurrencyreward", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpRoleReward", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpRoleReward", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2772,7 +2772,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("xprolereward", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpSettings", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -3289,21 +3289,21 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("xpshopowneditem", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiAltSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiAltSetting", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithOne("AntiAltSetting") - .HasForeignKey("Nadeko.Bot.Db.Models.AntiAltSetting", "GuildConfigId") + .HasForeignKey("NadekoBot.Db.Models.AntiAltSetting", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired() .HasConstraintName("fk_antialtsetting_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiRaidSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiRaidSetting", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithOne("AntiRaidSetting") - .HasForeignKey("Nadeko.Bot.Db.Models.AntiRaidSetting", "GuildConfigId") + .HasForeignKey("NadekoBot.Db.Models.AntiRaidSetting", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired() .HasConstraintName("fk_antiraidsetting_guildconfigs_guildconfigid"); @@ -3311,19 +3311,19 @@ namespace NadekoBot.Db.Migrations.Mysql b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamIgnore", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiSpamIgnore", b => { - b.HasOne("Nadeko.Bot.Db.Models.AntiSpamSetting", null) + b.HasOne("NadekoBot.Db.Models.AntiSpamSetting", null) .WithMany("IgnoredChannels") .HasForeignKey("AntiSpamSettingId") .HasConstraintName("fk_antispamignore_antispamsetting_antispamsettingid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiSpamSetting", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithOne("AntiSpamSetting") - .HasForeignKey("Nadeko.Bot.Db.Models.AntiSpamSetting", "GuildConfigId") + .HasForeignKey("NadekoBot.Db.Models.AntiSpamSetting", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired() .HasConstraintName("fk_antispamsetting_guildconfigs_guildconfigid"); @@ -3331,9 +3331,9 @@ namespace NadekoBot.Db.Migrations.Mysql b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoTranslateUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.AutoTranslateUser", b => { - b.HasOne("Nadeko.Bot.Db.Models.AutoTranslateChannel", "Channel") + b.HasOne("NadekoBot.Db.Models.AutoTranslateChannel", "Channel") .WithMany("Users") .HasForeignKey("ChannelId") .OnDelete(DeleteBehavior.Cascade) @@ -3343,41 +3343,41 @@ namespace NadekoBot.Db.Migrations.Mysql b.Navigation("Channel"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.CommandAlias", b => + modelBuilder.Entity("NadekoBot.Db.Models.CommandAlias", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("CommandAliases") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_commandalias_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.CommandCooldown", b => + modelBuilder.Entity("NadekoBot.Db.Models.CommandCooldown", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("CommandCooldowns") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_commandcooldown_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.DelMsgOnCmdChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.DelMsgOnCmdChannel", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("DelMsgOnCmdChannels") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_delmsgoncmdchannel_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ExcludedItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.ExcludedItem", b => { - b.HasOne("Nadeko.Bot.Db.Models.XpSettings", null) + b.HasOne("NadekoBot.Db.Models.XpSettings", null) .WithMany("ExclusionList") .HasForeignKey("XpSettingsId") .HasConstraintName("fk_excludeditem_xpsettings_xpsettingsid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FeedSub", b => + modelBuilder.Entity("NadekoBot.Db.Models.FeedSub", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithMany("FeedSubs") .HasForeignKey("GuildConfigId") .OnDelete(DeleteBehavior.Cascade) @@ -3387,41 +3387,41 @@ namespace NadekoBot.Db.Migrations.Mysql b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterChannelId", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("FilterInvitesChannelIds") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_filterchannelid_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterLinksChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterLinksChannelId", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("FilterLinksChannelIds") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_filterlinkschannelid_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterWordsChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterWordsChannelId", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("FilterWordsChannelIds") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_filterwordschannelid_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilteredWord", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilteredWord", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("FilteredWords") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_filteredword_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GCChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.GCChannelId", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithMany("GenerateCurrencyChannelIds") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_gcchannelid_guildconfigs_guildconfigid"); @@ -3429,9 +3429,9 @@ namespace NadekoBot.Db.Migrations.Mysql b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GroupName", b => + modelBuilder.Entity("NadekoBot.Db.Models.GroupName", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithMany("SelfAssignableRoleGroupNames") .HasForeignKey("GuildConfigId") .OnDelete(DeleteBehavior.Cascade) @@ -3441,9 +3441,9 @@ namespace NadekoBot.Db.Migrations.Mysql b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.IgnoredLogItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.IgnoredLogItem", b => { - b.HasOne("Nadeko.Bot.Db.Models.LogSetting", "LogSetting") + b.HasOne("NadekoBot.Db.Models.LogSetting", "LogSetting") .WithMany("LogIgnores") .HasForeignKey("LogSettingId") .OnDelete(DeleteBehavior.Cascade) @@ -3453,9 +3453,9 @@ namespace NadekoBot.Db.Migrations.Mysql b.Navigation("LogSetting"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.IgnoredVoicePresenceChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.IgnoredVoicePresenceChannel", b => { - b.HasOne("Nadeko.Bot.Db.Models.LogSetting", "LogSetting") + b.HasOne("NadekoBot.Db.Models.LogSetting", "LogSetting") .WithMany() .HasForeignKey("LogSettingId") .HasConstraintName("fk_ignoredvoicepresencechannels_logsettings_logsettingid"); @@ -3463,92 +3463,92 @@ namespace NadekoBot.Db.Migrations.Mysql b.Navigation("LogSetting"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.MutedUserId", b => + modelBuilder.Entity("NadekoBot.Db.Models.MutedUserId", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("MutedUsers") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_muteduserid_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Permissionv2", b => + modelBuilder.Entity("NadekoBot.Db.Models.Permissionv2", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("Permissions") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_permissions_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PlaylistSong", b => + modelBuilder.Entity("NadekoBot.Db.Models.PlaylistSong", b => { - b.HasOne("Nadeko.Bot.Db.Models.MusicPlaylist", null) + b.HasOne("NadekoBot.Db.Models.MusicPlaylist", null) .WithMany("Songs") .HasForeignKey("MusicPlaylistId") .OnDelete(DeleteBehavior.Cascade) .HasConstraintName("fk_playlistsong_musicplaylists_musicplaylistid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PollAnswer", b => + modelBuilder.Entity("NadekoBot.Db.Models.PollAnswer", b => { - b.HasOne("Nadeko.Bot.Db.Models.Poll", null) + b.HasOne("NadekoBot.Db.Models.Poll", null) .WithMany("Answers") .HasForeignKey("PollId") .HasConstraintName("fk_pollanswer_poll_pollid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PollVote", b => + modelBuilder.Entity("NadekoBot.Db.Models.PollVote", b => { - b.HasOne("Nadeko.Bot.Db.Models.Poll", null) + b.HasOne("NadekoBot.Db.Models.Poll", null) .WithMany("Votes") .HasForeignKey("PollId") .HasConstraintName("fk_pollvote_poll_pollid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntry", b => + modelBuilder.Entity("NadekoBot.Db.Models.ShopEntry", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("ShopEntries") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_shopentry_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntryItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.ShopEntryItem", b => { - b.HasOne("Nadeko.Bot.Db.Models.ShopEntry", null) + b.HasOne("NadekoBot.Db.Models.ShopEntry", null) .WithMany("Items") .HasForeignKey("ShopEntryId") .HasConstraintName("fk_shopentryitem_shopentry_shopentryid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.SlowmodeIgnoredRole", b => + modelBuilder.Entity("NadekoBot.Db.Models.SlowmodeIgnoredRole", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("SlowmodeIgnoredRoles") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_slowmodeignoredrole_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.SlowmodeIgnoredUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.SlowmodeIgnoredUser", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("SlowmodeIgnoredUsers") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_slowmodeignoreduser_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleBlacklistedUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleBlacklistedUser", b => { - b.HasOne("Nadeko.Bot.Db.Models.StreamRoleSettings", null) + b.HasOne("NadekoBot.Db.Models.StreamRoleSettings", null) .WithMany("Blacklist") .HasForeignKey("StreamRoleSettingsId") .HasConstraintName("fk_streamroleblacklisteduser_streamrolesettings_streamrolesetti~"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleSettings", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithOne("StreamRole") - .HasForeignKey("Nadeko.Bot.Db.Models.StreamRoleSettings", "GuildConfigId") + .HasForeignKey("NadekoBot.Db.Models.StreamRoleSettings", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired() .HasConstraintName("fk_streamrolesettings_guildconfigs_guildconfigid"); @@ -3556,47 +3556,47 @@ namespace NadekoBot.Db.Migrations.Mysql b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleWhitelistedUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleWhitelistedUser", b => { - b.HasOne("Nadeko.Bot.Db.Models.StreamRoleSettings", null) + b.HasOne("NadekoBot.Db.Models.StreamRoleSettings", null) .WithMany("Whitelist") .HasForeignKey("StreamRoleSettingsId") .HasConstraintName("fk_streamrolewhitelisteduser_streamrolesettings_streamrolesetti~"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnbanTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnbanTimer", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("UnbanTimer") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_unbantimer_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnmuteTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnmuteTimer", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("UnmuteTimers") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_unmutetimer_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnroleTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnroleTimer", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("UnroleTimer") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_unroletimer_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.VcRoleInfo", b => + modelBuilder.Entity("NadekoBot.Db.Models.VcRoleInfo", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("VcRoleInfos") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_vcroleinfo_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuInfo", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuInfo", b => { b.HasOne("NadekoBot.Db.Models.DiscordUser", "Affinity") .WithMany() @@ -3610,7 +3610,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.HasOne("NadekoBot.Db.Models.DiscordUser", "Waifu") .WithOne() - .HasForeignKey("Nadeko.Bot.Db.Models.WaifuInfo", "WaifuId") + .HasForeignKey("NadekoBot.Db.Models.WaifuInfo", "WaifuId") .OnDelete(DeleteBehavior.Cascade) .IsRequired() .HasConstraintName("fk_waifuinfo_discorduser_waifuid"); @@ -3622,9 +3622,9 @@ namespace NadekoBot.Db.Migrations.Mysql b.Navigation("Waifu"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuItem", b => { - b.HasOne("Nadeko.Bot.Db.Models.WaifuInfo", "WaifuInfo") + b.HasOne("NadekoBot.Db.Models.WaifuInfo", "WaifuInfo") .WithMany("Items") .HasForeignKey("WaifuInfoId") .HasConstraintName("fk_waifuitem_waifuinfo_waifuinfoid"); @@ -3632,7 +3632,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.Navigation("WaifuInfo"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuUpdate", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuUpdate", b => { b.HasOne("NadekoBot.Db.Models.DiscordUser", "New") .WithMany() @@ -3658,17 +3658,17 @@ namespace NadekoBot.Db.Migrations.Mysql b.Navigation("User"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WarningPunishment", b => + modelBuilder.Entity("NadekoBot.Db.Models.WarningPunishment", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("WarnPunishments") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_warningpunishment_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpCurrencyReward", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpCurrencyReward", b => { - b.HasOne("Nadeko.Bot.Db.Models.XpSettings", "XpSettings") + b.HasOne("NadekoBot.Db.Models.XpSettings", "XpSettings") .WithMany("CurrencyRewards") .HasForeignKey("XpSettingsId") .OnDelete(DeleteBehavior.Cascade) @@ -3678,9 +3678,9 @@ namespace NadekoBot.Db.Migrations.Mysql b.Navigation("XpSettings"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpRoleReward", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpRoleReward", b => { - b.HasOne("Nadeko.Bot.Db.Models.XpSettings", "XpSettings") + b.HasOne("NadekoBot.Db.Models.XpSettings", "XpSettings") .WithMany("RoleRewards") .HasForeignKey("XpSettingsId") .OnDelete(DeleteBehavior.Cascade) @@ -3690,11 +3690,11 @@ namespace NadekoBot.Db.Migrations.Mysql b.Navigation("XpSettings"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpSettings", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithOne("XpSettings") - .HasForeignKey("Nadeko.Bot.Db.Models.XpSettings", "GuildConfigId") + .HasForeignKey("NadekoBot.Db.Models.XpSettings", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired() .HasConstraintName("fk_xpsettings_guildconfigs_guildconfigid"); @@ -3768,7 +3768,7 @@ namespace NadekoBot.Db.Migrations.Mysql modelBuilder.Entity("NadekoBot.Db.Models.FollowedStream", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("FollowedStreams") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_followedstream_guildconfigs_guildconfigid"); @@ -3784,17 +3784,17 @@ namespace NadekoBot.Db.Migrations.Mysql .HasConstraintName("fk_giveawayuser_giveawaymodel_giveawayid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiSpamSetting", b => { b.Navigation("IgnoredChannels"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoTranslateChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.AutoTranslateChannel", b => { b.Navigation("Users"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GuildConfig", b => + modelBuilder.Entity("NadekoBot.Db.Models.GuildConfig", b => { b.Navigation("AntiAltSetting"); @@ -3849,41 +3849,41 @@ namespace NadekoBot.Db.Migrations.Mysql b.Navigation("XpSettings"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.LogSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.LogSetting", b => { b.Navigation("LogIgnores"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.MusicPlaylist", b => + modelBuilder.Entity("NadekoBot.Db.Models.MusicPlaylist", b => { b.Navigation("Songs"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Poll", b => + modelBuilder.Entity("NadekoBot.Db.Models.Poll", b => { b.Navigation("Answers"); b.Navigation("Votes"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntry", b => + modelBuilder.Entity("NadekoBot.Db.Models.ShopEntry", b => { b.Navigation("Items"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleSettings", b => { b.Navigation("Blacklist"); b.Navigation("Whitelist"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuInfo", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuInfo", b => { b.Navigation("Items"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpSettings", b => { b.Navigation("CurrencyRewards"); diff --git a/src/NadekoBot/Migrations/Mysql/20240424203922_giveaway.cs b/src/NadekoBot/Migrations/Mysql/20240424203922_giveaway.cs index b4dab4d60..2e41abfeb 100644 --- a/src/NadekoBot/Migrations/Mysql/20240424203922_giveaway.cs +++ b/src/NadekoBot/Migrations/Mysql/20240424203922_giveaway.cs @@ -1,5 +1,4 @@ -using System; -using Microsoft.EntityFrameworkCore.Metadata; +using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable diff --git a/src/NadekoBot/Migrations/Mysql/20240425132907_todolist.Designer.cs b/src/NadekoBot/Migrations/Mysql/20240425132907_todolist.Designer.cs index 679d4dabd..4afb26a8d 100644 --- a/src/NadekoBot/Migrations/Mysql/20240425132907_todolist.Designer.cs +++ b/src/NadekoBot/Migrations/Mysql/20240425132907_todolist.Designer.cs @@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Nadeko.Bot.Db; +using NadekoBot.Db; #nullable disable @@ -25,7 +25,7 @@ namespace NadekoBot.Db.Migrations.Mysql MySqlModelBuilderExtensions.AutoIncrementColumns(modelBuilder); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiAltSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiAltSetting", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -64,7 +64,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("antialtsetting", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiRaidSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiRaidSetting", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -107,7 +107,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("antiraidsetting", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamIgnore", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiSpamIgnore", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -137,7 +137,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("antispamignore", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiSpamSetting", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -180,7 +180,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("antispamsetting", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoCommand", b => + modelBuilder.Entity("NadekoBot.Db.Models.AutoCommand", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -231,7 +231,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("autocommands", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoTranslateChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.AutoTranslateChannel", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -269,7 +269,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("autotranslatechannels", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoTranslateUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.AutoTranslateUser", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -307,7 +307,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("autotranslateusers", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.BanTemplate", b => + modelBuilder.Entity("NadekoBot.Db.Models.BanTemplate", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -342,7 +342,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("bantemplates", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.BlacklistEntry", b => + modelBuilder.Entity("NadekoBot.Db.Models.BlacklistEntry", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -369,7 +369,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("blacklist", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.CommandAlias", b => + modelBuilder.Entity("NadekoBot.Db.Models.CommandAlias", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -403,7 +403,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("commandalias", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.CommandCooldown", b => + modelBuilder.Entity("NadekoBot.Db.Models.CommandCooldown", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -437,7 +437,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("commandcooldown", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.CurrencyTransaction", b => + modelBuilder.Entity("NadekoBot.Db.Models.CurrencyTransaction", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -487,7 +487,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("currencytransactions", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.DelMsgOnCmdChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.DelMsgOnCmdChannel", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -521,7 +521,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("delmsgoncmdchannel", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.DiscordPermOverride", b => + modelBuilder.Entity("NadekoBot.Db.Models.DiscordPermOverride", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -556,7 +556,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("discordpermoverrides", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ExcludedItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.ExcludedItem", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -590,7 +590,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("excludeditem", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FeedSub", b => + modelBuilder.Entity("NadekoBot.Db.Models.FeedSub", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -629,7 +629,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("feedsub", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterChannelId", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -659,7 +659,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("filterchannelid", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterLinksChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterLinksChannelId", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -689,7 +689,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("filterlinkschannelid", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterWordsChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterWordsChannelId", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -719,7 +719,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("filterwordschannelid", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilteredWord", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilteredWord", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -749,7 +749,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("filteredword", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GCChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.GCChannelId", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -779,7 +779,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("gcchannelid", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GamblingStats", b => + modelBuilder.Entity("NadekoBot.Db.Models.GamblingStats", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -814,7 +814,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("gamblingstats", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GroupName", b => + modelBuilder.Entity("NadekoBot.Db.Models.GroupName", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -849,7 +849,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("groupname", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GuildConfig", b => + modelBuilder.Entity("NadekoBot.Db.Models.GuildConfig", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1029,7 +1029,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("guildconfigs", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.IgnoredLogItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.IgnoredLogItem", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1064,7 +1064,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("ignoredlogchannels", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.IgnoredVoicePresenceChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.IgnoredVoicePresenceChannel", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1094,7 +1094,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("ignoredvoicepresencechannels", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ImageOnlyChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.ImageOnlyChannel", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1129,7 +1129,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("imageonlychannels", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.LogSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.LogSetting", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1228,7 +1228,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("logsettings", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.MusicPlayerSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.MusicPlayerSettings", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1277,7 +1277,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("musicplayersettings", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.MusicPlaylist", b => + modelBuilder.Entity("NadekoBot.Db.Models.MusicPlaylist", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1308,7 +1308,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("musicplaylists", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.MutedUserId", b => + modelBuilder.Entity("NadekoBot.Db.Models.MutedUserId", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1338,7 +1338,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("muteduserid", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.NadekoExpression", b => + modelBuilder.Entity("NadekoBot.Db.Models.NadekoExpression", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1389,7 +1389,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("expressions", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.NsfwBlacklistedTag", b => + modelBuilder.Entity("NadekoBot.Db.Models.NsfwBlacklistedTag", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1419,7 +1419,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("nsfwblacklistedtags", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Permissionv2", b => + modelBuilder.Entity("NadekoBot.Db.Models.Permissionv2", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1473,7 +1473,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("permissions", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PlantedCurrency", b => + modelBuilder.Entity("NadekoBot.Db.Models.PlantedCurrency", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1523,7 +1523,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("plantedcurrency", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PlaylistSong", b => + modelBuilder.Entity("NadekoBot.Db.Models.PlaylistSong", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1569,7 +1569,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("playlistsong", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Poll", b => + modelBuilder.Entity("NadekoBot.Db.Models.Poll", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1604,7 +1604,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("poll", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PollAnswer", b => + modelBuilder.Entity("NadekoBot.Db.Models.PollAnswer", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1638,7 +1638,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("pollanswer", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PollVote", b => + modelBuilder.Entity("NadekoBot.Db.Models.PollVote", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1672,7 +1672,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("pollvote", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Quote", b => + modelBuilder.Entity("NadekoBot.Db.Models.Quote", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1720,7 +1720,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("quotes", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ReactionRoleV2", b => + modelBuilder.Entity("NadekoBot.Db.Models.ReactionRoleV2", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1775,7 +1775,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("reactionroles", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Reminder", b => + modelBuilder.Entity("NadekoBot.Db.Models.Reminder", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1825,7 +1825,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("reminders", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Repeater", b => + modelBuilder.Entity("NadekoBot.Db.Models.Repeater", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1872,7 +1872,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("repeaters", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.RewardedUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.RewardedUser", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1911,7 +1911,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("rewardedusers", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.RotatingPlayingStatus", b => + modelBuilder.Entity("NadekoBot.Db.Models.RotatingPlayingStatus", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1938,7 +1938,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("rotatingstatus", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.SelfAssignedRole", b => + modelBuilder.Entity("NadekoBot.Db.Models.SelfAssignedRole", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1979,7 +1979,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("selfassignableroles", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntry", b => + modelBuilder.Entity("NadekoBot.Db.Models.ShopEntry", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2041,7 +2041,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("shopentry", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntryItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.ShopEntryItem", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2071,7 +2071,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("shopentryitem", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.SlowmodeIgnoredRole", b => + modelBuilder.Entity("NadekoBot.Db.Models.SlowmodeIgnoredRole", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2101,7 +2101,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("slowmodeignoredrole", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.SlowmodeIgnoredUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.SlowmodeIgnoredUser", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2131,7 +2131,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("slowmodeignoreduser", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StickyRole", b => + modelBuilder.Entity("NadekoBot.Db.Models.StickyRole", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2167,7 +2167,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("stickyroles", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleBlacklistedUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleBlacklistedUser", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2201,7 +2201,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("streamroleblacklisteduser", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleSettings", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2244,7 +2244,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("streamrolesettings", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleWhitelistedUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleWhitelistedUser", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2278,7 +2278,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("streamrolewhitelisteduser", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnbanTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnbanTimer", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2312,7 +2312,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("unbantimer", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnmuteTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnmuteTimer", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2346,7 +2346,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("unmutetimer", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnroleTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnroleTimer", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2384,7 +2384,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("unroletimer", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UserXpStats", b => + modelBuilder.Entity("NadekoBot.Db.Models.UserXpStats", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2439,7 +2439,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("userxpstats", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.VcRoleInfo", b => + modelBuilder.Entity("NadekoBot.Db.Models.VcRoleInfo", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2473,7 +2473,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("vcroleinfo", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuInfo", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuInfo", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2521,7 +2521,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("waifuinfo", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuItem", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2555,7 +2555,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("waifuitem", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuUpdate", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuUpdate", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2599,7 +2599,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("waifuupdates", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Warning", b => + modelBuilder.Entity("NadekoBot.Db.Models.Warning", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2657,7 +2657,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("warnings", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WarningPunishment", b => + modelBuilder.Entity("NadekoBot.Db.Models.WarningPunishment", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2699,7 +2699,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("warningpunishment", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpCurrencyReward", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpCurrencyReward", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2733,7 +2733,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("xpcurrencyreward", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpRoleReward", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpRoleReward", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2772,7 +2772,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("xprolereward", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpSettings", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -3355,21 +3355,21 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("xpshopowneditem", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiAltSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiAltSetting", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithOne("AntiAltSetting") - .HasForeignKey("Nadeko.Bot.Db.Models.AntiAltSetting", "GuildConfigId") + .HasForeignKey("NadekoBot.Db.Models.AntiAltSetting", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired() .HasConstraintName("fk_antialtsetting_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiRaidSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiRaidSetting", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithOne("AntiRaidSetting") - .HasForeignKey("Nadeko.Bot.Db.Models.AntiRaidSetting", "GuildConfigId") + .HasForeignKey("NadekoBot.Db.Models.AntiRaidSetting", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired() .HasConstraintName("fk_antiraidsetting_guildconfigs_guildconfigid"); @@ -3377,19 +3377,19 @@ namespace NadekoBot.Db.Migrations.Mysql b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamIgnore", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiSpamIgnore", b => { - b.HasOne("Nadeko.Bot.Db.Models.AntiSpamSetting", null) + b.HasOne("NadekoBot.Db.Models.AntiSpamSetting", null) .WithMany("IgnoredChannels") .HasForeignKey("AntiSpamSettingId") .HasConstraintName("fk_antispamignore_antispamsetting_antispamsettingid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiSpamSetting", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithOne("AntiSpamSetting") - .HasForeignKey("Nadeko.Bot.Db.Models.AntiSpamSetting", "GuildConfigId") + .HasForeignKey("NadekoBot.Db.Models.AntiSpamSetting", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired() .HasConstraintName("fk_antispamsetting_guildconfigs_guildconfigid"); @@ -3397,9 +3397,9 @@ namespace NadekoBot.Db.Migrations.Mysql b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoTranslateUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.AutoTranslateUser", b => { - b.HasOne("Nadeko.Bot.Db.Models.AutoTranslateChannel", "Channel") + b.HasOne("NadekoBot.Db.Models.AutoTranslateChannel", "Channel") .WithMany("Users") .HasForeignKey("ChannelId") .OnDelete(DeleteBehavior.Cascade) @@ -3409,41 +3409,41 @@ namespace NadekoBot.Db.Migrations.Mysql b.Navigation("Channel"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.CommandAlias", b => + modelBuilder.Entity("NadekoBot.Db.Models.CommandAlias", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("CommandAliases") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_commandalias_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.CommandCooldown", b => + modelBuilder.Entity("NadekoBot.Db.Models.CommandCooldown", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("CommandCooldowns") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_commandcooldown_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.DelMsgOnCmdChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.DelMsgOnCmdChannel", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("DelMsgOnCmdChannels") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_delmsgoncmdchannel_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ExcludedItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.ExcludedItem", b => { - b.HasOne("Nadeko.Bot.Db.Models.XpSettings", null) + b.HasOne("NadekoBot.Db.Models.XpSettings", null) .WithMany("ExclusionList") .HasForeignKey("XpSettingsId") .HasConstraintName("fk_excludeditem_xpsettings_xpsettingsid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FeedSub", b => + modelBuilder.Entity("NadekoBot.Db.Models.FeedSub", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithMany("FeedSubs") .HasForeignKey("GuildConfigId") .OnDelete(DeleteBehavior.Cascade) @@ -3453,41 +3453,41 @@ namespace NadekoBot.Db.Migrations.Mysql b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterChannelId", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("FilterInvitesChannelIds") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_filterchannelid_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterLinksChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterLinksChannelId", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("FilterLinksChannelIds") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_filterlinkschannelid_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterWordsChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterWordsChannelId", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("FilterWordsChannelIds") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_filterwordschannelid_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilteredWord", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilteredWord", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("FilteredWords") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_filteredword_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GCChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.GCChannelId", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithMany("GenerateCurrencyChannelIds") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_gcchannelid_guildconfigs_guildconfigid"); @@ -3495,9 +3495,9 @@ namespace NadekoBot.Db.Migrations.Mysql b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GroupName", b => + modelBuilder.Entity("NadekoBot.Db.Models.GroupName", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithMany("SelfAssignableRoleGroupNames") .HasForeignKey("GuildConfigId") .OnDelete(DeleteBehavior.Cascade) @@ -3507,9 +3507,9 @@ namespace NadekoBot.Db.Migrations.Mysql b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.IgnoredLogItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.IgnoredLogItem", b => { - b.HasOne("Nadeko.Bot.Db.Models.LogSetting", "LogSetting") + b.HasOne("NadekoBot.Db.Models.LogSetting", "LogSetting") .WithMany("LogIgnores") .HasForeignKey("LogSettingId") .OnDelete(DeleteBehavior.Cascade) @@ -3519,9 +3519,9 @@ namespace NadekoBot.Db.Migrations.Mysql b.Navigation("LogSetting"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.IgnoredVoicePresenceChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.IgnoredVoicePresenceChannel", b => { - b.HasOne("Nadeko.Bot.Db.Models.LogSetting", "LogSetting") + b.HasOne("NadekoBot.Db.Models.LogSetting", "LogSetting") .WithMany() .HasForeignKey("LogSettingId") .HasConstraintName("fk_ignoredvoicepresencechannels_logsettings_logsettingid"); @@ -3529,92 +3529,92 @@ namespace NadekoBot.Db.Migrations.Mysql b.Navigation("LogSetting"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.MutedUserId", b => + modelBuilder.Entity("NadekoBot.Db.Models.MutedUserId", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("MutedUsers") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_muteduserid_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Permissionv2", b => + modelBuilder.Entity("NadekoBot.Db.Models.Permissionv2", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("Permissions") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_permissions_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PlaylistSong", b => + modelBuilder.Entity("NadekoBot.Db.Models.PlaylistSong", b => { - b.HasOne("Nadeko.Bot.Db.Models.MusicPlaylist", null) + b.HasOne("NadekoBot.Db.Models.MusicPlaylist", null) .WithMany("Songs") .HasForeignKey("MusicPlaylistId") .OnDelete(DeleteBehavior.Cascade) .HasConstraintName("fk_playlistsong_musicplaylists_musicplaylistid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PollAnswer", b => + modelBuilder.Entity("NadekoBot.Db.Models.PollAnswer", b => { - b.HasOne("Nadeko.Bot.Db.Models.Poll", null) + b.HasOne("NadekoBot.Db.Models.Poll", null) .WithMany("Answers") .HasForeignKey("PollId") .HasConstraintName("fk_pollanswer_poll_pollid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PollVote", b => + modelBuilder.Entity("NadekoBot.Db.Models.PollVote", b => { - b.HasOne("Nadeko.Bot.Db.Models.Poll", null) + b.HasOne("NadekoBot.Db.Models.Poll", null) .WithMany("Votes") .HasForeignKey("PollId") .HasConstraintName("fk_pollvote_poll_pollid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntry", b => + modelBuilder.Entity("NadekoBot.Db.Models.ShopEntry", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("ShopEntries") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_shopentry_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntryItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.ShopEntryItem", b => { - b.HasOne("Nadeko.Bot.Db.Models.ShopEntry", null) + b.HasOne("NadekoBot.Db.Models.ShopEntry", null) .WithMany("Items") .HasForeignKey("ShopEntryId") .HasConstraintName("fk_shopentryitem_shopentry_shopentryid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.SlowmodeIgnoredRole", b => + modelBuilder.Entity("NadekoBot.Db.Models.SlowmodeIgnoredRole", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("SlowmodeIgnoredRoles") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_slowmodeignoredrole_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.SlowmodeIgnoredUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.SlowmodeIgnoredUser", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("SlowmodeIgnoredUsers") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_slowmodeignoreduser_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleBlacklistedUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleBlacklistedUser", b => { - b.HasOne("Nadeko.Bot.Db.Models.StreamRoleSettings", null) + b.HasOne("NadekoBot.Db.Models.StreamRoleSettings", null) .WithMany("Blacklist") .HasForeignKey("StreamRoleSettingsId") .HasConstraintName("fk_streamroleblacklisteduser_streamrolesettings_streamrolesetti~"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleSettings", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithOne("StreamRole") - .HasForeignKey("Nadeko.Bot.Db.Models.StreamRoleSettings", "GuildConfigId") + .HasForeignKey("NadekoBot.Db.Models.StreamRoleSettings", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired() .HasConstraintName("fk_streamrolesettings_guildconfigs_guildconfigid"); @@ -3622,47 +3622,47 @@ namespace NadekoBot.Db.Migrations.Mysql b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleWhitelistedUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleWhitelistedUser", b => { - b.HasOne("Nadeko.Bot.Db.Models.StreamRoleSettings", null) + b.HasOne("NadekoBot.Db.Models.StreamRoleSettings", null) .WithMany("Whitelist") .HasForeignKey("StreamRoleSettingsId") .HasConstraintName("fk_streamrolewhitelisteduser_streamrolesettings_streamrolesetti~"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnbanTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnbanTimer", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("UnbanTimer") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_unbantimer_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnmuteTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnmuteTimer", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("UnmuteTimers") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_unmutetimer_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnroleTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnroleTimer", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("UnroleTimer") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_unroletimer_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.VcRoleInfo", b => + modelBuilder.Entity("NadekoBot.Db.Models.VcRoleInfo", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("VcRoleInfos") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_vcroleinfo_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuInfo", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuInfo", b => { b.HasOne("NadekoBot.Db.Models.DiscordUser", "Affinity") .WithMany() @@ -3676,7 +3676,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.HasOne("NadekoBot.Db.Models.DiscordUser", "Waifu") .WithOne() - .HasForeignKey("Nadeko.Bot.Db.Models.WaifuInfo", "WaifuId") + .HasForeignKey("NadekoBot.Db.Models.WaifuInfo", "WaifuId") .OnDelete(DeleteBehavior.Cascade) .IsRequired() .HasConstraintName("fk_waifuinfo_discorduser_waifuid"); @@ -3688,9 +3688,9 @@ namespace NadekoBot.Db.Migrations.Mysql b.Navigation("Waifu"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuItem", b => { - b.HasOne("Nadeko.Bot.Db.Models.WaifuInfo", "WaifuInfo") + b.HasOne("NadekoBot.Db.Models.WaifuInfo", "WaifuInfo") .WithMany("Items") .HasForeignKey("WaifuInfoId") .HasConstraintName("fk_waifuitem_waifuinfo_waifuinfoid"); @@ -3698,7 +3698,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.Navigation("WaifuInfo"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuUpdate", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuUpdate", b => { b.HasOne("NadekoBot.Db.Models.DiscordUser", "New") .WithMany() @@ -3724,17 +3724,17 @@ namespace NadekoBot.Db.Migrations.Mysql b.Navigation("User"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WarningPunishment", b => + modelBuilder.Entity("NadekoBot.Db.Models.WarningPunishment", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("WarnPunishments") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_warningpunishment_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpCurrencyReward", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpCurrencyReward", b => { - b.HasOne("Nadeko.Bot.Db.Models.XpSettings", "XpSettings") + b.HasOne("NadekoBot.Db.Models.XpSettings", "XpSettings") .WithMany("CurrencyRewards") .HasForeignKey("XpSettingsId") .OnDelete(DeleteBehavior.Cascade) @@ -3744,9 +3744,9 @@ namespace NadekoBot.Db.Migrations.Mysql b.Navigation("XpSettings"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpRoleReward", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpRoleReward", b => { - b.HasOne("Nadeko.Bot.Db.Models.XpSettings", "XpSettings") + b.HasOne("NadekoBot.Db.Models.XpSettings", "XpSettings") .WithMany("RoleRewards") .HasForeignKey("XpSettingsId") .OnDelete(DeleteBehavior.Cascade) @@ -3756,11 +3756,11 @@ namespace NadekoBot.Db.Migrations.Mysql b.Navigation("XpSettings"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpSettings", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithOne("XpSettings") - .HasForeignKey("Nadeko.Bot.Db.Models.XpSettings", "GuildConfigId") + .HasForeignKey("NadekoBot.Db.Models.XpSettings", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired() .HasConstraintName("fk_xpsettings_guildconfigs_guildconfigid"); @@ -3834,7 +3834,7 @@ namespace NadekoBot.Db.Migrations.Mysql modelBuilder.Entity("NadekoBot.Db.Models.FollowedStream", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("FollowedStreams") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_followedstream_guildconfigs_guildconfigid"); @@ -3859,17 +3859,17 @@ namespace NadekoBot.Db.Migrations.Mysql .HasConstraintName("fk_todos_todosarchive_archiveid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiSpamSetting", b => { b.Navigation("IgnoredChannels"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoTranslateChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.AutoTranslateChannel", b => { b.Navigation("Users"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GuildConfig", b => + modelBuilder.Entity("NadekoBot.Db.Models.GuildConfig", b => { b.Navigation("AntiAltSetting"); @@ -3924,41 +3924,41 @@ namespace NadekoBot.Db.Migrations.Mysql b.Navigation("XpSettings"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.LogSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.LogSetting", b => { b.Navigation("LogIgnores"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.MusicPlaylist", b => + modelBuilder.Entity("NadekoBot.Db.Models.MusicPlaylist", b => { b.Navigation("Songs"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Poll", b => + modelBuilder.Entity("NadekoBot.Db.Models.Poll", b => { b.Navigation("Answers"); b.Navigation("Votes"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntry", b => + modelBuilder.Entity("NadekoBot.Db.Models.ShopEntry", b => { b.Navigation("Items"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleSettings", b => { b.Navigation("Blacklist"); b.Navigation("Whitelist"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuInfo", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuInfo", b => { b.Navigation("Items"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpSettings", b => { b.Navigation("CurrencyRewards"); diff --git a/src/NadekoBot/Migrations/Mysql/20240425132907_todolist.cs b/src/NadekoBot/Migrations/Mysql/20240425132907_todolist.cs index 56994184c..0c3d3c376 100644 --- a/src/NadekoBot/Migrations/Mysql/20240425132907_todolist.cs +++ b/src/NadekoBot/Migrations/Mysql/20240425132907_todolist.cs @@ -1,5 +1,4 @@ -using System; -using Microsoft.EntityFrameworkCore.Metadata; +using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable diff --git a/src/NadekoBot/Migrations/Mysql/MysqlContextModelSnapshot.cs b/src/NadekoBot/Migrations/Mysql/MysqlContextModelSnapshot.cs index d309e7037..3fa3b131d 100644 --- a/src/NadekoBot/Migrations/Mysql/MysqlContextModelSnapshot.cs +++ b/src/NadekoBot/Migrations/Mysql/MysqlContextModelSnapshot.cs @@ -4,7 +4,7 @@ using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Nadeko.Bot.Db; +using NadekoBot.Db; #nullable disable @@ -22,7 +22,7 @@ namespace NadekoBot.Db.Migrations.Mysql MySqlModelBuilderExtensions.AutoIncrementColumns(modelBuilder); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiAltSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiAltSetting", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -61,7 +61,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("antialtsetting", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiRaidSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiRaidSetting", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -104,7 +104,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("antiraidsetting", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamIgnore", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiSpamIgnore", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -134,7 +134,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("antispamignore", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiSpamSetting", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -177,7 +177,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("antispamsetting", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoCommand", b => + modelBuilder.Entity("NadekoBot.Db.Models.AutoCommand", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -228,7 +228,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("autocommands", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoTranslateChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.AutoTranslateChannel", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -266,7 +266,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("autotranslatechannels", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoTranslateUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.AutoTranslateUser", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -304,7 +304,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("autotranslateusers", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.BanTemplate", b => + modelBuilder.Entity("NadekoBot.Db.Models.BanTemplate", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -339,7 +339,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("bantemplates", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.BlacklistEntry", b => + modelBuilder.Entity("NadekoBot.Db.Models.BlacklistEntry", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -366,7 +366,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("blacklist", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.CommandAlias", b => + modelBuilder.Entity("NadekoBot.Db.Models.CommandAlias", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -400,7 +400,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("commandalias", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.CommandCooldown", b => + modelBuilder.Entity("NadekoBot.Db.Models.CommandCooldown", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -434,7 +434,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("commandcooldown", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.CurrencyTransaction", b => + modelBuilder.Entity("NadekoBot.Db.Models.CurrencyTransaction", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -484,7 +484,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("currencytransactions", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.DelMsgOnCmdChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.DelMsgOnCmdChannel", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -518,7 +518,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("delmsgoncmdchannel", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.DiscordPermOverride", b => + modelBuilder.Entity("NadekoBot.Db.Models.DiscordPermOverride", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -553,7 +553,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("discordpermoverrides", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ExcludedItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.ExcludedItem", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -587,7 +587,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("excludeditem", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FeedSub", b => + modelBuilder.Entity("NadekoBot.Db.Models.FeedSub", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -626,7 +626,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("feedsub", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterChannelId", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -656,7 +656,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("filterchannelid", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterLinksChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterLinksChannelId", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -686,7 +686,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("filterlinkschannelid", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterWordsChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterWordsChannelId", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -716,7 +716,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("filterwordschannelid", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilteredWord", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilteredWord", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -746,7 +746,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("filteredword", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GCChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.GCChannelId", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -776,7 +776,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("gcchannelid", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GamblingStats", b => + modelBuilder.Entity("NadekoBot.Db.Models.GamblingStats", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -811,7 +811,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("gamblingstats", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GroupName", b => + modelBuilder.Entity("NadekoBot.Db.Models.GroupName", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -846,7 +846,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("groupname", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GuildConfig", b => + modelBuilder.Entity("NadekoBot.Db.Models.GuildConfig", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1026,7 +1026,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("guildconfigs", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.IgnoredLogItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.IgnoredLogItem", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1061,7 +1061,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("ignoredlogchannels", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.IgnoredVoicePresenceChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.IgnoredVoicePresenceChannel", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1091,7 +1091,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("ignoredvoicepresencechannels", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ImageOnlyChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.ImageOnlyChannel", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1126,7 +1126,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("imageonlychannels", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.LogSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.LogSetting", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1225,7 +1225,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("logsettings", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.MusicPlayerSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.MusicPlayerSettings", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1274,7 +1274,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("musicplayersettings", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.MusicPlaylist", b => + modelBuilder.Entity("NadekoBot.Db.Models.MusicPlaylist", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1305,7 +1305,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("musicplaylists", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.MutedUserId", b => + modelBuilder.Entity("NadekoBot.Db.Models.MutedUserId", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1335,7 +1335,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("muteduserid", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.NadekoExpression", b => + modelBuilder.Entity("NadekoBot.Db.Models.NadekoExpression", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1386,7 +1386,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("expressions", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.NsfwBlacklistedTag", b => + modelBuilder.Entity("NadekoBot.Db.Models.NsfwBlacklistedTag", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1416,7 +1416,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("nsfwblacklistedtags", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Permissionv2", b => + modelBuilder.Entity("NadekoBot.Db.Models.Permissionv2", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1470,7 +1470,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("permissions", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PlantedCurrency", b => + modelBuilder.Entity("NadekoBot.Db.Models.PlantedCurrency", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1520,7 +1520,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("plantedcurrency", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PlaylistSong", b => + modelBuilder.Entity("NadekoBot.Db.Models.PlaylistSong", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1566,7 +1566,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("playlistsong", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Poll", b => + modelBuilder.Entity("NadekoBot.Db.Models.Poll", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1601,7 +1601,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("poll", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PollAnswer", b => + modelBuilder.Entity("NadekoBot.Db.Models.PollAnswer", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1635,7 +1635,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("pollanswer", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PollVote", b => + modelBuilder.Entity("NadekoBot.Db.Models.PollVote", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1669,7 +1669,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("pollvote", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Quote", b => + modelBuilder.Entity("NadekoBot.Db.Models.Quote", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1717,7 +1717,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("quotes", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ReactionRoleV2", b => + modelBuilder.Entity("NadekoBot.Db.Models.ReactionRoleV2", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1772,7 +1772,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("reactionroles", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Reminder", b => + modelBuilder.Entity("NadekoBot.Db.Models.Reminder", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1822,7 +1822,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("reminders", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Repeater", b => + modelBuilder.Entity("NadekoBot.Db.Models.Repeater", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1869,7 +1869,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("repeaters", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.RewardedUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.RewardedUser", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1908,7 +1908,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("rewardedusers", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.RotatingPlayingStatus", b => + modelBuilder.Entity("NadekoBot.Db.Models.RotatingPlayingStatus", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1935,7 +1935,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("rotatingstatus", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.SelfAssignedRole", b => + modelBuilder.Entity("NadekoBot.Db.Models.SelfAssignedRole", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1976,7 +1976,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("selfassignableroles", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntry", b => + modelBuilder.Entity("NadekoBot.Db.Models.ShopEntry", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2038,7 +2038,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("shopentry", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntryItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.ShopEntryItem", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2068,7 +2068,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("shopentryitem", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.SlowmodeIgnoredRole", b => + modelBuilder.Entity("NadekoBot.Db.Models.SlowmodeIgnoredRole", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2098,7 +2098,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("slowmodeignoredrole", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.SlowmodeIgnoredUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.SlowmodeIgnoredUser", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2128,7 +2128,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("slowmodeignoreduser", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StickyRole", b => + modelBuilder.Entity("NadekoBot.Db.Models.StickyRole", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2164,7 +2164,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("stickyroles", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleBlacklistedUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleBlacklistedUser", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2198,7 +2198,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("streamroleblacklisteduser", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleSettings", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2241,7 +2241,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("streamrolesettings", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleWhitelistedUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleWhitelistedUser", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2275,7 +2275,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("streamrolewhitelisteduser", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnbanTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnbanTimer", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2309,7 +2309,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("unbantimer", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnmuteTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnmuteTimer", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2343,7 +2343,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("unmutetimer", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnroleTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnroleTimer", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2381,7 +2381,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("unroletimer", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UserXpStats", b => + modelBuilder.Entity("NadekoBot.Db.Models.UserXpStats", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2436,7 +2436,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("userxpstats", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.VcRoleInfo", b => + modelBuilder.Entity("NadekoBot.Db.Models.VcRoleInfo", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2470,7 +2470,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("vcroleinfo", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuInfo", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuInfo", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2518,7 +2518,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("waifuinfo", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuItem", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2552,7 +2552,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("waifuitem", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuUpdate", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuUpdate", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2596,7 +2596,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("waifuupdates", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Warning", b => + modelBuilder.Entity("NadekoBot.Db.Models.Warning", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2654,7 +2654,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("warnings", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WarningPunishment", b => + modelBuilder.Entity("NadekoBot.Db.Models.WarningPunishment", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2696,7 +2696,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("warningpunishment", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpCurrencyReward", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpCurrencyReward", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2730,7 +2730,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("xpcurrencyreward", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpRoleReward", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpRoleReward", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2769,7 +2769,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("xprolereward", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpSettings", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -3352,21 +3352,21 @@ namespace NadekoBot.Db.Migrations.Mysql b.ToTable("xpshopowneditem", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiAltSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiAltSetting", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithOne("AntiAltSetting") - .HasForeignKey("Nadeko.Bot.Db.Models.AntiAltSetting", "GuildConfigId") + .HasForeignKey("NadekoBot.Db.Models.AntiAltSetting", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired() .HasConstraintName("fk_antialtsetting_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiRaidSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiRaidSetting", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithOne("AntiRaidSetting") - .HasForeignKey("Nadeko.Bot.Db.Models.AntiRaidSetting", "GuildConfigId") + .HasForeignKey("NadekoBot.Db.Models.AntiRaidSetting", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired() .HasConstraintName("fk_antiraidsetting_guildconfigs_guildconfigid"); @@ -3374,19 +3374,19 @@ namespace NadekoBot.Db.Migrations.Mysql b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamIgnore", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiSpamIgnore", b => { - b.HasOne("Nadeko.Bot.Db.Models.AntiSpamSetting", null) + b.HasOne("NadekoBot.Db.Models.AntiSpamSetting", null) .WithMany("IgnoredChannels") .HasForeignKey("AntiSpamSettingId") .HasConstraintName("fk_antispamignore_antispamsetting_antispamsettingid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiSpamSetting", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithOne("AntiSpamSetting") - .HasForeignKey("Nadeko.Bot.Db.Models.AntiSpamSetting", "GuildConfigId") + .HasForeignKey("NadekoBot.Db.Models.AntiSpamSetting", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired() .HasConstraintName("fk_antispamsetting_guildconfigs_guildconfigid"); @@ -3394,9 +3394,9 @@ namespace NadekoBot.Db.Migrations.Mysql b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoTranslateUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.AutoTranslateUser", b => { - b.HasOne("Nadeko.Bot.Db.Models.AutoTranslateChannel", "Channel") + b.HasOne("NadekoBot.Db.Models.AutoTranslateChannel", "Channel") .WithMany("Users") .HasForeignKey("ChannelId") .OnDelete(DeleteBehavior.Cascade) @@ -3406,41 +3406,41 @@ namespace NadekoBot.Db.Migrations.Mysql b.Navigation("Channel"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.CommandAlias", b => + modelBuilder.Entity("NadekoBot.Db.Models.CommandAlias", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("CommandAliases") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_commandalias_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.CommandCooldown", b => + modelBuilder.Entity("NadekoBot.Db.Models.CommandCooldown", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("CommandCooldowns") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_commandcooldown_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.DelMsgOnCmdChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.DelMsgOnCmdChannel", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("DelMsgOnCmdChannels") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_delmsgoncmdchannel_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ExcludedItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.ExcludedItem", b => { - b.HasOne("Nadeko.Bot.Db.Models.XpSettings", null) + b.HasOne("NadekoBot.Db.Models.XpSettings", null) .WithMany("ExclusionList") .HasForeignKey("XpSettingsId") .HasConstraintName("fk_excludeditem_xpsettings_xpsettingsid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FeedSub", b => + modelBuilder.Entity("NadekoBot.Db.Models.FeedSub", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithMany("FeedSubs") .HasForeignKey("GuildConfigId") .OnDelete(DeleteBehavior.Cascade) @@ -3450,41 +3450,41 @@ namespace NadekoBot.Db.Migrations.Mysql b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterChannelId", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("FilterInvitesChannelIds") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_filterchannelid_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterLinksChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterLinksChannelId", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("FilterLinksChannelIds") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_filterlinkschannelid_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterWordsChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterWordsChannelId", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("FilterWordsChannelIds") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_filterwordschannelid_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilteredWord", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilteredWord", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("FilteredWords") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_filteredword_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GCChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.GCChannelId", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithMany("GenerateCurrencyChannelIds") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_gcchannelid_guildconfigs_guildconfigid"); @@ -3492,9 +3492,9 @@ namespace NadekoBot.Db.Migrations.Mysql b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GroupName", b => + modelBuilder.Entity("NadekoBot.Db.Models.GroupName", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithMany("SelfAssignableRoleGroupNames") .HasForeignKey("GuildConfigId") .OnDelete(DeleteBehavior.Cascade) @@ -3504,9 +3504,9 @@ namespace NadekoBot.Db.Migrations.Mysql b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.IgnoredLogItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.IgnoredLogItem", b => { - b.HasOne("Nadeko.Bot.Db.Models.LogSetting", "LogSetting") + b.HasOne("NadekoBot.Db.Models.LogSetting", "LogSetting") .WithMany("LogIgnores") .HasForeignKey("LogSettingId") .OnDelete(DeleteBehavior.Cascade) @@ -3516,9 +3516,9 @@ namespace NadekoBot.Db.Migrations.Mysql b.Navigation("LogSetting"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.IgnoredVoicePresenceChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.IgnoredVoicePresenceChannel", b => { - b.HasOne("Nadeko.Bot.Db.Models.LogSetting", "LogSetting") + b.HasOne("NadekoBot.Db.Models.LogSetting", "LogSetting") .WithMany() .HasForeignKey("LogSettingId") .HasConstraintName("fk_ignoredvoicepresencechannels_logsettings_logsettingid"); @@ -3526,92 +3526,92 @@ namespace NadekoBot.Db.Migrations.Mysql b.Navigation("LogSetting"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.MutedUserId", b => + modelBuilder.Entity("NadekoBot.Db.Models.MutedUserId", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("MutedUsers") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_muteduserid_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Permissionv2", b => + modelBuilder.Entity("NadekoBot.Db.Models.Permissionv2", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("Permissions") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_permissions_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PlaylistSong", b => + modelBuilder.Entity("NadekoBot.Db.Models.PlaylistSong", b => { - b.HasOne("Nadeko.Bot.Db.Models.MusicPlaylist", null) + b.HasOne("NadekoBot.Db.Models.MusicPlaylist", null) .WithMany("Songs") .HasForeignKey("MusicPlaylistId") .OnDelete(DeleteBehavior.Cascade) .HasConstraintName("fk_playlistsong_musicplaylists_musicplaylistid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PollAnswer", b => + modelBuilder.Entity("NadekoBot.Db.Models.PollAnswer", b => { - b.HasOne("Nadeko.Bot.Db.Models.Poll", null) + b.HasOne("NadekoBot.Db.Models.Poll", null) .WithMany("Answers") .HasForeignKey("PollId") .HasConstraintName("fk_pollanswer_poll_pollid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PollVote", b => + modelBuilder.Entity("NadekoBot.Db.Models.PollVote", b => { - b.HasOne("Nadeko.Bot.Db.Models.Poll", null) + b.HasOne("NadekoBot.Db.Models.Poll", null) .WithMany("Votes") .HasForeignKey("PollId") .HasConstraintName("fk_pollvote_poll_pollid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntry", b => + modelBuilder.Entity("NadekoBot.Db.Models.ShopEntry", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("ShopEntries") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_shopentry_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntryItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.ShopEntryItem", b => { - b.HasOne("Nadeko.Bot.Db.Models.ShopEntry", null) + b.HasOne("NadekoBot.Db.Models.ShopEntry", null) .WithMany("Items") .HasForeignKey("ShopEntryId") .HasConstraintName("fk_shopentryitem_shopentry_shopentryid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.SlowmodeIgnoredRole", b => + modelBuilder.Entity("NadekoBot.Db.Models.SlowmodeIgnoredRole", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("SlowmodeIgnoredRoles") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_slowmodeignoredrole_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.SlowmodeIgnoredUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.SlowmodeIgnoredUser", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("SlowmodeIgnoredUsers") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_slowmodeignoreduser_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleBlacklistedUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleBlacklistedUser", b => { - b.HasOne("Nadeko.Bot.Db.Models.StreamRoleSettings", null) + b.HasOne("NadekoBot.Db.Models.StreamRoleSettings", null) .WithMany("Blacklist") .HasForeignKey("StreamRoleSettingsId") .HasConstraintName("fk_streamroleblacklisteduser_streamrolesettings_streamrolesetti~"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleSettings", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithOne("StreamRole") - .HasForeignKey("Nadeko.Bot.Db.Models.StreamRoleSettings", "GuildConfigId") + .HasForeignKey("NadekoBot.Db.Models.StreamRoleSettings", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired() .HasConstraintName("fk_streamrolesettings_guildconfigs_guildconfigid"); @@ -3619,47 +3619,47 @@ namespace NadekoBot.Db.Migrations.Mysql b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleWhitelistedUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleWhitelistedUser", b => { - b.HasOne("Nadeko.Bot.Db.Models.StreamRoleSettings", null) + b.HasOne("NadekoBot.Db.Models.StreamRoleSettings", null) .WithMany("Whitelist") .HasForeignKey("StreamRoleSettingsId") .HasConstraintName("fk_streamrolewhitelisteduser_streamrolesettings_streamrolesetti~"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnbanTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnbanTimer", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("UnbanTimer") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_unbantimer_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnmuteTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnmuteTimer", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("UnmuteTimers") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_unmutetimer_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnroleTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnroleTimer", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("UnroleTimer") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_unroletimer_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.VcRoleInfo", b => + modelBuilder.Entity("NadekoBot.Db.Models.VcRoleInfo", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("VcRoleInfos") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_vcroleinfo_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuInfo", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuInfo", b => { b.HasOne("NadekoBot.Db.Models.DiscordUser", "Affinity") .WithMany() @@ -3673,7 +3673,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.HasOne("NadekoBot.Db.Models.DiscordUser", "Waifu") .WithOne() - .HasForeignKey("Nadeko.Bot.Db.Models.WaifuInfo", "WaifuId") + .HasForeignKey("NadekoBot.Db.Models.WaifuInfo", "WaifuId") .OnDelete(DeleteBehavior.Cascade) .IsRequired() .HasConstraintName("fk_waifuinfo_discorduser_waifuid"); @@ -3685,9 +3685,9 @@ namespace NadekoBot.Db.Migrations.Mysql b.Navigation("Waifu"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuItem", b => { - b.HasOne("Nadeko.Bot.Db.Models.WaifuInfo", "WaifuInfo") + b.HasOne("NadekoBot.Db.Models.WaifuInfo", "WaifuInfo") .WithMany("Items") .HasForeignKey("WaifuInfoId") .HasConstraintName("fk_waifuitem_waifuinfo_waifuinfoid"); @@ -3695,7 +3695,7 @@ namespace NadekoBot.Db.Migrations.Mysql b.Navigation("WaifuInfo"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuUpdate", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuUpdate", b => { b.HasOne("NadekoBot.Db.Models.DiscordUser", "New") .WithMany() @@ -3721,17 +3721,17 @@ namespace NadekoBot.Db.Migrations.Mysql b.Navigation("User"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WarningPunishment", b => + modelBuilder.Entity("NadekoBot.Db.Models.WarningPunishment", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("WarnPunishments") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_warningpunishment_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpCurrencyReward", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpCurrencyReward", b => { - b.HasOne("Nadeko.Bot.Db.Models.XpSettings", "XpSettings") + b.HasOne("NadekoBot.Db.Models.XpSettings", "XpSettings") .WithMany("CurrencyRewards") .HasForeignKey("XpSettingsId") .OnDelete(DeleteBehavior.Cascade) @@ -3741,9 +3741,9 @@ namespace NadekoBot.Db.Migrations.Mysql b.Navigation("XpSettings"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpRoleReward", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpRoleReward", b => { - b.HasOne("Nadeko.Bot.Db.Models.XpSettings", "XpSettings") + b.HasOne("NadekoBot.Db.Models.XpSettings", "XpSettings") .WithMany("RoleRewards") .HasForeignKey("XpSettingsId") .OnDelete(DeleteBehavior.Cascade) @@ -3753,11 +3753,11 @@ namespace NadekoBot.Db.Migrations.Mysql b.Navigation("XpSettings"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpSettings", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithOne("XpSettings") - .HasForeignKey("Nadeko.Bot.Db.Models.XpSettings", "GuildConfigId") + .HasForeignKey("NadekoBot.Db.Models.XpSettings", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired() .HasConstraintName("fk_xpsettings_guildconfigs_guildconfigid"); @@ -3831,7 +3831,7 @@ namespace NadekoBot.Db.Migrations.Mysql modelBuilder.Entity("NadekoBot.Db.Models.FollowedStream", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("FollowedStreams") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_followedstream_guildconfigs_guildconfigid"); @@ -3856,17 +3856,17 @@ namespace NadekoBot.Db.Migrations.Mysql .HasConstraintName("fk_todos_todosarchive_archiveid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiSpamSetting", b => { b.Navigation("IgnoredChannels"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoTranslateChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.AutoTranslateChannel", b => { b.Navigation("Users"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GuildConfig", b => + modelBuilder.Entity("NadekoBot.Db.Models.GuildConfig", b => { b.Navigation("AntiAltSetting"); @@ -3921,41 +3921,41 @@ namespace NadekoBot.Db.Migrations.Mysql b.Navigation("XpSettings"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.LogSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.LogSetting", b => { b.Navigation("LogIgnores"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.MusicPlaylist", b => + modelBuilder.Entity("NadekoBot.Db.Models.MusicPlaylist", b => { b.Navigation("Songs"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Poll", b => + modelBuilder.Entity("NadekoBot.Db.Models.Poll", b => { b.Navigation("Answers"); b.Navigation("Votes"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntry", b => + modelBuilder.Entity("NadekoBot.Db.Models.ShopEntry", b => { b.Navigation("Items"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleSettings", b => { b.Navigation("Blacklist"); b.Navigation("Whitelist"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuInfo", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuInfo", b => { b.Navigation("Items"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpSettings", b => { b.Navigation("CurrencyRewards"); diff --git a/src/NadekoBot/Migrations/Postgresql/20221122204423_feed-text.Designer.cs b/src/NadekoBot/Migrations/Postgresql/20221122204423_feed-text.Designer.cs index 5ca6311cb..125340c37 100644 --- a/src/NadekoBot/Migrations/Postgresql/20221122204423_feed-text.Designer.cs +++ b/src/NadekoBot/Migrations/Postgresql/20221122204423_feed-text.Designer.cs @@ -4,7 +4,7 @@ using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Nadeko.Bot.Db; +using NadekoBot.Db; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable diff --git a/src/NadekoBot/Migrations/Postgresql/20221122204423_feed-text.cs b/src/NadekoBot/Migrations/Postgresql/20221122204423_feed-text.cs index 28049513b..1649e75a8 100644 --- a/src/NadekoBot/Migrations/Postgresql/20221122204423_feed-text.cs +++ b/src/NadekoBot/Migrations/Postgresql/20221122204423_feed-text.cs @@ -1,5 +1,4 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Migrations; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable diff --git a/src/NadekoBot/Migrations/Postgresql/20230813113832_timely-reminder-type.Designer.cs b/src/NadekoBot/Migrations/Postgresql/20230813113832_timely-reminder-type.Designer.cs index d7d413730..12cd84b16 100644 --- a/src/NadekoBot/Migrations/Postgresql/20230813113832_timely-reminder-type.Designer.cs +++ b/src/NadekoBot/Migrations/Postgresql/20230813113832_timely-reminder-type.Designer.cs @@ -4,7 +4,7 @@ using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Nadeko.Bot.Db; +using NadekoBot.Db; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable diff --git a/src/NadekoBot/Migrations/Postgresql/20230903154851_clubinfo-name-index.Designer.cs b/src/NadekoBot/Migrations/Postgresql/20230903154851_clubinfo-name-index.Designer.cs index 257296aec..e9f83bf05 100644 --- a/src/NadekoBot/Migrations/Postgresql/20230903154851_clubinfo-name-index.Designer.cs +++ b/src/NadekoBot/Migrations/Postgresql/20230903154851_clubinfo-name-index.Designer.cs @@ -4,7 +4,7 @@ using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Nadeko.Bot.Db; +using NadekoBot.Db; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable diff --git a/src/NadekoBot/Migrations/Postgresql/20240423140552_shopcommands.Designer.cs b/src/NadekoBot/Migrations/Postgresql/20240423140552_shopcommands.Designer.cs index 0624721f8..3b75af61f 100644 --- a/src/NadekoBot/Migrations/Postgresql/20240423140552_shopcommands.Designer.cs +++ b/src/NadekoBot/Migrations/Postgresql/20240423140552_shopcommands.Designer.cs @@ -4,7 +4,7 @@ using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Nadeko.Bot.Db; +using NadekoBot.Db; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable @@ -25,7 +25,7 @@ namespace NadekoBot.Db.Migrations NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiAltSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiAltSetting", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -64,7 +64,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("antialtsetting", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiRaidSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiRaidSetting", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -107,7 +107,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("antiraidsetting", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamIgnore", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiSpamIgnore", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -137,7 +137,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("antispamignore", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiSpamSetting", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -180,7 +180,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("antispamsetting", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoCommand", b => + modelBuilder.Entity("NadekoBot.Db.Models.AutoCommand", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -231,7 +231,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("autocommands", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoTranslateChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.AutoTranslateChannel", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -269,7 +269,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("autotranslatechannels", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoTranslateUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.AutoTranslateUser", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -307,7 +307,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("autotranslateusers", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.BanTemplate", b => + modelBuilder.Entity("NadekoBot.Db.Models.BanTemplate", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -342,7 +342,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("bantemplates", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.BlacklistEntry", b => + modelBuilder.Entity("NadekoBot.Db.Models.BlacklistEntry", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -369,7 +369,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("blacklist", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.CommandAlias", b => + modelBuilder.Entity("NadekoBot.Db.Models.CommandAlias", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -403,7 +403,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("commandalias", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.CommandCooldown", b => + modelBuilder.Entity("NadekoBot.Db.Models.CommandCooldown", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -437,7 +437,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("commandcooldown", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.CurrencyTransaction", b => + modelBuilder.Entity("NadekoBot.Db.Models.CurrencyTransaction", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -487,7 +487,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("currencytransactions", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.DelMsgOnCmdChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.DelMsgOnCmdChannel", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -521,7 +521,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("delmsgoncmdchannel", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.DiscordPermOverride", b => + modelBuilder.Entity("NadekoBot.Db.Models.DiscordPermOverride", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -556,7 +556,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("discordpermoverrides", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ExcludedItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.ExcludedItem", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -590,7 +590,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("excludeditem", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FeedSub", b => + modelBuilder.Entity("NadekoBot.Db.Models.FeedSub", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -629,7 +629,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("feedsub", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterChannelId", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -659,7 +659,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("filterchannelid", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterLinksChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterLinksChannelId", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -689,7 +689,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("filterlinkschannelid", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterWordsChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterWordsChannelId", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -719,7 +719,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("filterwordschannelid", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilteredWord", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilteredWord", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -749,7 +749,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("filteredword", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GCChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.GCChannelId", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -779,7 +779,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("gcchannelid", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GamblingStats", b => + modelBuilder.Entity("NadekoBot.Db.Models.GamblingStats", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -814,7 +814,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("gamblingstats", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GroupName", b => + modelBuilder.Entity("NadekoBot.Db.Models.GroupName", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -849,7 +849,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("groupname", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GuildConfig", b => + modelBuilder.Entity("NadekoBot.Db.Models.GuildConfig", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1025,7 +1025,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("guildconfigs", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.IgnoredLogItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.IgnoredLogItem", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1060,7 +1060,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("ignoredlogchannels", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.IgnoredVoicePresenceChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.IgnoredVoicePresenceChannel", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1090,7 +1090,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("ignoredvoicepresencechannels", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ImageOnlyChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.ImageOnlyChannel", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1125,7 +1125,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("imageonlychannels", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.LogSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.LogSetting", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1224,7 +1224,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("logsettings", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.MusicPlayerSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.MusicPlayerSettings", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1273,7 +1273,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("musicplayersettings", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.MusicPlaylist", b => + modelBuilder.Entity("NadekoBot.Db.Models.MusicPlaylist", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1304,7 +1304,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("musicplaylists", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.MutedUserId", b => + modelBuilder.Entity("NadekoBot.Db.Models.MutedUserId", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1334,7 +1334,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("muteduserid", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.NadekoExpression", b => + modelBuilder.Entity("NadekoBot.Db.Models.NadekoExpression", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1385,7 +1385,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("expressions", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.NsfwBlacklistedTag", b => + modelBuilder.Entity("NadekoBot.Db.Models.NsfwBlacklistedTag", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1415,7 +1415,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("nsfwblacklistedtags", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Permissionv2", b => + modelBuilder.Entity("NadekoBot.Db.Models.Permissionv2", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1469,7 +1469,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("permissions", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PlantedCurrency", b => + modelBuilder.Entity("NadekoBot.Db.Models.PlantedCurrency", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1519,7 +1519,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("plantedcurrency", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PlaylistSong", b => + modelBuilder.Entity("NadekoBot.Db.Models.PlaylistSong", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1565,7 +1565,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("playlistsong", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Poll", b => + modelBuilder.Entity("NadekoBot.Db.Models.Poll", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1600,7 +1600,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("poll", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PollAnswer", b => + modelBuilder.Entity("NadekoBot.Db.Models.PollAnswer", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1634,7 +1634,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("pollanswer", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PollVote", b => + modelBuilder.Entity("NadekoBot.Db.Models.PollVote", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1668,7 +1668,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("pollvote", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Quote", b => + modelBuilder.Entity("NadekoBot.Db.Models.Quote", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1716,7 +1716,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("quotes", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ReactionRoleV2", b => + modelBuilder.Entity("NadekoBot.Db.Models.ReactionRoleV2", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1771,7 +1771,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("reactionroles", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Reminder", b => + modelBuilder.Entity("NadekoBot.Db.Models.Reminder", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1821,7 +1821,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("reminders", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Repeater", b => + modelBuilder.Entity("NadekoBot.Db.Models.Repeater", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1868,7 +1868,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("repeaters", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.RewardedUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.RewardedUser", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1907,7 +1907,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("rewardedusers", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.RotatingPlayingStatus", b => + modelBuilder.Entity("NadekoBot.Db.Models.RotatingPlayingStatus", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1934,7 +1934,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("rotatingstatus", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.SelfAssignedRole", b => + modelBuilder.Entity("NadekoBot.Db.Models.SelfAssignedRole", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1975,7 +1975,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("selfassignableroles", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntry", b => + modelBuilder.Entity("NadekoBot.Db.Models.ShopEntry", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2037,7 +2037,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("shopentry", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntryItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.ShopEntryItem", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2067,7 +2067,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("shopentryitem", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.SlowmodeIgnoredRole", b => + modelBuilder.Entity("NadekoBot.Db.Models.SlowmodeIgnoredRole", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2097,7 +2097,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("slowmodeignoredrole", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.SlowmodeIgnoredUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.SlowmodeIgnoredUser", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2127,7 +2127,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("slowmodeignoreduser", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleBlacklistedUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleBlacklistedUser", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2161,7 +2161,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("streamroleblacklisteduser", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleSettings", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2204,7 +2204,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("streamrolesettings", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleWhitelistedUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleWhitelistedUser", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2238,7 +2238,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("streamrolewhitelisteduser", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnbanTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnbanTimer", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2272,7 +2272,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("unbantimer", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnmuteTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnmuteTimer", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2306,7 +2306,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("unmutetimer", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnroleTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnroleTimer", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2344,7 +2344,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("unroletimer", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UserXpStats", b => + modelBuilder.Entity("NadekoBot.Db.Models.UserXpStats", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2399,7 +2399,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("userxpstats", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.VcRoleInfo", b => + modelBuilder.Entity("NadekoBot.Db.Models.VcRoleInfo", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2433,7 +2433,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("vcroleinfo", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuInfo", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuInfo", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2481,7 +2481,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("waifuinfo", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuItem", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2515,7 +2515,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("waifuitem", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuUpdate", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuUpdate", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2559,7 +2559,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("waifuupdates", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Warning", b => + modelBuilder.Entity("NadekoBot.Db.Models.Warning", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2617,7 +2617,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("warnings", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WarningPunishment", b => + modelBuilder.Entity("NadekoBot.Db.Models.WarningPunishment", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2659,7 +2659,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("warningpunishment", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpCurrencyReward", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpCurrencyReward", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2693,7 +2693,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("xpcurrencyreward", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpRoleReward", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpRoleReward", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2732,7 +2732,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("xprolereward", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpSettings", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -3178,21 +3178,21 @@ namespace NadekoBot.Db.Migrations b.ToTable("xpshopowneditem", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiAltSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiAltSetting", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithOne("AntiAltSetting") - .HasForeignKey("Nadeko.Bot.Db.Models.AntiAltSetting", "GuildConfigId") + .HasForeignKey("NadekoBot.Db.Models.AntiAltSetting", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired() .HasConstraintName("fk_antialtsetting_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiRaidSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiRaidSetting", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithOne("AntiRaidSetting") - .HasForeignKey("Nadeko.Bot.Db.Models.AntiRaidSetting", "GuildConfigId") + .HasForeignKey("NadekoBot.Db.Models.AntiRaidSetting", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired() .HasConstraintName("fk_antiraidsetting_guildconfigs_guildconfigid"); @@ -3200,19 +3200,19 @@ namespace NadekoBot.Db.Migrations b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamIgnore", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiSpamIgnore", b => { - b.HasOne("Nadeko.Bot.Db.Models.AntiSpamSetting", null) + b.HasOne("NadekoBot.Db.Models.AntiSpamSetting", null) .WithMany("IgnoredChannels") .HasForeignKey("AntiSpamSettingId") .HasConstraintName("fk_antispamignore_antispamsetting_antispamsettingid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiSpamSetting", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithOne("AntiSpamSetting") - .HasForeignKey("Nadeko.Bot.Db.Models.AntiSpamSetting", "GuildConfigId") + .HasForeignKey("NadekoBot.Db.Models.AntiSpamSetting", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired() .HasConstraintName("fk_antispamsetting_guildconfigs_guildconfigid"); @@ -3220,9 +3220,9 @@ namespace NadekoBot.Db.Migrations b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoTranslateUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.AutoTranslateUser", b => { - b.HasOne("Nadeko.Bot.Db.Models.AutoTranslateChannel", "Channel") + b.HasOne("NadekoBot.Db.Models.AutoTranslateChannel", "Channel") .WithMany("Users") .HasForeignKey("ChannelId") .OnDelete(DeleteBehavior.Cascade) @@ -3232,41 +3232,41 @@ namespace NadekoBot.Db.Migrations b.Navigation("Channel"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.CommandAlias", b => + modelBuilder.Entity("NadekoBot.Db.Models.CommandAlias", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("CommandAliases") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_commandalias_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.CommandCooldown", b => + modelBuilder.Entity("NadekoBot.Db.Models.CommandCooldown", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("CommandCooldowns") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_commandcooldown_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.DelMsgOnCmdChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.DelMsgOnCmdChannel", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("DelMsgOnCmdChannels") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_delmsgoncmdchannel_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ExcludedItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.ExcludedItem", b => { - b.HasOne("Nadeko.Bot.Db.Models.XpSettings", null) + b.HasOne("NadekoBot.Db.Models.XpSettings", null) .WithMany("ExclusionList") .HasForeignKey("XpSettingsId") .HasConstraintName("fk_excludeditem_xpsettings_xpsettingsid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FeedSub", b => + modelBuilder.Entity("NadekoBot.Db.Models.FeedSub", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithMany("FeedSubs") .HasForeignKey("GuildConfigId") .OnDelete(DeleteBehavior.Cascade) @@ -3276,41 +3276,41 @@ namespace NadekoBot.Db.Migrations b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterChannelId", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("FilterInvitesChannelIds") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_filterchannelid_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterLinksChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterLinksChannelId", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("FilterLinksChannelIds") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_filterlinkschannelid_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterWordsChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterWordsChannelId", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("FilterWordsChannelIds") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_filterwordschannelid_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilteredWord", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilteredWord", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("FilteredWords") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_filteredword_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GCChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.GCChannelId", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithMany("GenerateCurrencyChannelIds") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_gcchannelid_guildconfigs_guildconfigid"); @@ -3318,9 +3318,9 @@ namespace NadekoBot.Db.Migrations b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GroupName", b => + modelBuilder.Entity("NadekoBot.Db.Models.GroupName", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithMany("SelfAssignableRoleGroupNames") .HasForeignKey("GuildConfigId") .OnDelete(DeleteBehavior.Cascade) @@ -3330,9 +3330,9 @@ namespace NadekoBot.Db.Migrations b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.IgnoredLogItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.IgnoredLogItem", b => { - b.HasOne("Nadeko.Bot.Db.Models.LogSetting", "LogSetting") + b.HasOne("NadekoBot.Db.Models.LogSetting", "LogSetting") .WithMany("LogIgnores") .HasForeignKey("LogSettingId") .OnDelete(DeleteBehavior.Cascade) @@ -3342,9 +3342,9 @@ namespace NadekoBot.Db.Migrations b.Navigation("LogSetting"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.IgnoredVoicePresenceChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.IgnoredVoicePresenceChannel", b => { - b.HasOne("Nadeko.Bot.Db.Models.LogSetting", "LogSetting") + b.HasOne("NadekoBot.Db.Models.LogSetting", "LogSetting") .WithMany() .HasForeignKey("LogSettingId") .HasConstraintName("fk_ignoredvoicepresencechannels_logsettings_logsettingid"); @@ -3352,92 +3352,92 @@ namespace NadekoBot.Db.Migrations b.Navigation("LogSetting"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.MutedUserId", b => + modelBuilder.Entity("NadekoBot.Db.Models.MutedUserId", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("MutedUsers") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_muteduserid_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Permissionv2", b => + modelBuilder.Entity("NadekoBot.Db.Models.Permissionv2", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("Permissions") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_permissions_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PlaylistSong", b => + modelBuilder.Entity("NadekoBot.Db.Models.PlaylistSong", b => { - b.HasOne("Nadeko.Bot.Db.Models.MusicPlaylist", null) + b.HasOne("NadekoBot.Db.Models.MusicPlaylist", null) .WithMany("Songs") .HasForeignKey("MusicPlaylistId") .OnDelete(DeleteBehavior.Cascade) .HasConstraintName("fk_playlistsong_musicplaylists_musicplaylistid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PollAnswer", b => + modelBuilder.Entity("NadekoBot.Db.Models.PollAnswer", b => { - b.HasOne("Nadeko.Bot.Db.Models.Poll", null) + b.HasOne("NadekoBot.Db.Models.Poll", null) .WithMany("Answers") .HasForeignKey("PollId") .HasConstraintName("fk_pollanswer_poll_pollid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PollVote", b => + modelBuilder.Entity("NadekoBot.Db.Models.PollVote", b => { - b.HasOne("Nadeko.Bot.Db.Models.Poll", null) + b.HasOne("NadekoBot.Db.Models.Poll", null) .WithMany("Votes") .HasForeignKey("PollId") .HasConstraintName("fk_pollvote_poll_pollid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntry", b => + modelBuilder.Entity("NadekoBot.Db.Models.ShopEntry", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("ShopEntries") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_shopentry_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntryItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.ShopEntryItem", b => { - b.HasOne("Nadeko.Bot.Db.Models.ShopEntry", null) + b.HasOne("NadekoBot.Db.Models.ShopEntry", null) .WithMany("Items") .HasForeignKey("ShopEntryId") .HasConstraintName("fk_shopentryitem_shopentry_shopentryid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.SlowmodeIgnoredRole", b => + modelBuilder.Entity("NadekoBot.Db.Models.SlowmodeIgnoredRole", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("SlowmodeIgnoredRoles") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_slowmodeignoredrole_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.SlowmodeIgnoredUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.SlowmodeIgnoredUser", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("SlowmodeIgnoredUsers") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_slowmodeignoreduser_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleBlacklistedUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleBlacklistedUser", b => { - b.HasOne("Nadeko.Bot.Db.Models.StreamRoleSettings", null) + b.HasOne("NadekoBot.Db.Models.StreamRoleSettings", null) .WithMany("Blacklist") .HasForeignKey("StreamRoleSettingsId") .HasConstraintName("fk_streamroleblacklisteduser_streamrolesettings_streamrolesett~"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleSettings", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithOne("StreamRole") - .HasForeignKey("Nadeko.Bot.Db.Models.StreamRoleSettings", "GuildConfigId") + .HasForeignKey("NadekoBot.Db.Models.StreamRoleSettings", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired() .HasConstraintName("fk_streamrolesettings_guildconfigs_guildconfigid"); @@ -3445,47 +3445,47 @@ namespace NadekoBot.Db.Migrations b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleWhitelistedUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleWhitelistedUser", b => { - b.HasOne("Nadeko.Bot.Db.Models.StreamRoleSettings", null) + b.HasOne("NadekoBot.Db.Models.StreamRoleSettings", null) .WithMany("Whitelist") .HasForeignKey("StreamRoleSettingsId") .HasConstraintName("fk_streamrolewhitelisteduser_streamrolesettings_streamrolesett~"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnbanTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnbanTimer", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("UnbanTimer") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_unbantimer_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnmuteTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnmuteTimer", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("UnmuteTimers") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_unmutetimer_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnroleTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnroleTimer", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("UnroleTimer") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_unroletimer_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.VcRoleInfo", b => + modelBuilder.Entity("NadekoBot.Db.Models.VcRoleInfo", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("VcRoleInfos") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_vcroleinfo_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuInfo", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuInfo", b => { b.HasOne("NadekoBot.Db.Models.DiscordUser", "Affinity") .WithMany() @@ -3499,7 +3499,7 @@ namespace NadekoBot.Db.Migrations b.HasOne("NadekoBot.Db.Models.DiscordUser", "Waifu") .WithOne() - .HasForeignKey("Nadeko.Bot.Db.Models.WaifuInfo", "WaifuId") + .HasForeignKey("NadekoBot.Db.Models.WaifuInfo", "WaifuId") .OnDelete(DeleteBehavior.Cascade) .IsRequired() .HasConstraintName("fk_waifuinfo_discorduser_waifuid"); @@ -3511,9 +3511,9 @@ namespace NadekoBot.Db.Migrations b.Navigation("Waifu"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuItem", b => { - b.HasOne("Nadeko.Bot.Db.Models.WaifuInfo", "WaifuInfo") + b.HasOne("NadekoBot.Db.Models.WaifuInfo", "WaifuInfo") .WithMany("Items") .HasForeignKey("WaifuInfoId") .HasConstraintName("fk_waifuitem_waifuinfo_waifuinfoid"); @@ -3521,7 +3521,7 @@ namespace NadekoBot.Db.Migrations b.Navigation("WaifuInfo"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuUpdate", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuUpdate", b => { b.HasOne("NadekoBot.Db.Models.DiscordUser", "New") .WithMany() @@ -3547,17 +3547,17 @@ namespace NadekoBot.Db.Migrations b.Navigation("User"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WarningPunishment", b => + modelBuilder.Entity("NadekoBot.Db.Models.WarningPunishment", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("WarnPunishments") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_warningpunishment_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpCurrencyReward", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpCurrencyReward", b => { - b.HasOne("Nadeko.Bot.Db.Models.XpSettings", "XpSettings") + b.HasOne("NadekoBot.Db.Models.XpSettings", "XpSettings") .WithMany("CurrencyRewards") .HasForeignKey("XpSettingsId") .OnDelete(DeleteBehavior.Cascade) @@ -3567,9 +3567,9 @@ namespace NadekoBot.Db.Migrations b.Navigation("XpSettings"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpRoleReward", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpRoleReward", b => { - b.HasOne("Nadeko.Bot.Db.Models.XpSettings", "XpSettings") + b.HasOne("NadekoBot.Db.Models.XpSettings", "XpSettings") .WithMany("RoleRewards") .HasForeignKey("XpSettingsId") .OnDelete(DeleteBehavior.Cascade) @@ -3579,11 +3579,11 @@ namespace NadekoBot.Db.Migrations b.Navigation("XpSettings"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpSettings", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithOne("XpSettings") - .HasForeignKey("Nadeko.Bot.Db.Models.XpSettings", "GuildConfigId") + .HasForeignKey("NadekoBot.Db.Models.XpSettings", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired() .HasConstraintName("fk_xpsettings_guildconfigs_guildconfigid"); @@ -3657,23 +3657,23 @@ namespace NadekoBot.Db.Migrations modelBuilder.Entity("NadekoBot.Db.Models.FollowedStream", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("FollowedStreams") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_followedstream_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiSpamSetting", b => { b.Navigation("IgnoredChannels"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoTranslateChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.AutoTranslateChannel", b => { b.Navigation("Users"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GuildConfig", b => + modelBuilder.Entity("NadekoBot.Db.Models.GuildConfig", b => { b.Navigation("AntiAltSetting"); @@ -3728,41 +3728,41 @@ namespace NadekoBot.Db.Migrations b.Navigation("XpSettings"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.LogSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.LogSetting", b => { b.Navigation("LogIgnores"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.MusicPlaylist", b => + modelBuilder.Entity("NadekoBot.Db.Models.MusicPlaylist", b => { b.Navigation("Songs"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Poll", b => + modelBuilder.Entity("NadekoBot.Db.Models.Poll", b => { b.Navigation("Answers"); b.Navigation("Votes"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntry", b => + modelBuilder.Entity("NadekoBot.Db.Models.ShopEntry", b => { b.Navigation("Items"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleSettings", b => { b.Navigation("Blacklist"); b.Navigation("Whitelist"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuInfo", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuInfo", b => { b.Navigation("Items"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpSettings", b => { b.Navigation("CurrencyRewards"); diff --git a/src/NadekoBot/Migrations/Postgresql/20240423153717_sticky-roles.Designer.cs b/src/NadekoBot/Migrations/Postgresql/20240423153717_sticky-roles.Designer.cs index 2bc73ab2c..837dcbd4a 100644 --- a/src/NadekoBot/Migrations/Postgresql/20240423153717_sticky-roles.Designer.cs +++ b/src/NadekoBot/Migrations/Postgresql/20240423153717_sticky-roles.Designer.cs @@ -4,7 +4,7 @@ using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Nadeko.Bot.Db; +using NadekoBot.Db; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable @@ -25,7 +25,7 @@ namespace NadekoBot.Db.Migrations NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiAltSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiAltSetting", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -64,7 +64,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("antialtsetting", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiRaidSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiRaidSetting", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -107,7 +107,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("antiraidsetting", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamIgnore", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiSpamIgnore", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -137,7 +137,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("antispamignore", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiSpamSetting", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -180,7 +180,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("antispamsetting", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoCommand", b => + modelBuilder.Entity("NadekoBot.Db.Models.AutoCommand", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -231,7 +231,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("autocommands", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoTranslateChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.AutoTranslateChannel", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -269,7 +269,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("autotranslatechannels", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoTranslateUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.AutoTranslateUser", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -307,7 +307,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("autotranslateusers", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.BanTemplate", b => + modelBuilder.Entity("NadekoBot.Db.Models.BanTemplate", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -342,7 +342,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("bantemplates", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.BlacklistEntry", b => + modelBuilder.Entity("NadekoBot.Db.Models.BlacklistEntry", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -369,7 +369,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("blacklist", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.CommandAlias", b => + modelBuilder.Entity("NadekoBot.Db.Models.CommandAlias", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -403,7 +403,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("commandalias", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.CommandCooldown", b => + modelBuilder.Entity("NadekoBot.Db.Models.CommandCooldown", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -437,7 +437,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("commandcooldown", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.CurrencyTransaction", b => + modelBuilder.Entity("NadekoBot.Db.Models.CurrencyTransaction", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -487,7 +487,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("currencytransactions", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.DelMsgOnCmdChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.DelMsgOnCmdChannel", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -521,7 +521,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("delmsgoncmdchannel", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.DiscordPermOverride", b => + modelBuilder.Entity("NadekoBot.Db.Models.DiscordPermOverride", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -556,7 +556,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("discordpermoverrides", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ExcludedItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.ExcludedItem", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -590,7 +590,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("excludeditem", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FeedSub", b => + modelBuilder.Entity("NadekoBot.Db.Models.FeedSub", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -629,7 +629,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("feedsub", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterChannelId", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -659,7 +659,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("filterchannelid", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterLinksChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterLinksChannelId", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -689,7 +689,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("filterlinkschannelid", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterWordsChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterWordsChannelId", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -719,7 +719,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("filterwordschannelid", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilteredWord", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilteredWord", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -749,7 +749,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("filteredword", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GCChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.GCChannelId", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -779,7 +779,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("gcchannelid", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GamblingStats", b => + modelBuilder.Entity("NadekoBot.Db.Models.GamblingStats", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -814,7 +814,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("gamblingstats", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GroupName", b => + modelBuilder.Entity("NadekoBot.Db.Models.GroupName", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -849,7 +849,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("groupname", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GuildConfig", b => + modelBuilder.Entity("NadekoBot.Db.Models.GuildConfig", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1029,7 +1029,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("guildconfigs", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.IgnoredLogItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.IgnoredLogItem", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1064,7 +1064,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("ignoredlogchannels", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.IgnoredVoicePresenceChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.IgnoredVoicePresenceChannel", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1094,7 +1094,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("ignoredvoicepresencechannels", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ImageOnlyChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.ImageOnlyChannel", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1129,7 +1129,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("imageonlychannels", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.LogSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.LogSetting", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1228,7 +1228,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("logsettings", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.MusicPlayerSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.MusicPlayerSettings", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1277,7 +1277,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("musicplayersettings", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.MusicPlaylist", b => + modelBuilder.Entity("NadekoBot.Db.Models.MusicPlaylist", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1308,7 +1308,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("musicplaylists", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.MutedUserId", b => + modelBuilder.Entity("NadekoBot.Db.Models.MutedUserId", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1338,7 +1338,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("muteduserid", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.NadekoExpression", b => + modelBuilder.Entity("NadekoBot.Db.Models.NadekoExpression", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1389,7 +1389,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("expressions", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.NsfwBlacklistedTag", b => + modelBuilder.Entity("NadekoBot.Db.Models.NsfwBlacklistedTag", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1419,7 +1419,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("nsfwblacklistedtags", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Permissionv2", b => + modelBuilder.Entity("NadekoBot.Db.Models.Permissionv2", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1473,7 +1473,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("permissions", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PlantedCurrency", b => + modelBuilder.Entity("NadekoBot.Db.Models.PlantedCurrency", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1523,7 +1523,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("plantedcurrency", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PlaylistSong", b => + modelBuilder.Entity("NadekoBot.Db.Models.PlaylistSong", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1569,7 +1569,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("playlistsong", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Poll", b => + modelBuilder.Entity("NadekoBot.Db.Models.Poll", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1604,7 +1604,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("poll", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PollAnswer", b => + modelBuilder.Entity("NadekoBot.Db.Models.PollAnswer", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1638,7 +1638,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("pollanswer", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PollVote", b => + modelBuilder.Entity("NadekoBot.Db.Models.PollVote", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1672,7 +1672,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("pollvote", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Quote", b => + modelBuilder.Entity("NadekoBot.Db.Models.Quote", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1720,7 +1720,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("quotes", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ReactionRoleV2", b => + modelBuilder.Entity("NadekoBot.Db.Models.ReactionRoleV2", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1775,7 +1775,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("reactionroles", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Reminder", b => + modelBuilder.Entity("NadekoBot.Db.Models.Reminder", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1825,7 +1825,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("reminders", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Repeater", b => + modelBuilder.Entity("NadekoBot.Db.Models.Repeater", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1872,7 +1872,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("repeaters", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.RewardedUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.RewardedUser", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1911,7 +1911,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("rewardedusers", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.RotatingPlayingStatus", b => + modelBuilder.Entity("NadekoBot.Db.Models.RotatingPlayingStatus", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1938,7 +1938,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("rotatingstatus", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.SelfAssignedRole", b => + modelBuilder.Entity("NadekoBot.Db.Models.SelfAssignedRole", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1979,7 +1979,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("selfassignableroles", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntry", b => + modelBuilder.Entity("NadekoBot.Db.Models.ShopEntry", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2041,7 +2041,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("shopentry", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntryItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.ShopEntryItem", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2071,7 +2071,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("shopentryitem", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.SlowmodeIgnoredRole", b => + modelBuilder.Entity("NadekoBot.Db.Models.SlowmodeIgnoredRole", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2101,7 +2101,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("slowmodeignoredrole", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.SlowmodeIgnoredUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.SlowmodeIgnoredUser", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2131,7 +2131,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("slowmodeignoreduser", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StickyRole", b => + modelBuilder.Entity("NadekoBot.Db.Models.StickyRole", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2167,7 +2167,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("stickyroles", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleBlacklistedUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleBlacklistedUser", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2201,7 +2201,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("streamroleblacklisteduser", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleSettings", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2244,7 +2244,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("streamrolesettings", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleWhitelistedUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleWhitelistedUser", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2278,7 +2278,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("streamrolewhitelisteduser", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnbanTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnbanTimer", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2312,7 +2312,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("unbantimer", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnmuteTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnmuteTimer", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2346,7 +2346,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("unmutetimer", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnroleTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnroleTimer", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2384,7 +2384,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("unroletimer", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UserXpStats", b => + modelBuilder.Entity("NadekoBot.Db.Models.UserXpStats", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2439,7 +2439,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("userxpstats", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.VcRoleInfo", b => + modelBuilder.Entity("NadekoBot.Db.Models.VcRoleInfo", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2473,7 +2473,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("vcroleinfo", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuInfo", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuInfo", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2521,7 +2521,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("waifuinfo", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuItem", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2555,7 +2555,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("waifuitem", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuUpdate", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuUpdate", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2599,7 +2599,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("waifuupdates", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Warning", b => + modelBuilder.Entity("NadekoBot.Db.Models.Warning", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2657,7 +2657,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("warnings", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WarningPunishment", b => + modelBuilder.Entity("NadekoBot.Db.Models.WarningPunishment", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2699,7 +2699,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("warningpunishment", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpCurrencyReward", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpCurrencyReward", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2733,7 +2733,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("xpcurrencyreward", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpRoleReward", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpRoleReward", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2772,7 +2772,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("xprolereward", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpSettings", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -3218,21 +3218,21 @@ namespace NadekoBot.Db.Migrations b.ToTable("xpshopowneditem", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiAltSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiAltSetting", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithOne("AntiAltSetting") - .HasForeignKey("Nadeko.Bot.Db.Models.AntiAltSetting", "GuildConfigId") + .HasForeignKey("NadekoBot.Db.Models.AntiAltSetting", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired() .HasConstraintName("fk_antialtsetting_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiRaidSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiRaidSetting", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithOne("AntiRaidSetting") - .HasForeignKey("Nadeko.Bot.Db.Models.AntiRaidSetting", "GuildConfigId") + .HasForeignKey("NadekoBot.Db.Models.AntiRaidSetting", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired() .HasConstraintName("fk_antiraidsetting_guildconfigs_guildconfigid"); @@ -3240,19 +3240,19 @@ namespace NadekoBot.Db.Migrations b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamIgnore", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiSpamIgnore", b => { - b.HasOne("Nadeko.Bot.Db.Models.AntiSpamSetting", null) + b.HasOne("NadekoBot.Db.Models.AntiSpamSetting", null) .WithMany("IgnoredChannels") .HasForeignKey("AntiSpamSettingId") .HasConstraintName("fk_antispamignore_antispamsetting_antispamsettingid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiSpamSetting", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithOne("AntiSpamSetting") - .HasForeignKey("Nadeko.Bot.Db.Models.AntiSpamSetting", "GuildConfigId") + .HasForeignKey("NadekoBot.Db.Models.AntiSpamSetting", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired() .HasConstraintName("fk_antispamsetting_guildconfigs_guildconfigid"); @@ -3260,9 +3260,9 @@ namespace NadekoBot.Db.Migrations b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoTranslateUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.AutoTranslateUser", b => { - b.HasOne("Nadeko.Bot.Db.Models.AutoTranslateChannel", "Channel") + b.HasOne("NadekoBot.Db.Models.AutoTranslateChannel", "Channel") .WithMany("Users") .HasForeignKey("ChannelId") .OnDelete(DeleteBehavior.Cascade) @@ -3272,41 +3272,41 @@ namespace NadekoBot.Db.Migrations b.Navigation("Channel"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.CommandAlias", b => + modelBuilder.Entity("NadekoBot.Db.Models.CommandAlias", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("CommandAliases") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_commandalias_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.CommandCooldown", b => + modelBuilder.Entity("NadekoBot.Db.Models.CommandCooldown", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("CommandCooldowns") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_commandcooldown_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.DelMsgOnCmdChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.DelMsgOnCmdChannel", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("DelMsgOnCmdChannels") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_delmsgoncmdchannel_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ExcludedItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.ExcludedItem", b => { - b.HasOne("Nadeko.Bot.Db.Models.XpSettings", null) + b.HasOne("NadekoBot.Db.Models.XpSettings", null) .WithMany("ExclusionList") .HasForeignKey("XpSettingsId") .HasConstraintName("fk_excludeditem_xpsettings_xpsettingsid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FeedSub", b => + modelBuilder.Entity("NadekoBot.Db.Models.FeedSub", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithMany("FeedSubs") .HasForeignKey("GuildConfigId") .OnDelete(DeleteBehavior.Cascade) @@ -3316,41 +3316,41 @@ namespace NadekoBot.Db.Migrations b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterChannelId", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("FilterInvitesChannelIds") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_filterchannelid_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterLinksChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterLinksChannelId", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("FilterLinksChannelIds") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_filterlinkschannelid_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterWordsChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterWordsChannelId", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("FilterWordsChannelIds") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_filterwordschannelid_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilteredWord", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilteredWord", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("FilteredWords") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_filteredword_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GCChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.GCChannelId", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithMany("GenerateCurrencyChannelIds") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_gcchannelid_guildconfigs_guildconfigid"); @@ -3358,9 +3358,9 @@ namespace NadekoBot.Db.Migrations b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GroupName", b => + modelBuilder.Entity("NadekoBot.Db.Models.GroupName", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithMany("SelfAssignableRoleGroupNames") .HasForeignKey("GuildConfigId") .OnDelete(DeleteBehavior.Cascade) @@ -3370,9 +3370,9 @@ namespace NadekoBot.Db.Migrations b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.IgnoredLogItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.IgnoredLogItem", b => { - b.HasOne("Nadeko.Bot.Db.Models.LogSetting", "LogSetting") + b.HasOne("NadekoBot.Db.Models.LogSetting", "LogSetting") .WithMany("LogIgnores") .HasForeignKey("LogSettingId") .OnDelete(DeleteBehavior.Cascade) @@ -3382,9 +3382,9 @@ namespace NadekoBot.Db.Migrations b.Navigation("LogSetting"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.IgnoredVoicePresenceChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.IgnoredVoicePresenceChannel", b => { - b.HasOne("Nadeko.Bot.Db.Models.LogSetting", "LogSetting") + b.HasOne("NadekoBot.Db.Models.LogSetting", "LogSetting") .WithMany() .HasForeignKey("LogSettingId") .HasConstraintName("fk_ignoredvoicepresencechannels_logsettings_logsettingid"); @@ -3392,92 +3392,92 @@ namespace NadekoBot.Db.Migrations b.Navigation("LogSetting"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.MutedUserId", b => + modelBuilder.Entity("NadekoBot.Db.Models.MutedUserId", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("MutedUsers") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_muteduserid_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Permissionv2", b => + modelBuilder.Entity("NadekoBot.Db.Models.Permissionv2", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("Permissions") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_permissions_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PlaylistSong", b => + modelBuilder.Entity("NadekoBot.Db.Models.PlaylistSong", b => { - b.HasOne("Nadeko.Bot.Db.Models.MusicPlaylist", null) + b.HasOne("NadekoBot.Db.Models.MusicPlaylist", null) .WithMany("Songs") .HasForeignKey("MusicPlaylistId") .OnDelete(DeleteBehavior.Cascade) .HasConstraintName("fk_playlistsong_musicplaylists_musicplaylistid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PollAnswer", b => + modelBuilder.Entity("NadekoBot.Db.Models.PollAnswer", b => { - b.HasOne("Nadeko.Bot.Db.Models.Poll", null) + b.HasOne("NadekoBot.Db.Models.Poll", null) .WithMany("Answers") .HasForeignKey("PollId") .HasConstraintName("fk_pollanswer_poll_pollid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PollVote", b => + modelBuilder.Entity("NadekoBot.Db.Models.PollVote", b => { - b.HasOne("Nadeko.Bot.Db.Models.Poll", null) + b.HasOne("NadekoBot.Db.Models.Poll", null) .WithMany("Votes") .HasForeignKey("PollId") .HasConstraintName("fk_pollvote_poll_pollid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntry", b => + modelBuilder.Entity("NadekoBot.Db.Models.ShopEntry", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("ShopEntries") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_shopentry_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntryItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.ShopEntryItem", b => { - b.HasOne("Nadeko.Bot.Db.Models.ShopEntry", null) + b.HasOne("NadekoBot.Db.Models.ShopEntry", null) .WithMany("Items") .HasForeignKey("ShopEntryId") .HasConstraintName("fk_shopentryitem_shopentry_shopentryid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.SlowmodeIgnoredRole", b => + modelBuilder.Entity("NadekoBot.Db.Models.SlowmodeIgnoredRole", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("SlowmodeIgnoredRoles") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_slowmodeignoredrole_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.SlowmodeIgnoredUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.SlowmodeIgnoredUser", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("SlowmodeIgnoredUsers") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_slowmodeignoreduser_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleBlacklistedUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleBlacklistedUser", b => { - b.HasOne("Nadeko.Bot.Db.Models.StreamRoleSettings", null) + b.HasOne("NadekoBot.Db.Models.StreamRoleSettings", null) .WithMany("Blacklist") .HasForeignKey("StreamRoleSettingsId") .HasConstraintName("fk_streamroleblacklisteduser_streamrolesettings_streamrolesett~"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleSettings", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithOne("StreamRole") - .HasForeignKey("Nadeko.Bot.Db.Models.StreamRoleSettings", "GuildConfigId") + .HasForeignKey("NadekoBot.Db.Models.StreamRoleSettings", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired() .HasConstraintName("fk_streamrolesettings_guildconfigs_guildconfigid"); @@ -3485,47 +3485,47 @@ namespace NadekoBot.Db.Migrations b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleWhitelistedUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleWhitelistedUser", b => { - b.HasOne("Nadeko.Bot.Db.Models.StreamRoleSettings", null) + b.HasOne("NadekoBot.Db.Models.StreamRoleSettings", null) .WithMany("Whitelist") .HasForeignKey("StreamRoleSettingsId") .HasConstraintName("fk_streamrolewhitelisteduser_streamrolesettings_streamrolesett~"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnbanTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnbanTimer", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("UnbanTimer") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_unbantimer_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnmuteTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnmuteTimer", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("UnmuteTimers") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_unmutetimer_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnroleTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnroleTimer", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("UnroleTimer") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_unroletimer_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.VcRoleInfo", b => + modelBuilder.Entity("NadekoBot.Db.Models.VcRoleInfo", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("VcRoleInfos") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_vcroleinfo_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuInfo", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuInfo", b => { b.HasOne("NadekoBot.Db.Models.DiscordUser", "Affinity") .WithMany() @@ -3539,7 +3539,7 @@ namespace NadekoBot.Db.Migrations b.HasOne("NadekoBot.Db.Models.DiscordUser", "Waifu") .WithOne() - .HasForeignKey("Nadeko.Bot.Db.Models.WaifuInfo", "WaifuId") + .HasForeignKey("NadekoBot.Db.Models.WaifuInfo", "WaifuId") .OnDelete(DeleteBehavior.Cascade) .IsRequired() .HasConstraintName("fk_waifuinfo_discorduser_waifuid"); @@ -3551,9 +3551,9 @@ namespace NadekoBot.Db.Migrations b.Navigation("Waifu"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuItem", b => { - b.HasOne("Nadeko.Bot.Db.Models.WaifuInfo", "WaifuInfo") + b.HasOne("NadekoBot.Db.Models.WaifuInfo", "WaifuInfo") .WithMany("Items") .HasForeignKey("WaifuInfoId") .HasConstraintName("fk_waifuitem_waifuinfo_waifuinfoid"); @@ -3561,7 +3561,7 @@ namespace NadekoBot.Db.Migrations b.Navigation("WaifuInfo"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuUpdate", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuUpdate", b => { b.HasOne("NadekoBot.Db.Models.DiscordUser", "New") .WithMany() @@ -3587,17 +3587,17 @@ namespace NadekoBot.Db.Migrations b.Navigation("User"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WarningPunishment", b => + modelBuilder.Entity("NadekoBot.Db.Models.WarningPunishment", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("WarnPunishments") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_warningpunishment_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpCurrencyReward", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpCurrencyReward", b => { - b.HasOne("Nadeko.Bot.Db.Models.XpSettings", "XpSettings") + b.HasOne("NadekoBot.Db.Models.XpSettings", "XpSettings") .WithMany("CurrencyRewards") .HasForeignKey("XpSettingsId") .OnDelete(DeleteBehavior.Cascade) @@ -3607,9 +3607,9 @@ namespace NadekoBot.Db.Migrations b.Navigation("XpSettings"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpRoleReward", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpRoleReward", b => { - b.HasOne("Nadeko.Bot.Db.Models.XpSettings", "XpSettings") + b.HasOne("NadekoBot.Db.Models.XpSettings", "XpSettings") .WithMany("RoleRewards") .HasForeignKey("XpSettingsId") .OnDelete(DeleteBehavior.Cascade) @@ -3619,11 +3619,11 @@ namespace NadekoBot.Db.Migrations b.Navigation("XpSettings"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpSettings", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithOne("XpSettings") - .HasForeignKey("Nadeko.Bot.Db.Models.XpSettings", "GuildConfigId") + .HasForeignKey("NadekoBot.Db.Models.XpSettings", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired() .HasConstraintName("fk_xpsettings_guildconfigs_guildconfigid"); @@ -3697,23 +3697,23 @@ namespace NadekoBot.Db.Migrations modelBuilder.Entity("NadekoBot.Db.Models.FollowedStream", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("FollowedStreams") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_followedstream_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiSpamSetting", b => { b.Navigation("IgnoredChannels"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoTranslateChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.AutoTranslateChannel", b => { b.Navigation("Users"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GuildConfig", b => + modelBuilder.Entity("NadekoBot.Db.Models.GuildConfig", b => { b.Navigation("AntiAltSetting"); @@ -3768,41 +3768,41 @@ namespace NadekoBot.Db.Migrations b.Navigation("XpSettings"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.LogSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.LogSetting", b => { b.Navigation("LogIgnores"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.MusicPlaylist", b => + modelBuilder.Entity("NadekoBot.Db.Models.MusicPlaylist", b => { b.Navigation("Songs"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Poll", b => + modelBuilder.Entity("NadekoBot.Db.Models.Poll", b => { b.Navigation("Answers"); b.Navigation("Votes"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntry", b => + modelBuilder.Entity("NadekoBot.Db.Models.ShopEntry", b => { b.Navigation("Items"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleSettings", b => { b.Navigation("Blacklist"); b.Navigation("Whitelist"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuInfo", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuInfo", b => { b.Navigation("Items"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpSettings", b => { b.Navigation("CurrencyRewards"); diff --git a/src/NadekoBot/Migrations/Postgresql/20240423153717_sticky-roles.cs b/src/NadekoBot/Migrations/Postgresql/20240423153717_sticky-roles.cs index b8c237f96..79f91a23c 100644 --- a/src/NadekoBot/Migrations/Postgresql/20240423153717_sticky-roles.cs +++ b/src/NadekoBot/Migrations/Postgresql/20240423153717_sticky-roles.cs @@ -1,5 +1,4 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Migrations; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable diff --git a/src/NadekoBot/Migrations/Postgresql/20240424203915_giveaway.Designer.cs b/src/NadekoBot/Migrations/Postgresql/20240424203915_giveaway.Designer.cs index 465f1c555..76f1a8e4e 100644 --- a/src/NadekoBot/Migrations/Postgresql/20240424203915_giveaway.Designer.cs +++ b/src/NadekoBot/Migrations/Postgresql/20240424203915_giveaway.Designer.cs @@ -4,7 +4,7 @@ using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Nadeko.Bot.Db; +using NadekoBot.Db; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable @@ -25,7 +25,7 @@ namespace NadekoBot.Db.Migrations NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiAltSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiAltSetting", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -64,7 +64,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("antialtsetting", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiRaidSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiRaidSetting", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -107,7 +107,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("antiraidsetting", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamIgnore", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiSpamIgnore", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -137,7 +137,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("antispamignore", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiSpamSetting", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -180,7 +180,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("antispamsetting", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoCommand", b => + modelBuilder.Entity("NadekoBot.Db.Models.AutoCommand", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -231,7 +231,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("autocommands", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoTranslateChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.AutoTranslateChannel", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -269,7 +269,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("autotranslatechannels", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoTranslateUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.AutoTranslateUser", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -307,7 +307,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("autotranslateusers", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.BanTemplate", b => + modelBuilder.Entity("NadekoBot.Db.Models.BanTemplate", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -342,7 +342,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("bantemplates", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.BlacklistEntry", b => + modelBuilder.Entity("NadekoBot.Db.Models.BlacklistEntry", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -369,7 +369,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("blacklist", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.CommandAlias", b => + modelBuilder.Entity("NadekoBot.Db.Models.CommandAlias", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -403,7 +403,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("commandalias", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.CommandCooldown", b => + modelBuilder.Entity("NadekoBot.Db.Models.CommandCooldown", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -437,7 +437,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("commandcooldown", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.CurrencyTransaction", b => + modelBuilder.Entity("NadekoBot.Db.Models.CurrencyTransaction", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -487,7 +487,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("currencytransactions", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.DelMsgOnCmdChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.DelMsgOnCmdChannel", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -521,7 +521,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("delmsgoncmdchannel", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.DiscordPermOverride", b => + modelBuilder.Entity("NadekoBot.Db.Models.DiscordPermOverride", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -556,7 +556,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("discordpermoverrides", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ExcludedItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.ExcludedItem", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -590,7 +590,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("excludeditem", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FeedSub", b => + modelBuilder.Entity("NadekoBot.Db.Models.FeedSub", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -629,7 +629,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("feedsub", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterChannelId", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -659,7 +659,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("filterchannelid", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterLinksChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterLinksChannelId", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -689,7 +689,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("filterlinkschannelid", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterWordsChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterWordsChannelId", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -719,7 +719,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("filterwordschannelid", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilteredWord", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilteredWord", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -749,7 +749,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("filteredword", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GCChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.GCChannelId", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -779,7 +779,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("gcchannelid", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GamblingStats", b => + modelBuilder.Entity("NadekoBot.Db.Models.GamblingStats", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -814,7 +814,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("gamblingstats", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GroupName", b => + modelBuilder.Entity("NadekoBot.Db.Models.GroupName", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -849,7 +849,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("groupname", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GuildConfig", b => + modelBuilder.Entity("NadekoBot.Db.Models.GuildConfig", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1029,7 +1029,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("guildconfigs", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.IgnoredLogItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.IgnoredLogItem", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1064,7 +1064,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("ignoredlogchannels", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.IgnoredVoicePresenceChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.IgnoredVoicePresenceChannel", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1094,7 +1094,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("ignoredvoicepresencechannels", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ImageOnlyChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.ImageOnlyChannel", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1129,7 +1129,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("imageonlychannels", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.LogSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.LogSetting", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1228,7 +1228,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("logsettings", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.MusicPlayerSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.MusicPlayerSettings", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1277,7 +1277,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("musicplayersettings", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.MusicPlaylist", b => + modelBuilder.Entity("NadekoBot.Db.Models.MusicPlaylist", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1308,7 +1308,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("musicplaylists", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.MutedUserId", b => + modelBuilder.Entity("NadekoBot.Db.Models.MutedUserId", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1338,7 +1338,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("muteduserid", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.NadekoExpression", b => + modelBuilder.Entity("NadekoBot.Db.Models.NadekoExpression", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1389,7 +1389,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("expressions", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.NsfwBlacklistedTag", b => + modelBuilder.Entity("NadekoBot.Db.Models.NsfwBlacklistedTag", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1419,7 +1419,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("nsfwblacklistedtags", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Permissionv2", b => + modelBuilder.Entity("NadekoBot.Db.Models.Permissionv2", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1473,7 +1473,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("permissions", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PlantedCurrency", b => + modelBuilder.Entity("NadekoBot.Db.Models.PlantedCurrency", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1523,7 +1523,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("plantedcurrency", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PlaylistSong", b => + modelBuilder.Entity("NadekoBot.Db.Models.PlaylistSong", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1569,7 +1569,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("playlistsong", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Poll", b => + modelBuilder.Entity("NadekoBot.Db.Models.Poll", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1604,7 +1604,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("poll", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PollAnswer", b => + modelBuilder.Entity("NadekoBot.Db.Models.PollAnswer", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1638,7 +1638,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("pollanswer", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PollVote", b => + modelBuilder.Entity("NadekoBot.Db.Models.PollVote", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1672,7 +1672,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("pollvote", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Quote", b => + modelBuilder.Entity("NadekoBot.Db.Models.Quote", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1720,7 +1720,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("quotes", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ReactionRoleV2", b => + modelBuilder.Entity("NadekoBot.Db.Models.ReactionRoleV2", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1775,7 +1775,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("reactionroles", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Reminder", b => + modelBuilder.Entity("NadekoBot.Db.Models.Reminder", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1825,7 +1825,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("reminders", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Repeater", b => + modelBuilder.Entity("NadekoBot.Db.Models.Repeater", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1872,7 +1872,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("repeaters", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.RewardedUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.RewardedUser", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1911,7 +1911,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("rewardedusers", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.RotatingPlayingStatus", b => + modelBuilder.Entity("NadekoBot.Db.Models.RotatingPlayingStatus", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1938,7 +1938,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("rotatingstatus", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.SelfAssignedRole", b => + modelBuilder.Entity("NadekoBot.Db.Models.SelfAssignedRole", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1979,7 +1979,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("selfassignableroles", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntry", b => + modelBuilder.Entity("NadekoBot.Db.Models.ShopEntry", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2041,7 +2041,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("shopentry", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntryItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.ShopEntryItem", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2071,7 +2071,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("shopentryitem", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.SlowmodeIgnoredRole", b => + modelBuilder.Entity("NadekoBot.Db.Models.SlowmodeIgnoredRole", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2101,7 +2101,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("slowmodeignoredrole", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.SlowmodeIgnoredUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.SlowmodeIgnoredUser", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2131,7 +2131,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("slowmodeignoreduser", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StickyRole", b => + modelBuilder.Entity("NadekoBot.Db.Models.StickyRole", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2167,7 +2167,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("stickyroles", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleBlacklistedUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleBlacklistedUser", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2201,7 +2201,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("streamroleblacklisteduser", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleSettings", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2244,7 +2244,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("streamrolesettings", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleWhitelistedUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleWhitelistedUser", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2278,7 +2278,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("streamrolewhitelisteduser", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnbanTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnbanTimer", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2312,7 +2312,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("unbantimer", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnmuteTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnmuteTimer", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2346,7 +2346,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("unmutetimer", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnroleTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnroleTimer", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2384,7 +2384,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("unroletimer", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UserXpStats", b => + modelBuilder.Entity("NadekoBot.Db.Models.UserXpStats", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2439,7 +2439,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("userxpstats", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.VcRoleInfo", b => + modelBuilder.Entity("NadekoBot.Db.Models.VcRoleInfo", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2473,7 +2473,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("vcroleinfo", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuInfo", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuInfo", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2521,7 +2521,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("waifuinfo", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuItem", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2555,7 +2555,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("waifuitem", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuUpdate", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuUpdate", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2599,7 +2599,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("waifuupdates", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Warning", b => + modelBuilder.Entity("NadekoBot.Db.Models.Warning", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2657,7 +2657,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("warnings", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WarningPunishment", b => + modelBuilder.Entity("NadekoBot.Db.Models.WarningPunishment", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2699,7 +2699,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("warningpunishment", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpCurrencyReward", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpCurrencyReward", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2733,7 +2733,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("xpcurrencyreward", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpRoleReward", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpRoleReward", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2772,7 +2772,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("xprolereward", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpSettings", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -3286,21 +3286,21 @@ namespace NadekoBot.Db.Migrations b.ToTable("xpshopowneditem", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiAltSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiAltSetting", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithOne("AntiAltSetting") - .HasForeignKey("Nadeko.Bot.Db.Models.AntiAltSetting", "GuildConfigId") + .HasForeignKey("NadekoBot.Db.Models.AntiAltSetting", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired() .HasConstraintName("fk_antialtsetting_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiRaidSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiRaidSetting", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithOne("AntiRaidSetting") - .HasForeignKey("Nadeko.Bot.Db.Models.AntiRaidSetting", "GuildConfigId") + .HasForeignKey("NadekoBot.Db.Models.AntiRaidSetting", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired() .HasConstraintName("fk_antiraidsetting_guildconfigs_guildconfigid"); @@ -3308,19 +3308,19 @@ namespace NadekoBot.Db.Migrations b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamIgnore", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiSpamIgnore", b => { - b.HasOne("Nadeko.Bot.Db.Models.AntiSpamSetting", null) + b.HasOne("NadekoBot.Db.Models.AntiSpamSetting", null) .WithMany("IgnoredChannels") .HasForeignKey("AntiSpamSettingId") .HasConstraintName("fk_antispamignore_antispamsetting_antispamsettingid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiSpamSetting", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithOne("AntiSpamSetting") - .HasForeignKey("Nadeko.Bot.Db.Models.AntiSpamSetting", "GuildConfigId") + .HasForeignKey("NadekoBot.Db.Models.AntiSpamSetting", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired() .HasConstraintName("fk_antispamsetting_guildconfigs_guildconfigid"); @@ -3328,9 +3328,9 @@ namespace NadekoBot.Db.Migrations b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoTranslateUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.AutoTranslateUser", b => { - b.HasOne("Nadeko.Bot.Db.Models.AutoTranslateChannel", "Channel") + b.HasOne("NadekoBot.Db.Models.AutoTranslateChannel", "Channel") .WithMany("Users") .HasForeignKey("ChannelId") .OnDelete(DeleteBehavior.Cascade) @@ -3340,41 +3340,41 @@ namespace NadekoBot.Db.Migrations b.Navigation("Channel"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.CommandAlias", b => + modelBuilder.Entity("NadekoBot.Db.Models.CommandAlias", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("CommandAliases") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_commandalias_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.CommandCooldown", b => + modelBuilder.Entity("NadekoBot.Db.Models.CommandCooldown", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("CommandCooldowns") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_commandcooldown_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.DelMsgOnCmdChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.DelMsgOnCmdChannel", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("DelMsgOnCmdChannels") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_delmsgoncmdchannel_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ExcludedItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.ExcludedItem", b => { - b.HasOne("Nadeko.Bot.Db.Models.XpSettings", null) + b.HasOne("NadekoBot.Db.Models.XpSettings", null) .WithMany("ExclusionList") .HasForeignKey("XpSettingsId") .HasConstraintName("fk_excludeditem_xpsettings_xpsettingsid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FeedSub", b => + modelBuilder.Entity("NadekoBot.Db.Models.FeedSub", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithMany("FeedSubs") .HasForeignKey("GuildConfigId") .OnDelete(DeleteBehavior.Cascade) @@ -3384,41 +3384,41 @@ namespace NadekoBot.Db.Migrations b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterChannelId", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("FilterInvitesChannelIds") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_filterchannelid_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterLinksChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterLinksChannelId", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("FilterLinksChannelIds") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_filterlinkschannelid_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterWordsChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterWordsChannelId", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("FilterWordsChannelIds") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_filterwordschannelid_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilteredWord", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilteredWord", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("FilteredWords") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_filteredword_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GCChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.GCChannelId", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithMany("GenerateCurrencyChannelIds") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_gcchannelid_guildconfigs_guildconfigid"); @@ -3426,9 +3426,9 @@ namespace NadekoBot.Db.Migrations b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GroupName", b => + modelBuilder.Entity("NadekoBot.Db.Models.GroupName", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithMany("SelfAssignableRoleGroupNames") .HasForeignKey("GuildConfigId") .OnDelete(DeleteBehavior.Cascade) @@ -3438,9 +3438,9 @@ namespace NadekoBot.Db.Migrations b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.IgnoredLogItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.IgnoredLogItem", b => { - b.HasOne("Nadeko.Bot.Db.Models.LogSetting", "LogSetting") + b.HasOne("NadekoBot.Db.Models.LogSetting", "LogSetting") .WithMany("LogIgnores") .HasForeignKey("LogSettingId") .OnDelete(DeleteBehavior.Cascade) @@ -3450,9 +3450,9 @@ namespace NadekoBot.Db.Migrations b.Navigation("LogSetting"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.IgnoredVoicePresenceChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.IgnoredVoicePresenceChannel", b => { - b.HasOne("Nadeko.Bot.Db.Models.LogSetting", "LogSetting") + b.HasOne("NadekoBot.Db.Models.LogSetting", "LogSetting") .WithMany() .HasForeignKey("LogSettingId") .HasConstraintName("fk_ignoredvoicepresencechannels_logsettings_logsettingid"); @@ -3460,92 +3460,92 @@ namespace NadekoBot.Db.Migrations b.Navigation("LogSetting"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.MutedUserId", b => + modelBuilder.Entity("NadekoBot.Db.Models.MutedUserId", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("MutedUsers") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_muteduserid_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Permissionv2", b => + modelBuilder.Entity("NadekoBot.Db.Models.Permissionv2", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("Permissions") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_permissions_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PlaylistSong", b => + modelBuilder.Entity("NadekoBot.Db.Models.PlaylistSong", b => { - b.HasOne("Nadeko.Bot.Db.Models.MusicPlaylist", null) + b.HasOne("NadekoBot.Db.Models.MusicPlaylist", null) .WithMany("Songs") .HasForeignKey("MusicPlaylistId") .OnDelete(DeleteBehavior.Cascade) .HasConstraintName("fk_playlistsong_musicplaylists_musicplaylistid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PollAnswer", b => + modelBuilder.Entity("NadekoBot.Db.Models.PollAnswer", b => { - b.HasOne("Nadeko.Bot.Db.Models.Poll", null) + b.HasOne("NadekoBot.Db.Models.Poll", null) .WithMany("Answers") .HasForeignKey("PollId") .HasConstraintName("fk_pollanswer_poll_pollid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PollVote", b => + modelBuilder.Entity("NadekoBot.Db.Models.PollVote", b => { - b.HasOne("Nadeko.Bot.Db.Models.Poll", null) + b.HasOne("NadekoBot.Db.Models.Poll", null) .WithMany("Votes") .HasForeignKey("PollId") .HasConstraintName("fk_pollvote_poll_pollid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntry", b => + modelBuilder.Entity("NadekoBot.Db.Models.ShopEntry", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("ShopEntries") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_shopentry_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntryItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.ShopEntryItem", b => { - b.HasOne("Nadeko.Bot.Db.Models.ShopEntry", null) + b.HasOne("NadekoBot.Db.Models.ShopEntry", null) .WithMany("Items") .HasForeignKey("ShopEntryId") .HasConstraintName("fk_shopentryitem_shopentry_shopentryid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.SlowmodeIgnoredRole", b => + modelBuilder.Entity("NadekoBot.Db.Models.SlowmodeIgnoredRole", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("SlowmodeIgnoredRoles") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_slowmodeignoredrole_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.SlowmodeIgnoredUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.SlowmodeIgnoredUser", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("SlowmodeIgnoredUsers") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_slowmodeignoreduser_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleBlacklistedUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleBlacklistedUser", b => { - b.HasOne("Nadeko.Bot.Db.Models.StreamRoleSettings", null) + b.HasOne("NadekoBot.Db.Models.StreamRoleSettings", null) .WithMany("Blacklist") .HasForeignKey("StreamRoleSettingsId") .HasConstraintName("fk_streamroleblacklisteduser_streamrolesettings_streamrolesett~"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleSettings", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithOne("StreamRole") - .HasForeignKey("Nadeko.Bot.Db.Models.StreamRoleSettings", "GuildConfigId") + .HasForeignKey("NadekoBot.Db.Models.StreamRoleSettings", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired() .HasConstraintName("fk_streamrolesettings_guildconfigs_guildconfigid"); @@ -3553,47 +3553,47 @@ namespace NadekoBot.Db.Migrations b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleWhitelistedUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleWhitelistedUser", b => { - b.HasOne("Nadeko.Bot.Db.Models.StreamRoleSettings", null) + b.HasOne("NadekoBot.Db.Models.StreamRoleSettings", null) .WithMany("Whitelist") .HasForeignKey("StreamRoleSettingsId") .HasConstraintName("fk_streamrolewhitelisteduser_streamrolesettings_streamrolesett~"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnbanTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnbanTimer", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("UnbanTimer") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_unbantimer_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnmuteTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnmuteTimer", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("UnmuteTimers") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_unmutetimer_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnroleTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnroleTimer", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("UnroleTimer") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_unroletimer_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.VcRoleInfo", b => + modelBuilder.Entity("NadekoBot.Db.Models.VcRoleInfo", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("VcRoleInfos") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_vcroleinfo_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuInfo", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuInfo", b => { b.HasOne("NadekoBot.Db.Models.DiscordUser", "Affinity") .WithMany() @@ -3607,7 +3607,7 @@ namespace NadekoBot.Db.Migrations b.HasOne("NadekoBot.Db.Models.DiscordUser", "Waifu") .WithOne() - .HasForeignKey("Nadeko.Bot.Db.Models.WaifuInfo", "WaifuId") + .HasForeignKey("NadekoBot.Db.Models.WaifuInfo", "WaifuId") .OnDelete(DeleteBehavior.Cascade) .IsRequired() .HasConstraintName("fk_waifuinfo_discorduser_waifuid"); @@ -3619,9 +3619,9 @@ namespace NadekoBot.Db.Migrations b.Navigation("Waifu"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuItem", b => { - b.HasOne("Nadeko.Bot.Db.Models.WaifuInfo", "WaifuInfo") + b.HasOne("NadekoBot.Db.Models.WaifuInfo", "WaifuInfo") .WithMany("Items") .HasForeignKey("WaifuInfoId") .HasConstraintName("fk_waifuitem_waifuinfo_waifuinfoid"); @@ -3629,7 +3629,7 @@ namespace NadekoBot.Db.Migrations b.Navigation("WaifuInfo"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuUpdate", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuUpdate", b => { b.HasOne("NadekoBot.Db.Models.DiscordUser", "New") .WithMany() @@ -3655,17 +3655,17 @@ namespace NadekoBot.Db.Migrations b.Navigation("User"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WarningPunishment", b => + modelBuilder.Entity("NadekoBot.Db.Models.WarningPunishment", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("WarnPunishments") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_warningpunishment_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpCurrencyReward", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpCurrencyReward", b => { - b.HasOne("Nadeko.Bot.Db.Models.XpSettings", "XpSettings") + b.HasOne("NadekoBot.Db.Models.XpSettings", "XpSettings") .WithMany("CurrencyRewards") .HasForeignKey("XpSettingsId") .OnDelete(DeleteBehavior.Cascade) @@ -3675,9 +3675,9 @@ namespace NadekoBot.Db.Migrations b.Navigation("XpSettings"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpRoleReward", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpRoleReward", b => { - b.HasOne("Nadeko.Bot.Db.Models.XpSettings", "XpSettings") + b.HasOne("NadekoBot.Db.Models.XpSettings", "XpSettings") .WithMany("RoleRewards") .HasForeignKey("XpSettingsId") .OnDelete(DeleteBehavior.Cascade) @@ -3687,11 +3687,11 @@ namespace NadekoBot.Db.Migrations b.Navigation("XpSettings"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpSettings", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithOne("XpSettings") - .HasForeignKey("Nadeko.Bot.Db.Models.XpSettings", "GuildConfigId") + .HasForeignKey("NadekoBot.Db.Models.XpSettings", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired() .HasConstraintName("fk_xpsettings_guildconfigs_guildconfigid"); @@ -3765,7 +3765,7 @@ namespace NadekoBot.Db.Migrations modelBuilder.Entity("NadekoBot.Db.Models.FollowedStream", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("FollowedStreams") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_followedstream_guildconfigs_guildconfigid"); @@ -3781,17 +3781,17 @@ namespace NadekoBot.Db.Migrations .HasConstraintName("fk_giveawayuser_giveawaymodel_giveawayid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiSpamSetting", b => { b.Navigation("IgnoredChannels"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoTranslateChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.AutoTranslateChannel", b => { b.Navigation("Users"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GuildConfig", b => + modelBuilder.Entity("NadekoBot.Db.Models.GuildConfig", b => { b.Navigation("AntiAltSetting"); @@ -3846,41 +3846,41 @@ namespace NadekoBot.Db.Migrations b.Navigation("XpSettings"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.LogSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.LogSetting", b => { b.Navigation("LogIgnores"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.MusicPlaylist", b => + modelBuilder.Entity("NadekoBot.Db.Models.MusicPlaylist", b => { b.Navigation("Songs"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Poll", b => + modelBuilder.Entity("NadekoBot.Db.Models.Poll", b => { b.Navigation("Answers"); b.Navigation("Votes"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntry", b => + modelBuilder.Entity("NadekoBot.Db.Models.ShopEntry", b => { b.Navigation("Items"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleSettings", b => { b.Navigation("Blacklist"); b.Navigation("Whitelist"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuInfo", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuInfo", b => { b.Navigation("Items"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpSettings", b => { b.Navigation("CurrencyRewards"); diff --git a/src/NadekoBot/Migrations/Postgresql/20240424203915_giveaway.cs b/src/NadekoBot/Migrations/Postgresql/20240424203915_giveaway.cs index 8796c8596..31dd64b0c 100644 --- a/src/NadekoBot/Migrations/Postgresql/20240424203915_giveaway.cs +++ b/src/NadekoBot/Migrations/Postgresql/20240424203915_giveaway.cs @@ -1,5 +1,4 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Migrations; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable diff --git a/src/NadekoBot/Migrations/Postgresql/20240425132901_todolist.Designer.cs b/src/NadekoBot/Migrations/Postgresql/20240425132901_todolist.Designer.cs index 0a431d45c..45f3c8864 100644 --- a/src/NadekoBot/Migrations/Postgresql/20240425132901_todolist.Designer.cs +++ b/src/NadekoBot/Migrations/Postgresql/20240425132901_todolist.Designer.cs @@ -4,7 +4,7 @@ using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Nadeko.Bot.Db; +using NadekoBot.Db; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable @@ -25,7 +25,7 @@ namespace NadekoBot.Db.Migrations NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiAltSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiAltSetting", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -64,7 +64,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("antialtsetting", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiRaidSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiRaidSetting", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -107,7 +107,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("antiraidsetting", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamIgnore", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiSpamIgnore", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -137,7 +137,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("antispamignore", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiSpamSetting", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -180,7 +180,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("antispamsetting", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoCommand", b => + modelBuilder.Entity("NadekoBot.Db.Models.AutoCommand", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -231,7 +231,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("autocommands", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoTranslateChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.AutoTranslateChannel", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -269,7 +269,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("autotranslatechannels", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoTranslateUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.AutoTranslateUser", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -307,7 +307,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("autotranslateusers", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.BanTemplate", b => + modelBuilder.Entity("NadekoBot.Db.Models.BanTemplate", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -342,7 +342,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("bantemplates", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.BlacklistEntry", b => + modelBuilder.Entity("NadekoBot.Db.Models.BlacklistEntry", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -369,7 +369,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("blacklist", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.CommandAlias", b => + modelBuilder.Entity("NadekoBot.Db.Models.CommandAlias", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -403,7 +403,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("commandalias", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.CommandCooldown", b => + modelBuilder.Entity("NadekoBot.Db.Models.CommandCooldown", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -437,7 +437,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("commandcooldown", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.CurrencyTransaction", b => + modelBuilder.Entity("NadekoBot.Db.Models.CurrencyTransaction", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -487,7 +487,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("currencytransactions", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.DelMsgOnCmdChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.DelMsgOnCmdChannel", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -521,7 +521,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("delmsgoncmdchannel", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.DiscordPermOverride", b => + modelBuilder.Entity("NadekoBot.Db.Models.DiscordPermOverride", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -556,7 +556,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("discordpermoverrides", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ExcludedItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.ExcludedItem", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -590,7 +590,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("excludeditem", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FeedSub", b => + modelBuilder.Entity("NadekoBot.Db.Models.FeedSub", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -629,7 +629,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("feedsub", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterChannelId", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -659,7 +659,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("filterchannelid", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterLinksChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterLinksChannelId", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -689,7 +689,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("filterlinkschannelid", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterWordsChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterWordsChannelId", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -719,7 +719,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("filterwordschannelid", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilteredWord", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilteredWord", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -749,7 +749,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("filteredword", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GCChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.GCChannelId", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -779,7 +779,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("gcchannelid", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GamblingStats", b => + modelBuilder.Entity("NadekoBot.Db.Models.GamblingStats", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -814,7 +814,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("gamblingstats", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GroupName", b => + modelBuilder.Entity("NadekoBot.Db.Models.GroupName", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -849,7 +849,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("groupname", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GuildConfig", b => + modelBuilder.Entity("NadekoBot.Db.Models.GuildConfig", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1029,7 +1029,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("guildconfigs", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.IgnoredLogItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.IgnoredLogItem", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1064,7 +1064,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("ignoredlogchannels", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.IgnoredVoicePresenceChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.IgnoredVoicePresenceChannel", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1094,7 +1094,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("ignoredvoicepresencechannels", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ImageOnlyChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.ImageOnlyChannel", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1129,7 +1129,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("imageonlychannels", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.LogSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.LogSetting", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1228,7 +1228,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("logsettings", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.MusicPlayerSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.MusicPlayerSettings", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1277,7 +1277,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("musicplayersettings", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.MusicPlaylist", b => + modelBuilder.Entity("NadekoBot.Db.Models.MusicPlaylist", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1308,7 +1308,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("musicplaylists", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.MutedUserId", b => + modelBuilder.Entity("NadekoBot.Db.Models.MutedUserId", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1338,7 +1338,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("muteduserid", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.NadekoExpression", b => + modelBuilder.Entity("NadekoBot.Db.Models.NadekoExpression", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1389,7 +1389,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("expressions", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.NsfwBlacklistedTag", b => + modelBuilder.Entity("NadekoBot.Db.Models.NsfwBlacklistedTag", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1419,7 +1419,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("nsfwblacklistedtags", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Permissionv2", b => + modelBuilder.Entity("NadekoBot.Db.Models.Permissionv2", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1473,7 +1473,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("permissions", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PlantedCurrency", b => + modelBuilder.Entity("NadekoBot.Db.Models.PlantedCurrency", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1523,7 +1523,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("plantedcurrency", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PlaylistSong", b => + modelBuilder.Entity("NadekoBot.Db.Models.PlaylistSong", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1569,7 +1569,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("playlistsong", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Poll", b => + modelBuilder.Entity("NadekoBot.Db.Models.Poll", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1604,7 +1604,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("poll", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PollAnswer", b => + modelBuilder.Entity("NadekoBot.Db.Models.PollAnswer", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1638,7 +1638,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("pollanswer", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PollVote", b => + modelBuilder.Entity("NadekoBot.Db.Models.PollVote", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1672,7 +1672,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("pollvote", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Quote", b => + modelBuilder.Entity("NadekoBot.Db.Models.Quote", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1720,7 +1720,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("quotes", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ReactionRoleV2", b => + modelBuilder.Entity("NadekoBot.Db.Models.ReactionRoleV2", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1775,7 +1775,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("reactionroles", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Reminder", b => + modelBuilder.Entity("NadekoBot.Db.Models.Reminder", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1825,7 +1825,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("reminders", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Repeater", b => + modelBuilder.Entity("NadekoBot.Db.Models.Repeater", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1872,7 +1872,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("repeaters", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.RewardedUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.RewardedUser", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1911,7 +1911,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("rewardedusers", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.RotatingPlayingStatus", b => + modelBuilder.Entity("NadekoBot.Db.Models.RotatingPlayingStatus", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1938,7 +1938,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("rotatingstatus", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.SelfAssignedRole", b => + modelBuilder.Entity("NadekoBot.Db.Models.SelfAssignedRole", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1979,7 +1979,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("selfassignableroles", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntry", b => + modelBuilder.Entity("NadekoBot.Db.Models.ShopEntry", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2041,7 +2041,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("shopentry", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntryItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.ShopEntryItem", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2071,7 +2071,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("shopentryitem", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.SlowmodeIgnoredRole", b => + modelBuilder.Entity("NadekoBot.Db.Models.SlowmodeIgnoredRole", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2101,7 +2101,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("slowmodeignoredrole", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.SlowmodeIgnoredUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.SlowmodeIgnoredUser", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2131,7 +2131,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("slowmodeignoreduser", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StickyRole", b => + modelBuilder.Entity("NadekoBot.Db.Models.StickyRole", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2167,7 +2167,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("stickyroles", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleBlacklistedUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleBlacklistedUser", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2201,7 +2201,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("streamroleblacklisteduser", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleSettings", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2244,7 +2244,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("streamrolesettings", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleWhitelistedUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleWhitelistedUser", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2278,7 +2278,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("streamrolewhitelisteduser", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnbanTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnbanTimer", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2312,7 +2312,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("unbantimer", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnmuteTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnmuteTimer", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2346,7 +2346,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("unmutetimer", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnroleTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnroleTimer", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2384,7 +2384,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("unroletimer", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UserXpStats", b => + modelBuilder.Entity("NadekoBot.Db.Models.UserXpStats", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2439,7 +2439,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("userxpstats", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.VcRoleInfo", b => + modelBuilder.Entity("NadekoBot.Db.Models.VcRoleInfo", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2473,7 +2473,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("vcroleinfo", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuInfo", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuInfo", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2521,7 +2521,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("waifuinfo", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuItem", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2555,7 +2555,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("waifuitem", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuUpdate", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuUpdate", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2599,7 +2599,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("waifuupdates", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Warning", b => + modelBuilder.Entity("NadekoBot.Db.Models.Warning", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2657,7 +2657,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("warnings", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WarningPunishment", b => + modelBuilder.Entity("NadekoBot.Db.Models.WarningPunishment", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2699,7 +2699,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("warningpunishment", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpCurrencyReward", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpCurrencyReward", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2733,7 +2733,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("xpcurrencyreward", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpRoleReward", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpRoleReward", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2772,7 +2772,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("xprolereward", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpSettings", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -3352,21 +3352,21 @@ namespace NadekoBot.Db.Migrations b.ToTable("xpshopowneditem", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiAltSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiAltSetting", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithOne("AntiAltSetting") - .HasForeignKey("Nadeko.Bot.Db.Models.AntiAltSetting", "GuildConfigId") + .HasForeignKey("NadekoBot.Db.Models.AntiAltSetting", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired() .HasConstraintName("fk_antialtsetting_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiRaidSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiRaidSetting", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithOne("AntiRaidSetting") - .HasForeignKey("Nadeko.Bot.Db.Models.AntiRaidSetting", "GuildConfigId") + .HasForeignKey("NadekoBot.Db.Models.AntiRaidSetting", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired() .HasConstraintName("fk_antiraidsetting_guildconfigs_guildconfigid"); @@ -3374,19 +3374,19 @@ namespace NadekoBot.Db.Migrations b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamIgnore", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiSpamIgnore", b => { - b.HasOne("Nadeko.Bot.Db.Models.AntiSpamSetting", null) + b.HasOne("NadekoBot.Db.Models.AntiSpamSetting", null) .WithMany("IgnoredChannels") .HasForeignKey("AntiSpamSettingId") .HasConstraintName("fk_antispamignore_antispamsetting_antispamsettingid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiSpamSetting", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithOne("AntiSpamSetting") - .HasForeignKey("Nadeko.Bot.Db.Models.AntiSpamSetting", "GuildConfigId") + .HasForeignKey("NadekoBot.Db.Models.AntiSpamSetting", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired() .HasConstraintName("fk_antispamsetting_guildconfigs_guildconfigid"); @@ -3394,9 +3394,9 @@ namespace NadekoBot.Db.Migrations b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoTranslateUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.AutoTranslateUser", b => { - b.HasOne("Nadeko.Bot.Db.Models.AutoTranslateChannel", "Channel") + b.HasOne("NadekoBot.Db.Models.AutoTranslateChannel", "Channel") .WithMany("Users") .HasForeignKey("ChannelId") .OnDelete(DeleteBehavior.Cascade) @@ -3406,41 +3406,41 @@ namespace NadekoBot.Db.Migrations b.Navigation("Channel"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.CommandAlias", b => + modelBuilder.Entity("NadekoBot.Db.Models.CommandAlias", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("CommandAliases") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_commandalias_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.CommandCooldown", b => + modelBuilder.Entity("NadekoBot.Db.Models.CommandCooldown", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("CommandCooldowns") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_commandcooldown_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.DelMsgOnCmdChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.DelMsgOnCmdChannel", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("DelMsgOnCmdChannels") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_delmsgoncmdchannel_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ExcludedItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.ExcludedItem", b => { - b.HasOne("Nadeko.Bot.Db.Models.XpSettings", null) + b.HasOne("NadekoBot.Db.Models.XpSettings", null) .WithMany("ExclusionList") .HasForeignKey("XpSettingsId") .HasConstraintName("fk_excludeditem_xpsettings_xpsettingsid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FeedSub", b => + modelBuilder.Entity("NadekoBot.Db.Models.FeedSub", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithMany("FeedSubs") .HasForeignKey("GuildConfigId") .OnDelete(DeleteBehavior.Cascade) @@ -3450,41 +3450,41 @@ namespace NadekoBot.Db.Migrations b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterChannelId", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("FilterInvitesChannelIds") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_filterchannelid_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterLinksChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterLinksChannelId", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("FilterLinksChannelIds") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_filterlinkschannelid_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterWordsChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterWordsChannelId", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("FilterWordsChannelIds") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_filterwordschannelid_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilteredWord", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilteredWord", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("FilteredWords") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_filteredword_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GCChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.GCChannelId", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithMany("GenerateCurrencyChannelIds") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_gcchannelid_guildconfigs_guildconfigid"); @@ -3492,9 +3492,9 @@ namespace NadekoBot.Db.Migrations b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GroupName", b => + modelBuilder.Entity("NadekoBot.Db.Models.GroupName", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithMany("SelfAssignableRoleGroupNames") .HasForeignKey("GuildConfigId") .OnDelete(DeleteBehavior.Cascade) @@ -3504,9 +3504,9 @@ namespace NadekoBot.Db.Migrations b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.IgnoredLogItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.IgnoredLogItem", b => { - b.HasOne("Nadeko.Bot.Db.Models.LogSetting", "LogSetting") + b.HasOne("NadekoBot.Db.Models.LogSetting", "LogSetting") .WithMany("LogIgnores") .HasForeignKey("LogSettingId") .OnDelete(DeleteBehavior.Cascade) @@ -3516,9 +3516,9 @@ namespace NadekoBot.Db.Migrations b.Navigation("LogSetting"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.IgnoredVoicePresenceChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.IgnoredVoicePresenceChannel", b => { - b.HasOne("Nadeko.Bot.Db.Models.LogSetting", "LogSetting") + b.HasOne("NadekoBot.Db.Models.LogSetting", "LogSetting") .WithMany() .HasForeignKey("LogSettingId") .HasConstraintName("fk_ignoredvoicepresencechannels_logsettings_logsettingid"); @@ -3526,92 +3526,92 @@ namespace NadekoBot.Db.Migrations b.Navigation("LogSetting"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.MutedUserId", b => + modelBuilder.Entity("NadekoBot.Db.Models.MutedUserId", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("MutedUsers") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_muteduserid_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Permissionv2", b => + modelBuilder.Entity("NadekoBot.Db.Models.Permissionv2", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("Permissions") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_permissions_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PlaylistSong", b => + modelBuilder.Entity("NadekoBot.Db.Models.PlaylistSong", b => { - b.HasOne("Nadeko.Bot.Db.Models.MusicPlaylist", null) + b.HasOne("NadekoBot.Db.Models.MusicPlaylist", null) .WithMany("Songs") .HasForeignKey("MusicPlaylistId") .OnDelete(DeleteBehavior.Cascade) .HasConstraintName("fk_playlistsong_musicplaylists_musicplaylistid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PollAnswer", b => + modelBuilder.Entity("NadekoBot.Db.Models.PollAnswer", b => { - b.HasOne("Nadeko.Bot.Db.Models.Poll", null) + b.HasOne("NadekoBot.Db.Models.Poll", null) .WithMany("Answers") .HasForeignKey("PollId") .HasConstraintName("fk_pollanswer_poll_pollid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PollVote", b => + modelBuilder.Entity("NadekoBot.Db.Models.PollVote", b => { - b.HasOne("Nadeko.Bot.Db.Models.Poll", null) + b.HasOne("NadekoBot.Db.Models.Poll", null) .WithMany("Votes") .HasForeignKey("PollId") .HasConstraintName("fk_pollvote_poll_pollid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntry", b => + modelBuilder.Entity("NadekoBot.Db.Models.ShopEntry", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("ShopEntries") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_shopentry_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntryItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.ShopEntryItem", b => { - b.HasOne("Nadeko.Bot.Db.Models.ShopEntry", null) + b.HasOne("NadekoBot.Db.Models.ShopEntry", null) .WithMany("Items") .HasForeignKey("ShopEntryId") .HasConstraintName("fk_shopentryitem_shopentry_shopentryid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.SlowmodeIgnoredRole", b => + modelBuilder.Entity("NadekoBot.Db.Models.SlowmodeIgnoredRole", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("SlowmodeIgnoredRoles") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_slowmodeignoredrole_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.SlowmodeIgnoredUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.SlowmodeIgnoredUser", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("SlowmodeIgnoredUsers") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_slowmodeignoreduser_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleBlacklistedUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleBlacklistedUser", b => { - b.HasOne("Nadeko.Bot.Db.Models.StreamRoleSettings", null) + b.HasOne("NadekoBot.Db.Models.StreamRoleSettings", null) .WithMany("Blacklist") .HasForeignKey("StreamRoleSettingsId") .HasConstraintName("fk_streamroleblacklisteduser_streamrolesettings_streamrolesett~"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleSettings", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithOne("StreamRole") - .HasForeignKey("Nadeko.Bot.Db.Models.StreamRoleSettings", "GuildConfigId") + .HasForeignKey("NadekoBot.Db.Models.StreamRoleSettings", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired() .HasConstraintName("fk_streamrolesettings_guildconfigs_guildconfigid"); @@ -3619,47 +3619,47 @@ namespace NadekoBot.Db.Migrations b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleWhitelistedUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleWhitelistedUser", b => { - b.HasOne("Nadeko.Bot.Db.Models.StreamRoleSettings", null) + b.HasOne("NadekoBot.Db.Models.StreamRoleSettings", null) .WithMany("Whitelist") .HasForeignKey("StreamRoleSettingsId") .HasConstraintName("fk_streamrolewhitelisteduser_streamrolesettings_streamrolesett~"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnbanTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnbanTimer", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("UnbanTimer") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_unbantimer_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnmuteTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnmuteTimer", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("UnmuteTimers") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_unmutetimer_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnroleTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnroleTimer", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("UnroleTimer") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_unroletimer_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.VcRoleInfo", b => + modelBuilder.Entity("NadekoBot.Db.Models.VcRoleInfo", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("VcRoleInfos") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_vcroleinfo_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuInfo", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuInfo", b => { b.HasOne("NadekoBot.Db.Models.DiscordUser", "Affinity") .WithMany() @@ -3673,7 +3673,7 @@ namespace NadekoBot.Db.Migrations b.HasOne("NadekoBot.Db.Models.DiscordUser", "Waifu") .WithOne() - .HasForeignKey("Nadeko.Bot.Db.Models.WaifuInfo", "WaifuId") + .HasForeignKey("NadekoBot.Db.Models.WaifuInfo", "WaifuId") .OnDelete(DeleteBehavior.Cascade) .IsRequired() .HasConstraintName("fk_waifuinfo_discorduser_waifuid"); @@ -3685,9 +3685,9 @@ namespace NadekoBot.Db.Migrations b.Navigation("Waifu"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuItem", b => { - b.HasOne("Nadeko.Bot.Db.Models.WaifuInfo", "WaifuInfo") + b.HasOne("NadekoBot.Db.Models.WaifuInfo", "WaifuInfo") .WithMany("Items") .HasForeignKey("WaifuInfoId") .HasConstraintName("fk_waifuitem_waifuinfo_waifuinfoid"); @@ -3695,7 +3695,7 @@ namespace NadekoBot.Db.Migrations b.Navigation("WaifuInfo"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuUpdate", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuUpdate", b => { b.HasOne("NadekoBot.Db.Models.DiscordUser", "New") .WithMany() @@ -3721,17 +3721,17 @@ namespace NadekoBot.Db.Migrations b.Navigation("User"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WarningPunishment", b => + modelBuilder.Entity("NadekoBot.Db.Models.WarningPunishment", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("WarnPunishments") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_warningpunishment_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpCurrencyReward", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpCurrencyReward", b => { - b.HasOne("Nadeko.Bot.Db.Models.XpSettings", "XpSettings") + b.HasOne("NadekoBot.Db.Models.XpSettings", "XpSettings") .WithMany("CurrencyRewards") .HasForeignKey("XpSettingsId") .OnDelete(DeleteBehavior.Cascade) @@ -3741,9 +3741,9 @@ namespace NadekoBot.Db.Migrations b.Navigation("XpSettings"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpRoleReward", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpRoleReward", b => { - b.HasOne("Nadeko.Bot.Db.Models.XpSettings", "XpSettings") + b.HasOne("NadekoBot.Db.Models.XpSettings", "XpSettings") .WithMany("RoleRewards") .HasForeignKey("XpSettingsId") .OnDelete(DeleteBehavior.Cascade) @@ -3753,11 +3753,11 @@ namespace NadekoBot.Db.Migrations b.Navigation("XpSettings"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpSettings", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithOne("XpSettings") - .HasForeignKey("Nadeko.Bot.Db.Models.XpSettings", "GuildConfigId") + .HasForeignKey("NadekoBot.Db.Models.XpSettings", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired() .HasConstraintName("fk_xpsettings_guildconfigs_guildconfigid"); @@ -3831,7 +3831,7 @@ namespace NadekoBot.Db.Migrations modelBuilder.Entity("NadekoBot.Db.Models.FollowedStream", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("FollowedStreams") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_followedstream_guildconfigs_guildconfigid"); @@ -3856,17 +3856,17 @@ namespace NadekoBot.Db.Migrations .HasConstraintName("fk_todos_todosarchive_archiveid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiSpamSetting", b => { b.Navigation("IgnoredChannels"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoTranslateChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.AutoTranslateChannel", b => { b.Navigation("Users"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GuildConfig", b => + modelBuilder.Entity("NadekoBot.Db.Models.GuildConfig", b => { b.Navigation("AntiAltSetting"); @@ -3921,41 +3921,41 @@ namespace NadekoBot.Db.Migrations b.Navigation("XpSettings"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.LogSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.LogSetting", b => { b.Navigation("LogIgnores"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.MusicPlaylist", b => + modelBuilder.Entity("NadekoBot.Db.Models.MusicPlaylist", b => { b.Navigation("Songs"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Poll", b => + modelBuilder.Entity("NadekoBot.Db.Models.Poll", b => { b.Navigation("Answers"); b.Navigation("Votes"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntry", b => + modelBuilder.Entity("NadekoBot.Db.Models.ShopEntry", b => { b.Navigation("Items"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleSettings", b => { b.Navigation("Blacklist"); b.Navigation("Whitelist"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuInfo", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuInfo", b => { b.Navigation("Items"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpSettings", b => { b.Navigation("CurrencyRewards"); diff --git a/src/NadekoBot/Migrations/Postgresql/20240425132901_todolist.cs b/src/NadekoBot/Migrations/Postgresql/20240425132901_todolist.cs index 8cc4be182..4f0a17b52 100644 --- a/src/NadekoBot/Migrations/Postgresql/20240425132901_todolist.cs +++ b/src/NadekoBot/Migrations/Postgresql/20240425132901_todolist.cs @@ -1,5 +1,4 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Migrations; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable diff --git a/src/NadekoBot/Migrations/Postgresql/PostgreSqlContextModelSnapshot.cs b/src/NadekoBot/Migrations/Postgresql/PostgreSqlContextModelSnapshot.cs index b4591527d..dd9426cc0 100644 --- a/src/NadekoBot/Migrations/Postgresql/PostgreSqlContextModelSnapshot.cs +++ b/src/NadekoBot/Migrations/Postgresql/PostgreSqlContextModelSnapshot.cs @@ -3,7 +3,7 @@ using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Nadeko.Bot.Db; +using NadekoBot.Db; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable @@ -22,7 +22,7 @@ namespace NadekoBot.Db.Migrations NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiAltSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiAltSetting", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -61,7 +61,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("antialtsetting", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiRaidSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiRaidSetting", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -104,7 +104,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("antiraidsetting", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamIgnore", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiSpamIgnore", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -134,7 +134,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("antispamignore", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiSpamSetting", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -177,7 +177,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("antispamsetting", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoCommand", b => + modelBuilder.Entity("NadekoBot.Db.Models.AutoCommand", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -228,7 +228,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("autocommands", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoTranslateChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.AutoTranslateChannel", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -266,7 +266,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("autotranslatechannels", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoTranslateUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.AutoTranslateUser", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -304,7 +304,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("autotranslateusers", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.BanTemplate", b => + modelBuilder.Entity("NadekoBot.Db.Models.BanTemplate", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -339,7 +339,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("bantemplates", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.BlacklistEntry", b => + modelBuilder.Entity("NadekoBot.Db.Models.BlacklistEntry", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -366,7 +366,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("blacklist", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.CommandAlias", b => + modelBuilder.Entity("NadekoBot.Db.Models.CommandAlias", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -400,7 +400,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("commandalias", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.CommandCooldown", b => + modelBuilder.Entity("NadekoBot.Db.Models.CommandCooldown", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -434,7 +434,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("commandcooldown", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.CurrencyTransaction", b => + modelBuilder.Entity("NadekoBot.Db.Models.CurrencyTransaction", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -484,7 +484,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("currencytransactions", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.DelMsgOnCmdChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.DelMsgOnCmdChannel", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -518,7 +518,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("delmsgoncmdchannel", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.DiscordPermOverride", b => + modelBuilder.Entity("NadekoBot.Db.Models.DiscordPermOverride", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -553,7 +553,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("discordpermoverrides", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ExcludedItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.ExcludedItem", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -587,7 +587,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("excludeditem", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FeedSub", b => + modelBuilder.Entity("NadekoBot.Db.Models.FeedSub", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -626,7 +626,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("feedsub", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterChannelId", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -656,7 +656,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("filterchannelid", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterLinksChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterLinksChannelId", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -686,7 +686,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("filterlinkschannelid", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterWordsChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterWordsChannelId", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -716,7 +716,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("filterwordschannelid", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilteredWord", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilteredWord", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -746,7 +746,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("filteredword", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GCChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.GCChannelId", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -776,7 +776,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("gcchannelid", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GamblingStats", b => + modelBuilder.Entity("NadekoBot.Db.Models.GamblingStats", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -811,7 +811,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("gamblingstats", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GroupName", b => + modelBuilder.Entity("NadekoBot.Db.Models.GroupName", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -846,7 +846,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("groupname", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GuildConfig", b => + modelBuilder.Entity("NadekoBot.Db.Models.GuildConfig", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1026,7 +1026,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("guildconfigs", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.IgnoredLogItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.IgnoredLogItem", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1061,7 +1061,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("ignoredlogchannels", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.IgnoredVoicePresenceChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.IgnoredVoicePresenceChannel", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1091,7 +1091,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("ignoredvoicepresencechannels", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ImageOnlyChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.ImageOnlyChannel", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1126,7 +1126,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("imageonlychannels", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.LogSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.LogSetting", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1225,7 +1225,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("logsettings", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.MusicPlayerSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.MusicPlayerSettings", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1274,7 +1274,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("musicplayersettings", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.MusicPlaylist", b => + modelBuilder.Entity("NadekoBot.Db.Models.MusicPlaylist", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1305,7 +1305,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("musicplaylists", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.MutedUserId", b => + modelBuilder.Entity("NadekoBot.Db.Models.MutedUserId", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1335,7 +1335,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("muteduserid", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.NadekoExpression", b => + modelBuilder.Entity("NadekoBot.Db.Models.NadekoExpression", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1386,7 +1386,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("expressions", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.NsfwBlacklistedTag", b => + modelBuilder.Entity("NadekoBot.Db.Models.NsfwBlacklistedTag", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1416,7 +1416,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("nsfwblacklistedtags", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Permissionv2", b => + modelBuilder.Entity("NadekoBot.Db.Models.Permissionv2", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1470,7 +1470,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("permissions", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PlantedCurrency", b => + modelBuilder.Entity("NadekoBot.Db.Models.PlantedCurrency", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1520,7 +1520,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("plantedcurrency", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PlaylistSong", b => + modelBuilder.Entity("NadekoBot.Db.Models.PlaylistSong", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1566,7 +1566,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("playlistsong", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Poll", b => + modelBuilder.Entity("NadekoBot.Db.Models.Poll", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1601,7 +1601,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("poll", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PollAnswer", b => + modelBuilder.Entity("NadekoBot.Db.Models.PollAnswer", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1635,7 +1635,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("pollanswer", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PollVote", b => + modelBuilder.Entity("NadekoBot.Db.Models.PollVote", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1669,7 +1669,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("pollvote", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Quote", b => + modelBuilder.Entity("NadekoBot.Db.Models.Quote", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1717,7 +1717,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("quotes", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ReactionRoleV2", b => + modelBuilder.Entity("NadekoBot.Db.Models.ReactionRoleV2", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1772,7 +1772,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("reactionroles", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Reminder", b => + modelBuilder.Entity("NadekoBot.Db.Models.Reminder", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1822,7 +1822,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("reminders", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Repeater", b => + modelBuilder.Entity("NadekoBot.Db.Models.Repeater", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1869,7 +1869,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("repeaters", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.RewardedUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.RewardedUser", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1908,7 +1908,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("rewardedusers", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.RotatingPlayingStatus", b => + modelBuilder.Entity("NadekoBot.Db.Models.RotatingPlayingStatus", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1935,7 +1935,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("rotatingstatus", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.SelfAssignedRole", b => + modelBuilder.Entity("NadekoBot.Db.Models.SelfAssignedRole", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1976,7 +1976,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("selfassignableroles", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntry", b => + modelBuilder.Entity("NadekoBot.Db.Models.ShopEntry", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2038,7 +2038,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("shopentry", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntryItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.ShopEntryItem", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2068,7 +2068,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("shopentryitem", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.SlowmodeIgnoredRole", b => + modelBuilder.Entity("NadekoBot.Db.Models.SlowmodeIgnoredRole", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2098,7 +2098,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("slowmodeignoredrole", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.SlowmodeIgnoredUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.SlowmodeIgnoredUser", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2128,7 +2128,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("slowmodeignoreduser", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StickyRole", b => + modelBuilder.Entity("NadekoBot.Db.Models.StickyRole", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2164,7 +2164,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("stickyroles", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleBlacklistedUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleBlacklistedUser", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2198,7 +2198,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("streamroleblacklisteduser", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleSettings", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2241,7 +2241,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("streamrolesettings", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleWhitelistedUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleWhitelistedUser", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2275,7 +2275,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("streamrolewhitelisteduser", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnbanTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnbanTimer", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2309,7 +2309,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("unbantimer", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnmuteTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnmuteTimer", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2343,7 +2343,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("unmutetimer", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnroleTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnroleTimer", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2381,7 +2381,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("unroletimer", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UserXpStats", b => + modelBuilder.Entity("NadekoBot.Db.Models.UserXpStats", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2436,7 +2436,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("userxpstats", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.VcRoleInfo", b => + modelBuilder.Entity("NadekoBot.Db.Models.VcRoleInfo", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2470,7 +2470,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("vcroleinfo", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuInfo", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuInfo", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2518,7 +2518,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("waifuinfo", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuItem", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2552,7 +2552,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("waifuitem", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuUpdate", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuUpdate", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2596,7 +2596,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("waifuupdates", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Warning", b => + modelBuilder.Entity("NadekoBot.Db.Models.Warning", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2654,7 +2654,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("warnings", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WarningPunishment", b => + modelBuilder.Entity("NadekoBot.Db.Models.WarningPunishment", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2696,7 +2696,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("warningpunishment", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpCurrencyReward", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpCurrencyReward", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2730,7 +2730,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("xpcurrencyreward", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpRoleReward", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpRoleReward", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2769,7 +2769,7 @@ namespace NadekoBot.Db.Migrations b.ToTable("xprolereward", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpSettings", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -3349,21 +3349,21 @@ namespace NadekoBot.Db.Migrations b.ToTable("xpshopowneditem", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiAltSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiAltSetting", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithOne("AntiAltSetting") - .HasForeignKey("Nadeko.Bot.Db.Models.AntiAltSetting", "GuildConfigId") + .HasForeignKey("NadekoBot.Db.Models.AntiAltSetting", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired() .HasConstraintName("fk_antialtsetting_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiRaidSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiRaidSetting", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithOne("AntiRaidSetting") - .HasForeignKey("Nadeko.Bot.Db.Models.AntiRaidSetting", "GuildConfigId") + .HasForeignKey("NadekoBot.Db.Models.AntiRaidSetting", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired() .HasConstraintName("fk_antiraidsetting_guildconfigs_guildconfigid"); @@ -3371,19 +3371,19 @@ namespace NadekoBot.Db.Migrations b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamIgnore", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiSpamIgnore", b => { - b.HasOne("Nadeko.Bot.Db.Models.AntiSpamSetting", null) + b.HasOne("NadekoBot.Db.Models.AntiSpamSetting", null) .WithMany("IgnoredChannels") .HasForeignKey("AntiSpamSettingId") .HasConstraintName("fk_antispamignore_antispamsetting_antispamsettingid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiSpamSetting", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithOne("AntiSpamSetting") - .HasForeignKey("Nadeko.Bot.Db.Models.AntiSpamSetting", "GuildConfigId") + .HasForeignKey("NadekoBot.Db.Models.AntiSpamSetting", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired() .HasConstraintName("fk_antispamsetting_guildconfigs_guildconfigid"); @@ -3391,9 +3391,9 @@ namespace NadekoBot.Db.Migrations b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoTranslateUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.AutoTranslateUser", b => { - b.HasOne("Nadeko.Bot.Db.Models.AutoTranslateChannel", "Channel") + b.HasOne("NadekoBot.Db.Models.AutoTranslateChannel", "Channel") .WithMany("Users") .HasForeignKey("ChannelId") .OnDelete(DeleteBehavior.Cascade) @@ -3403,41 +3403,41 @@ namespace NadekoBot.Db.Migrations b.Navigation("Channel"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.CommandAlias", b => + modelBuilder.Entity("NadekoBot.Db.Models.CommandAlias", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("CommandAliases") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_commandalias_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.CommandCooldown", b => + modelBuilder.Entity("NadekoBot.Db.Models.CommandCooldown", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("CommandCooldowns") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_commandcooldown_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.DelMsgOnCmdChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.DelMsgOnCmdChannel", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("DelMsgOnCmdChannels") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_delmsgoncmdchannel_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ExcludedItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.ExcludedItem", b => { - b.HasOne("Nadeko.Bot.Db.Models.XpSettings", null) + b.HasOne("NadekoBot.Db.Models.XpSettings", null) .WithMany("ExclusionList") .HasForeignKey("XpSettingsId") .HasConstraintName("fk_excludeditem_xpsettings_xpsettingsid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FeedSub", b => + modelBuilder.Entity("NadekoBot.Db.Models.FeedSub", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithMany("FeedSubs") .HasForeignKey("GuildConfigId") .OnDelete(DeleteBehavior.Cascade) @@ -3447,41 +3447,41 @@ namespace NadekoBot.Db.Migrations b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterChannelId", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("FilterInvitesChannelIds") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_filterchannelid_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterLinksChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterLinksChannelId", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("FilterLinksChannelIds") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_filterlinkschannelid_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterWordsChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterWordsChannelId", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("FilterWordsChannelIds") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_filterwordschannelid_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilteredWord", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilteredWord", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("FilteredWords") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_filteredword_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GCChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.GCChannelId", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithMany("GenerateCurrencyChannelIds") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_gcchannelid_guildconfigs_guildconfigid"); @@ -3489,9 +3489,9 @@ namespace NadekoBot.Db.Migrations b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GroupName", b => + modelBuilder.Entity("NadekoBot.Db.Models.GroupName", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithMany("SelfAssignableRoleGroupNames") .HasForeignKey("GuildConfigId") .OnDelete(DeleteBehavior.Cascade) @@ -3501,9 +3501,9 @@ namespace NadekoBot.Db.Migrations b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.IgnoredLogItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.IgnoredLogItem", b => { - b.HasOne("Nadeko.Bot.Db.Models.LogSetting", "LogSetting") + b.HasOne("NadekoBot.Db.Models.LogSetting", "LogSetting") .WithMany("LogIgnores") .HasForeignKey("LogSettingId") .OnDelete(DeleteBehavior.Cascade) @@ -3513,9 +3513,9 @@ namespace NadekoBot.Db.Migrations b.Navigation("LogSetting"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.IgnoredVoicePresenceChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.IgnoredVoicePresenceChannel", b => { - b.HasOne("Nadeko.Bot.Db.Models.LogSetting", "LogSetting") + b.HasOne("NadekoBot.Db.Models.LogSetting", "LogSetting") .WithMany() .HasForeignKey("LogSettingId") .HasConstraintName("fk_ignoredvoicepresencechannels_logsettings_logsettingid"); @@ -3523,92 +3523,92 @@ namespace NadekoBot.Db.Migrations b.Navigation("LogSetting"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.MutedUserId", b => + modelBuilder.Entity("NadekoBot.Db.Models.MutedUserId", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("MutedUsers") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_muteduserid_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Permissionv2", b => + modelBuilder.Entity("NadekoBot.Db.Models.Permissionv2", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("Permissions") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_permissions_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PlaylistSong", b => + modelBuilder.Entity("NadekoBot.Db.Models.PlaylistSong", b => { - b.HasOne("Nadeko.Bot.Db.Models.MusicPlaylist", null) + b.HasOne("NadekoBot.Db.Models.MusicPlaylist", null) .WithMany("Songs") .HasForeignKey("MusicPlaylistId") .OnDelete(DeleteBehavior.Cascade) .HasConstraintName("fk_playlistsong_musicplaylists_musicplaylistid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PollAnswer", b => + modelBuilder.Entity("NadekoBot.Db.Models.PollAnswer", b => { - b.HasOne("Nadeko.Bot.Db.Models.Poll", null) + b.HasOne("NadekoBot.Db.Models.Poll", null) .WithMany("Answers") .HasForeignKey("PollId") .HasConstraintName("fk_pollanswer_poll_pollid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PollVote", b => + modelBuilder.Entity("NadekoBot.Db.Models.PollVote", b => { - b.HasOne("Nadeko.Bot.Db.Models.Poll", null) + b.HasOne("NadekoBot.Db.Models.Poll", null) .WithMany("Votes") .HasForeignKey("PollId") .HasConstraintName("fk_pollvote_poll_pollid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntry", b => + modelBuilder.Entity("NadekoBot.Db.Models.ShopEntry", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("ShopEntries") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_shopentry_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntryItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.ShopEntryItem", b => { - b.HasOne("Nadeko.Bot.Db.Models.ShopEntry", null) + b.HasOne("NadekoBot.Db.Models.ShopEntry", null) .WithMany("Items") .HasForeignKey("ShopEntryId") .HasConstraintName("fk_shopentryitem_shopentry_shopentryid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.SlowmodeIgnoredRole", b => + modelBuilder.Entity("NadekoBot.Db.Models.SlowmodeIgnoredRole", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("SlowmodeIgnoredRoles") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_slowmodeignoredrole_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.SlowmodeIgnoredUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.SlowmodeIgnoredUser", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("SlowmodeIgnoredUsers") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_slowmodeignoreduser_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleBlacklistedUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleBlacklistedUser", b => { - b.HasOne("Nadeko.Bot.Db.Models.StreamRoleSettings", null) + b.HasOne("NadekoBot.Db.Models.StreamRoleSettings", null) .WithMany("Blacklist") .HasForeignKey("StreamRoleSettingsId") .HasConstraintName("fk_streamroleblacklisteduser_streamrolesettings_streamrolesett~"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleSettings", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithOne("StreamRole") - .HasForeignKey("Nadeko.Bot.Db.Models.StreamRoleSettings", "GuildConfigId") + .HasForeignKey("NadekoBot.Db.Models.StreamRoleSettings", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired() .HasConstraintName("fk_streamrolesettings_guildconfigs_guildconfigid"); @@ -3616,47 +3616,47 @@ namespace NadekoBot.Db.Migrations b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleWhitelistedUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleWhitelistedUser", b => { - b.HasOne("Nadeko.Bot.Db.Models.StreamRoleSettings", null) + b.HasOne("NadekoBot.Db.Models.StreamRoleSettings", null) .WithMany("Whitelist") .HasForeignKey("StreamRoleSettingsId") .HasConstraintName("fk_streamrolewhitelisteduser_streamrolesettings_streamrolesett~"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnbanTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnbanTimer", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("UnbanTimer") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_unbantimer_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnmuteTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnmuteTimer", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("UnmuteTimers") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_unmutetimer_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnroleTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnroleTimer", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("UnroleTimer") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_unroletimer_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.VcRoleInfo", b => + modelBuilder.Entity("NadekoBot.Db.Models.VcRoleInfo", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("VcRoleInfos") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_vcroleinfo_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuInfo", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuInfo", b => { b.HasOne("NadekoBot.Db.Models.DiscordUser", "Affinity") .WithMany() @@ -3670,7 +3670,7 @@ namespace NadekoBot.Db.Migrations b.HasOne("NadekoBot.Db.Models.DiscordUser", "Waifu") .WithOne() - .HasForeignKey("Nadeko.Bot.Db.Models.WaifuInfo", "WaifuId") + .HasForeignKey("NadekoBot.Db.Models.WaifuInfo", "WaifuId") .OnDelete(DeleteBehavior.Cascade) .IsRequired() .HasConstraintName("fk_waifuinfo_discorduser_waifuid"); @@ -3682,9 +3682,9 @@ namespace NadekoBot.Db.Migrations b.Navigation("Waifu"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuItem", b => { - b.HasOne("Nadeko.Bot.Db.Models.WaifuInfo", "WaifuInfo") + b.HasOne("NadekoBot.Db.Models.WaifuInfo", "WaifuInfo") .WithMany("Items") .HasForeignKey("WaifuInfoId") .HasConstraintName("fk_waifuitem_waifuinfo_waifuinfoid"); @@ -3692,7 +3692,7 @@ namespace NadekoBot.Db.Migrations b.Navigation("WaifuInfo"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuUpdate", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuUpdate", b => { b.HasOne("NadekoBot.Db.Models.DiscordUser", "New") .WithMany() @@ -3718,17 +3718,17 @@ namespace NadekoBot.Db.Migrations b.Navigation("User"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WarningPunishment", b => + modelBuilder.Entity("NadekoBot.Db.Models.WarningPunishment", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("WarnPunishments") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_warningpunishment_guildconfigs_guildconfigid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpCurrencyReward", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpCurrencyReward", b => { - b.HasOne("Nadeko.Bot.Db.Models.XpSettings", "XpSettings") + b.HasOne("NadekoBot.Db.Models.XpSettings", "XpSettings") .WithMany("CurrencyRewards") .HasForeignKey("XpSettingsId") .OnDelete(DeleteBehavior.Cascade) @@ -3738,9 +3738,9 @@ namespace NadekoBot.Db.Migrations b.Navigation("XpSettings"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpRoleReward", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpRoleReward", b => { - b.HasOne("Nadeko.Bot.Db.Models.XpSettings", "XpSettings") + b.HasOne("NadekoBot.Db.Models.XpSettings", "XpSettings") .WithMany("RoleRewards") .HasForeignKey("XpSettingsId") .OnDelete(DeleteBehavior.Cascade) @@ -3750,11 +3750,11 @@ namespace NadekoBot.Db.Migrations b.Navigation("XpSettings"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpSettings", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithOne("XpSettings") - .HasForeignKey("Nadeko.Bot.Db.Models.XpSettings", "GuildConfigId") + .HasForeignKey("NadekoBot.Db.Models.XpSettings", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired() .HasConstraintName("fk_xpsettings_guildconfigs_guildconfigid"); @@ -3828,7 +3828,7 @@ namespace NadekoBot.Db.Migrations modelBuilder.Entity("NadekoBot.Db.Models.FollowedStream", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("FollowedStreams") .HasForeignKey("GuildConfigId") .HasConstraintName("fk_followedstream_guildconfigs_guildconfigid"); @@ -3853,17 +3853,17 @@ namespace NadekoBot.Db.Migrations .HasConstraintName("fk_todos_todosarchive_archiveid"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiSpamSetting", b => { b.Navigation("IgnoredChannels"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoTranslateChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.AutoTranslateChannel", b => { b.Navigation("Users"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GuildConfig", b => + modelBuilder.Entity("NadekoBot.Db.Models.GuildConfig", b => { b.Navigation("AntiAltSetting"); @@ -3918,41 +3918,41 @@ namespace NadekoBot.Db.Migrations b.Navigation("XpSettings"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.LogSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.LogSetting", b => { b.Navigation("LogIgnores"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.MusicPlaylist", b => + modelBuilder.Entity("NadekoBot.Db.Models.MusicPlaylist", b => { b.Navigation("Songs"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Poll", b => + modelBuilder.Entity("NadekoBot.Db.Models.Poll", b => { b.Navigation("Answers"); b.Navigation("Votes"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntry", b => + modelBuilder.Entity("NadekoBot.Db.Models.ShopEntry", b => { b.Navigation("Items"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleSettings", b => { b.Navigation("Blacklist"); b.Navigation("Whitelist"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuInfo", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuInfo", b => { b.Navigation("Items"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpSettings", b => { b.Navigation("CurrencyRewards"); diff --git a/src/NadekoBot/Migrations/Sqlite/20221122204324_feed-text.Designer.cs b/src/NadekoBot/Migrations/Sqlite/20221122204324_feed-text.Designer.cs index 0ce230fcc..8875050bb 100644 --- a/src/NadekoBot/Migrations/Sqlite/20221122204324_feed-text.Designer.cs +++ b/src/NadekoBot/Migrations/Sqlite/20221122204324_feed-text.Designer.cs @@ -4,7 +4,7 @@ using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Nadeko.Bot.Db; +using NadekoBot.Db; #nullable disable diff --git a/src/NadekoBot/Migrations/Sqlite/20221122204324_feed-text.cs b/src/NadekoBot/Migrations/Sqlite/20221122204324_feed-text.cs index b8df46f8e..852b1081c 100644 --- a/src/NadekoBot/Migrations/Sqlite/20221122204324_feed-text.cs +++ b/src/NadekoBot/Migrations/Sqlite/20221122204324_feed-text.cs @@ -1,5 +1,4 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Migrations; #nullable disable diff --git a/src/NadekoBot/Migrations/Sqlite/20230813110732_timely-reminder-type.Designer.cs b/src/NadekoBot/Migrations/Sqlite/20230813110732_timely-reminder-type.Designer.cs index 735e88637..5736a98c3 100644 --- a/src/NadekoBot/Migrations/Sqlite/20230813110732_timely-reminder-type.Designer.cs +++ b/src/NadekoBot/Migrations/Sqlite/20230813110732_timely-reminder-type.Designer.cs @@ -4,7 +4,7 @@ using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Nadeko.Bot.Db; +using NadekoBot.Db; #nullable disable diff --git a/src/NadekoBot/Migrations/Sqlite/20230903153230_clubinfo-name-index.Designer.cs b/src/NadekoBot/Migrations/Sqlite/20230903153230_clubinfo-name-index.Designer.cs index 81b03a600..57cd4a2d2 100644 --- a/src/NadekoBot/Migrations/Sqlite/20230903153230_clubinfo-name-index.Designer.cs +++ b/src/NadekoBot/Migrations/Sqlite/20230903153230_clubinfo-name-index.Designer.cs @@ -4,7 +4,7 @@ using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Nadeko.Bot.Db; +using NadekoBot.Db; #nullable disable diff --git a/src/NadekoBot/Migrations/Sqlite/20240423113453_shopcommands.Designer.cs b/src/NadekoBot/Migrations/Sqlite/20240423113453_shopcommands.Designer.cs index 4f37eab59..9aaab5826 100644 --- a/src/NadekoBot/Migrations/Sqlite/20240423113453_shopcommands.Designer.cs +++ b/src/NadekoBot/Migrations/Sqlite/20240423113453_shopcommands.Designer.cs @@ -4,7 +4,7 @@ using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Nadeko.Bot.Db; +using NadekoBot.Db; #nullable disable @@ -20,7 +20,7 @@ namespace NadekoBot.Db.Migrations.Sqlite #pragma warning disable 612, 618 modelBuilder.HasAnnotation("ProductVersion", "8.0.3"); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiAltSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiAltSetting", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -49,7 +49,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("AntiAltSetting"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiRaidSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiRaidSetting", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -81,7 +81,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("AntiRaidSetting"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamIgnore", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiSpamIgnore", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -103,7 +103,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("AntiSpamIgnore"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiSpamSetting", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -135,7 +135,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("AntiSpamSetting"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoCommand", b => + modelBuilder.Entity("NadekoBot.Db.Models.AutoCommand", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -173,7 +173,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("AutoCommands"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoTranslateChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.AutoTranslateChannel", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -201,7 +201,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("AutoTranslateChannels"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoTranslateUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.AutoTranslateUser", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -229,7 +229,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("AutoTranslateUsers"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.BanTemplate", b => + modelBuilder.Entity("NadekoBot.Db.Models.BanTemplate", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -255,7 +255,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("BanTemplates"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.BlacklistEntry", b => + modelBuilder.Entity("NadekoBot.Db.Models.BlacklistEntry", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -275,7 +275,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("Blacklist"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.CommandAlias", b => + modelBuilder.Entity("NadekoBot.Db.Models.CommandAlias", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -300,7 +300,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("CommandAlias"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.CommandCooldown", b => + modelBuilder.Entity("NadekoBot.Db.Models.CommandCooldown", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -325,7 +325,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("CommandCooldown"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.CurrencyTransaction", b => + modelBuilder.Entity("NadekoBot.Db.Models.CurrencyTransaction", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -363,7 +363,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("CurrencyTransactions"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.DelMsgOnCmdChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.DelMsgOnCmdChannel", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -388,7 +388,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("DelMsgOnCmdChannel"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.DiscordPermOverride", b => + modelBuilder.Entity("NadekoBot.Db.Models.DiscordPermOverride", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -414,7 +414,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("DiscordPermOverrides"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ExcludedItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.ExcludedItem", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -439,7 +439,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("ExcludedItem"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FeedSub", b => + modelBuilder.Entity("NadekoBot.Db.Models.FeedSub", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -468,7 +468,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("FeedSub"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterChannelId", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -490,7 +490,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("FilterChannelId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterLinksChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterLinksChannelId", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -512,7 +512,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("FilterLinksChannelId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterWordsChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterWordsChannelId", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -534,7 +534,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("FilterWordsChannelId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilteredWord", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilteredWord", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -556,7 +556,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("FilteredWord"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GCChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.GCChannelId", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -578,7 +578,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("GCChannelId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GamblingStats", b => + modelBuilder.Entity("NadekoBot.Db.Models.GamblingStats", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -604,7 +604,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("GamblingStats"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GroupName", b => + modelBuilder.Entity("NadekoBot.Db.Models.GroupName", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -630,7 +630,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("GroupName"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GuildConfig", b => + modelBuilder.Entity("NadekoBot.Db.Models.GuildConfig", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -762,7 +762,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("GuildConfigs"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.IgnoredLogItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.IgnoredLogItem", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -788,7 +788,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("IgnoredLogChannels"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.IgnoredVoicePresenceChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.IgnoredVoicePresenceChannel", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -810,7 +810,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("IgnoredVoicePresenceCHannels"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ImageOnlyChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.ImageOnlyChannel", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -836,7 +836,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("ImageOnlyChannels"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.LogSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.LogSetting", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -910,7 +910,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("LogSettings"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.MusicPlayerSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.MusicPlayerSettings", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -947,7 +947,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("MusicPlayerSettings"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.MusicPlaylist", b => + modelBuilder.Entity("NadekoBot.Db.Models.MusicPlaylist", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -970,7 +970,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("MusicPlaylists"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.MutedUserId", b => + modelBuilder.Entity("NadekoBot.Db.Models.MutedUserId", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -992,7 +992,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("MutedUserId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.NadekoExpression", b => + modelBuilder.Entity("NadekoBot.Db.Models.NadekoExpression", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1030,7 +1030,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("Expressions"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.NsfwBlacklistedTag", b => + modelBuilder.Entity("NadekoBot.Db.Models.NsfwBlacklistedTag", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1052,7 +1052,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("NsfwBlacklistedTags"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Permissionv2", b => + modelBuilder.Entity("NadekoBot.Db.Models.Permissionv2", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1092,7 +1092,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("Permissions"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PlantedCurrency", b => + modelBuilder.Entity("NadekoBot.Db.Models.PlantedCurrency", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1129,7 +1129,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("PlantedCurrency"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PlaylistSong", b => + modelBuilder.Entity("NadekoBot.Db.Models.PlaylistSong", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1163,7 +1163,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("PlaylistSong"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Poll", b => + modelBuilder.Entity("NadekoBot.Db.Models.Poll", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1189,7 +1189,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("Poll"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PollAnswer", b => + modelBuilder.Entity("NadekoBot.Db.Models.PollAnswer", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1214,7 +1214,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("PollAnswer"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PollVote", b => + modelBuilder.Entity("NadekoBot.Db.Models.PollVote", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1239,7 +1239,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("PollVote"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Quote", b => + modelBuilder.Entity("NadekoBot.Db.Models.Quote", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1275,7 +1275,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("Quotes"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ReactionRoleV2", b => + modelBuilder.Entity("NadekoBot.Db.Models.ReactionRoleV2", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1316,7 +1316,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("ReactionRoles"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Reminder", b => + modelBuilder.Entity("NadekoBot.Db.Models.Reminder", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1353,7 +1353,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("Reminders"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Repeater", b => + modelBuilder.Entity("NadekoBot.Db.Models.Repeater", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1388,7 +1388,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("Repeaters"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.RewardedUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.RewardedUser", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1417,7 +1417,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("RewardedUsers"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.RotatingPlayingStatus", b => + modelBuilder.Entity("NadekoBot.Db.Models.RotatingPlayingStatus", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1437,7 +1437,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("RotatingStatus"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.SelfAssignedRole", b => + modelBuilder.Entity("NadekoBot.Db.Models.SelfAssignedRole", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1468,7 +1468,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("SelfAssignableRoles"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntry", b => + modelBuilder.Entity("NadekoBot.Db.Models.ShopEntry", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1514,7 +1514,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("ShopEntry"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntryItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.ShopEntryItem", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1536,7 +1536,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("ShopEntryItem"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.SlowmodeIgnoredRole", b => + modelBuilder.Entity("NadekoBot.Db.Models.SlowmodeIgnoredRole", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1558,7 +1558,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("SlowmodeIgnoredRole"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.SlowmodeIgnoredUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.SlowmodeIgnoredUser", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1580,7 +1580,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("SlowmodeIgnoredUser"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleBlacklistedUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleBlacklistedUser", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1605,7 +1605,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("StreamRoleBlacklistedUser"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleSettings", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1637,7 +1637,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("StreamRoleSettings"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleWhitelistedUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleWhitelistedUser", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1662,7 +1662,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("StreamRoleWhitelistedUser"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnbanTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnbanTimer", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1687,7 +1687,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("UnbanTimer"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnmuteTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnmuteTimer", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1712,7 +1712,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("UnmuteTimer"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnroleTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnroleTimer", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1740,7 +1740,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("UnroleTimer"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UserXpStats", b => + modelBuilder.Entity("NadekoBot.Db.Models.UserXpStats", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1780,7 +1780,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("UserXpStats"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.VcRoleInfo", b => + modelBuilder.Entity("NadekoBot.Db.Models.VcRoleInfo", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1805,7 +1805,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("VcRoleInfo"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuInfo", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuInfo", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1840,7 +1840,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("WaifuInfo"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuItem", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1865,7 +1865,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("WaifuItem"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuUpdate", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuUpdate", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1897,7 +1897,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("WaifuUpdates"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Warning", b => + modelBuilder.Entity("NadekoBot.Db.Models.Warning", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1940,7 +1940,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("Warnings"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WarningPunishment", b => + modelBuilder.Entity("NadekoBot.Db.Models.WarningPunishment", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1971,7 +1971,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("WarningPunishment"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpCurrencyReward", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpCurrencyReward", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1996,7 +1996,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("XpCurrencyReward"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpRoleReward", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpRoleReward", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2025,7 +2025,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("XpRoleReward"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpSettings", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2362,47 +2362,47 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("XpShopOwnedItem"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiAltSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiAltSetting", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithOne("AntiAltSetting") - .HasForeignKey("Nadeko.Bot.Db.Models.AntiAltSetting", "GuildConfigId") + .HasForeignKey("NadekoBot.Db.Models.AntiAltSetting", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiRaidSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiRaidSetting", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithOne("AntiRaidSetting") - .HasForeignKey("Nadeko.Bot.Db.Models.AntiRaidSetting", "GuildConfigId") + .HasForeignKey("NadekoBot.Db.Models.AntiRaidSetting", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamIgnore", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiSpamIgnore", b => { - b.HasOne("Nadeko.Bot.Db.Models.AntiSpamSetting", null) + b.HasOne("NadekoBot.Db.Models.AntiSpamSetting", null) .WithMany("IgnoredChannels") .HasForeignKey("AntiSpamSettingId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiSpamSetting", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithOne("AntiSpamSetting") - .HasForeignKey("Nadeko.Bot.Db.Models.AntiSpamSetting", "GuildConfigId") + .HasForeignKey("NadekoBot.Db.Models.AntiSpamSetting", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoTranslateUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.AutoTranslateUser", b => { - b.HasOne("Nadeko.Bot.Db.Models.AutoTranslateChannel", "Channel") + b.HasOne("NadekoBot.Db.Models.AutoTranslateChannel", "Channel") .WithMany("Users") .HasForeignKey("ChannelId") .OnDelete(DeleteBehavior.Cascade) @@ -2411,37 +2411,37 @@ namespace NadekoBot.Db.Migrations.Sqlite b.Navigation("Channel"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.CommandAlias", b => + modelBuilder.Entity("NadekoBot.Db.Models.CommandAlias", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("CommandAliases") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.CommandCooldown", b => + modelBuilder.Entity("NadekoBot.Db.Models.CommandCooldown", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("CommandCooldowns") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.DelMsgOnCmdChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.DelMsgOnCmdChannel", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("DelMsgOnCmdChannels") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ExcludedItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.ExcludedItem", b => { - b.HasOne("Nadeko.Bot.Db.Models.XpSettings", null) + b.HasOne("NadekoBot.Db.Models.XpSettings", null) .WithMany("ExclusionList") .HasForeignKey("XpSettingsId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FeedSub", b => + modelBuilder.Entity("NadekoBot.Db.Models.FeedSub", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithMany("FeedSubs") .HasForeignKey("GuildConfigId") .OnDelete(DeleteBehavior.Cascade) @@ -2450,46 +2450,46 @@ namespace NadekoBot.Db.Migrations.Sqlite b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterChannelId", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("FilterInvitesChannelIds") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterLinksChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterLinksChannelId", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("FilterLinksChannelIds") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterWordsChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterWordsChannelId", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("FilterWordsChannelIds") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilteredWord", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilteredWord", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("FilteredWords") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GCChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.GCChannelId", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithMany("GenerateCurrencyChannelIds") .HasForeignKey("GuildConfigId"); b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GroupName", b => + modelBuilder.Entity("NadekoBot.Db.Models.GroupName", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithMany("SelfAssignableRoleGroupNames") .HasForeignKey("GuildConfigId") .OnDelete(DeleteBehavior.Cascade) @@ -2498,9 +2498,9 @@ namespace NadekoBot.Db.Migrations.Sqlite b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.IgnoredLogItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.IgnoredLogItem", b => { - b.HasOne("Nadeko.Bot.Db.Models.LogSetting", "LogSetting") + b.HasOne("NadekoBot.Db.Models.LogSetting", "LogSetting") .WithMany("LogIgnores") .HasForeignKey("LogSettingId") .OnDelete(DeleteBehavior.Cascade) @@ -2509,133 +2509,133 @@ namespace NadekoBot.Db.Migrations.Sqlite b.Navigation("LogSetting"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.IgnoredVoicePresenceChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.IgnoredVoicePresenceChannel", b => { - b.HasOne("Nadeko.Bot.Db.Models.LogSetting", "LogSetting") + b.HasOne("NadekoBot.Db.Models.LogSetting", "LogSetting") .WithMany() .HasForeignKey("LogSettingId"); b.Navigation("LogSetting"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.MutedUserId", b => + modelBuilder.Entity("NadekoBot.Db.Models.MutedUserId", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("MutedUsers") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Permissionv2", b => + modelBuilder.Entity("NadekoBot.Db.Models.Permissionv2", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("Permissions") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PlaylistSong", b => + modelBuilder.Entity("NadekoBot.Db.Models.PlaylistSong", b => { - b.HasOne("Nadeko.Bot.Db.Models.MusicPlaylist", null) + b.HasOne("NadekoBot.Db.Models.MusicPlaylist", null) .WithMany("Songs") .HasForeignKey("MusicPlaylistId") .OnDelete(DeleteBehavior.Cascade); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PollAnswer", b => + modelBuilder.Entity("NadekoBot.Db.Models.PollAnswer", b => { - b.HasOne("Nadeko.Bot.Db.Models.Poll", null) + b.HasOne("NadekoBot.Db.Models.Poll", null) .WithMany("Answers") .HasForeignKey("PollId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PollVote", b => + modelBuilder.Entity("NadekoBot.Db.Models.PollVote", b => { - b.HasOne("Nadeko.Bot.Db.Models.Poll", null) + b.HasOne("NadekoBot.Db.Models.Poll", null) .WithMany("Votes") .HasForeignKey("PollId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntry", b => + modelBuilder.Entity("NadekoBot.Db.Models.ShopEntry", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("ShopEntries") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntryItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.ShopEntryItem", b => { - b.HasOne("Nadeko.Bot.Db.Models.ShopEntry", null) + b.HasOne("NadekoBot.Db.Models.ShopEntry", null) .WithMany("Items") .HasForeignKey("ShopEntryId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.SlowmodeIgnoredRole", b => + modelBuilder.Entity("NadekoBot.Db.Models.SlowmodeIgnoredRole", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("SlowmodeIgnoredRoles") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.SlowmodeIgnoredUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.SlowmodeIgnoredUser", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("SlowmodeIgnoredUsers") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleBlacklistedUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleBlacklistedUser", b => { - b.HasOne("Nadeko.Bot.Db.Models.StreamRoleSettings", null) + b.HasOne("NadekoBot.Db.Models.StreamRoleSettings", null) .WithMany("Blacklist") .HasForeignKey("StreamRoleSettingsId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleSettings", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithOne("StreamRole") - .HasForeignKey("Nadeko.Bot.Db.Models.StreamRoleSettings", "GuildConfigId") + .HasForeignKey("NadekoBot.Db.Models.StreamRoleSettings", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleWhitelistedUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleWhitelistedUser", b => { - b.HasOne("Nadeko.Bot.Db.Models.StreamRoleSettings", null) + b.HasOne("NadekoBot.Db.Models.StreamRoleSettings", null) .WithMany("Whitelist") .HasForeignKey("StreamRoleSettingsId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnbanTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnbanTimer", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("UnbanTimer") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnmuteTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnmuteTimer", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("UnmuteTimers") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnroleTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnroleTimer", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("UnroleTimer") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.VcRoleInfo", b => + modelBuilder.Entity("NadekoBot.Db.Models.VcRoleInfo", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("VcRoleInfos") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuInfo", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuInfo", b => { b.HasOne("NadekoBot.Db.Models.DiscordUser", "Affinity") .WithMany() @@ -2647,7 +2647,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.HasOne("NadekoBot.Db.Models.DiscordUser", "Waifu") .WithOne() - .HasForeignKey("Nadeko.Bot.Db.Models.WaifuInfo", "WaifuId") + .HasForeignKey("NadekoBot.Db.Models.WaifuInfo", "WaifuId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); @@ -2658,16 +2658,16 @@ namespace NadekoBot.Db.Migrations.Sqlite b.Navigation("Waifu"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuItem", b => { - b.HasOne("Nadeko.Bot.Db.Models.WaifuInfo", "WaifuInfo") + b.HasOne("NadekoBot.Db.Models.WaifuInfo", "WaifuInfo") .WithMany("Items") .HasForeignKey("WaifuInfoId"); b.Navigation("WaifuInfo"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuUpdate", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuUpdate", b => { b.HasOne("NadekoBot.Db.Models.DiscordUser", "New") .WithMany() @@ -2690,16 +2690,16 @@ namespace NadekoBot.Db.Migrations.Sqlite b.Navigation("User"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WarningPunishment", b => + modelBuilder.Entity("NadekoBot.Db.Models.WarningPunishment", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("WarnPunishments") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpCurrencyReward", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpCurrencyReward", b => { - b.HasOne("Nadeko.Bot.Db.Models.XpSettings", "XpSettings") + b.HasOne("NadekoBot.Db.Models.XpSettings", "XpSettings") .WithMany("CurrencyRewards") .HasForeignKey("XpSettingsId") .OnDelete(DeleteBehavior.Cascade) @@ -2708,9 +2708,9 @@ namespace NadekoBot.Db.Migrations.Sqlite b.Navigation("XpSettings"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpRoleReward", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpRoleReward", b => { - b.HasOne("Nadeko.Bot.Db.Models.XpSettings", "XpSettings") + b.HasOne("NadekoBot.Db.Models.XpSettings", "XpSettings") .WithMany("RoleRewards") .HasForeignKey("XpSettingsId") .OnDelete(DeleteBehavior.Cascade) @@ -2719,11 +2719,11 @@ namespace NadekoBot.Db.Migrations.Sqlite b.Navigation("XpSettings"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpSettings", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithOne("XpSettings") - .HasForeignKey("Nadeko.Bot.Db.Models.XpSettings", "GuildConfigId") + .HasForeignKey("NadekoBot.Db.Models.XpSettings", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); @@ -2790,22 +2790,22 @@ namespace NadekoBot.Db.Migrations.Sqlite modelBuilder.Entity("NadekoBot.Db.Models.FollowedStream", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("FollowedStreams") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiSpamSetting", b => { b.Navigation("IgnoredChannels"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoTranslateChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.AutoTranslateChannel", b => { b.Navigation("Users"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GuildConfig", b => + modelBuilder.Entity("NadekoBot.Db.Models.GuildConfig", b => { b.Navigation("AntiAltSetting"); @@ -2860,41 +2860,41 @@ namespace NadekoBot.Db.Migrations.Sqlite b.Navigation("XpSettings"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.LogSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.LogSetting", b => { b.Navigation("LogIgnores"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.MusicPlaylist", b => + modelBuilder.Entity("NadekoBot.Db.Models.MusicPlaylist", b => { b.Navigation("Songs"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Poll", b => + modelBuilder.Entity("NadekoBot.Db.Models.Poll", b => { b.Navigation("Answers"); b.Navigation("Votes"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntry", b => + modelBuilder.Entity("NadekoBot.Db.Models.ShopEntry", b => { b.Navigation("Items"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleSettings", b => { b.Navigation("Blacklist"); b.Navigation("Whitelist"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuInfo", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuInfo", b => { b.Navigation("Items"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpSettings", b => { b.Navigation("CurrencyRewards"); diff --git a/src/NadekoBot/Migrations/Sqlite/20240423153708_sticky-roles.Designer.cs b/src/NadekoBot/Migrations/Sqlite/20240423153708_sticky-roles.Designer.cs index ee30212b1..6285d834f 100644 --- a/src/NadekoBot/Migrations/Sqlite/20240423153708_sticky-roles.Designer.cs +++ b/src/NadekoBot/Migrations/Sqlite/20240423153708_sticky-roles.Designer.cs @@ -4,7 +4,7 @@ using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Nadeko.Bot.Db; +using NadekoBot.Db; #nullable disable @@ -20,7 +20,7 @@ namespace NadekoBot.Db.Migrations.Sqlite #pragma warning disable 612, 618 modelBuilder.HasAnnotation("ProductVersion", "8.0.3"); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiAltSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiAltSetting", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -49,7 +49,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("AntiAltSetting"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiRaidSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiRaidSetting", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -81,7 +81,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("AntiRaidSetting"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamIgnore", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiSpamIgnore", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -103,7 +103,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("AntiSpamIgnore"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiSpamSetting", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -135,7 +135,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("AntiSpamSetting"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoCommand", b => + modelBuilder.Entity("NadekoBot.Db.Models.AutoCommand", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -173,7 +173,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("AutoCommands"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoTranslateChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.AutoTranslateChannel", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -201,7 +201,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("AutoTranslateChannels"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoTranslateUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.AutoTranslateUser", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -229,7 +229,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("AutoTranslateUsers"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.BanTemplate", b => + modelBuilder.Entity("NadekoBot.Db.Models.BanTemplate", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -255,7 +255,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("BanTemplates"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.BlacklistEntry", b => + modelBuilder.Entity("NadekoBot.Db.Models.BlacklistEntry", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -275,7 +275,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("Blacklist"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.CommandAlias", b => + modelBuilder.Entity("NadekoBot.Db.Models.CommandAlias", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -300,7 +300,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("CommandAlias"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.CommandCooldown", b => + modelBuilder.Entity("NadekoBot.Db.Models.CommandCooldown", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -325,7 +325,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("CommandCooldown"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.CurrencyTransaction", b => + modelBuilder.Entity("NadekoBot.Db.Models.CurrencyTransaction", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -363,7 +363,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("CurrencyTransactions"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.DelMsgOnCmdChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.DelMsgOnCmdChannel", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -388,7 +388,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("DelMsgOnCmdChannel"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.DiscordPermOverride", b => + modelBuilder.Entity("NadekoBot.Db.Models.DiscordPermOverride", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -414,7 +414,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("DiscordPermOverrides"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ExcludedItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.ExcludedItem", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -439,7 +439,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("ExcludedItem"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FeedSub", b => + modelBuilder.Entity("NadekoBot.Db.Models.FeedSub", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -468,7 +468,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("FeedSub"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterChannelId", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -490,7 +490,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("FilterChannelId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterLinksChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterLinksChannelId", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -512,7 +512,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("FilterLinksChannelId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterWordsChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterWordsChannelId", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -534,7 +534,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("FilterWordsChannelId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilteredWord", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilteredWord", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -556,7 +556,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("FilteredWord"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GCChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.GCChannelId", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -578,7 +578,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("GCChannelId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GamblingStats", b => + modelBuilder.Entity("NadekoBot.Db.Models.GamblingStats", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -604,7 +604,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("GamblingStats"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GroupName", b => + modelBuilder.Entity("NadekoBot.Db.Models.GroupName", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -630,7 +630,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("GroupName"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GuildConfig", b => + modelBuilder.Entity("NadekoBot.Db.Models.GuildConfig", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -765,7 +765,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("GuildConfigs"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.IgnoredLogItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.IgnoredLogItem", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -791,7 +791,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("IgnoredLogChannels"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.IgnoredVoicePresenceChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.IgnoredVoicePresenceChannel", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -813,7 +813,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("IgnoredVoicePresenceCHannels"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ImageOnlyChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.ImageOnlyChannel", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -839,7 +839,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("ImageOnlyChannels"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.LogSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.LogSetting", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -913,7 +913,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("LogSettings"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.MusicPlayerSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.MusicPlayerSettings", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -950,7 +950,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("MusicPlayerSettings"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.MusicPlaylist", b => + modelBuilder.Entity("NadekoBot.Db.Models.MusicPlaylist", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -973,7 +973,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("MusicPlaylists"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.MutedUserId", b => + modelBuilder.Entity("NadekoBot.Db.Models.MutedUserId", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -995,7 +995,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("MutedUserId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.NadekoExpression", b => + modelBuilder.Entity("NadekoBot.Db.Models.NadekoExpression", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1033,7 +1033,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("Expressions"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.NsfwBlacklistedTag", b => + modelBuilder.Entity("NadekoBot.Db.Models.NsfwBlacklistedTag", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1055,7 +1055,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("NsfwBlacklistedTags"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Permissionv2", b => + modelBuilder.Entity("NadekoBot.Db.Models.Permissionv2", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1095,7 +1095,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("Permissions"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PlantedCurrency", b => + modelBuilder.Entity("NadekoBot.Db.Models.PlantedCurrency", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1132,7 +1132,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("PlantedCurrency"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PlaylistSong", b => + modelBuilder.Entity("NadekoBot.Db.Models.PlaylistSong", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1166,7 +1166,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("PlaylistSong"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Poll", b => + modelBuilder.Entity("NadekoBot.Db.Models.Poll", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1192,7 +1192,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("Poll"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PollAnswer", b => + modelBuilder.Entity("NadekoBot.Db.Models.PollAnswer", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1217,7 +1217,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("PollAnswer"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PollVote", b => + modelBuilder.Entity("NadekoBot.Db.Models.PollVote", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1242,7 +1242,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("PollVote"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Quote", b => + modelBuilder.Entity("NadekoBot.Db.Models.Quote", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1278,7 +1278,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("Quotes"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ReactionRoleV2", b => + modelBuilder.Entity("NadekoBot.Db.Models.ReactionRoleV2", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1319,7 +1319,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("ReactionRoles"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Reminder", b => + modelBuilder.Entity("NadekoBot.Db.Models.Reminder", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1356,7 +1356,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("Reminders"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Repeater", b => + modelBuilder.Entity("NadekoBot.Db.Models.Repeater", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1391,7 +1391,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("Repeaters"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.RewardedUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.RewardedUser", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1420,7 +1420,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("RewardedUsers"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.RotatingPlayingStatus", b => + modelBuilder.Entity("NadekoBot.Db.Models.RotatingPlayingStatus", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1440,7 +1440,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("RotatingStatus"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.SelfAssignedRole", b => + modelBuilder.Entity("NadekoBot.Db.Models.SelfAssignedRole", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1471,7 +1471,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("SelfAssignableRoles"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntry", b => + modelBuilder.Entity("NadekoBot.Db.Models.ShopEntry", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1517,7 +1517,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("ShopEntry"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntryItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.ShopEntryItem", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1539,7 +1539,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("ShopEntryItem"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.SlowmodeIgnoredRole", b => + modelBuilder.Entity("NadekoBot.Db.Models.SlowmodeIgnoredRole", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1561,7 +1561,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("SlowmodeIgnoredRole"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.SlowmodeIgnoredUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.SlowmodeIgnoredUser", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1583,7 +1583,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("SlowmodeIgnoredUser"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StickyRole", b => + modelBuilder.Entity("NadekoBot.Db.Models.StickyRole", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1610,7 +1610,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("StickyRoles"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleBlacklistedUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleBlacklistedUser", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1635,7 +1635,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("StreamRoleBlacklistedUser"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleSettings", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1667,7 +1667,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("StreamRoleSettings"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleWhitelistedUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleWhitelistedUser", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1692,7 +1692,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("StreamRoleWhitelistedUser"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnbanTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnbanTimer", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1717,7 +1717,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("UnbanTimer"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnmuteTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnmuteTimer", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1742,7 +1742,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("UnmuteTimer"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnroleTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnroleTimer", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1770,7 +1770,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("UnroleTimer"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UserXpStats", b => + modelBuilder.Entity("NadekoBot.Db.Models.UserXpStats", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1810,7 +1810,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("UserXpStats"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.VcRoleInfo", b => + modelBuilder.Entity("NadekoBot.Db.Models.VcRoleInfo", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1835,7 +1835,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("VcRoleInfo"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuInfo", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuInfo", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1870,7 +1870,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("WaifuInfo"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuItem", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1895,7 +1895,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("WaifuItem"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuUpdate", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuUpdate", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1927,7 +1927,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("WaifuUpdates"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Warning", b => + modelBuilder.Entity("NadekoBot.Db.Models.Warning", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1970,7 +1970,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("Warnings"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WarningPunishment", b => + modelBuilder.Entity("NadekoBot.Db.Models.WarningPunishment", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2001,7 +2001,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("WarningPunishment"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpCurrencyReward", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpCurrencyReward", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2026,7 +2026,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("XpCurrencyReward"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpRoleReward", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpRoleReward", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2055,7 +2055,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("XpRoleReward"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpSettings", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2392,47 +2392,47 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("XpShopOwnedItem"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiAltSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiAltSetting", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithOne("AntiAltSetting") - .HasForeignKey("Nadeko.Bot.Db.Models.AntiAltSetting", "GuildConfigId") + .HasForeignKey("NadekoBot.Db.Models.AntiAltSetting", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiRaidSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiRaidSetting", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithOne("AntiRaidSetting") - .HasForeignKey("Nadeko.Bot.Db.Models.AntiRaidSetting", "GuildConfigId") + .HasForeignKey("NadekoBot.Db.Models.AntiRaidSetting", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamIgnore", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiSpamIgnore", b => { - b.HasOne("Nadeko.Bot.Db.Models.AntiSpamSetting", null) + b.HasOne("NadekoBot.Db.Models.AntiSpamSetting", null) .WithMany("IgnoredChannels") .HasForeignKey("AntiSpamSettingId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiSpamSetting", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithOne("AntiSpamSetting") - .HasForeignKey("Nadeko.Bot.Db.Models.AntiSpamSetting", "GuildConfigId") + .HasForeignKey("NadekoBot.Db.Models.AntiSpamSetting", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoTranslateUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.AutoTranslateUser", b => { - b.HasOne("Nadeko.Bot.Db.Models.AutoTranslateChannel", "Channel") + b.HasOne("NadekoBot.Db.Models.AutoTranslateChannel", "Channel") .WithMany("Users") .HasForeignKey("ChannelId") .OnDelete(DeleteBehavior.Cascade) @@ -2441,37 +2441,37 @@ namespace NadekoBot.Db.Migrations.Sqlite b.Navigation("Channel"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.CommandAlias", b => + modelBuilder.Entity("NadekoBot.Db.Models.CommandAlias", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("CommandAliases") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.CommandCooldown", b => + modelBuilder.Entity("NadekoBot.Db.Models.CommandCooldown", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("CommandCooldowns") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.DelMsgOnCmdChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.DelMsgOnCmdChannel", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("DelMsgOnCmdChannels") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ExcludedItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.ExcludedItem", b => { - b.HasOne("Nadeko.Bot.Db.Models.XpSettings", null) + b.HasOne("NadekoBot.Db.Models.XpSettings", null) .WithMany("ExclusionList") .HasForeignKey("XpSettingsId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FeedSub", b => + modelBuilder.Entity("NadekoBot.Db.Models.FeedSub", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithMany("FeedSubs") .HasForeignKey("GuildConfigId") .OnDelete(DeleteBehavior.Cascade) @@ -2480,46 +2480,46 @@ namespace NadekoBot.Db.Migrations.Sqlite b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterChannelId", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("FilterInvitesChannelIds") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterLinksChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterLinksChannelId", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("FilterLinksChannelIds") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterWordsChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterWordsChannelId", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("FilterWordsChannelIds") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilteredWord", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilteredWord", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("FilteredWords") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GCChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.GCChannelId", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithMany("GenerateCurrencyChannelIds") .HasForeignKey("GuildConfigId"); b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GroupName", b => + modelBuilder.Entity("NadekoBot.Db.Models.GroupName", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithMany("SelfAssignableRoleGroupNames") .HasForeignKey("GuildConfigId") .OnDelete(DeleteBehavior.Cascade) @@ -2528,9 +2528,9 @@ namespace NadekoBot.Db.Migrations.Sqlite b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.IgnoredLogItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.IgnoredLogItem", b => { - b.HasOne("Nadeko.Bot.Db.Models.LogSetting", "LogSetting") + b.HasOne("NadekoBot.Db.Models.LogSetting", "LogSetting") .WithMany("LogIgnores") .HasForeignKey("LogSettingId") .OnDelete(DeleteBehavior.Cascade) @@ -2539,133 +2539,133 @@ namespace NadekoBot.Db.Migrations.Sqlite b.Navigation("LogSetting"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.IgnoredVoicePresenceChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.IgnoredVoicePresenceChannel", b => { - b.HasOne("Nadeko.Bot.Db.Models.LogSetting", "LogSetting") + b.HasOne("NadekoBot.Db.Models.LogSetting", "LogSetting") .WithMany() .HasForeignKey("LogSettingId"); b.Navigation("LogSetting"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.MutedUserId", b => + modelBuilder.Entity("NadekoBot.Db.Models.MutedUserId", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("MutedUsers") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Permissionv2", b => + modelBuilder.Entity("NadekoBot.Db.Models.Permissionv2", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("Permissions") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PlaylistSong", b => + modelBuilder.Entity("NadekoBot.Db.Models.PlaylistSong", b => { - b.HasOne("Nadeko.Bot.Db.Models.MusicPlaylist", null) + b.HasOne("NadekoBot.Db.Models.MusicPlaylist", null) .WithMany("Songs") .HasForeignKey("MusicPlaylistId") .OnDelete(DeleteBehavior.Cascade); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PollAnswer", b => + modelBuilder.Entity("NadekoBot.Db.Models.PollAnswer", b => { - b.HasOne("Nadeko.Bot.Db.Models.Poll", null) + b.HasOne("NadekoBot.Db.Models.Poll", null) .WithMany("Answers") .HasForeignKey("PollId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PollVote", b => + modelBuilder.Entity("NadekoBot.Db.Models.PollVote", b => { - b.HasOne("Nadeko.Bot.Db.Models.Poll", null) + b.HasOne("NadekoBot.Db.Models.Poll", null) .WithMany("Votes") .HasForeignKey("PollId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntry", b => + modelBuilder.Entity("NadekoBot.Db.Models.ShopEntry", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("ShopEntries") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntryItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.ShopEntryItem", b => { - b.HasOne("Nadeko.Bot.Db.Models.ShopEntry", null) + b.HasOne("NadekoBot.Db.Models.ShopEntry", null) .WithMany("Items") .HasForeignKey("ShopEntryId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.SlowmodeIgnoredRole", b => + modelBuilder.Entity("NadekoBot.Db.Models.SlowmodeIgnoredRole", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("SlowmodeIgnoredRoles") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.SlowmodeIgnoredUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.SlowmodeIgnoredUser", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("SlowmodeIgnoredUsers") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleBlacklistedUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleBlacklistedUser", b => { - b.HasOne("Nadeko.Bot.Db.Models.StreamRoleSettings", null) + b.HasOne("NadekoBot.Db.Models.StreamRoleSettings", null) .WithMany("Blacklist") .HasForeignKey("StreamRoleSettingsId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleSettings", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithOne("StreamRole") - .HasForeignKey("Nadeko.Bot.Db.Models.StreamRoleSettings", "GuildConfigId") + .HasForeignKey("NadekoBot.Db.Models.StreamRoleSettings", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleWhitelistedUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleWhitelistedUser", b => { - b.HasOne("Nadeko.Bot.Db.Models.StreamRoleSettings", null) + b.HasOne("NadekoBot.Db.Models.StreamRoleSettings", null) .WithMany("Whitelist") .HasForeignKey("StreamRoleSettingsId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnbanTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnbanTimer", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("UnbanTimer") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnmuteTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnmuteTimer", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("UnmuteTimers") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnroleTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnroleTimer", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("UnroleTimer") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.VcRoleInfo", b => + modelBuilder.Entity("NadekoBot.Db.Models.VcRoleInfo", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("VcRoleInfos") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuInfo", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuInfo", b => { b.HasOne("NadekoBot.Db.Models.DiscordUser", "Affinity") .WithMany() @@ -2677,7 +2677,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.HasOne("NadekoBot.Db.Models.DiscordUser", "Waifu") .WithOne() - .HasForeignKey("Nadeko.Bot.Db.Models.WaifuInfo", "WaifuId") + .HasForeignKey("NadekoBot.Db.Models.WaifuInfo", "WaifuId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); @@ -2688,16 +2688,16 @@ namespace NadekoBot.Db.Migrations.Sqlite b.Navigation("Waifu"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuItem", b => { - b.HasOne("Nadeko.Bot.Db.Models.WaifuInfo", "WaifuInfo") + b.HasOne("NadekoBot.Db.Models.WaifuInfo", "WaifuInfo") .WithMany("Items") .HasForeignKey("WaifuInfoId"); b.Navigation("WaifuInfo"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuUpdate", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuUpdate", b => { b.HasOne("NadekoBot.Db.Models.DiscordUser", "New") .WithMany() @@ -2720,16 +2720,16 @@ namespace NadekoBot.Db.Migrations.Sqlite b.Navigation("User"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WarningPunishment", b => + modelBuilder.Entity("NadekoBot.Db.Models.WarningPunishment", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("WarnPunishments") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpCurrencyReward", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpCurrencyReward", b => { - b.HasOne("Nadeko.Bot.Db.Models.XpSettings", "XpSettings") + b.HasOne("NadekoBot.Db.Models.XpSettings", "XpSettings") .WithMany("CurrencyRewards") .HasForeignKey("XpSettingsId") .OnDelete(DeleteBehavior.Cascade) @@ -2738,9 +2738,9 @@ namespace NadekoBot.Db.Migrations.Sqlite b.Navigation("XpSettings"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpRoleReward", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpRoleReward", b => { - b.HasOne("Nadeko.Bot.Db.Models.XpSettings", "XpSettings") + b.HasOne("NadekoBot.Db.Models.XpSettings", "XpSettings") .WithMany("RoleRewards") .HasForeignKey("XpSettingsId") .OnDelete(DeleteBehavior.Cascade) @@ -2749,11 +2749,11 @@ namespace NadekoBot.Db.Migrations.Sqlite b.Navigation("XpSettings"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpSettings", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithOne("XpSettings") - .HasForeignKey("Nadeko.Bot.Db.Models.XpSettings", "GuildConfigId") + .HasForeignKey("NadekoBot.Db.Models.XpSettings", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); @@ -2820,22 +2820,22 @@ namespace NadekoBot.Db.Migrations.Sqlite modelBuilder.Entity("NadekoBot.Db.Models.FollowedStream", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("FollowedStreams") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiSpamSetting", b => { b.Navigation("IgnoredChannels"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoTranslateChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.AutoTranslateChannel", b => { b.Navigation("Users"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GuildConfig", b => + modelBuilder.Entity("NadekoBot.Db.Models.GuildConfig", b => { b.Navigation("AntiAltSetting"); @@ -2890,41 +2890,41 @@ namespace NadekoBot.Db.Migrations.Sqlite b.Navigation("XpSettings"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.LogSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.LogSetting", b => { b.Navigation("LogIgnores"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.MusicPlaylist", b => + modelBuilder.Entity("NadekoBot.Db.Models.MusicPlaylist", b => { b.Navigation("Songs"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Poll", b => + modelBuilder.Entity("NadekoBot.Db.Models.Poll", b => { b.Navigation("Answers"); b.Navigation("Votes"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntry", b => + modelBuilder.Entity("NadekoBot.Db.Models.ShopEntry", b => { b.Navigation("Items"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleSettings", b => { b.Navigation("Blacklist"); b.Navigation("Whitelist"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuInfo", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuInfo", b => { b.Navigation("Items"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpSettings", b => { b.Navigation("CurrencyRewards"); diff --git a/src/NadekoBot/Migrations/Sqlite/20240423153708_sticky-roles.cs b/src/NadekoBot/Migrations/Sqlite/20240423153708_sticky-roles.cs index 433199918..1e2a9531a 100644 --- a/src/NadekoBot/Migrations/Sqlite/20240423153708_sticky-roles.cs +++ b/src/NadekoBot/Migrations/Sqlite/20240423153708_sticky-roles.cs @@ -1,5 +1,4 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Migrations; #nullable disable diff --git a/src/NadekoBot/Migrations/Sqlite/20240424203909_giveaway.Designer.cs b/src/NadekoBot/Migrations/Sqlite/20240424203909_giveaway.Designer.cs index 7b906ac56..a71714670 100644 --- a/src/NadekoBot/Migrations/Sqlite/20240424203909_giveaway.Designer.cs +++ b/src/NadekoBot/Migrations/Sqlite/20240424203909_giveaway.Designer.cs @@ -4,7 +4,7 @@ using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Nadeko.Bot.Db; +using NadekoBot.Db; #nullable disable @@ -20,7 +20,7 @@ namespace NadekoBot.Db.Migrations.Sqlite #pragma warning disable 612, 618 modelBuilder.HasAnnotation("ProductVersion", "8.0.3"); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiAltSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiAltSetting", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -49,7 +49,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("AntiAltSetting"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiRaidSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiRaidSetting", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -81,7 +81,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("AntiRaidSetting"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamIgnore", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiSpamIgnore", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -103,7 +103,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("AntiSpamIgnore"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiSpamSetting", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -135,7 +135,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("AntiSpamSetting"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoCommand", b => + modelBuilder.Entity("NadekoBot.Db.Models.AutoCommand", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -173,7 +173,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("AutoCommands"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoTranslateChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.AutoTranslateChannel", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -201,7 +201,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("AutoTranslateChannels"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoTranslateUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.AutoTranslateUser", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -229,7 +229,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("AutoTranslateUsers"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.BanTemplate", b => + modelBuilder.Entity("NadekoBot.Db.Models.BanTemplate", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -255,7 +255,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("BanTemplates"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.BlacklistEntry", b => + modelBuilder.Entity("NadekoBot.Db.Models.BlacklistEntry", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -275,7 +275,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("Blacklist"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.CommandAlias", b => + modelBuilder.Entity("NadekoBot.Db.Models.CommandAlias", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -300,7 +300,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("CommandAlias"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.CommandCooldown", b => + modelBuilder.Entity("NadekoBot.Db.Models.CommandCooldown", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -325,7 +325,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("CommandCooldown"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.CurrencyTransaction", b => + modelBuilder.Entity("NadekoBot.Db.Models.CurrencyTransaction", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -363,7 +363,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("CurrencyTransactions"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.DelMsgOnCmdChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.DelMsgOnCmdChannel", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -388,7 +388,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("DelMsgOnCmdChannel"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.DiscordPermOverride", b => + modelBuilder.Entity("NadekoBot.Db.Models.DiscordPermOverride", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -414,7 +414,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("DiscordPermOverrides"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ExcludedItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.ExcludedItem", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -439,7 +439,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("ExcludedItem"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FeedSub", b => + modelBuilder.Entity("NadekoBot.Db.Models.FeedSub", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -468,7 +468,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("FeedSub"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterChannelId", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -490,7 +490,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("FilterChannelId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterLinksChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterLinksChannelId", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -512,7 +512,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("FilterLinksChannelId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterWordsChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterWordsChannelId", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -534,7 +534,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("FilterWordsChannelId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilteredWord", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilteredWord", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -556,7 +556,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("FilteredWord"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GCChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.GCChannelId", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -578,7 +578,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("GCChannelId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GamblingStats", b => + modelBuilder.Entity("NadekoBot.Db.Models.GamblingStats", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -604,7 +604,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("GamblingStats"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GroupName", b => + modelBuilder.Entity("NadekoBot.Db.Models.GroupName", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -630,7 +630,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("GroupName"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GuildConfig", b => + modelBuilder.Entity("NadekoBot.Db.Models.GuildConfig", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -765,7 +765,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("GuildConfigs"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.IgnoredLogItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.IgnoredLogItem", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -791,7 +791,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("IgnoredLogChannels"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.IgnoredVoicePresenceChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.IgnoredVoicePresenceChannel", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -813,7 +813,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("IgnoredVoicePresenceCHannels"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ImageOnlyChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.ImageOnlyChannel", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -839,7 +839,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("ImageOnlyChannels"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.LogSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.LogSetting", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -913,7 +913,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("LogSettings"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.MusicPlayerSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.MusicPlayerSettings", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -950,7 +950,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("MusicPlayerSettings"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.MusicPlaylist", b => + modelBuilder.Entity("NadekoBot.Db.Models.MusicPlaylist", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -973,7 +973,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("MusicPlaylists"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.MutedUserId", b => + modelBuilder.Entity("NadekoBot.Db.Models.MutedUserId", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -995,7 +995,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("MutedUserId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.NadekoExpression", b => + modelBuilder.Entity("NadekoBot.Db.Models.NadekoExpression", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1033,7 +1033,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("Expressions"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.NsfwBlacklistedTag", b => + modelBuilder.Entity("NadekoBot.Db.Models.NsfwBlacklistedTag", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1055,7 +1055,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("NsfwBlacklistedTags"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Permissionv2", b => + modelBuilder.Entity("NadekoBot.Db.Models.Permissionv2", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1095,7 +1095,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("Permissions"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PlantedCurrency", b => + modelBuilder.Entity("NadekoBot.Db.Models.PlantedCurrency", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1132,7 +1132,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("PlantedCurrency"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PlaylistSong", b => + modelBuilder.Entity("NadekoBot.Db.Models.PlaylistSong", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1166,7 +1166,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("PlaylistSong"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Poll", b => + modelBuilder.Entity("NadekoBot.Db.Models.Poll", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1192,7 +1192,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("Poll"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PollAnswer", b => + modelBuilder.Entity("NadekoBot.Db.Models.PollAnswer", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1217,7 +1217,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("PollAnswer"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PollVote", b => + modelBuilder.Entity("NadekoBot.Db.Models.PollVote", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1242,7 +1242,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("PollVote"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Quote", b => + modelBuilder.Entity("NadekoBot.Db.Models.Quote", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1278,7 +1278,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("Quotes"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ReactionRoleV2", b => + modelBuilder.Entity("NadekoBot.Db.Models.ReactionRoleV2", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1319,7 +1319,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("ReactionRoles"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Reminder", b => + modelBuilder.Entity("NadekoBot.Db.Models.Reminder", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1356,7 +1356,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("Reminders"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Repeater", b => + modelBuilder.Entity("NadekoBot.Db.Models.Repeater", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1391,7 +1391,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("Repeaters"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.RewardedUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.RewardedUser", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1420,7 +1420,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("RewardedUsers"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.RotatingPlayingStatus", b => + modelBuilder.Entity("NadekoBot.Db.Models.RotatingPlayingStatus", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1440,7 +1440,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("RotatingStatus"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.SelfAssignedRole", b => + modelBuilder.Entity("NadekoBot.Db.Models.SelfAssignedRole", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1471,7 +1471,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("SelfAssignableRoles"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntry", b => + modelBuilder.Entity("NadekoBot.Db.Models.ShopEntry", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1517,7 +1517,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("ShopEntry"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntryItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.ShopEntryItem", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1539,7 +1539,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("ShopEntryItem"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.SlowmodeIgnoredRole", b => + modelBuilder.Entity("NadekoBot.Db.Models.SlowmodeIgnoredRole", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1561,7 +1561,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("SlowmodeIgnoredRole"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.SlowmodeIgnoredUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.SlowmodeIgnoredUser", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1583,7 +1583,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("SlowmodeIgnoredUser"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StickyRole", b => + modelBuilder.Entity("NadekoBot.Db.Models.StickyRole", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1610,7 +1610,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("StickyRoles"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleBlacklistedUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleBlacklistedUser", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1635,7 +1635,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("StreamRoleBlacklistedUser"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleSettings", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1667,7 +1667,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("StreamRoleSettings"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleWhitelistedUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleWhitelistedUser", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1692,7 +1692,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("StreamRoleWhitelistedUser"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnbanTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnbanTimer", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1717,7 +1717,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("UnbanTimer"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnmuteTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnmuteTimer", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1742,7 +1742,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("UnmuteTimer"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnroleTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnroleTimer", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1770,7 +1770,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("UnroleTimer"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UserXpStats", b => + modelBuilder.Entity("NadekoBot.Db.Models.UserXpStats", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1810,7 +1810,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("UserXpStats"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.VcRoleInfo", b => + modelBuilder.Entity("NadekoBot.Db.Models.VcRoleInfo", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1835,7 +1835,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("VcRoleInfo"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuInfo", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuInfo", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1870,7 +1870,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("WaifuInfo"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuItem", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1895,7 +1895,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("WaifuItem"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuUpdate", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuUpdate", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1927,7 +1927,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("WaifuUpdates"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Warning", b => + modelBuilder.Entity("NadekoBot.Db.Models.Warning", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1970,7 +1970,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("Warnings"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WarningPunishment", b => + modelBuilder.Entity("NadekoBot.Db.Models.WarningPunishment", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2001,7 +2001,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("WarningPunishment"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpCurrencyReward", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpCurrencyReward", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2026,7 +2026,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("XpCurrencyReward"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpRoleReward", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpRoleReward", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2055,7 +2055,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("XpRoleReward"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpSettings", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2443,47 +2443,47 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("XpShopOwnedItem"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiAltSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiAltSetting", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithOne("AntiAltSetting") - .HasForeignKey("Nadeko.Bot.Db.Models.AntiAltSetting", "GuildConfigId") + .HasForeignKey("NadekoBot.Db.Models.AntiAltSetting", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiRaidSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiRaidSetting", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithOne("AntiRaidSetting") - .HasForeignKey("Nadeko.Bot.Db.Models.AntiRaidSetting", "GuildConfigId") + .HasForeignKey("NadekoBot.Db.Models.AntiRaidSetting", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamIgnore", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiSpamIgnore", b => { - b.HasOne("Nadeko.Bot.Db.Models.AntiSpamSetting", null) + b.HasOne("NadekoBot.Db.Models.AntiSpamSetting", null) .WithMany("IgnoredChannels") .HasForeignKey("AntiSpamSettingId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiSpamSetting", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithOne("AntiSpamSetting") - .HasForeignKey("Nadeko.Bot.Db.Models.AntiSpamSetting", "GuildConfigId") + .HasForeignKey("NadekoBot.Db.Models.AntiSpamSetting", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoTranslateUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.AutoTranslateUser", b => { - b.HasOne("Nadeko.Bot.Db.Models.AutoTranslateChannel", "Channel") + b.HasOne("NadekoBot.Db.Models.AutoTranslateChannel", "Channel") .WithMany("Users") .HasForeignKey("ChannelId") .OnDelete(DeleteBehavior.Cascade) @@ -2492,37 +2492,37 @@ namespace NadekoBot.Db.Migrations.Sqlite b.Navigation("Channel"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.CommandAlias", b => + modelBuilder.Entity("NadekoBot.Db.Models.CommandAlias", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("CommandAliases") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.CommandCooldown", b => + modelBuilder.Entity("NadekoBot.Db.Models.CommandCooldown", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("CommandCooldowns") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.DelMsgOnCmdChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.DelMsgOnCmdChannel", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("DelMsgOnCmdChannels") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ExcludedItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.ExcludedItem", b => { - b.HasOne("Nadeko.Bot.Db.Models.XpSettings", null) + b.HasOne("NadekoBot.Db.Models.XpSettings", null) .WithMany("ExclusionList") .HasForeignKey("XpSettingsId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FeedSub", b => + modelBuilder.Entity("NadekoBot.Db.Models.FeedSub", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithMany("FeedSubs") .HasForeignKey("GuildConfigId") .OnDelete(DeleteBehavior.Cascade) @@ -2531,46 +2531,46 @@ namespace NadekoBot.Db.Migrations.Sqlite b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterChannelId", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("FilterInvitesChannelIds") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterLinksChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterLinksChannelId", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("FilterLinksChannelIds") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterWordsChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterWordsChannelId", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("FilterWordsChannelIds") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilteredWord", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilteredWord", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("FilteredWords") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GCChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.GCChannelId", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithMany("GenerateCurrencyChannelIds") .HasForeignKey("GuildConfigId"); b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GroupName", b => + modelBuilder.Entity("NadekoBot.Db.Models.GroupName", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithMany("SelfAssignableRoleGroupNames") .HasForeignKey("GuildConfigId") .OnDelete(DeleteBehavior.Cascade) @@ -2579,9 +2579,9 @@ namespace NadekoBot.Db.Migrations.Sqlite b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.IgnoredLogItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.IgnoredLogItem", b => { - b.HasOne("Nadeko.Bot.Db.Models.LogSetting", "LogSetting") + b.HasOne("NadekoBot.Db.Models.LogSetting", "LogSetting") .WithMany("LogIgnores") .HasForeignKey("LogSettingId") .OnDelete(DeleteBehavior.Cascade) @@ -2590,133 +2590,133 @@ namespace NadekoBot.Db.Migrations.Sqlite b.Navigation("LogSetting"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.IgnoredVoicePresenceChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.IgnoredVoicePresenceChannel", b => { - b.HasOne("Nadeko.Bot.Db.Models.LogSetting", "LogSetting") + b.HasOne("NadekoBot.Db.Models.LogSetting", "LogSetting") .WithMany() .HasForeignKey("LogSettingId"); b.Navigation("LogSetting"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.MutedUserId", b => + modelBuilder.Entity("NadekoBot.Db.Models.MutedUserId", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("MutedUsers") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Permissionv2", b => + modelBuilder.Entity("NadekoBot.Db.Models.Permissionv2", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("Permissions") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PlaylistSong", b => + modelBuilder.Entity("NadekoBot.Db.Models.PlaylistSong", b => { - b.HasOne("Nadeko.Bot.Db.Models.MusicPlaylist", null) + b.HasOne("NadekoBot.Db.Models.MusicPlaylist", null) .WithMany("Songs") .HasForeignKey("MusicPlaylistId") .OnDelete(DeleteBehavior.Cascade); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PollAnswer", b => + modelBuilder.Entity("NadekoBot.Db.Models.PollAnswer", b => { - b.HasOne("Nadeko.Bot.Db.Models.Poll", null) + b.HasOne("NadekoBot.Db.Models.Poll", null) .WithMany("Answers") .HasForeignKey("PollId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PollVote", b => + modelBuilder.Entity("NadekoBot.Db.Models.PollVote", b => { - b.HasOne("Nadeko.Bot.Db.Models.Poll", null) + b.HasOne("NadekoBot.Db.Models.Poll", null) .WithMany("Votes") .HasForeignKey("PollId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntry", b => + modelBuilder.Entity("NadekoBot.Db.Models.ShopEntry", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("ShopEntries") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntryItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.ShopEntryItem", b => { - b.HasOne("Nadeko.Bot.Db.Models.ShopEntry", null) + b.HasOne("NadekoBot.Db.Models.ShopEntry", null) .WithMany("Items") .HasForeignKey("ShopEntryId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.SlowmodeIgnoredRole", b => + modelBuilder.Entity("NadekoBot.Db.Models.SlowmodeIgnoredRole", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("SlowmodeIgnoredRoles") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.SlowmodeIgnoredUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.SlowmodeIgnoredUser", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("SlowmodeIgnoredUsers") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleBlacklistedUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleBlacklistedUser", b => { - b.HasOne("Nadeko.Bot.Db.Models.StreamRoleSettings", null) + b.HasOne("NadekoBot.Db.Models.StreamRoleSettings", null) .WithMany("Blacklist") .HasForeignKey("StreamRoleSettingsId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleSettings", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithOne("StreamRole") - .HasForeignKey("Nadeko.Bot.Db.Models.StreamRoleSettings", "GuildConfigId") + .HasForeignKey("NadekoBot.Db.Models.StreamRoleSettings", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleWhitelistedUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleWhitelistedUser", b => { - b.HasOne("Nadeko.Bot.Db.Models.StreamRoleSettings", null) + b.HasOne("NadekoBot.Db.Models.StreamRoleSettings", null) .WithMany("Whitelist") .HasForeignKey("StreamRoleSettingsId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnbanTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnbanTimer", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("UnbanTimer") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnmuteTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnmuteTimer", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("UnmuteTimers") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnroleTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnroleTimer", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("UnroleTimer") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.VcRoleInfo", b => + modelBuilder.Entity("NadekoBot.Db.Models.VcRoleInfo", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("VcRoleInfos") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuInfo", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuInfo", b => { b.HasOne("NadekoBot.Db.Models.DiscordUser", "Affinity") .WithMany() @@ -2728,7 +2728,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.HasOne("NadekoBot.Db.Models.DiscordUser", "Waifu") .WithOne() - .HasForeignKey("Nadeko.Bot.Db.Models.WaifuInfo", "WaifuId") + .HasForeignKey("NadekoBot.Db.Models.WaifuInfo", "WaifuId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); @@ -2739,16 +2739,16 @@ namespace NadekoBot.Db.Migrations.Sqlite b.Navigation("Waifu"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuItem", b => { - b.HasOne("Nadeko.Bot.Db.Models.WaifuInfo", "WaifuInfo") + b.HasOne("NadekoBot.Db.Models.WaifuInfo", "WaifuInfo") .WithMany("Items") .HasForeignKey("WaifuInfoId"); b.Navigation("WaifuInfo"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuUpdate", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuUpdate", b => { b.HasOne("NadekoBot.Db.Models.DiscordUser", "New") .WithMany() @@ -2771,16 +2771,16 @@ namespace NadekoBot.Db.Migrations.Sqlite b.Navigation("User"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WarningPunishment", b => + modelBuilder.Entity("NadekoBot.Db.Models.WarningPunishment", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("WarnPunishments") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpCurrencyReward", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpCurrencyReward", b => { - b.HasOne("Nadeko.Bot.Db.Models.XpSettings", "XpSettings") + b.HasOne("NadekoBot.Db.Models.XpSettings", "XpSettings") .WithMany("CurrencyRewards") .HasForeignKey("XpSettingsId") .OnDelete(DeleteBehavior.Cascade) @@ -2789,9 +2789,9 @@ namespace NadekoBot.Db.Migrations.Sqlite b.Navigation("XpSettings"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpRoleReward", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpRoleReward", b => { - b.HasOne("Nadeko.Bot.Db.Models.XpSettings", "XpSettings") + b.HasOne("NadekoBot.Db.Models.XpSettings", "XpSettings") .WithMany("RoleRewards") .HasForeignKey("XpSettingsId") .OnDelete(DeleteBehavior.Cascade) @@ -2800,11 +2800,11 @@ namespace NadekoBot.Db.Migrations.Sqlite b.Navigation("XpSettings"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpSettings", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithOne("XpSettings") - .HasForeignKey("Nadeko.Bot.Db.Models.XpSettings", "GuildConfigId") + .HasForeignKey("NadekoBot.Db.Models.XpSettings", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); @@ -2871,7 +2871,7 @@ namespace NadekoBot.Db.Migrations.Sqlite modelBuilder.Entity("NadekoBot.Db.Models.FollowedStream", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("FollowedStreams") .HasForeignKey("GuildConfigId"); }); @@ -2885,17 +2885,17 @@ namespace NadekoBot.Db.Migrations.Sqlite .IsRequired(); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiSpamSetting", b => { b.Navigation("IgnoredChannels"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoTranslateChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.AutoTranslateChannel", b => { b.Navigation("Users"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GuildConfig", b => + modelBuilder.Entity("NadekoBot.Db.Models.GuildConfig", b => { b.Navigation("AntiAltSetting"); @@ -2950,41 +2950,41 @@ namespace NadekoBot.Db.Migrations.Sqlite b.Navigation("XpSettings"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.LogSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.LogSetting", b => { b.Navigation("LogIgnores"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.MusicPlaylist", b => + modelBuilder.Entity("NadekoBot.Db.Models.MusicPlaylist", b => { b.Navigation("Songs"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Poll", b => + modelBuilder.Entity("NadekoBot.Db.Models.Poll", b => { b.Navigation("Answers"); b.Navigation("Votes"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntry", b => + modelBuilder.Entity("NadekoBot.Db.Models.ShopEntry", b => { b.Navigation("Items"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleSettings", b => { b.Navigation("Blacklist"); b.Navigation("Whitelist"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuInfo", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuInfo", b => { b.Navigation("Items"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpSettings", b => { b.Navigation("CurrencyRewards"); diff --git a/src/NadekoBot/Migrations/Sqlite/20240424203909_giveaway.cs b/src/NadekoBot/Migrations/Sqlite/20240424203909_giveaway.cs index 22f6a3e2c..97caac059 100644 --- a/src/NadekoBot/Migrations/Sqlite/20240424203909_giveaway.cs +++ b/src/NadekoBot/Migrations/Sqlite/20240424203909_giveaway.cs @@ -1,5 +1,4 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Migrations; #nullable disable diff --git a/src/NadekoBot/Migrations/Sqlite/20240425132855_todolist.Designer.cs b/src/NadekoBot/Migrations/Sqlite/20240425132855_todolist.Designer.cs index 1a6c3cf15..7de61c2d3 100644 --- a/src/NadekoBot/Migrations/Sqlite/20240425132855_todolist.Designer.cs +++ b/src/NadekoBot/Migrations/Sqlite/20240425132855_todolist.Designer.cs @@ -4,7 +4,7 @@ using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Nadeko.Bot.Db; +using NadekoBot.Db; #nullable disable @@ -20,7 +20,7 @@ namespace NadekoBot.Db.Migrations.Sqlite #pragma warning disable 612, 618 modelBuilder.HasAnnotation("ProductVersion", "8.0.3"); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiAltSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiAltSetting", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -49,7 +49,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("AntiAltSetting"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiRaidSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiRaidSetting", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -81,7 +81,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("AntiRaidSetting"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamIgnore", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiSpamIgnore", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -103,7 +103,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("AntiSpamIgnore"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiSpamSetting", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -135,7 +135,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("AntiSpamSetting"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoCommand", b => + modelBuilder.Entity("NadekoBot.Db.Models.AutoCommand", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -173,7 +173,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("AutoCommands"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoTranslateChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.AutoTranslateChannel", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -201,7 +201,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("AutoTranslateChannels"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoTranslateUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.AutoTranslateUser", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -229,7 +229,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("AutoTranslateUsers"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.BanTemplate", b => + modelBuilder.Entity("NadekoBot.Db.Models.BanTemplate", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -255,7 +255,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("BanTemplates"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.BlacklistEntry", b => + modelBuilder.Entity("NadekoBot.Db.Models.BlacklistEntry", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -275,7 +275,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("Blacklist"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.CommandAlias", b => + modelBuilder.Entity("NadekoBot.Db.Models.CommandAlias", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -300,7 +300,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("CommandAlias"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.CommandCooldown", b => + modelBuilder.Entity("NadekoBot.Db.Models.CommandCooldown", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -325,7 +325,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("CommandCooldown"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.CurrencyTransaction", b => + modelBuilder.Entity("NadekoBot.Db.Models.CurrencyTransaction", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -363,7 +363,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("CurrencyTransactions"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.DelMsgOnCmdChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.DelMsgOnCmdChannel", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -388,7 +388,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("DelMsgOnCmdChannel"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.DiscordPermOverride", b => + modelBuilder.Entity("NadekoBot.Db.Models.DiscordPermOverride", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -414,7 +414,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("DiscordPermOverrides"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ExcludedItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.ExcludedItem", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -439,7 +439,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("ExcludedItem"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FeedSub", b => + modelBuilder.Entity("NadekoBot.Db.Models.FeedSub", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -468,7 +468,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("FeedSub"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterChannelId", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -490,7 +490,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("FilterChannelId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterLinksChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterLinksChannelId", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -512,7 +512,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("FilterLinksChannelId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterWordsChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterWordsChannelId", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -534,7 +534,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("FilterWordsChannelId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilteredWord", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilteredWord", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -556,7 +556,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("FilteredWord"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GCChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.GCChannelId", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -578,7 +578,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("GCChannelId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GamblingStats", b => + modelBuilder.Entity("NadekoBot.Db.Models.GamblingStats", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -604,7 +604,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("GamblingStats"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GroupName", b => + modelBuilder.Entity("NadekoBot.Db.Models.GroupName", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -630,7 +630,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("GroupName"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GuildConfig", b => + modelBuilder.Entity("NadekoBot.Db.Models.GuildConfig", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -765,7 +765,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("GuildConfigs"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.IgnoredLogItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.IgnoredLogItem", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -791,7 +791,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("IgnoredLogChannels"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.IgnoredVoicePresenceChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.IgnoredVoicePresenceChannel", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -813,7 +813,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("IgnoredVoicePresenceCHannels"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ImageOnlyChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.ImageOnlyChannel", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -839,7 +839,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("ImageOnlyChannels"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.LogSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.LogSetting", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -913,7 +913,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("LogSettings"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.MusicPlayerSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.MusicPlayerSettings", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -950,7 +950,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("MusicPlayerSettings"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.MusicPlaylist", b => + modelBuilder.Entity("NadekoBot.Db.Models.MusicPlaylist", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -973,7 +973,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("MusicPlaylists"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.MutedUserId", b => + modelBuilder.Entity("NadekoBot.Db.Models.MutedUserId", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -995,7 +995,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("MutedUserId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.NadekoExpression", b => + modelBuilder.Entity("NadekoBot.Db.Models.NadekoExpression", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1033,7 +1033,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("Expressions"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.NsfwBlacklistedTag", b => + modelBuilder.Entity("NadekoBot.Db.Models.NsfwBlacklistedTag", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1055,7 +1055,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("NsfwBlacklistedTags"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Permissionv2", b => + modelBuilder.Entity("NadekoBot.Db.Models.Permissionv2", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1095,7 +1095,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("Permissions"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PlantedCurrency", b => + modelBuilder.Entity("NadekoBot.Db.Models.PlantedCurrency", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1132,7 +1132,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("PlantedCurrency"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PlaylistSong", b => + modelBuilder.Entity("NadekoBot.Db.Models.PlaylistSong", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1166,7 +1166,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("PlaylistSong"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Poll", b => + modelBuilder.Entity("NadekoBot.Db.Models.Poll", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1192,7 +1192,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("Poll"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PollAnswer", b => + modelBuilder.Entity("NadekoBot.Db.Models.PollAnswer", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1217,7 +1217,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("PollAnswer"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PollVote", b => + modelBuilder.Entity("NadekoBot.Db.Models.PollVote", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1242,7 +1242,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("PollVote"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Quote", b => + modelBuilder.Entity("NadekoBot.Db.Models.Quote", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1278,7 +1278,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("Quotes"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ReactionRoleV2", b => + modelBuilder.Entity("NadekoBot.Db.Models.ReactionRoleV2", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1319,7 +1319,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("ReactionRoles"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Reminder", b => + modelBuilder.Entity("NadekoBot.Db.Models.Reminder", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1356,7 +1356,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("Reminders"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Repeater", b => + modelBuilder.Entity("NadekoBot.Db.Models.Repeater", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1391,7 +1391,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("Repeaters"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.RewardedUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.RewardedUser", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1420,7 +1420,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("RewardedUsers"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.RotatingPlayingStatus", b => + modelBuilder.Entity("NadekoBot.Db.Models.RotatingPlayingStatus", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1440,7 +1440,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("RotatingStatus"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.SelfAssignedRole", b => + modelBuilder.Entity("NadekoBot.Db.Models.SelfAssignedRole", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1471,7 +1471,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("SelfAssignableRoles"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntry", b => + modelBuilder.Entity("NadekoBot.Db.Models.ShopEntry", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1517,7 +1517,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("ShopEntry"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntryItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.ShopEntryItem", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1539,7 +1539,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("ShopEntryItem"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.SlowmodeIgnoredRole", b => + modelBuilder.Entity("NadekoBot.Db.Models.SlowmodeIgnoredRole", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1561,7 +1561,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("SlowmodeIgnoredRole"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.SlowmodeIgnoredUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.SlowmodeIgnoredUser", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1583,7 +1583,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("SlowmodeIgnoredUser"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StickyRole", b => + modelBuilder.Entity("NadekoBot.Db.Models.StickyRole", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1610,7 +1610,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("StickyRoles"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleBlacklistedUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleBlacklistedUser", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1635,7 +1635,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("StreamRoleBlacklistedUser"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleSettings", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1667,7 +1667,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("StreamRoleSettings"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleWhitelistedUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleWhitelistedUser", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1692,7 +1692,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("StreamRoleWhitelistedUser"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnbanTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnbanTimer", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1717,7 +1717,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("UnbanTimer"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnmuteTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnmuteTimer", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1742,7 +1742,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("UnmuteTimer"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnroleTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnroleTimer", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1770,7 +1770,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("UnroleTimer"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UserXpStats", b => + modelBuilder.Entity("NadekoBot.Db.Models.UserXpStats", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1810,7 +1810,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("UserXpStats"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.VcRoleInfo", b => + modelBuilder.Entity("NadekoBot.Db.Models.VcRoleInfo", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1835,7 +1835,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("VcRoleInfo"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuInfo", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuInfo", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1870,7 +1870,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("WaifuInfo"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuItem", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1895,7 +1895,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("WaifuItem"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuUpdate", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuUpdate", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1927,7 +1927,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("WaifuUpdates"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Warning", b => + modelBuilder.Entity("NadekoBot.Db.Models.Warning", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1970,7 +1970,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("Warnings"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WarningPunishment", b => + modelBuilder.Entity("NadekoBot.Db.Models.WarningPunishment", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2001,7 +2001,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("WarningPunishment"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpCurrencyReward", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpCurrencyReward", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2026,7 +2026,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("XpCurrencyReward"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpRoleReward", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpRoleReward", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2055,7 +2055,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("XpRoleReward"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpSettings", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2492,47 +2492,47 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("XpShopOwnedItem"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiAltSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiAltSetting", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithOne("AntiAltSetting") - .HasForeignKey("Nadeko.Bot.Db.Models.AntiAltSetting", "GuildConfigId") + .HasForeignKey("NadekoBot.Db.Models.AntiAltSetting", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiRaidSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiRaidSetting", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithOne("AntiRaidSetting") - .HasForeignKey("Nadeko.Bot.Db.Models.AntiRaidSetting", "GuildConfigId") + .HasForeignKey("NadekoBot.Db.Models.AntiRaidSetting", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamIgnore", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiSpamIgnore", b => { - b.HasOne("Nadeko.Bot.Db.Models.AntiSpamSetting", null) + b.HasOne("NadekoBot.Db.Models.AntiSpamSetting", null) .WithMany("IgnoredChannels") .HasForeignKey("AntiSpamSettingId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiSpamSetting", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithOne("AntiSpamSetting") - .HasForeignKey("Nadeko.Bot.Db.Models.AntiSpamSetting", "GuildConfigId") + .HasForeignKey("NadekoBot.Db.Models.AntiSpamSetting", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoTranslateUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.AutoTranslateUser", b => { - b.HasOne("Nadeko.Bot.Db.Models.AutoTranslateChannel", "Channel") + b.HasOne("NadekoBot.Db.Models.AutoTranslateChannel", "Channel") .WithMany("Users") .HasForeignKey("ChannelId") .OnDelete(DeleteBehavior.Cascade) @@ -2541,37 +2541,37 @@ namespace NadekoBot.Db.Migrations.Sqlite b.Navigation("Channel"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.CommandAlias", b => + modelBuilder.Entity("NadekoBot.Db.Models.CommandAlias", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("CommandAliases") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.CommandCooldown", b => + modelBuilder.Entity("NadekoBot.Db.Models.CommandCooldown", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("CommandCooldowns") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.DelMsgOnCmdChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.DelMsgOnCmdChannel", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("DelMsgOnCmdChannels") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ExcludedItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.ExcludedItem", b => { - b.HasOne("Nadeko.Bot.Db.Models.XpSettings", null) + b.HasOne("NadekoBot.Db.Models.XpSettings", null) .WithMany("ExclusionList") .HasForeignKey("XpSettingsId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FeedSub", b => + modelBuilder.Entity("NadekoBot.Db.Models.FeedSub", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithMany("FeedSubs") .HasForeignKey("GuildConfigId") .OnDelete(DeleteBehavior.Cascade) @@ -2580,46 +2580,46 @@ namespace NadekoBot.Db.Migrations.Sqlite b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterChannelId", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("FilterInvitesChannelIds") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterLinksChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterLinksChannelId", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("FilterLinksChannelIds") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterWordsChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterWordsChannelId", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("FilterWordsChannelIds") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilteredWord", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilteredWord", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("FilteredWords") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GCChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.GCChannelId", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithMany("GenerateCurrencyChannelIds") .HasForeignKey("GuildConfigId"); b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GroupName", b => + modelBuilder.Entity("NadekoBot.Db.Models.GroupName", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithMany("SelfAssignableRoleGroupNames") .HasForeignKey("GuildConfigId") .OnDelete(DeleteBehavior.Cascade) @@ -2628,9 +2628,9 @@ namespace NadekoBot.Db.Migrations.Sqlite b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.IgnoredLogItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.IgnoredLogItem", b => { - b.HasOne("Nadeko.Bot.Db.Models.LogSetting", "LogSetting") + b.HasOne("NadekoBot.Db.Models.LogSetting", "LogSetting") .WithMany("LogIgnores") .HasForeignKey("LogSettingId") .OnDelete(DeleteBehavior.Cascade) @@ -2639,133 +2639,133 @@ namespace NadekoBot.Db.Migrations.Sqlite b.Navigation("LogSetting"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.IgnoredVoicePresenceChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.IgnoredVoicePresenceChannel", b => { - b.HasOne("Nadeko.Bot.Db.Models.LogSetting", "LogSetting") + b.HasOne("NadekoBot.Db.Models.LogSetting", "LogSetting") .WithMany() .HasForeignKey("LogSettingId"); b.Navigation("LogSetting"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.MutedUserId", b => + modelBuilder.Entity("NadekoBot.Db.Models.MutedUserId", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("MutedUsers") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Permissionv2", b => + modelBuilder.Entity("NadekoBot.Db.Models.Permissionv2", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("Permissions") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PlaylistSong", b => + modelBuilder.Entity("NadekoBot.Db.Models.PlaylistSong", b => { - b.HasOne("Nadeko.Bot.Db.Models.MusicPlaylist", null) + b.HasOne("NadekoBot.Db.Models.MusicPlaylist", null) .WithMany("Songs") .HasForeignKey("MusicPlaylistId") .OnDelete(DeleteBehavior.Cascade); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PollAnswer", b => + modelBuilder.Entity("NadekoBot.Db.Models.PollAnswer", b => { - b.HasOne("Nadeko.Bot.Db.Models.Poll", null) + b.HasOne("NadekoBot.Db.Models.Poll", null) .WithMany("Answers") .HasForeignKey("PollId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PollVote", b => + modelBuilder.Entity("NadekoBot.Db.Models.PollVote", b => { - b.HasOne("Nadeko.Bot.Db.Models.Poll", null) + b.HasOne("NadekoBot.Db.Models.Poll", null) .WithMany("Votes") .HasForeignKey("PollId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntry", b => + modelBuilder.Entity("NadekoBot.Db.Models.ShopEntry", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("ShopEntries") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntryItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.ShopEntryItem", b => { - b.HasOne("Nadeko.Bot.Db.Models.ShopEntry", null) + b.HasOne("NadekoBot.Db.Models.ShopEntry", null) .WithMany("Items") .HasForeignKey("ShopEntryId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.SlowmodeIgnoredRole", b => + modelBuilder.Entity("NadekoBot.Db.Models.SlowmodeIgnoredRole", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("SlowmodeIgnoredRoles") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.SlowmodeIgnoredUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.SlowmodeIgnoredUser", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("SlowmodeIgnoredUsers") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleBlacklistedUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleBlacklistedUser", b => { - b.HasOne("Nadeko.Bot.Db.Models.StreamRoleSettings", null) + b.HasOne("NadekoBot.Db.Models.StreamRoleSettings", null) .WithMany("Blacklist") .HasForeignKey("StreamRoleSettingsId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleSettings", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithOne("StreamRole") - .HasForeignKey("Nadeko.Bot.Db.Models.StreamRoleSettings", "GuildConfigId") + .HasForeignKey("NadekoBot.Db.Models.StreamRoleSettings", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleWhitelistedUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleWhitelistedUser", b => { - b.HasOne("Nadeko.Bot.Db.Models.StreamRoleSettings", null) + b.HasOne("NadekoBot.Db.Models.StreamRoleSettings", null) .WithMany("Whitelist") .HasForeignKey("StreamRoleSettingsId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnbanTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnbanTimer", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("UnbanTimer") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnmuteTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnmuteTimer", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("UnmuteTimers") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnroleTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnroleTimer", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("UnroleTimer") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.VcRoleInfo", b => + modelBuilder.Entity("NadekoBot.Db.Models.VcRoleInfo", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("VcRoleInfos") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuInfo", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuInfo", b => { b.HasOne("NadekoBot.Db.Models.DiscordUser", "Affinity") .WithMany() @@ -2777,7 +2777,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.HasOne("NadekoBot.Db.Models.DiscordUser", "Waifu") .WithOne() - .HasForeignKey("Nadeko.Bot.Db.Models.WaifuInfo", "WaifuId") + .HasForeignKey("NadekoBot.Db.Models.WaifuInfo", "WaifuId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); @@ -2788,16 +2788,16 @@ namespace NadekoBot.Db.Migrations.Sqlite b.Navigation("Waifu"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuItem", b => { - b.HasOne("Nadeko.Bot.Db.Models.WaifuInfo", "WaifuInfo") + b.HasOne("NadekoBot.Db.Models.WaifuInfo", "WaifuInfo") .WithMany("Items") .HasForeignKey("WaifuInfoId"); b.Navigation("WaifuInfo"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuUpdate", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuUpdate", b => { b.HasOne("NadekoBot.Db.Models.DiscordUser", "New") .WithMany() @@ -2820,16 +2820,16 @@ namespace NadekoBot.Db.Migrations.Sqlite b.Navigation("User"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WarningPunishment", b => + modelBuilder.Entity("NadekoBot.Db.Models.WarningPunishment", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("WarnPunishments") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpCurrencyReward", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpCurrencyReward", b => { - b.HasOne("Nadeko.Bot.Db.Models.XpSettings", "XpSettings") + b.HasOne("NadekoBot.Db.Models.XpSettings", "XpSettings") .WithMany("CurrencyRewards") .HasForeignKey("XpSettingsId") .OnDelete(DeleteBehavior.Cascade) @@ -2838,9 +2838,9 @@ namespace NadekoBot.Db.Migrations.Sqlite b.Navigation("XpSettings"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpRoleReward", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpRoleReward", b => { - b.HasOne("Nadeko.Bot.Db.Models.XpSettings", "XpSettings") + b.HasOne("NadekoBot.Db.Models.XpSettings", "XpSettings") .WithMany("RoleRewards") .HasForeignKey("XpSettingsId") .OnDelete(DeleteBehavior.Cascade) @@ -2849,11 +2849,11 @@ namespace NadekoBot.Db.Migrations.Sqlite b.Navigation("XpSettings"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpSettings", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithOne("XpSettings") - .HasForeignKey("Nadeko.Bot.Db.Models.XpSettings", "GuildConfigId") + .HasForeignKey("NadekoBot.Db.Models.XpSettings", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); @@ -2920,7 +2920,7 @@ namespace NadekoBot.Db.Migrations.Sqlite modelBuilder.Entity("NadekoBot.Db.Models.FollowedStream", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("FollowedStreams") .HasForeignKey("GuildConfigId"); }); @@ -2942,17 +2942,17 @@ namespace NadekoBot.Db.Migrations.Sqlite .OnDelete(DeleteBehavior.Cascade); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiSpamSetting", b => { b.Navigation("IgnoredChannels"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoTranslateChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.AutoTranslateChannel", b => { b.Navigation("Users"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GuildConfig", b => + modelBuilder.Entity("NadekoBot.Db.Models.GuildConfig", b => { b.Navigation("AntiAltSetting"); @@ -3007,41 +3007,41 @@ namespace NadekoBot.Db.Migrations.Sqlite b.Navigation("XpSettings"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.LogSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.LogSetting", b => { b.Navigation("LogIgnores"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.MusicPlaylist", b => + modelBuilder.Entity("NadekoBot.Db.Models.MusicPlaylist", b => { b.Navigation("Songs"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Poll", b => + modelBuilder.Entity("NadekoBot.Db.Models.Poll", b => { b.Navigation("Answers"); b.Navigation("Votes"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntry", b => + modelBuilder.Entity("NadekoBot.Db.Models.ShopEntry", b => { b.Navigation("Items"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleSettings", b => { b.Navigation("Blacklist"); b.Navigation("Whitelist"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuInfo", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuInfo", b => { b.Navigation("Items"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpSettings", b => { b.Navigation("CurrencyRewards"); diff --git a/src/NadekoBot/Migrations/Sqlite/20240425132855_todolist.cs b/src/NadekoBot/Migrations/Sqlite/20240425132855_todolist.cs index 368c6f405..a0a02bb7c 100644 --- a/src/NadekoBot/Migrations/Sqlite/20240425132855_todolist.cs +++ b/src/NadekoBot/Migrations/Sqlite/20240425132855_todolist.cs @@ -1,5 +1,4 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Migrations; #nullable disable diff --git a/src/NadekoBot/Migrations/Sqlite/SqliteContextModelSnapshot.cs b/src/NadekoBot/Migrations/Sqlite/SqliteContextModelSnapshot.cs index c3f7e97bd..275eccf70 100644 --- a/src/NadekoBot/Migrations/Sqlite/SqliteContextModelSnapshot.cs +++ b/src/NadekoBot/Migrations/Sqlite/SqliteContextModelSnapshot.cs @@ -3,7 +3,7 @@ using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Nadeko.Bot.Db; +using NadekoBot.Db; #nullable disable @@ -17,7 +17,7 @@ namespace NadekoBot.Db.Migrations.Sqlite #pragma warning disable 612, 618 modelBuilder.HasAnnotation("ProductVersion", "8.0.3"); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiAltSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiAltSetting", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -46,7 +46,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("AntiAltSetting", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiRaidSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiRaidSetting", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -78,7 +78,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("AntiRaidSetting", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamIgnore", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiSpamIgnore", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -100,7 +100,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("AntiSpamIgnore", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiSpamSetting", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -132,7 +132,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("AntiSpamSetting", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoCommand", b => + modelBuilder.Entity("NadekoBot.Db.Models.AutoCommand", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -170,7 +170,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("AutoCommands", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoTranslateChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.AutoTranslateChannel", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -198,7 +198,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("AutoTranslateChannels", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoTranslateUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.AutoTranslateUser", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -226,7 +226,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("AutoTranslateUsers", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.BanTemplate", b => + modelBuilder.Entity("NadekoBot.Db.Models.BanTemplate", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -252,7 +252,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("BanTemplates", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.BlacklistEntry", b => + modelBuilder.Entity("NadekoBot.Db.Models.BlacklistEntry", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -272,7 +272,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("Blacklist", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.CommandAlias", b => + modelBuilder.Entity("NadekoBot.Db.Models.CommandAlias", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -297,7 +297,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("CommandAlias", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.CommandCooldown", b => + modelBuilder.Entity("NadekoBot.Db.Models.CommandCooldown", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -322,7 +322,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("CommandCooldown", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.CurrencyTransaction", b => + modelBuilder.Entity("NadekoBot.Db.Models.CurrencyTransaction", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -360,7 +360,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("CurrencyTransactions", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.DelMsgOnCmdChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.DelMsgOnCmdChannel", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -385,7 +385,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("DelMsgOnCmdChannel", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.DiscordPermOverride", b => + modelBuilder.Entity("NadekoBot.Db.Models.DiscordPermOverride", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -411,7 +411,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("DiscordPermOverrides", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ExcludedItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.ExcludedItem", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -436,7 +436,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("ExcludedItem", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FeedSub", b => + modelBuilder.Entity("NadekoBot.Db.Models.FeedSub", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -465,7 +465,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("FeedSub", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterChannelId", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -487,7 +487,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("FilterChannelId", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterLinksChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterLinksChannelId", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -509,7 +509,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("FilterLinksChannelId", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterWordsChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterWordsChannelId", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -531,7 +531,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("FilterWordsChannelId", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilteredWord", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilteredWord", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -553,7 +553,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("FilteredWord", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GCChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.GCChannelId", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -575,7 +575,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("GCChannelId", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GamblingStats", b => + modelBuilder.Entity("NadekoBot.Db.Models.GamblingStats", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -601,7 +601,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("GamblingStats", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GroupName", b => + modelBuilder.Entity("NadekoBot.Db.Models.GroupName", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -627,7 +627,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("GroupName", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GuildConfig", b => + modelBuilder.Entity("NadekoBot.Db.Models.GuildConfig", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -762,7 +762,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("GuildConfigs", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.IgnoredLogItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.IgnoredLogItem", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -788,7 +788,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("IgnoredLogChannels", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.IgnoredVoicePresenceChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.IgnoredVoicePresenceChannel", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -810,7 +810,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("IgnoredVoicePresenceCHannels", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ImageOnlyChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.ImageOnlyChannel", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -836,7 +836,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("ImageOnlyChannels", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.LogSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.LogSetting", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -910,7 +910,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("LogSettings", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.MusicPlayerSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.MusicPlayerSettings", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -947,7 +947,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("MusicPlayerSettings", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.MusicPlaylist", b => + modelBuilder.Entity("NadekoBot.Db.Models.MusicPlaylist", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -970,7 +970,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("MusicPlaylists", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.MutedUserId", b => + modelBuilder.Entity("NadekoBot.Db.Models.MutedUserId", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -992,7 +992,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("MutedUserId", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.NadekoExpression", b => + modelBuilder.Entity("NadekoBot.Db.Models.NadekoExpression", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1030,7 +1030,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("Expressions", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.NsfwBlacklistedTag", b => + modelBuilder.Entity("NadekoBot.Db.Models.NsfwBlacklistedTag", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1052,7 +1052,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("NsfwBlacklistedTags", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Permissionv2", b => + modelBuilder.Entity("NadekoBot.Db.Models.Permissionv2", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1092,7 +1092,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("Permissions", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PlantedCurrency", b => + modelBuilder.Entity("NadekoBot.Db.Models.PlantedCurrency", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1129,7 +1129,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("PlantedCurrency", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PlaylistSong", b => + modelBuilder.Entity("NadekoBot.Db.Models.PlaylistSong", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1163,7 +1163,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("PlaylistSong", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Poll", b => + modelBuilder.Entity("NadekoBot.Db.Models.Poll", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1189,7 +1189,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("Poll", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PollAnswer", b => + modelBuilder.Entity("NadekoBot.Db.Models.PollAnswer", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1214,7 +1214,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("PollAnswer", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PollVote", b => + modelBuilder.Entity("NadekoBot.Db.Models.PollVote", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1239,7 +1239,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("PollVote", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Quote", b => + modelBuilder.Entity("NadekoBot.Db.Models.Quote", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1275,7 +1275,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("Quotes", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ReactionRoleV2", b => + modelBuilder.Entity("NadekoBot.Db.Models.ReactionRoleV2", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1316,7 +1316,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("ReactionRoles", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Reminder", b => + modelBuilder.Entity("NadekoBot.Db.Models.Reminder", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1353,7 +1353,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("Reminders", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Repeater", b => + modelBuilder.Entity("NadekoBot.Db.Models.Repeater", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1388,7 +1388,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("Repeaters", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.RewardedUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.RewardedUser", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1417,7 +1417,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("RewardedUsers", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.RotatingPlayingStatus", b => + modelBuilder.Entity("NadekoBot.Db.Models.RotatingPlayingStatus", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1437,7 +1437,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("RotatingStatus", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.SelfAssignedRole", b => + modelBuilder.Entity("NadekoBot.Db.Models.SelfAssignedRole", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1468,7 +1468,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("SelfAssignableRoles", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntry", b => + modelBuilder.Entity("NadekoBot.Db.Models.ShopEntry", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1514,7 +1514,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("ShopEntry", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntryItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.ShopEntryItem", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1536,7 +1536,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("ShopEntryItem", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.SlowmodeIgnoredRole", b => + modelBuilder.Entity("NadekoBot.Db.Models.SlowmodeIgnoredRole", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1558,7 +1558,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("SlowmodeIgnoredRole", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.SlowmodeIgnoredUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.SlowmodeIgnoredUser", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1580,7 +1580,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("SlowmodeIgnoredUser", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StickyRole", b => + modelBuilder.Entity("NadekoBot.Db.Models.StickyRole", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1607,7 +1607,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("StickyRoles", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleBlacklistedUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleBlacklistedUser", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1632,7 +1632,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("StreamRoleBlacklistedUser", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleSettings", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1664,7 +1664,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("StreamRoleSettings", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleWhitelistedUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleWhitelistedUser", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1689,7 +1689,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("StreamRoleWhitelistedUser", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnbanTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnbanTimer", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1714,7 +1714,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("UnbanTimer", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnmuteTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnmuteTimer", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1739,7 +1739,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("UnmuteTimer", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnroleTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnroleTimer", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1767,7 +1767,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("UnroleTimer", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UserXpStats", b => + modelBuilder.Entity("NadekoBot.Db.Models.UserXpStats", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1807,7 +1807,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("UserXpStats", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.VcRoleInfo", b => + modelBuilder.Entity("NadekoBot.Db.Models.VcRoleInfo", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1832,7 +1832,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("VcRoleInfo", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuInfo", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuInfo", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1867,7 +1867,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("WaifuInfo", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuItem", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1892,7 +1892,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("WaifuItem", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuUpdate", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuUpdate", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1924,7 +1924,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("WaifuUpdates", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Warning", b => + modelBuilder.Entity("NadekoBot.Db.Models.Warning", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1967,7 +1967,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("Warnings", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WarningPunishment", b => + modelBuilder.Entity("NadekoBot.Db.Models.WarningPunishment", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -1998,7 +1998,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("WarningPunishment", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpCurrencyReward", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpCurrencyReward", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2023,7 +2023,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("XpCurrencyReward", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpRoleReward", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpRoleReward", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2052,7 +2052,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("XpRoleReward", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpSettings", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -2489,47 +2489,47 @@ namespace NadekoBot.Db.Migrations.Sqlite b.ToTable("XpShopOwnedItem", (string)null); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiAltSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiAltSetting", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithOne("AntiAltSetting") - .HasForeignKey("Nadeko.Bot.Db.Models.AntiAltSetting", "GuildConfigId") + .HasForeignKey("NadekoBot.Db.Models.AntiAltSetting", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiRaidSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiRaidSetting", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithOne("AntiRaidSetting") - .HasForeignKey("Nadeko.Bot.Db.Models.AntiRaidSetting", "GuildConfigId") + .HasForeignKey("NadekoBot.Db.Models.AntiRaidSetting", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamIgnore", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiSpamIgnore", b => { - b.HasOne("Nadeko.Bot.Db.Models.AntiSpamSetting", null) + b.HasOne("NadekoBot.Db.Models.AntiSpamSetting", null) .WithMany("IgnoredChannels") .HasForeignKey("AntiSpamSettingId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiSpamSetting", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithOne("AntiSpamSetting") - .HasForeignKey("Nadeko.Bot.Db.Models.AntiSpamSetting", "GuildConfigId") + .HasForeignKey("NadekoBot.Db.Models.AntiSpamSetting", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoTranslateUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.AutoTranslateUser", b => { - b.HasOne("Nadeko.Bot.Db.Models.AutoTranslateChannel", "Channel") + b.HasOne("NadekoBot.Db.Models.AutoTranslateChannel", "Channel") .WithMany("Users") .HasForeignKey("ChannelId") .OnDelete(DeleteBehavior.Cascade) @@ -2538,37 +2538,37 @@ namespace NadekoBot.Db.Migrations.Sqlite b.Navigation("Channel"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.CommandAlias", b => + modelBuilder.Entity("NadekoBot.Db.Models.CommandAlias", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("CommandAliases") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.CommandCooldown", b => + modelBuilder.Entity("NadekoBot.Db.Models.CommandCooldown", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("CommandCooldowns") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.DelMsgOnCmdChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.DelMsgOnCmdChannel", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("DelMsgOnCmdChannels") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ExcludedItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.ExcludedItem", b => { - b.HasOne("Nadeko.Bot.Db.Models.XpSettings", null) + b.HasOne("NadekoBot.Db.Models.XpSettings", null) .WithMany("ExclusionList") .HasForeignKey("XpSettingsId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FeedSub", b => + modelBuilder.Entity("NadekoBot.Db.Models.FeedSub", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithMany("FeedSubs") .HasForeignKey("GuildConfigId") .OnDelete(DeleteBehavior.Cascade) @@ -2577,46 +2577,46 @@ namespace NadekoBot.Db.Migrations.Sqlite b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterChannelId", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("FilterInvitesChannelIds") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterLinksChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterLinksChannelId", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("FilterLinksChannelIds") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterWordsChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilterWordsChannelId", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("FilterWordsChannelIds") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.FilteredWord", b => + modelBuilder.Entity("NadekoBot.Db.Models.FilteredWord", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("FilteredWords") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GCChannelId", b => + modelBuilder.Entity("NadekoBot.Db.Models.GCChannelId", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithMany("GenerateCurrencyChannelIds") .HasForeignKey("GuildConfigId"); b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GroupName", b => + modelBuilder.Entity("NadekoBot.Db.Models.GroupName", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithMany("SelfAssignableRoleGroupNames") .HasForeignKey("GuildConfigId") .OnDelete(DeleteBehavior.Cascade) @@ -2625,9 +2625,9 @@ namespace NadekoBot.Db.Migrations.Sqlite b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.IgnoredLogItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.IgnoredLogItem", b => { - b.HasOne("Nadeko.Bot.Db.Models.LogSetting", "LogSetting") + b.HasOne("NadekoBot.Db.Models.LogSetting", "LogSetting") .WithMany("LogIgnores") .HasForeignKey("LogSettingId") .OnDelete(DeleteBehavior.Cascade) @@ -2636,133 +2636,133 @@ namespace NadekoBot.Db.Migrations.Sqlite b.Navigation("LogSetting"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.IgnoredVoicePresenceChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.IgnoredVoicePresenceChannel", b => { - b.HasOne("Nadeko.Bot.Db.Models.LogSetting", "LogSetting") + b.HasOne("NadekoBot.Db.Models.LogSetting", "LogSetting") .WithMany() .HasForeignKey("LogSettingId"); b.Navigation("LogSetting"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.MutedUserId", b => + modelBuilder.Entity("NadekoBot.Db.Models.MutedUserId", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("MutedUsers") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Permissionv2", b => + modelBuilder.Entity("NadekoBot.Db.Models.Permissionv2", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("Permissions") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PlaylistSong", b => + modelBuilder.Entity("NadekoBot.Db.Models.PlaylistSong", b => { - b.HasOne("Nadeko.Bot.Db.Models.MusicPlaylist", null) + b.HasOne("NadekoBot.Db.Models.MusicPlaylist", null) .WithMany("Songs") .HasForeignKey("MusicPlaylistId") .OnDelete(DeleteBehavior.Cascade); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PollAnswer", b => + modelBuilder.Entity("NadekoBot.Db.Models.PollAnswer", b => { - b.HasOne("Nadeko.Bot.Db.Models.Poll", null) + b.HasOne("NadekoBot.Db.Models.Poll", null) .WithMany("Answers") .HasForeignKey("PollId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.PollVote", b => + modelBuilder.Entity("NadekoBot.Db.Models.PollVote", b => { - b.HasOne("Nadeko.Bot.Db.Models.Poll", null) + b.HasOne("NadekoBot.Db.Models.Poll", null) .WithMany("Votes") .HasForeignKey("PollId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntry", b => + modelBuilder.Entity("NadekoBot.Db.Models.ShopEntry", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("ShopEntries") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntryItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.ShopEntryItem", b => { - b.HasOne("Nadeko.Bot.Db.Models.ShopEntry", null) + b.HasOne("NadekoBot.Db.Models.ShopEntry", null) .WithMany("Items") .HasForeignKey("ShopEntryId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.SlowmodeIgnoredRole", b => + modelBuilder.Entity("NadekoBot.Db.Models.SlowmodeIgnoredRole", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("SlowmodeIgnoredRoles") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.SlowmodeIgnoredUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.SlowmodeIgnoredUser", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("SlowmodeIgnoredUsers") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleBlacklistedUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleBlacklistedUser", b => { - b.HasOne("Nadeko.Bot.Db.Models.StreamRoleSettings", null) + b.HasOne("NadekoBot.Db.Models.StreamRoleSettings", null) .WithMany("Blacklist") .HasForeignKey("StreamRoleSettingsId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleSettings", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithOne("StreamRole") - .HasForeignKey("Nadeko.Bot.Db.Models.StreamRoleSettings", "GuildConfigId") + .HasForeignKey("NadekoBot.Db.Models.StreamRoleSettings", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("GuildConfig"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleWhitelistedUser", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleWhitelistedUser", b => { - b.HasOne("Nadeko.Bot.Db.Models.StreamRoleSettings", null) + b.HasOne("NadekoBot.Db.Models.StreamRoleSettings", null) .WithMany("Whitelist") .HasForeignKey("StreamRoleSettingsId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnbanTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnbanTimer", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("UnbanTimer") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnmuteTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnmuteTimer", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("UnmuteTimers") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.UnroleTimer", b => + modelBuilder.Entity("NadekoBot.Db.Models.UnroleTimer", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("UnroleTimer") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.VcRoleInfo", b => + modelBuilder.Entity("NadekoBot.Db.Models.VcRoleInfo", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("VcRoleInfos") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuInfo", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuInfo", b => { b.HasOne("NadekoBot.Db.Models.DiscordUser", "Affinity") .WithMany() @@ -2774,7 +2774,7 @@ namespace NadekoBot.Db.Migrations.Sqlite b.HasOne("NadekoBot.Db.Models.DiscordUser", "Waifu") .WithOne() - .HasForeignKey("Nadeko.Bot.Db.Models.WaifuInfo", "WaifuId") + .HasForeignKey("NadekoBot.Db.Models.WaifuInfo", "WaifuId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); @@ -2785,16 +2785,16 @@ namespace NadekoBot.Db.Migrations.Sqlite b.Navigation("Waifu"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuItem", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuItem", b => { - b.HasOne("Nadeko.Bot.Db.Models.WaifuInfo", "WaifuInfo") + b.HasOne("NadekoBot.Db.Models.WaifuInfo", "WaifuInfo") .WithMany("Items") .HasForeignKey("WaifuInfoId"); b.Navigation("WaifuInfo"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuUpdate", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuUpdate", b => { b.HasOne("NadekoBot.Db.Models.DiscordUser", "New") .WithMany() @@ -2817,16 +2817,16 @@ namespace NadekoBot.Db.Migrations.Sqlite b.Navigation("User"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WarningPunishment", b => + modelBuilder.Entity("NadekoBot.Db.Models.WarningPunishment", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("WarnPunishments") .HasForeignKey("GuildConfigId"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpCurrencyReward", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpCurrencyReward", b => { - b.HasOne("Nadeko.Bot.Db.Models.XpSettings", "XpSettings") + b.HasOne("NadekoBot.Db.Models.XpSettings", "XpSettings") .WithMany("CurrencyRewards") .HasForeignKey("XpSettingsId") .OnDelete(DeleteBehavior.Cascade) @@ -2835,9 +2835,9 @@ namespace NadekoBot.Db.Migrations.Sqlite b.Navigation("XpSettings"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpRoleReward", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpRoleReward", b => { - b.HasOne("Nadeko.Bot.Db.Models.XpSettings", "XpSettings") + b.HasOne("NadekoBot.Db.Models.XpSettings", "XpSettings") .WithMany("RoleRewards") .HasForeignKey("XpSettingsId") .OnDelete(DeleteBehavior.Cascade) @@ -2846,11 +2846,11 @@ namespace NadekoBot.Db.Migrations.Sqlite b.Navigation("XpSettings"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpSettings", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", "GuildConfig") + b.HasOne("NadekoBot.Db.Models.GuildConfig", "GuildConfig") .WithOne("XpSettings") - .HasForeignKey("Nadeko.Bot.Db.Models.XpSettings", "GuildConfigId") + .HasForeignKey("NadekoBot.Db.Models.XpSettings", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); @@ -2917,7 +2917,7 @@ namespace NadekoBot.Db.Migrations.Sqlite modelBuilder.Entity("NadekoBot.Db.Models.FollowedStream", b => { - b.HasOne("Nadeko.Bot.Db.Models.GuildConfig", null) + b.HasOne("NadekoBot.Db.Models.GuildConfig", null) .WithMany("FollowedStreams") .HasForeignKey("GuildConfigId"); }); @@ -2939,17 +2939,17 @@ namespace NadekoBot.Db.Migrations.Sqlite .OnDelete(DeleteBehavior.Cascade); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.AntiSpamSetting", b => { b.Navigation("IgnoredChannels"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoTranslateChannel", b => + modelBuilder.Entity("NadekoBot.Db.Models.AutoTranslateChannel", b => { b.Navigation("Users"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.GuildConfig", b => + modelBuilder.Entity("NadekoBot.Db.Models.GuildConfig", b => { b.Navigation("AntiAltSetting"); @@ -3004,41 +3004,41 @@ namespace NadekoBot.Db.Migrations.Sqlite b.Navigation("XpSettings"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.LogSetting", b => + modelBuilder.Entity("NadekoBot.Db.Models.LogSetting", b => { b.Navigation("LogIgnores"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.MusicPlaylist", b => + modelBuilder.Entity("NadekoBot.Db.Models.MusicPlaylist", b => { b.Navigation("Songs"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.Poll", b => + modelBuilder.Entity("NadekoBot.Db.Models.Poll", b => { b.Navigation("Answers"); b.Navigation("Votes"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntry", b => + modelBuilder.Entity("NadekoBot.Db.Models.ShopEntry", b => { b.Navigation("Items"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.StreamRoleSettings", b => { b.Navigation("Blacklist"); b.Navigation("Whitelist"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuInfo", b => + modelBuilder.Entity("NadekoBot.Db.Models.WaifuInfo", b => { b.Navigation("Items"); }); - modelBuilder.Entity("Nadeko.Bot.Db.Models.XpSettings", b => + modelBuilder.Entity("NadekoBot.Db.Models.XpSettings", b => { b.Navigation("CurrencyRewards"); diff --git a/src/NadekoBot/Modules/Administration/Administration.cs b/src/NadekoBot/Modules/Administration/Administration.cs index 1b9efbafb..86e3223f7 100644 --- a/src/NadekoBot/Modules/Administration/Administration.cs +++ b/src/NadekoBot/Modules/Administration/Administration.cs @@ -113,7 +113,7 @@ public partial class Administration : NadekoModule embed.AddField(GetText(strs.channel_delmsgoncmd), str); - await ctx.Channel.EmbedAsync(embed); + await EmbedAsync(embed); } [Cmd] diff --git a/src/NadekoBot/Modules/Administration/AdministrationService.cs b/src/NadekoBot/Modules/Administration/AdministrationService.cs index d48ee32e4..d28e40978 100644 --- a/src/NadekoBot/Modules/Administration/AdministrationService.cs +++ b/src/NadekoBot/Modules/Administration/AdministrationService.cs @@ -1,8 +1,7 @@ #nullable disable using Microsoft.EntityFrameworkCore; -using NadekoBot.Common; using NadekoBot.Db; -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; namespace NadekoBot.Modules.Administration.Services; diff --git a/src/NadekoBot/Modules/Administration/AutoAssignableRoles/AutoAssignRoleService.cs b/src/NadekoBot/Modules/Administration/AutoAssignableRoles/AutoAssignRoleService.cs index f2e8cdcb5..f0000fb6f 100644 --- a/src/NadekoBot/Modules/Administration/AutoAssignableRoles/AutoAssignRoleService.cs +++ b/src/NadekoBot/Modules/Administration/AutoAssignableRoles/AutoAssignRoleService.cs @@ -1,5 +1,5 @@ #nullable disable -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; using System.Net; using System.Threading.Channels; using LinqToDB; diff --git a/src/NadekoBot/Modules/Administration/DangerousCommands/DangerousCommands.cs b/src/NadekoBot/Modules/Administration/DangerousCommands/DangerousCommands.cs index 89dbdfbfa..7c02bc8a7 100644 --- a/src/NadekoBot/Modules/Administration/DangerousCommands/DangerousCommands.cs +++ b/src/NadekoBot/Modules/Administration/DangerousCommands/DangerousCommands.cs @@ -2,119 +2,163 @@ using System.Globalization; using CsvHelper; using CsvHelper.Configuration; +using NadekoBot.Modules.Gambling; using NadekoBot.Modules.Administration.Services; +using NadekoBot.Modules.Xp; -#if !GLOBAL_NADEKO -namespace NadekoBot.Modules.Administration +namespace NadekoBot.Modules.Administration; + +public partial class Administration { - public partial class Administration + [Group] + [OwnerOnly] + [NoPublicBot] + public partial class DangerousCommands : CleanupModuleBase { - [Group] - [OwnerOnly] - public partial class DangerousCommands : NadekoModule + private readonly DangerousCommandsService _ds; + private readonly IGamblingCleanupService _gcs; + private readonly IXpCleanupService _xcs; + + public DangerousCommands( + DangerousCommandsService ds, + IGamblingCleanupService gcs, + IXpCleanupService xcs) { - [Cmd] - [OwnerOnly] - public Task SqlSelect([Leftover] string sql) + _ds = ds; + _gcs = gcs; + _xcs = xcs; + } + + [Cmd] + [OwnerOnly] + public Task SqlSelect([Leftover] string sql) + { + var result = _ds.SelectSql(sql); + + return ctx.SendPaginatedConfirmAsync(0, + cur => + { + var items = result.Results.Skip(cur * 20).Take(20).ToList(); + + if (!items.Any()) + return _eb.Create().WithErrorColor().WithFooter(sql).WithDescription("-"); + + return _eb.Create() + .WithOkColor() + .WithFooter(sql) + .WithTitle(string.Join(" ║ ", result.ColumnNames)) + .WithDescription(string.Join('\n', items.Select(x => string.Join(" ║ ", x)))); + }, + result.Results.Count, + 20); + } + + [Cmd] + [OwnerOnly] + public async Task SqlSelectCsv([Leftover] string sql) + { + var result = _ds.SelectSql(sql); + + // create a file stream and write the data as csv + using var ms = new MemoryStream(); + await using var sw = new StreamWriter(ms); + await using var csv = new CsvWriter(sw, + new CsvConfiguration(CultureInfo.InvariantCulture) + { + Delimiter = "," + }); + + foreach (var cn in result.ColumnNames) { - var result = _service.SelectSql(sql); - - return ctx.SendPaginatedConfirmAsync(0, - cur => - { - var items = result.Results.Skip(cur * 20).Take(20).ToList(); - - if (!items.Any()) - return _eb.Create().WithErrorColor().WithFooter(sql).WithDescription("-"); - - return _eb.Create() - .WithOkColor() - .WithFooter(sql) - .WithTitle(string.Join(" ║ ", result.ColumnNames)) - .WithDescription(string.Join('\n', items.Select(x => string.Join(" ║ ", x)))); - }, - result.Results.Count, - 20); + csv.WriteField(cn); } - [Cmd] - [OwnerOnly] - public async Task SqlSelectCsv([Leftover] string sql) + await csv.NextRecordAsync(); + + foreach (var row in result.Results) { - var result = _service.SelectSql(sql); - - // create a file stream and write the data as csv - using var ms = new MemoryStream(); - await using var sw = new StreamWriter(ms); - await using var csv = new CsvWriter(sw, - new CsvConfiguration(CultureInfo.InvariantCulture) { Delimiter = "," }); - - foreach (var cn in result.ColumnNames) + foreach (var field in row) { - csv.WriteField(cn); + csv.WriteField(field); } await csv.NextRecordAsync(); - - foreach (var row in result.Results) - { - foreach (var field in row) - { - csv.WriteField(field); - } - - await csv.NextRecordAsync(); - } - - - await csv.FlushAsync(); - ms.Position = 0; - - // send the file - await ctx.Channel.SendFileAsync(ms, $"query_result_{DateTime.UtcNow.Ticks}.csv"); } - [Cmd] - [OwnerOnly] - public async Task SqlExec([Leftover] string sql) - { - try - { - var embed = _eb.Create() - .WithTitle(GetText(strs.sql_confirm_exec)) - .WithDescription(Format.Code(sql)); - if (!await PromptUserConfirmAsync(embed)) - return; + await csv.FlushAsync(); + ms.Position = 0; - var res = await _service.ExecuteSql(sql); - await SendConfirmAsync(res.ToString()); - } - catch (Exception ex) - { - await SendErrorAsync(ex.ToString()); - } - } + // send the file + await ctx.Channel.SendFileAsync(ms, $"query_result_{DateTime.UtcNow.Ticks}.csv"); + } - [Cmd] - [OwnerOnly] - public async Task PurgeUser(ulong userId) + [Cmd] + [OwnerOnly] + public async Task SqlExec([Leftover] string sql) + { + try { var embed = _eb.Create() - .WithDescription(GetText(strs.purge_user_confirm(Format.Bold(userId.ToString())))); + .WithTitle(GetText(strs.sql_confirm_exec)) + .WithDescription(Format.Code(sql)); if (!await PromptUserConfirmAsync(embed)) return; - await _service.PurgeUserAsync(userId); - await ctx.OkAsync(); + var res = await _ds.ExecuteSql(sql); + await SendConfirmAsync(res.ToString()); + } + catch (Exception ex) + { + await SendErrorAsync(ex.ToString()); } - - [Cmd] - [OwnerOnly] - public Task PurgeUser([Leftover] IUser user) - => PurgeUser(user.Id); } + + [Cmd] + [OwnerOnly] + public async Task PurgeUser(ulong userId) + { + var embed = _eb.Create() + .WithDescription(GetText(strs.purge_user_confirm(Format.Bold(userId.ToString())))); + + if (!await PromptUserConfirmAsync(embed)) + return; + + await _ds.PurgeUserAsync(userId); + await ctx.OkAsync(); + } + + [Cmd] + [OwnerOnly] + public Task PurgeUser([Leftover] IUser user) + => PurgeUser(user.Id); + + [Cmd] + [OwnerOnly] + public Task DeleteXp() + => ConfirmActionInternalAsync("Delete Xp", () => _xcs.DeleteXp()); + + + [Cmd] + [OwnerOnly] + public Task DeleteWaifus() + => ConfirmActionInternalAsync("Delete Waifus", () => _gcs.DeleteWaifus()); + + [Cmd] + [OwnerOnly] + public async Task DeleteWaifu(IUser user) + => await DeleteWaifu(user.Id); + + [Cmd] + [OwnerOnly] + public Task DeleteWaifu(ulong userId) + => ConfirmActionInternalAsync($"Delete Waifu {userId}", () => _gcs.DeleteWaifu(userId)); + + + [Cmd] + [OwnerOnly] + public Task DeleteCurrency() + => ConfirmActionInternalAsync("Delete Currency", () => _gcs.DeleteCurrency()); } -} -#endif \ No newline at end of file +} \ No newline at end of file diff --git a/src/NadekoBot/Modules/Administration/DangerousCommands/DangerousCommandsService.cs b/src/NadekoBot/Modules/Administration/DangerousCommands/DangerousCommandsService.cs index 730f4bb53..3ee7a55de 100644 --- a/src/NadekoBot/Modules/Administration/DangerousCommands/DangerousCommandsService.cs +++ b/src/NadekoBot/Modules/Administration/DangerousCommands/DangerousCommandsService.cs @@ -3,7 +3,6 @@ using LinqToDB; using LinqToDB.EntityFrameworkCore; using Microsoft.EntityFrameworkCore; using NadekoBot.Db.Models; -using Nadeko.Bot.Db.Models; namespace NadekoBot.Modules.Administration.Services; diff --git a/src/NadekoBot/Modules/Administration/GreetBye/GreetService.cs b/src/NadekoBot/Modules/Administration/GreetBye/GreetService.cs index 7da82e528..8c3c6c335 100644 --- a/src/NadekoBot/Modules/Administration/GreetBye/GreetService.cs +++ b/src/NadekoBot/Modules/Administration/GreetBye/GreetService.cs @@ -1,8 +1,7 @@ using NadekoBot.Common.ModuleBehaviors; using NadekoBot.Db; -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; using System.Threading.Channels; -using NadekoBot.Common; namespace NadekoBot.Services; diff --git a/src/NadekoBot/Modules/Administration/GreetBye/GreetSettings.cs b/src/NadekoBot/Modules/Administration/GreetBye/GreetSettings.cs index d11a72c51..df9c72904 100644 --- a/src/NadekoBot/Modules/Administration/GreetBye/GreetSettings.cs +++ b/src/NadekoBot/Modules/Administration/GreetBye/GreetSettings.cs @@ -1,4 +1,4 @@ -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; namespace NadekoBot.Services; diff --git a/src/NadekoBot/Modules/Administration/ImageOnlyChannelService.cs b/src/NadekoBot/Modules/Administration/ImageOnlyChannelService.cs index a433e1d79..c5d9b2ec1 100644 --- a/src/NadekoBot/Modules/Administration/ImageOnlyChannelService.cs +++ b/src/NadekoBot/Modules/Administration/ImageOnlyChannelService.cs @@ -4,7 +4,7 @@ using Microsoft.Extensions.Caching.Memory; using NadekoBot.Common.ModuleBehaviors; using System.Net; using System.Threading.Channels; -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; namespace NadekoBot.Modules.Administration.Services; diff --git a/src/NadekoBot/Modules/Administration/LocalizationCommands.cs b/src/NadekoBot/Modules/Administration/LocalizationCommands.cs index dca00a6ca..46287c956 100644 --- a/src/NadekoBot/Modules/Administration/LocalizationCommands.cs +++ b/src/NadekoBot/Modules/Administration/LocalizationCommands.cs @@ -112,7 +112,7 @@ public partial class Administration [Cmd] public async Task LanguagesList() - => await ctx.Channel.EmbedAsync(_eb.Create() + => await EmbedAsync(_eb.Create() .WithOkColor() .WithTitle(GetText(strs.lang_list)) .WithDescription(string.Join("\n", diff --git a/src/NadekoBot/Modules/Administration/Mute/MuteService.cs b/src/NadekoBot/Modules/Administration/Mute/MuteService.cs index 55b37668b..8331a7a06 100644 --- a/src/NadekoBot/Modules/Administration/Mute/MuteService.cs +++ b/src/NadekoBot/Modules/Administration/Mute/MuteService.cs @@ -1,7 +1,7 @@ #nullable disable using Microsoft.EntityFrameworkCore; using NadekoBot.Db; -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; namespace NadekoBot.Modules.Administration.Services; diff --git a/src/NadekoBot/Modules/Administration/PlayingRotate/PlayingRotateService.cs b/src/NadekoBot/Modules/Administration/PlayingRotate/PlayingRotateService.cs index eef82e388..0b48173ba 100644 --- a/src/NadekoBot/Modules/Administration/PlayingRotate/PlayingRotateService.cs +++ b/src/NadekoBot/Modules/Administration/PlayingRotate/PlayingRotateService.cs @@ -1,8 +1,7 @@ #nullable disable using Microsoft.EntityFrameworkCore; -using NadekoBot.Common; using NadekoBot.Common.ModuleBehaviors; -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; namespace NadekoBot.Modules.Administration.Services; @@ -90,7 +89,7 @@ public sealed class PlayingRotateService : INService, IReadyExecutor var toAdd = new RotatingPlayingStatus { Status = status, - Type = (Nadeko.Bot.Db.ActivityType)activityType + Type = (NadekoBot.Db.DbActivityType)activityType }; uow.Add(toAdd); await uow.SaveChangesAsync(); diff --git a/src/NadekoBot/Modules/Administration/Protection/ProtectionCommands.cs b/src/NadekoBot/Modules/Administration/Protection/ProtectionCommands.cs index 038fc1650..961ebdbf0 100644 --- a/src/NadekoBot/Modules/Administration/Protection/ProtectionCommands.cs +++ b/src/NadekoBot/Modules/Administration/Protection/ProtectionCommands.cs @@ -1,7 +1,7 @@ #nullable disable using NadekoBot.Common.TypeReaders.Models; using NadekoBot.Modules.Administration.Services; -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; namespace NadekoBot.Modules.Administration; diff --git a/src/NadekoBot/Modules/Administration/Protection/ProtectionService.cs b/src/NadekoBot/Modules/Administration/Protection/ProtectionService.cs index 9bc09d7a4..51c9d3d50 100644 --- a/src/NadekoBot/Modules/Administration/Protection/ProtectionService.cs +++ b/src/NadekoBot/Modules/Administration/Protection/ProtectionService.cs @@ -1,7 +1,7 @@ #nullable disable using Microsoft.EntityFrameworkCore; using NadekoBot.Db; -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; using System.Threading.Channels; namespace NadekoBot.Modules.Administration.Services; diff --git a/src/NadekoBot/Modules/Administration/Protection/ProtectionStats.cs b/src/NadekoBot/Modules/Administration/Protection/ProtectionStats.cs index fa8936ec3..72163af6f 100644 --- a/src/NadekoBot/Modules/Administration/Protection/ProtectionStats.cs +++ b/src/NadekoBot/Modules/Administration/Protection/ProtectionStats.cs @@ -1,5 +1,5 @@ #nullable disable -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; namespace NadekoBot.Modules.Administration; diff --git a/src/NadekoBot/Modules/Administration/Protection/PunishQueueItem.cs b/src/NadekoBot/Modules/Administration/Protection/PunishQueueItem.cs index 642b4eda1..c3871c34c 100644 --- a/src/NadekoBot/Modules/Administration/Protection/PunishQueueItem.cs +++ b/src/NadekoBot/Modules/Administration/Protection/PunishQueueItem.cs @@ -1,5 +1,5 @@ #nullable disable -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; namespace NadekoBot.Modules.Administration; diff --git a/src/NadekoBot/Modules/Administration/Role/IReactionRoleService.cs b/src/NadekoBot/Modules/Administration/Role/IReactionRoleService.cs index dfcff1f3b..49678b5e6 100644 --- a/src/NadekoBot/Modules/Administration/Role/IReactionRoleService.cs +++ b/src/NadekoBot/Modules/Administration/Role/IReactionRoleService.cs @@ -1,6 +1,6 @@ #nullable disable using NadekoBot.Modules.Patronage; -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; using OneOf; using OneOf.Types; diff --git a/src/NadekoBot/Modules/Administration/Role/ReactionRolesService.cs b/src/NadekoBot/Modules/Administration/Role/ReactionRolesService.cs index dba4e1f8e..557321519 100644 --- a/src/NadekoBot/Modules/Administration/Role/ReactionRolesService.cs +++ b/src/NadekoBot/Modules/Administration/Role/ReactionRolesService.cs @@ -4,7 +4,7 @@ using LinqToDB.EntityFrameworkCore; using NadekoBot.Common.ModuleBehaviors; using NadekoBot.Db; using NadekoBot.Modules.Patronage; -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; using OneOf.Types; using OneOf; diff --git a/src/NadekoBot/Modules/Administration/Role/RoleCommands.cs b/src/NadekoBot/Modules/Administration/Role/RoleCommands.cs index 736e45ec7..329f64b5a 100644 --- a/src/NadekoBot/Modules/Administration/Role/RoleCommands.cs +++ b/src/NadekoBot/Modules/Administration/Role/RoleCommands.cs @@ -1,5 +1,4 @@ #nullable disable -using System.Xml.Schema; using SixLabors.ImageSharp.PixelFormats; using Color = SixLabors.ImageSharp.Color; diff --git a/src/NadekoBot/Modules/Administration/Role/StickyRolesService.cs b/src/NadekoBot/Modules/Administration/Role/StickyRolesService.cs index 7c6513753..ed619fa68 100644 --- a/src/NadekoBot/Modules/Administration/Role/StickyRolesService.cs +++ b/src/NadekoBot/Modules/Administration/Role/StickyRolesService.cs @@ -1,7 +1,7 @@ #nullable disable using LinqToDB; using LinqToDB.EntityFrameworkCore; -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; using NadekoBot.Common.ModuleBehaviors; using NadekoBot.Db; diff --git a/src/NadekoBot/Modules/Administration/Self/SelfCommands.cs b/src/NadekoBot/Modules/Administration/Self/SelfCommands.cs index c7948c37e..b7508f6e6 100644 --- a/src/NadekoBot/Modules/Administration/Self/SelfCommands.cs +++ b/src/NadekoBot/Modules/Administration/Self/SelfCommands.cs @@ -1,7 +1,6 @@ #nullable disable -using NadekoBot.Common; using NadekoBot.Modules.Administration.Services; -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; using Nadeko.Common.Medusa; namespace NadekoBot.Modules.Administration; @@ -113,7 +112,7 @@ public partial class Administration }; _service.AddNewAutoCommand(cmd); - await ctx.Channel.EmbedAsync(_eb.Create() + await EmbedAsync(_eb.Create() .WithOkColor() .WithTitle(GetText(strs.scadd)) .AddField(GetText(strs.server), diff --git a/src/NadekoBot/Modules/Administration/Self/SelfService.cs b/src/NadekoBot/Modules/Administration/Self/SelfService.cs index 0a413742c..292bdf687 100644 --- a/src/NadekoBot/Modules/Administration/Self/SelfService.cs +++ b/src/NadekoBot/Modules/Administration/Self/SelfService.cs @@ -1,11 +1,10 @@ #nullable disable using NadekoBot.Common.ModuleBehaviors; -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; using System.Collections.Immutable; using LinqToDB; using LinqToDB.EntityFrameworkCore; using Microsoft.EntityFrameworkCore; -using NadekoBot.Db.Models; namespace NadekoBot.Modules.Administration.Services; diff --git a/src/NadekoBot/Modules/Administration/SelfAssignableRoles/SelfAssignedRolesService.cs b/src/NadekoBot/Modules/Administration/SelfAssignableRoles/SelfAssignedRolesService.cs index 30e8cb109..f9145f433 100644 --- a/src/NadekoBot/Modules/Administration/SelfAssignableRoles/SelfAssignedRolesService.cs +++ b/src/NadekoBot/Modules/Administration/SelfAssignableRoles/SelfAssignedRolesService.cs @@ -1,7 +1,7 @@ #nullable disable using Microsoft.EntityFrameworkCore; using NadekoBot.Db; -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; namespace NadekoBot.Modules.Administration.Services; diff --git a/src/NadekoBot/Modules/Administration/ServerLog/DummyLogCommandService.cs b/src/NadekoBot/Modules/Administration/ServerLog/DummyLogCommandService.cs index 917124ef3..630c165c6 100644 --- a/src/NadekoBot/Modules/Administration/ServerLog/DummyLogCommandService.cs +++ b/src/NadekoBot/Modules/Administration/ServerLog/DummyLogCommandService.cs @@ -1,4 +1,4 @@ -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; namespace NadekoBot.Modules.Administration; diff --git a/src/NadekoBot/Modules/Administration/ServerLog/ServerLogCommandService.cs b/src/NadekoBot/Modules/Administration/ServerLog/ServerLogCommandService.cs index 7aca047ed..428df607c 100644 --- a/src/NadekoBot/Modules/Administration/ServerLog/ServerLogCommandService.cs +++ b/src/NadekoBot/Modules/Administration/ServerLog/ServerLogCommandService.cs @@ -3,7 +3,7 @@ using Microsoft.Extensions.Caching.Memory; using NadekoBot.Common.ModuleBehaviors; using NadekoBot.Db; using NadekoBot.Modules.Administration.Services; -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; namespace NadekoBot.Modules.Administration; diff --git a/src/NadekoBot/Modules/Administration/ServerLog/ServerLogCommands.cs b/src/NadekoBot/Modules/Administration/ServerLog/ServerLogCommands.cs index e3197dbdd..accc6b06f 100644 --- a/src/NadekoBot/Modules/Administration/ServerLog/ServerLogCommands.cs +++ b/src/NadekoBot/Modules/Administration/ServerLog/ServerLogCommands.cs @@ -1,5 +1,5 @@ using NadekoBot.Common.TypeReaders.Models; -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; namespace NadekoBot.Modules.Administration; @@ -46,7 +46,7 @@ public partial class Administration ? "-" : string.Join('\n', usrs.Select(x => $"{x.LogItemId} | <@{x.LogItemId}>"))); - await ctx.Channel.EmbedAsync(eb); + await EmbedAsync(eb); } [Cmd] diff --git a/src/NadekoBot/Modules/Administration/Timezone/GuildTimezoneService.cs b/src/NadekoBot/Modules/Administration/Timezone/GuildTimezoneService.cs index 67c778f43..ea6e9d3e4 100644 --- a/src/NadekoBot/Modules/Administration/Timezone/GuildTimezoneService.cs +++ b/src/NadekoBot/Modules/Administration/Timezone/GuildTimezoneService.cs @@ -1,6 +1,6 @@ #nullable disable using NadekoBot.Db; -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; using NadekoBot.Common.ModuleBehaviors; namespace NadekoBot.Modules.Administration.Services; diff --git a/src/NadekoBot/Modules/Administration/UserPunish/UserPunishCommands.cs b/src/NadekoBot/Modules/Administration/UserPunish/UserPunishCommands.cs index 478d0339b..7f37cc170 100644 --- a/src/NadekoBot/Modules/Administration/UserPunish/UserPunishCommands.cs +++ b/src/NadekoBot/Modules/Administration/UserPunish/UserPunishCommands.cs @@ -3,7 +3,7 @@ using CommandLine; using Humanizer.Localisation; using NadekoBot.Common.TypeReaders.Models; using NadekoBot.Modules.Administration.Services; -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; namespace NadekoBot.Modules.Administration; diff --git a/src/NadekoBot/Modules/Administration/UserPunish/UserPunishService.cs b/src/NadekoBot/Modules/Administration/UserPunish/UserPunishService.cs index ebe2b39c7..05a303f3b 100644 --- a/src/NadekoBot/Modules/Administration/UserPunish/UserPunishService.cs +++ b/src/NadekoBot/Modules/Administration/UserPunish/UserPunishService.cs @@ -2,12 +2,11 @@ using LinqToDB; using LinqToDB.EntityFrameworkCore; using Microsoft.EntityFrameworkCore; -using NadekoBot.Common; using NadekoBot.Common.ModuleBehaviors; using NadekoBot.Common.TypeReaders.Models; using NadekoBot.Db; using NadekoBot.Modules.Permissions.Services; -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; using Newtonsoft.Json; namespace NadekoBot.Modules.Administration.Services; diff --git a/src/NadekoBot/Modules/Administration/VcRole/VcRoleCommands.cs b/src/NadekoBot/Modules/Administration/VcRole/VcRoleCommands.cs index 64f22ad19..b0e5dfeab 100644 --- a/src/NadekoBot/Modules/Administration/VcRole/VcRoleCommands.cs +++ b/src/NadekoBot/Modules/Administration/VcRole/VcRoleCommands.cs @@ -68,7 +68,7 @@ public partial class Administration else text = GetText(strs.no_vcroles); - await ctx.Channel.EmbedAsync(_eb.Create() + await EmbedAsync(_eb.Create() .WithOkColor() .WithTitle(GetText(strs.vc_role_list)) .WithDescription(text)); diff --git a/src/NadekoBot/Modules/Administration/VcRole/VcRoleService.cs b/src/NadekoBot/Modules/Administration/VcRole/VcRoleService.cs index 9ccdaa55e..892387d90 100644 --- a/src/NadekoBot/Modules/Administration/VcRole/VcRoleService.cs +++ b/src/NadekoBot/Modules/Administration/VcRole/VcRoleService.cs @@ -1,7 +1,7 @@ #nullable disable using Microsoft.EntityFrameworkCore; using NadekoBot.Db; -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; namespace NadekoBot.Modules.Administration.Services; diff --git a/src/NadekoBot/Expressions/ExportedExpr.cs b/src/NadekoBot/Modules/Expressions/ExportedExpr.cs similarity index 96% rename from src/NadekoBot/Expressions/ExportedExpr.cs rename to src/NadekoBot/Modules/Expressions/ExportedExpr.cs index 448815fde..b4efcaf80 100644 --- a/src/NadekoBot/Expressions/ExportedExpr.cs +++ b/src/NadekoBot/Modules/Expressions/ExportedExpr.cs @@ -1,5 +1,5 @@ #nullable disable -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; namespace NadekoBot.Modules.NadekoExpressions; diff --git a/src/NadekoBot/Expressions/ExprField.cs b/src/NadekoBot/Modules/Expressions/ExprField.cs similarity index 100% rename from src/NadekoBot/Expressions/ExprField.cs rename to src/NadekoBot/Modules/Expressions/ExprField.cs diff --git a/src/NadekoBot/Expressions/NadekoExpressionExtensions.cs b/src/NadekoBot/Modules/Expressions/NadekoExpressionExtensions.cs similarity index 98% rename from src/NadekoBot/Expressions/NadekoExpressionExtensions.cs rename to src/NadekoBot/Modules/Expressions/NadekoExpressionExtensions.cs index f15412676..309956eab 100644 --- a/src/NadekoBot/Expressions/NadekoExpressionExtensions.cs +++ b/src/NadekoBot/Modules/Expressions/NadekoExpressionExtensions.cs @@ -1,7 +1,6 @@ #nullable disable -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; using System.Runtime.CompilerServices; -using NadekoBot.Common; namespace NadekoBot.Modules.NadekoExpressions; diff --git a/src/NadekoBot/Expressions/NadekoExpressions.cs b/src/NadekoBot/Modules/Expressions/NadekoExpressions.cs similarity index 99% rename from src/NadekoBot/Expressions/NadekoExpressions.cs rename to src/NadekoBot/Modules/Expressions/NadekoExpressions.cs index daa88fab6..26aadc5c8 100644 --- a/src/NadekoBot/Expressions/NadekoExpressions.cs +++ b/src/NadekoBot/Modules/Expressions/NadekoExpressions.cs @@ -1,7 +1,5 @@ #nullable disable -using NadekoBot.Common.Attributes; - namespace NadekoBot.Modules.NadekoExpressions; [Name("Expressions")] @@ -34,7 +32,7 @@ public partial class NadekoExpressions : NadekoModule var ex = await _service.AddAsync(ctx.Guild?.Id, key, message); - await ctx.Channel.EmbedAsync(_eb.Create() + await EmbedAsync(_eb.Create() .WithOkColor() .WithTitle(GetText(strs.expr_new)) .WithDescription($"#{new kwum(ex.Id)}") diff --git a/src/NadekoBot/Expressions/NadekoExpressionsService.cs b/src/NadekoBot/Modules/Expressions/NadekoExpressionsService.cs similarity index 99% rename from src/NadekoBot/Expressions/NadekoExpressionsService.cs rename to src/NadekoBot/Modules/Expressions/NadekoExpressionsService.cs index 6082bb57d..85ef31e0e 100644 --- a/src/NadekoBot/Expressions/NadekoExpressionsService.cs +++ b/src/NadekoBot/Modules/Expressions/NadekoExpressionsService.cs @@ -1,14 +1,11 @@ #nullable disable -using System.Linq.Expressions; using Microsoft.EntityFrameworkCore; using NadekoBot.Common.ModuleBehaviors; using NadekoBot.Common.Yml; using NadekoBot.Db; -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; using System.Runtime.CompilerServices; using LinqToDB.EntityFrameworkCore; -using NadekoBot.Services; -using Serilog; using YamlDotNet.Serialization; using YamlDotNet.Serialization.NamingConventions; diff --git a/src/NadekoBot/Expressions/TypeReaders/CommandOrExprTypeReader.cs b/src/NadekoBot/Modules/Expressions/TypeReaders/CommandOrExprTypeReader.cs similarity index 98% rename from src/NadekoBot/Expressions/TypeReaders/CommandOrExprTypeReader.cs rename to src/NadekoBot/Modules/Expressions/TypeReaders/CommandOrExprTypeReader.cs index 16cac6a72..33bb19fbc 100644 --- a/src/NadekoBot/Expressions/TypeReaders/CommandOrExprTypeReader.cs +++ b/src/NadekoBot/Modules/Expressions/TypeReaders/CommandOrExprTypeReader.cs @@ -1,6 +1,5 @@ #nullable disable using NadekoBot.Modules.NadekoExpressions; -using NadekoBot.Services; namespace NadekoBot.Common.TypeReaders; diff --git a/src/NadekoBot/Modules/Gambling/BlackJack/BlackJackCommands.cs b/src/NadekoBot/Modules/Gambling/BlackJack/BlackJackCommands.cs index 454cfc8e7..6c2813ce2 100644 --- a/src/NadekoBot/Modules/Gambling/BlackJack/BlackJackCommands.cs +++ b/src/NadekoBot/Modules/Gambling/BlackJack/BlackJackCommands.cs @@ -128,7 +128,7 @@ public partial class Gambling embed.AddField(full, cStr); } - msg = await ctx.Channel.EmbedAsync(embed); + msg = await EmbedAsync(embed); } catch { diff --git a/src/NadekoBot/Modules/Gambling/CleanupCommands.cs b/src/NadekoBot/Modules/Gambling/CleanupCommands.cs deleted file mode 100644 index 2a13d98ff..000000000 --- a/src/NadekoBot/Modules/Gambling/CleanupCommands.cs +++ /dev/null @@ -1,39 +0,0 @@ -using Nadeko.Bot.Modules.Gambling.Gambling._Common; - -namespace NadekoBot.Modules.Gambling; - -public partial class Gambling -{ - [Group] - public class CleanupCommands : CleanupModuleBase - { - private readonly IGamblingCleanupService _gcs; - - public CleanupCommands(IGamblingCleanupService gcs) - { - _gcs = gcs; - } - - [Cmd] - [OwnerOnly] - public Task DeleteWaifus() - => ConfirmActionInternalAsync("Delete Waifus", () => _gcs.DeleteWaifus()); - - [Cmd] - [OwnerOnly] - public async Task DeleteWaifu(IUser user) - => await DeleteWaifu(user.Id); - - [Cmd] - [OwnerOnly] - public Task DeleteWaifu(ulong userId) - => ConfirmActionInternalAsync($"Delete Waifu {userId}", () => _gcs.DeleteWaifu(userId)); - - - [Cmd] - [OwnerOnly] - public Task DeleteCurrency() - => ConfirmActionInternalAsync("Delete Currency", () => _gcs.DeleteCurrency()); - - } -} \ No newline at end of file diff --git a/src/NadekoBot/Modules/Gambling/Connect4/Connect4Commands.cs b/src/NadekoBot/Modules/Gambling/Connect4/Connect4Commands.cs index 6f70eecbe..b26c64313 100644 --- a/src/NadekoBot/Modules/Gambling/Connect4/Connect4Commands.cs +++ b/src/NadekoBot/Modules/Gambling/Connect4/Connect4Commands.cs @@ -167,7 +167,7 @@ public partial class Gambling if (msg is null) - msg = await ctx.Channel.EmbedAsync(embed); + msg = await EmbedAsync(embed); else await msg.ModifyAsync(x => x.Embed = embed.Build()); } diff --git a/src/NadekoBot/Modules/Gambling/CurrencyProvider.cs b/src/NadekoBot/Modules/Gambling/CurrencyProvider.cs index 956c8dc13..da6d6c4a4 100644 --- a/src/NadekoBot/Modules/Gambling/CurrencyProvider.cs +++ b/src/NadekoBot/Modules/Gambling/CurrencyProvider.cs @@ -1,5 +1,4 @@ -using NadekoBot.Common; -using NadekoBot.Modules.Gambling.Services; +using NadekoBot.Modules.Gambling.Services; namespace NadekoBot.Modules.Gambling; diff --git a/src/NadekoBot/Modules/Gambling/DiceRoll/DiceRollCommands.cs b/src/NadekoBot/Modules/Gambling/DiceRoll/DiceRollCommands.cs index 76e0ed284..facb155ac 100644 --- a/src/NadekoBot/Modules/Gambling/DiceRoll/DiceRollCommands.cs +++ b/src/NadekoBot/Modules/Gambling/DiceRoll/DiceRollCommands.cs @@ -148,7 +148,7 @@ public partial class Gambling .AddField(Format.Bold("Result"), string.Join(" ", rolls.Select(c => Format.Code($"[{c}]")))); - await ctx.Channel.EmbedAsync(embed); + await EmbedAsync(embed); } else if ((match = _dndRegex.Match(arg)).Length != 0) { @@ -180,7 +180,7 @@ public partial class Gambling => Format.Code(x.ToString())))) .AddField(Format.Bold("Sum"), sum + " + " + add + " - " + sub + " = " + (sum + add - sub)); - await ctx.Channel.EmbedAsync(embed); + await EmbedAsync(embed); } } } diff --git a/src/NadekoBot/Modules/Gambling/Events/CurrencyEventsCommands.cs b/src/NadekoBot/Modules/Gambling/Events/CurrencyEventsCommands.cs index c679c9c34..34e6a1b34 100644 --- a/src/NadekoBot/Modules/Gambling/Events/CurrencyEventsCommands.cs +++ b/src/NadekoBot/Modules/Gambling/Events/CurrencyEventsCommands.cs @@ -2,7 +2,7 @@ using NadekoBot.Modules.Gambling.Common; using NadekoBot.Modules.Gambling.Common.Events; using NadekoBot.Modules.Gambling.Services; -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; namespace NadekoBot.Modules.Gambling; diff --git a/src/NadekoBot/Modules/Gambling/Events/CurrencyEventsService.cs b/src/NadekoBot/Modules/Gambling/Events/CurrencyEventsService.cs index 60494e93c..01b6c68c4 100644 --- a/src/NadekoBot/Modules/Gambling/Events/CurrencyEventsService.cs +++ b/src/NadekoBot/Modules/Gambling/Events/CurrencyEventsService.cs @@ -1,7 +1,7 @@ #nullable disable using NadekoBot.Modules.Gambling.Common; using NadekoBot.Modules.Gambling.Common.Events; -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; namespace NadekoBot.Modules.Gambling.Services; diff --git a/src/NadekoBot/Modules/Gambling/Events/GameStatusEvent.cs b/src/NadekoBot/Modules/Gambling/Events/GameStatusEvent.cs index d1de5cc15..ebcc81616 100644 --- a/src/NadekoBot/Modules/Gambling/Events/GameStatusEvent.cs +++ b/src/NadekoBot/Modules/Gambling/Events/GameStatusEvent.cs @@ -1,5 +1,5 @@ #nullable disable -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; using System.Collections.Concurrent; namespace NadekoBot.Modules.Gambling.Common.Events; diff --git a/src/NadekoBot/Modules/Gambling/Events/ReactionEvent.cs b/src/NadekoBot/Modules/Gambling/Events/ReactionEvent.cs index bc43193d5..4e9ade90c 100644 --- a/src/NadekoBot/Modules/Gambling/Events/ReactionEvent.cs +++ b/src/NadekoBot/Modules/Gambling/Events/ReactionEvent.cs @@ -1,5 +1,5 @@ #nullable disable -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; namespace NadekoBot.Modules.Gambling.Common.Events; diff --git a/src/NadekoBot/Modules/Gambling/FlipCoin/FlipCoinCommands.cs b/src/NadekoBot/Modules/Gambling/FlipCoin/FlipCoinCommands.cs index 0954854e9..f6d03778b 100644 --- a/src/NadekoBot/Modules/Gambling/FlipCoin/FlipCoinCommands.cs +++ b/src/NadekoBot/Modules/Gambling/FlipCoin/FlipCoinCommands.cs @@ -130,7 +130,7 @@ public partial class Gambling str = Format.Bold(GetText(strs.better_luck)); } - await ctx.Channel.EmbedAsync(_eb.Create() + await EmbedAsync(_eb.Create() .WithAuthor(ctx.User) .WithDescription(str) .WithOkColor() diff --git a/src/NadekoBot/Modules/Gambling/Gambling.cs b/src/NadekoBot/Modules/Gambling/Gambling.cs index ad762bbe7..d2c2c06ed 100644 --- a/src/NadekoBot/Modules/Gambling/Gambling.cs +++ b/src/NadekoBot/Modules/Gambling/Gambling.cs @@ -8,7 +8,6 @@ using NadekoBot.Modules.Gambling.Common; using NadekoBot.Modules.Gambling.Services; using NadekoBot.Modules.Utility.Services; using NadekoBot.Services.Currency; -using Nadeko.Bot.Db.Models; using System.Collections.Immutable; using System.Globalization; using System.Text; @@ -103,7 +102,7 @@ public partial class Gambling : GamblingModule eb.WithDescription(str); - await ctx.Channel.EmbedAsync(eb); + await EmbedAsync(eb); } [Cmd] @@ -131,7 +130,7 @@ public partial class Gambling : GamblingModule .WithOkColor(); // ec.Cash already contains ec.Bot as it's the total of all values in the CurrencyAmount column of the DiscordUser table - await ctx.Channel.EmbedAsync(embed); + await EmbedAsync(embed); } private static readonly FeatureLimitKey _timelyKey = new FeatureLimitKey() @@ -332,7 +331,7 @@ public partial class Gambling : GamblingModule embed.WithDescription(sb.ToString()); embed.WithFooter(GetText(strs.page(page + 1))); - await ctx.Channel.EmbedAsync(embed); + await EmbedAsync(embed); } private static string GetFormattedCurtrDate(CurrencyTransaction ct) @@ -375,7 +374,7 @@ public partial class Gambling : GamblingModule eb.WithFooter(GetFormattedCurtrDate(tr)); - await ctx.Channel.EmbedAsync(eb); + await EmbedAsync(eb); } private string GetHumanReadableTransaction(string type, string subType, ulong? maybeUserId) diff --git a/src/NadekoBot/Modules/Gambling/GamblingService.cs b/src/NadekoBot/Modules/Gambling/GamblingService.cs index 9340efc8a..07aba395e 100644 --- a/src/NadekoBot/Modules/Gambling/GamblingService.cs +++ b/src/NadekoBot/Modules/Gambling/GamblingService.cs @@ -6,7 +6,6 @@ using NadekoBot.Db; using NadekoBot.Db.Models; using NadekoBot.Modules.Gambling.Common; using NadekoBot.Modules.Gambling.Common.Connect4; -using Nadeko.Bot.Db.Models; namespace NadekoBot.Modules.Gambling.Services; diff --git a/src/NadekoBot/Modules/Gambling/GamblingTopLevelModule.cs b/src/NadekoBot/Modules/Gambling/GamblingTopLevelModule.cs index 6620102cb..5ab57b689 100644 --- a/src/NadekoBot/Modules/Gambling/GamblingTopLevelModule.cs +++ b/src/NadekoBot/Modules/Gambling/GamblingTopLevelModule.cs @@ -1,7 +1,6 @@ #nullable disable using NadekoBot.Modules.Gambling.Services; using System.Numerics; -using NadekoBot.Common; namespace NadekoBot.Modules.Gambling.Common; diff --git a/src/NadekoBot/Modules/Gambling/PlantPick/PlantPickService.cs b/src/NadekoBot/Modules/Gambling/PlantPick/PlantPickService.cs index cf653fa57..f91ee69eb 100644 --- a/src/NadekoBot/Modules/Gambling/PlantPick/PlantPickService.cs +++ b/src/NadekoBot/Modules/Gambling/PlantPick/PlantPickService.cs @@ -2,7 +2,7 @@ using Microsoft.EntityFrameworkCore; using NadekoBot.Common.ModuleBehaviors; using NadekoBot.Db; -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; using SixLabors.Fonts; using SixLabors.ImageSharp; using SixLabors.ImageSharp.Drawing.Processing; diff --git a/src/NadekoBot/Modules/Gambling/Shop/IShopService.cs b/src/NadekoBot/Modules/Gambling/Shop/IShopService.cs index 4fdec7e75..146b359d6 100644 --- a/src/NadekoBot/Modules/Gambling/Shop/IShopService.cs +++ b/src/NadekoBot/Modules/Gambling/Shop/IShopService.cs @@ -1,5 +1,5 @@ #nullable disable -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; namespace NadekoBot.Modules.Gambling.Services; diff --git a/src/NadekoBot/Modules/Gambling/Shop/ShopCommands.cs b/src/NadekoBot/Modules/Gambling/Shop/ShopCommands.cs index 3737f7d2d..9504a32f4 100644 --- a/src/NadekoBot/Modules/Gambling/Shop/ShopCommands.cs +++ b/src/NadekoBot/Modules/Gambling/Shop/ShopCommands.cs @@ -3,7 +3,7 @@ using Microsoft.EntityFrameworkCore; using NadekoBot.Db; using NadekoBot.Modules.Gambling.Common; using NadekoBot.Modules.Gambling.Services; -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; using NadekoBot.Modules.Administration; namespace NadekoBot.Modules.Gambling; @@ -246,7 +246,7 @@ public partial class Gambling .WithTitle("Executing shop command") .WithDescription(cmd); - var msgTask = ctx.Channel.EmbedAsync(eb); + var msgTask = EmbedAsync(eb); await _cs.AddAsync(entry.AuthorId, GetProfitAmount(entry.Price), diff --git a/src/NadekoBot/Modules/Gambling/Shop/ShopService.cs b/src/NadekoBot/Modules/Gambling/Shop/ShopService.cs index 3c1725a73..264cb74e0 100644 --- a/src/NadekoBot/Modules/Gambling/Shop/ShopService.cs +++ b/src/NadekoBot/Modules/Gambling/Shop/ShopService.cs @@ -1,7 +1,7 @@ #nullable disable using Microsoft.EntityFrameworkCore; using NadekoBot.Db; -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; namespace NadekoBot.Modules.Gambling.Services; diff --git a/src/NadekoBot/Modules/Gambling/Waifus/WaifuClaimCommands.cs b/src/NadekoBot/Modules/Gambling/Waifus/WaifuClaimCommands.cs index 795649dfe..fb792f9c1 100644 --- a/src/NadekoBot/Modules/Gambling/Waifus/WaifuClaimCommands.cs +++ b/src/NadekoBot/Modules/Gambling/Waifus/WaifuClaimCommands.cs @@ -2,7 +2,7 @@ using NadekoBot.Modules.Gambling.Common; using NadekoBot.Modules.Gambling.Common.Waifu; using NadekoBot.Modules.Gambling.Services; -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; namespace NadekoBot.Modules.Gambling; @@ -217,7 +217,7 @@ public partial class Gambling embed.AddField("#" + ((page * 9) + j + 1) + " - " + N(w.Price), GetLbString(w)); } - await ctx.Channel.EmbedAsync(embed); + await EmbedAsync(embed); } private string GetLbString(WaifuLbResult w) diff --git a/src/NadekoBot/Modules/Gambling/Waifus/WaifuService.cs b/src/NadekoBot/Modules/Gambling/Waifus/WaifuService.cs index 3ce28811a..dcb3d56db 100644 --- a/src/NadekoBot/Modules/Gambling/Waifus/WaifuService.cs +++ b/src/NadekoBot/Modules/Gambling/Waifus/WaifuService.cs @@ -7,7 +7,6 @@ using NadekoBot.Db; using NadekoBot.Db.Models; using NadekoBot.Modules.Gambling.Common; using NadekoBot.Modules.Gambling.Common.Waifu; -using Nadeko.Bot.Db.Models; namespace NadekoBot.Modules.Gambling.Services; diff --git a/src/NadekoBot/Modules/Gambling/Waifus/db/Waifu.cs b/src/NadekoBot/Modules/Gambling/Waifus/db/Waifu.cs index 63a82f8c0..cf87b5436 100644 --- a/src/NadekoBot/Modules/Gambling/Waifus/db/Waifu.cs +++ b/src/NadekoBot/Modules/Gambling/Waifus/db/Waifu.cs @@ -1,7 +1,5 @@ #nullable disable -using NadekoBot.Db.Models; - -namespace Nadeko.Bot.Db.Models; +namespace NadekoBot.Db.Models; public class WaifuInfo : DbEntity { diff --git a/src/NadekoBot/Modules/Gambling/Waifus/db/WaifuExtensions.cs b/src/NadekoBot/Modules/Gambling/Waifus/db/WaifuExtensions.cs index 61dc7f96b..024817b99 100644 --- a/src/NadekoBot/Modules/Gambling/Waifus/db/WaifuExtensions.cs +++ b/src/NadekoBot/Modules/Gambling/Waifus/db/WaifuExtensions.cs @@ -4,8 +4,6 @@ using LinqToDB.EntityFrameworkCore; using Microsoft.EntityFrameworkCore; using NadekoBot.Db.Models; -using Nadeko.Bot.Db.Models; - namespace NadekoBot.Db; public static class WaifuExtensions diff --git a/src/NadekoBot/Modules/Gambling/Waifus/db/WaifuItem.cs b/src/NadekoBot/Modules/Gambling/Waifus/db/WaifuItem.cs index fb2eafcea..4923a0822 100644 --- a/src/NadekoBot/Modules/Gambling/Waifus/db/WaifuItem.cs +++ b/src/NadekoBot/Modules/Gambling/Waifus/db/WaifuItem.cs @@ -1,5 +1,5 @@ #nullable disable -namespace Nadeko.Bot.Db.Models; +namespace NadekoBot.Db.Models; public class WaifuItem : DbEntity { diff --git a/src/NadekoBot/Modules/Gambling/Waifus/db/WaifuLbResult.cs b/src/NadekoBot/Modules/Gambling/Waifus/db/WaifuLbResult.cs index 6fcb7b3bb..8ae7b7e25 100644 --- a/src/NadekoBot/Modules/Gambling/Waifus/db/WaifuLbResult.cs +++ b/src/NadekoBot/Modules/Gambling/Waifus/db/WaifuLbResult.cs @@ -1,5 +1,5 @@ #nullable disable -namespace Nadeko.Bot.Db.Models; +namespace NadekoBot.Db.Models; public class WaifuLbResult { diff --git a/src/NadekoBot/Modules/Gambling/Waifus/db/WaifuUpdate.cs b/src/NadekoBot/Modules/Gambling/Waifus/db/WaifuUpdate.cs index fa72be42e..044cc387a 100644 --- a/src/NadekoBot/Modules/Gambling/Waifus/db/WaifuUpdate.cs +++ b/src/NadekoBot/Modules/Gambling/Waifus/db/WaifuUpdate.cs @@ -1,7 +1,5 @@ #nullable disable -using NadekoBot.Db.Models; - -namespace Nadeko.Bot.Db.Models; +namespace NadekoBot.Db.Models; public class WaifuUpdate : DbEntity { diff --git a/src/NadekoBot/Modules/Gambling/Waifus/db/WaifuUpdateType.cs b/src/NadekoBot/Modules/Gambling/Waifus/db/WaifuUpdateType.cs index a05307b39..6446048eb 100644 --- a/src/NadekoBot/Modules/Gambling/Waifus/db/WaifuUpdateType.cs +++ b/src/NadekoBot/Modules/Gambling/Waifus/db/WaifuUpdateType.cs @@ -1,5 +1,5 @@ #nullable disable -namespace Nadeko.Bot.Db.Models; +namespace NadekoBot.Db.Models; public enum WaifuUpdateType { diff --git a/src/NadekoBot/Modules/Gambling/_common/GamblingCleanupService.cs b/src/NadekoBot/Modules/Gambling/_common/GamblingCleanupService.cs index a0e9ce72e..f8516cbea 100644 --- a/src/NadekoBot/Modules/Gambling/_common/GamblingCleanupService.cs +++ b/src/NadekoBot/Modules/Gambling/_common/GamblingCleanupService.cs @@ -1,8 +1,8 @@ using LinqToDB; +using LinqToDB.EntityFrameworkCore; using NadekoBot.Db.Models; -using Nadeko.Bot.Db.Models; -namespace Nadeko.Bot.Modules.Gambling.Gambling._Common; +namespace NadekoBot.Modules.Gambling; public class GamblingCleanupService : IGamblingCleanupService, INService { @@ -16,45 +16,41 @@ public class GamblingCleanupService : IGamblingCleanupService, INService public async Task DeleteWaifus() { await using var ctx = _db.GetDbContext(); - await ctx.Set().DeleteAsync(); - await ctx.Set().DeleteAsync(); - await ctx.Set().DeleteAsync(); - await ctx.SaveChangesAsync(); + await ctx.GetTable().DeleteAsync(); + await ctx.GetTable().DeleteAsync(); + await ctx.GetTable().DeleteAsync(); } public async Task DeleteWaifu(ulong userId) { await using var ctx = _db.GetDbContext(); - await ctx.Set() + await ctx.GetTable() .Where(x => x.User.UserId == userId) .DeleteAsync(); - await ctx.Set() + await ctx.GetTable() .Where(x => x.WaifuInfo.Waifu.UserId == userId) .DeleteAsync(); - await ctx.Set() + await ctx.GetTable() .Where(x => x.Claimer.UserId == userId) .UpdateAsync(old => new WaifuInfo() { ClaimerId = null, }); - await ctx.Set() + await ctx.GetTable() .Where(x => x.Waifu.UserId == userId) .DeleteAsync(); - await ctx.SaveChangesAsync(); } public async Task DeleteCurrency() { - await using var uow = _db.GetDbContext(); - await uow.Set().UpdateAsync(_ => new DiscordUser() + await using var ctx = _db.GetDbContext(); + await ctx.GetTable().UpdateAsync(_ => new DiscordUser() { CurrencyAmount = 0 }); - await uow.Set().DeleteAsync(); - await uow.Set().DeleteAsync(); - await uow.Set().DeleteAsync(); - await uow.SaveChangesAsync(); + await ctx.GetTable().DeleteAsync(); + await ctx.GetTable().DeleteAsync(); + await ctx.GetTable().DeleteAsync(); } - } \ No newline at end of file diff --git a/src/NadekoBot/Modules/Gambling/_common/IGamblingCleanupService.cs b/src/NadekoBot/Modules/Gambling/_common/IGamblingCleanupService.cs index 7f66250af..270323a5f 100644 --- a/src/NadekoBot/Modules/Gambling/_common/IGamblingCleanupService.cs +++ b/src/NadekoBot/Modules/Gambling/_common/IGamblingCleanupService.cs @@ -1,4 +1,4 @@ -namespace Nadeko.Bot.Modules.Gambling.Gambling._Common; +namespace NadekoBot.Modules.Gambling; public interface IGamblingCleanupService { diff --git a/src/NadekoBot/Modules/Games/Acrophobia/AcropobiaCommands.cs b/src/NadekoBot/Modules/Games/Acrophobia/AcropobiaCommands.cs index e8a246fa4..a22f67977 100644 --- a/src/NadekoBot/Modules/Games/Acrophobia/AcropobiaCommands.cs +++ b/src/NadekoBot/Modules/Games/Acrophobia/AcropobiaCommands.cs @@ -74,7 +74,7 @@ public partial class Games GetText(strs.acro_started(Format.Bold(string.Join(".", game.StartingLetters))))) .WithFooter(GetText(strs.acro_started_footer(game.Opts.SubmissionTime))); - return ctx.Channel.EmbedAsync(embed); + return EmbedAsync(embed); } private Task Game_OnUserVoted(string user) @@ -92,7 +92,7 @@ public partial class Games if (submissions.Length == 1) { - await ctx.Channel.EmbedAsync(_eb.Create() + await EmbedAsync(_eb.Create() .WithOkColor() .WithDescription(GetText( strs.acro_winner_only( @@ -114,7 +114,7 @@ public partial class Games --"))) .WithFooter(GetText(strs.acro_vote)); - await ctx.Channel.EmbedAsync(embed); + await EmbedAsync(embed); } private async Task Game_OnEnded(AcrophobiaGame game, ImmutableArray> votes) @@ -134,7 +134,7 @@ public partial class Games Format.Bold(winner.Value.ToString())))) .WithFooter(winner.Key.Input); - await ctx.Channel.EmbedAsync(embed); + await EmbedAsync(embed); } } } \ No newline at end of file diff --git a/src/NadekoBot/Modules/Games/ChatterBot/ChatterbotService.cs b/src/NadekoBot/Modules/Games/ChatterBot/ChatterbotService.cs index 8195041ef..2fe7afb2c 100644 --- a/src/NadekoBot/Modules/Games/ChatterBot/ChatterbotService.cs +++ b/src/NadekoBot/Modules/Games/ChatterBot/ChatterbotService.cs @@ -1,5 +1,4 @@ #nullable disable -using NadekoBot.Common; using NadekoBot.Common.ModuleBehaviors; using NadekoBot.Db.Models; using NadekoBot.Modules.Games.Common; diff --git a/src/NadekoBot/Modules/Games/ChatterBot/CleverBotCommands.cs b/src/NadekoBot/Modules/Games/ChatterBot/CleverBotCommands.cs index fdbcfbc27..7cb48b2f9 100644 --- a/src/NadekoBot/Modules/Games/ChatterBot/CleverBotCommands.cs +++ b/src/NadekoBot/Modules/Games/ChatterBot/CleverBotCommands.cs @@ -1,7 +1,7 @@ #nullable disable using NadekoBot.Db; using NadekoBot.Modules.Games.Services; -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; namespace NadekoBot.Modules.Games; diff --git a/src/NadekoBot/Modules/Games/Games.cs b/src/NadekoBot/Modules/Games/Games.cs index 5ce9f42ce..ab12d5e27 100644 --- a/src/NadekoBot/Modules/Games/Games.cs +++ b/src/NadekoBot/Modules/Games/Games.cs @@ -1,5 +1,4 @@ #nullable disable -using NadekoBot.Modules.Games.Common; using NadekoBot.Modules.Games.Services; namespace NadekoBot.Modules.Games; @@ -39,7 +38,7 @@ public partial class Games : NadekoModule return; var res = _service.GetEightballResponse(ctx.User.Id, question); - await ctx.Channel.EmbedAsync(_eb.Create() + await EmbedAsync(_eb.Create() .WithOkColor() .WithDescription(ctx.User.ToString()) .AddField("❓ " + GetText(strs.question), question) diff --git a/src/NadekoBot/Modules/Games/Hangman/HangmanCommands.cs b/src/NadekoBot/Modules/Games/Hangman/HangmanCommands.cs index f0ae3f222..226099daa 100644 --- a/src/NadekoBot/Modules/Games/Hangman/HangmanCommands.cs +++ b/src/NadekoBot/Modules/Games/Hangman/HangmanCommands.cs @@ -62,7 +62,7 @@ public partial class Games var eb = GetEmbed(_eb, hangman); eb.WithDescription(GetText(strs.hangman_game_started)); - await ctx.Channel.EmbedAsync(eb); + await EmbedAsync(eb); } [Cmd] diff --git a/src/NadekoBot/Modules/Games/SpeedTyping/SpeedTypingCommands.cs b/src/NadekoBot/Modules/Games/SpeedTyping/SpeedTypingCommands.cs index 420768e7d..3a69913fc 100644 --- a/src/NadekoBot/Modules/Games/SpeedTyping/SpeedTypingCommands.cs +++ b/src/NadekoBot/Modules/Games/SpeedTyping/SpeedTypingCommands.cs @@ -97,7 +97,7 @@ public partial class Games .WithDescription(removed.Text.TrimTo(50)) .WithOkColor(); - await ctx.Channel.EmbedAsync(embed); + await EmbedAsync(embed); } } } \ No newline at end of file diff --git a/src/NadekoBot/Modules/Games/Trivia/Games.cs b/src/NadekoBot/Modules/Games/Trivia/Games.cs index b83d9aa3f..9490a6015 100644 --- a/src/NadekoBot/Modules/Games/Trivia/Games.cs +++ b/src/NadekoBot/Modules/Games/Trivia/Games.cs @@ -171,7 +171,7 @@ public partial class Games if (Uri.IsWellFormedUriString(question.ImageUrl, UriKind.Absolute)) questionEmbed.WithImageUrl(question.ImageUrl); - questionMessage = await ctx.Channel.EmbedAsync(questionEmbed); + questionMessage = await EmbedAsync(questionEmbed); } catch (HttpException ex) when (ex.HttpCode is HttpStatusCode.NotFound or HttpStatusCode.Forbidden or HttpStatusCode.BadRequest) @@ -194,7 +194,7 @@ public partial class Games if (Uri.IsWellFormedUriString(question.AnswerImageUrl, UriKind.Absolute)) embed.WithImageUrl(question.AnswerImageUrl); - await ctx.Channel.EmbedAsync(embed); + await EmbedAsync(embed); } catch { @@ -218,7 +218,7 @@ public partial class Games { try { - await ctx.Channel.EmbedAsync(_eb.Create(ctx) + await EmbedAsync(_eb.Create(ctx) .WithOkColor() .WithAuthor(GetText(strs.trivia_ended)) .WithTitle(GetText(strs.leaderboard)) @@ -252,7 +252,7 @@ public partial class Games if (isWin) { - await ctx.Channel.EmbedAsync(embed); + await EmbedAsync(embed); var reward = _gamesConfig.Data.Trivia.CurrencyReward; if (reward > 0) @@ -264,7 +264,7 @@ public partial class Games embed.WithDescription(GetText(strs.trivia_guess(user.Name, Format.Bold(question.Answer)))); - await ctx.Channel.EmbedAsync(embed); + await EmbedAsync(embed); } catch { diff --git a/src/NadekoBot/Modules/Help/Help.cs b/src/NadekoBot/Modules/Help/Help.cs index 02f5e3213..8f7e346ba 100644 --- a/src/NadekoBot/Modules/Help/Help.cs +++ b/src/NadekoBot/Modules/Help/Help.cs @@ -5,7 +5,6 @@ using NadekoBot.Modules.Help.Services; using Newtonsoft.Json; using System.Text; using System.Text.Json; -using NadekoBot.Common; using Nadeko.Common.Medusa; using JsonSerializer = System.Text.Json.JsonSerializer; @@ -294,7 +293,7 @@ public sealed class Help : NadekoModule } embed.WithFooter(GetText(strs.commands_instr(prefix))); - await ctx.Channel.EmbedAsync(embed); + await EmbedAsync(embed); } private async Task Group(ModuleInfo group) @@ -308,7 +307,7 @@ public sealed class Help : NadekoModule eb.AddField(prefix + cmd.Aliases.First(), cmd.RealSummary(_strings, _medusae, Culture, prefix)); } - await ctx.Channel.EmbedAsync(eb); + await EmbedAsync(eb); } [Cmd] diff --git a/src/NadekoBot/Modules/Help/HelpService.cs b/src/NadekoBot/Modules/Help/HelpService.cs index 8700e4b65..c58cb4bff 100644 --- a/src/NadekoBot/Modules/Help/HelpService.cs +++ b/src/NadekoBot/Modules/Help/HelpService.cs @@ -1,4 +1,3 @@ -using NadekoBot.Common; using NadekoBot.Common.ModuleBehaviors; namespace NadekoBot.Modules.Help.Services; diff --git a/src/NadekoBot/Modules/Medusae/Medusa.cs b/src/NadekoBot/Modules/Medusae/Medusa.cs index b0894bdb0..fa418cb27 100644 --- a/src/NadekoBot/Modules/Medusae/Medusa.cs +++ b/src/NadekoBot/Modules/Medusae/Medusa.cs @@ -77,7 +77,7 @@ public partial class Medusa : NadekoModule return; } - await ctx.Channel.EmbedAsync(_eb.Create(ctx) + await EmbedAsync(_eb.Create(ctx) .WithOkColor() .WithTitle(GetText(strs.loaded_medusae)) .WithDescription(loaded.Select(x => x.Name) @@ -177,7 +177,7 @@ public partial class Medusa : NadekoModule : cmdNames, true); - await ctx.Channel.EmbedAsync(eb); + await EmbedAsync(eb); return; } @@ -224,6 +224,6 @@ public partial class Medusa : NadekoModule """, true); } - await ctx.Channel.EmbedAsync(eb); + await EmbedAsync(eb); } } \ No newline at end of file diff --git a/src/NadekoBot/Modules/Music/CleanupCommands.cs b/src/NadekoBot/Modules/Music/CleanupCommands.cs deleted file mode 100644 index d018a7d82..000000000 --- a/src/NadekoBot/Modules/Music/CleanupCommands.cs +++ /dev/null @@ -1,24 +0,0 @@ -using LinqToDB; -using Nadeko.Bot.Db.Models; - -namespace NadekoBot.Modules.Music; - -public sealed partial class Music -{ - public class CleanupCommands : NadekoModule - { - private readonly DbService _db; - - public CleanupCommands(DbService db) - { - _db = db; - } - - public async Task DeletePlaylists() - { - await using var uow = _db.GetDbContext(); - await uow.Set().DeleteAsync(); - await uow.SaveChangesAsync(); - } - } -} \ No newline at end of file diff --git a/src/NadekoBot/Modules/Music/Music.cs b/src/NadekoBot/Modules/Music/Music.cs index 6dcb26212..9fdb26cf0 100644 --- a/src/NadekoBot/Modules/Music/Music.cs +++ b/src/NadekoBot/Modules/Music/Music.cs @@ -1,6 +1,6 @@ #nullable disable using NadekoBot.Modules.Music.Services; -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; namespace NadekoBot.Modules.Music; @@ -586,7 +586,7 @@ public sealed partial class Music : NadekoModule if (Uri.IsWellFormedUriString(track.Url, UriKind.Absolute)) embed.WithUrl(track.Url); - await ctx.Channel.EmbedAsync(embed); + await EmbedAsync(embed); } [Cmd] diff --git a/src/NadekoBot/Modules/Music/PlaylistCommands.cs b/src/NadekoBot/Modules/Music/PlaylistCommands.cs index 20d3704e8..5ef929d7e 100644 --- a/src/NadekoBot/Modules/Music/PlaylistCommands.cs +++ b/src/NadekoBot/Modules/Music/PlaylistCommands.cs @@ -1,7 +1,8 @@ #nullable disable +using LinqToDB; using NadekoBot.Db; using NadekoBot.Modules.Music.Services; -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; namespace NadekoBot.Modules.Music; @@ -55,7 +56,7 @@ public sealed partial class Music playlists.Select(r => GetText(strs.playlists(r.Id, r.Name, r.Author, r.Songs.Count))))) .WithOkColor(); - await ctx.Channel.EmbedAsync(embed); + await EmbedAsync(embed); } [Cmd] @@ -150,11 +151,11 @@ public sealed partial class Music await uow.SaveChangesAsync(); } - await ctx.Channel.EmbedAsync(_eb.Create() - .WithOkColor() - .WithTitle(GetText(strs.playlist_saved)) - .AddField(GetText(strs.name), name) - .AddField(GetText(strs.id), playlist.Id.ToString())); + await EmbedAsync(_eb.Create() + .WithOkColor() + .WithTitle(GetText(strs.playlist_saved)) + .AddField(GetText(strs.name), name) + .AddField(GetText(strs.id), playlist.Id.ToString())); } [Cmd] @@ -225,5 +226,14 @@ public sealed partial class Music _playlistLock.Release(); } } + + [Cmd] + [OwnerOnly] + public async Task DeletePlaylists() + { + await using var uow = _db.GetDbContext(); + await uow.Set().DeleteAsync(); + await uow.SaveChangesAsync(); + } } } \ No newline at end of file diff --git a/src/NadekoBot/Modules/Music/Services/IMusicService.cs b/src/NadekoBot/Modules/Music/Services/IMusicService.cs index e8abf08fd..3c647e168 100644 --- a/src/NadekoBot/Modules/Music/Services/IMusicService.cs +++ b/src/NadekoBot/Modules/Music/Services/IMusicService.cs @@ -1,4 +1,4 @@ -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; using System.Diagnostics.CodeAnalysis; namespace NadekoBot.Modules.Music.Services; diff --git a/src/NadekoBot/Modules/Music/Services/MusicService.cs b/src/NadekoBot/Modules/Music/Services/MusicService.cs index 314df27cf..60acfd458 100644 --- a/src/NadekoBot/Modules/Music/Services/MusicService.cs +++ b/src/NadekoBot/Modules/Music/Services/MusicService.cs @@ -1,5 +1,5 @@ using NadekoBot.Db; -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; using System.Diagnostics.CodeAnalysis; namespace NadekoBot.Modules.Music.Services; diff --git a/src/NadekoBot/Modules/Music/_common/IMusicPlayer.cs b/src/NadekoBot/Modules/Music/_common/IMusicPlayer.cs index dfcccb226..013530ebf 100644 --- a/src/NadekoBot/Modules/Music/_common/IMusicPlayer.cs +++ b/src/NadekoBot/Modules/Music/_common/IMusicPlayer.cs @@ -1,4 +1,4 @@ -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; namespace NadekoBot.Modules.Music; diff --git a/src/NadekoBot/Modules/Music/_common/Impl/MusicPlayer.cs b/src/NadekoBot/Modules/Music/_common/Impl/MusicPlayer.cs index 4a6504db6..76a2bb9e8 100644 --- a/src/NadekoBot/Modules/Music/_common/Impl/MusicPlayer.cs +++ b/src/NadekoBot/Modules/Music/_common/Impl/MusicPlayer.cs @@ -1,5 +1,5 @@ using Ayu.Discord.Voice; -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; using System.ComponentModel; using System.Diagnostics; using System.Runtime.CompilerServices; diff --git a/src/NadekoBot/Modules/Music/_common/Impl/MusicQueue.cs b/src/NadekoBot/Modules/Music/_common/Impl/MusicQueue.cs index b6b2abca7..a1c7d4531 100644 --- a/src/NadekoBot/Modules/Music/_common/Impl/MusicQueue.cs +++ b/src/NadekoBot/Modules/Music/_common/Impl/MusicQueue.cs @@ -1,6 +1,4 @@ -using Microsoft.EntityFrameworkCore.ChangeTracking; - -namespace NadekoBot.Modules.Music; +namespace NadekoBot.Modules.Music; public sealed partial class MusicQueue { diff --git a/src/NadekoBot/Modules/Music/_common/db/MusicPlayerSettingsExtensions.cs b/src/NadekoBot/Modules/Music/_common/db/MusicPlayerSettingsExtensions.cs index 427abf17e..3dc300c20 100644 --- a/src/NadekoBot/Modules/Music/_common/db/MusicPlayerSettingsExtensions.cs +++ b/src/NadekoBot/Modules/Music/_common/db/MusicPlayerSettingsExtensions.cs @@ -1,6 +1,6 @@ #nullable disable using Microsoft.EntityFrameworkCore; -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; namespace NadekoBot.Db; diff --git a/src/NadekoBot/Modules/Music/_common/db/MusicPlaylist.cs b/src/NadekoBot/Modules/Music/_common/db/MusicPlaylist.cs index d6069dbf0..ec51770ff 100644 --- a/src/NadekoBot/Modules/Music/_common/db/MusicPlaylist.cs +++ b/src/NadekoBot/Modules/Music/_common/db/MusicPlaylist.cs @@ -1,5 +1,5 @@ #nullable disable -namespace Nadeko.Bot.Db.Models; +namespace NadekoBot.Db.Models; public class MusicPlaylist : DbEntity { diff --git a/src/NadekoBot/Modules/Music/_common/db/MusicPlaylistExtensions.cs b/src/NadekoBot/Modules/Music/_common/db/MusicPlaylistExtensions.cs index 0a5dcd075..4e4c0ecbe 100644 --- a/src/NadekoBot/Modules/Music/_common/db/MusicPlaylistExtensions.cs +++ b/src/NadekoBot/Modules/Music/_common/db/MusicPlaylistExtensions.cs @@ -1,6 +1,6 @@ #nullable disable using Microsoft.EntityFrameworkCore; -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; namespace NadekoBot.Db; diff --git a/src/NadekoBot/Modules/Music/_common/db/MusicSettings.cs b/src/NadekoBot/Modules/Music/_common/db/MusicSettings.cs index 1167e9499..506ad8c1c 100644 --- a/src/NadekoBot/Modules/Music/_common/db/MusicSettings.cs +++ b/src/NadekoBot/Modules/Music/_common/db/MusicSettings.cs @@ -1,5 +1,5 @@ #nullable disable -namespace Nadeko.Bot.Db.Models; +namespace NadekoBot.Db.Models; public class MusicPlayerSettings { diff --git a/src/NadekoBot/Modules/Patronage/CurrencyRewardService.cs b/src/NadekoBot/Modules/Patronage/CurrencyRewardService.cs index 564343585..cf670cf93 100644 --- a/src/NadekoBot/Modules/Patronage/CurrencyRewardService.cs +++ b/src/NadekoBot/Modules/Patronage/CurrencyRewardService.cs @@ -4,7 +4,7 @@ using LinqToDB.EntityFrameworkCore; using NadekoBot.Modules.Gambling.Services; using NadekoBot.Modules.Patronage; using NadekoBot.Services.Currency; -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; namespace NadekoBot.Modules.Utility; diff --git a/src/NadekoBot/Modules/Patronage/PatronageCommands.cs b/src/NadekoBot/Modules/Patronage/PatronageCommands.cs index ebbf76396..cd7c8e254 100644 --- a/src/NadekoBot/Modules/Patronage/PatronageCommands.cs +++ b/src/NadekoBot/Modules/Patronage/PatronageCommands.cs @@ -49,7 +49,7 @@ public partial class Patronage : NadekoModule // // var eb = _eb.Create(ctx); // - // await ctx.Channel.EmbedAsync(eb.WithDescription($"Added **{days}** days of Patron benefits to {user.Mention}!") + // await EmbedAsync(eb.WithDescription($"Added **{days}** days of Patron benefits to {user.Mention}!") // .AddField("Tier", Format.Bold(patron.Tier.ToString()), true) // .AddField("Amount", $"**{patron.Amount / 100.0f:N1}$**", true) // .AddField("Until", TimestampTag.FromDateTime(patron.ValidThru.AddDays(1)))); diff --git a/src/NadekoBot/Modules/Patronage/PatronageService.cs b/src/NadekoBot/Modules/Patronage/PatronageService.cs index 49b3071d9..559b316f4 100644 --- a/src/NadekoBot/Modules/Patronage/PatronageService.cs +++ b/src/NadekoBot/Modules/Patronage/PatronageService.cs @@ -322,7 +322,7 @@ public sealed class PatronageService _ = ctx.WarningAsync(); if (ctx.Guild?.OwnerId == ctx.User.Id) - _ = ctx.Channel.EmbedAsync(eb); + _ = ctx.Channel.EmbedAsync(eb, replyTo: ctx.Message); else _ = ctx.User.EmbedAsync(eb); @@ -356,7 +356,7 @@ public sealed class PatronageService // send the message in the server in case it's the owner if (ctx.Guild?.OwnerId == ctx.User.Id) - _ = ctx.Channel.EmbedAsync(eb); + _ = ctx.Channel.EmbedAsync(eb, replyTo: ctx.Message); else _ = ctx.User.EmbedAsync(eb); diff --git a/src/NadekoBot/Modules/Permissions/Blacklist/BlacklistCommands.cs b/src/NadekoBot/Modules/Permissions/Blacklist/BlacklistCommands.cs index 42826f9d2..3a4938b5e 100644 --- a/src/NadekoBot/Modules/Permissions/Blacklist/BlacklistCommands.cs +++ b/src/NadekoBot/Modules/Permissions/Blacklist/BlacklistCommands.cs @@ -1,6 +1,6 @@ #nullable disable using NadekoBot.Modules.Permissions.Services; -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; namespace NadekoBot.Modules.Permissions; diff --git a/src/NadekoBot/Modules/Permissions/CommandCooldown/CmdCdsCommands.cs b/src/NadekoBot/Modules/Permissions/CommandCooldown/CmdCdsCommands.cs index 8b51f1d76..369abb394 100644 --- a/src/NadekoBot/Modules/Permissions/CommandCooldown/CmdCdsCommands.cs +++ b/src/NadekoBot/Modules/Permissions/CommandCooldown/CmdCdsCommands.cs @@ -4,7 +4,7 @@ using Microsoft.EntityFrameworkCore; using NadekoBot.Common.TypeReaders; using NadekoBot.Db; using NadekoBot.Modules.Permissions.Services; -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; namespace NadekoBot.Modules.Permissions; diff --git a/src/NadekoBot/Modules/Permissions/Filter/FilterCommands.cs b/src/NadekoBot/Modules/Permissions/Filter/FilterCommands.cs index 4189a1e2c..537dca5d3 100644 --- a/src/NadekoBot/Modules/Permissions/Filter/FilterCommands.cs +++ b/src/NadekoBot/Modules/Permissions/Filter/FilterCommands.cs @@ -2,7 +2,7 @@ using Microsoft.EntityFrameworkCore; using NadekoBot.Db; using NadekoBot.Modules.Permissions.Services; -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; namespace NadekoBot.Modules.Permissions; @@ -63,7 +63,7 @@ public partial class Permissions embed.AddField($"{GetEnabledEmoji(config.FilterInvitesEnabled)} Filter Invites", await GetChannelListAsync(config.FilterInvitesChannels)); - await ctx.Channel.EmbedAsync(embed); + await EmbedAsync(embed); } [Cmd] diff --git a/src/NadekoBot/Modules/Permissions/Filter/FilterService.cs b/src/NadekoBot/Modules/Permissions/Filter/FilterService.cs index ccb9ba8e4..b7c581d09 100644 --- a/src/NadekoBot/Modules/Permissions/Filter/FilterService.cs +++ b/src/NadekoBot/Modules/Permissions/Filter/FilterService.cs @@ -2,7 +2,7 @@ using Microsoft.EntityFrameworkCore; using NadekoBot.Common.ModuleBehaviors; using NadekoBot.Db; -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; namespace NadekoBot.Modules.Permissions.Services; diff --git a/src/NadekoBot/Modules/Permissions/GlobalPermissions/GlobalPermissionCommands.cs b/src/NadekoBot/Modules/Permissions/GlobalPermissions/GlobalPermissionCommands.cs index 907334f46..9625fd658 100644 --- a/src/NadekoBot/Modules/Permissions/GlobalPermissions/GlobalPermissionCommands.cs +++ b/src/NadekoBot/Modules/Permissions/GlobalPermissions/GlobalPermissionCommands.cs @@ -38,7 +38,7 @@ public partial class Permissions if (blockedCommands.Any()) embed.AddField(GetText(strs.blocked_commands), string.Join("\n", _service.BlockedCommands)); - await ctx.Channel.EmbedAsync(embed); + await EmbedAsync(embed); } [Cmd] diff --git a/src/NadekoBot/Modules/Permissions/PermissionCache.cs b/src/NadekoBot/Modules/Permissions/PermissionCache.cs index f459205e0..883953980 100644 --- a/src/NadekoBot/Modules/Permissions/PermissionCache.cs +++ b/src/NadekoBot/Modules/Permissions/PermissionCache.cs @@ -1,5 +1,5 @@ #nullable disable -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; namespace NadekoBot.Modules.Permissions.Common; diff --git a/src/NadekoBot/Modules/Permissions/PermissionExtensions.cs b/src/NadekoBot/Modules/Permissions/PermissionExtensions.cs index e23fc436b..b798afbd1 100644 --- a/src/NadekoBot/Modules/Permissions/PermissionExtensions.cs +++ b/src/NadekoBot/Modules/Permissions/PermissionExtensions.cs @@ -1,5 +1,5 @@ #nullable disable -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; namespace NadekoBot.Modules.Permissions.Common; diff --git a/src/NadekoBot/Modules/Permissions/Permissions.cs b/src/NadekoBot/Modules/Permissions/Permissions.cs index 009fa96ea..91aeb61d1 100644 --- a/src/NadekoBot/Modules/Permissions/Permissions.cs +++ b/src/NadekoBot/Modules/Permissions/Permissions.cs @@ -4,7 +4,7 @@ using NadekoBot.Common.TypeReaders.Models; using NadekoBot.Db; using NadekoBot.Modules.Permissions.Common; using NadekoBot.Modules.Permissions.Services; -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; namespace NadekoBot.Modules.Permissions; @@ -115,7 +115,7 @@ public partial class Permissions : NadekoModule return str; })); - await ctx.Channel.SendMessageAsync(toSend); + await SendConfirmAsync(toSend); } [Cmd] diff --git a/src/NadekoBot/Modules/Permissions/PermissionsService.cs b/src/NadekoBot/Modules/Permissions/PermissionsService.cs index 866cef774..240350a50 100644 --- a/src/NadekoBot/Modules/Permissions/PermissionsService.cs +++ b/src/NadekoBot/Modules/Permissions/PermissionsService.cs @@ -3,7 +3,7 @@ using Microsoft.EntityFrameworkCore; using NadekoBot.Common.ModuleBehaviors; using NadekoBot.Db; using NadekoBot.Modules.Permissions.Common; -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; namespace NadekoBot.Modules.Permissions.Services; diff --git a/src/NadekoBot/Modules/Searches/Anime/AnimeSearchCommands.cs b/src/NadekoBot/Modules/Searches/Anime/AnimeSearchCommands.cs index 7bb3489cd..6c3a6f7bf 100644 --- a/src/NadekoBot/Modules/Searches/Anime/AnimeSearchCommands.cs +++ b/src/NadekoBot/Modules/Searches/Anime/AnimeSearchCommands.cs @@ -35,7 +35,7 @@ public partial class Searches // .AddField(GetText(strs.genres), string.Join(" ", novelData.Genres.Any() ? novelData.Genres : new[] { "none" }), true) // .WithFooter($"{GetText(strs.score)} {novelData.Score}"); // - // await ctx.Channel.EmbedAsync(embed); + // await EmbedAsync(embed); // } [Cmd] @@ -110,7 +110,7 @@ public partial class Searches .WithUrl(fullQueryLink) .WithImageUrl(imageUrl); - await ctx.Channel.EmbedAsync(embed); + await EmbedAsync(embed); } private static string MalInfoToEmoji(string info) @@ -165,7 +165,7 @@ public partial class Searches string.Join(",\n", animeData.Genres.Any() ? animeData.Genres : new[] { "none" }), true) .WithFooter($"{GetText(strs.score)} {animeData.AverageScore} / 100"); - await ctx.Channel.EmbedAsync(embed); + await EmbedAsync(embed); } [Cmd] @@ -198,7 +198,7 @@ public partial class Searches true) .WithFooter($"{GetText(strs.score)} {mangaData.AverageScore} / 100"); - await ctx.Channel.EmbedAsync(embed); + await EmbedAsync(embed); } } } \ No newline at end of file diff --git a/src/NadekoBot/Modules/Searches/Crypto/CryptoCommands.cs b/src/NadekoBot/Modules/Searches/Crypto/CryptoCommands.cs index 68ecf0868..ea3c3960c 100644 --- a/src/NadekoBot/Modules/Searches/Crypto/CryptoCommands.cs +++ b/src/NadekoBot/Modules/Searches/Crypto/CryptoCommands.cs @@ -92,7 +92,7 @@ public partial class Searches // .AddField("Change 200d", $"{sign200}{change200}", true) .WithFooter(stock.Exchange); - var message = await ctx.Channel.EmbedAsync(eb); + var message = await EmbedAsync(eb); await using var imageData = await stockImageTask; if (imageData is null) return; diff --git a/src/NadekoBot/Modules/Searches/Feeds/FeedCommands.cs b/src/NadekoBot/Modules/Searches/Feeds/FeedCommands.cs index 9d45ca950..98132d77c 100644 --- a/src/NadekoBot/Modules/Searches/Feeds/FeedCommands.cs +++ b/src/NadekoBot/Modules/Searches/Feeds/FeedCommands.cs @@ -117,7 +117,7 @@ public partial class Searches if (!feeds.Any()) { - await ctx.Channel.EmbedAsync(_eb.Create().WithOkColor().WithDescription(GetText(strs.feed_no_feed))); + await EmbedAsync(_eb.Create().WithOkColor().WithDescription(GetText(strs.feed_no_feed))); return; } diff --git a/src/NadekoBot/Modules/Searches/Feeds/FeedsService.cs b/src/NadekoBot/Modules/Searches/Feeds/FeedsService.cs index 562af4c7b..84f45d9f0 100644 --- a/src/NadekoBot/Modules/Searches/Feeds/FeedsService.cs +++ b/src/NadekoBot/Modules/Searches/Feeds/FeedsService.cs @@ -5,7 +5,7 @@ using LinqToDB; using LinqToDB.EntityFrameworkCore; using Microsoft.EntityFrameworkCore; using NadekoBot.Db; -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; namespace NadekoBot.Modules.Searches.Services; diff --git a/src/NadekoBot/Modules/Searches/OsuCommands.cs b/src/NadekoBot/Modules/Searches/OsuCommands.cs index 60c568a9e..5f9c98e28 100644 --- a/src/NadekoBot/Modules/Searches/OsuCommands.cs +++ b/src/NadekoBot/Modules/Searches/OsuCommands.cs @@ -49,7 +49,7 @@ public partial class Searches var obj = objs[0]; var userId = obj.UserId; - await ctx.Channel.EmbedAsync(_eb.Create() + await EmbedAsync(_eb.Create() .WithOkColor() .WithTitle($"osu! {smode} profile for {user}") .WithThumbnailUrl($"https://a.ppy.sh/{userId}") @@ -109,7 +109,7 @@ public partial class Searches .AddField("Playcount", userStats.Playcount, true) .AddField("Level", userStats.Level, true); - await ctx.Channel.EmbedAsync(embed); + await EmbedAsync(embed); } [Cmd] @@ -172,7 +172,7 @@ public partial class Searches foreach (var (title, desc) in mapData.Where(x => x != default)) eb.AddField(title, desc); - await ctx.Channel.EmbedAsync(eb); + await EmbedAsync(eb); } //https://osu.ppy.sh/wiki/Accuracy diff --git a/src/NadekoBot/Modules/Searches/PathOfExileCommands.cs b/src/NadekoBot/Modules/Searches/PathOfExileCommands.cs index fe801768e..18ee403b1 100644 --- a/src/NadekoBot/Modules/Searches/PathOfExileCommands.cs +++ b/src/NadekoBot/Modules/Searches/PathOfExileCommands.cs @@ -137,7 +137,7 @@ public partial class Searches { var embed = _eb.Create().WithDescription(GetText(strs.account_not_found)).WithErrorColor(); - await ctx.Channel.EmbedAsync(embed); + await EmbedAsync(embed); return; } @@ -192,7 +192,7 @@ public partial class Searches { var eembed = _eb.Create().WithDescription(GetText(strs.leagues_not_found)).WithErrorColor(); - await ctx.Channel.EmbedAsync(eembed); + await EmbedAsync(eembed); return; } @@ -215,7 +215,7 @@ public partial class Searches embed.WithDescription(sb.ToString()); - await ctx.Channel.EmbedAsync(embed); + await EmbedAsync(embed); } [Cmd] @@ -281,13 +281,13 @@ public partial class Searches .AddField($"{cleanConvert} Equivalent", chaosEquivalent / conversionEquivalent, true) .WithOkColor(); - await ctx.Channel.EmbedAsync(embed); + await EmbedAsync(embed); } catch { var embed = _eb.Create().WithDescription(GetText(strs.ninja_not_found)).WithErrorColor(); - await ctx.Channel.EmbedAsync(embed); + await EmbedAsync(embed); } } diff --git a/src/NadekoBot/Modules/Searches/PlaceCommands.cs b/src/NadekoBot/Modules/Searches/PlaceCommands.cs deleted file mode 100644 index 6cbd79409..000000000 --- a/src/NadekoBot/Modules/Searches/PlaceCommands.cs +++ /dev/null @@ -1,71 +0,0 @@ -#nullable disable -namespace NadekoBot.Modules.Searches; - -public partial class Searches -{ - [Group] - public partial class PlaceCommands : NadekoModule - { - public enum PlaceType - { - Cage, //http://www.placecage.com - Steven, //http://www.stevensegallery.com - Beard, //http://placebeard.it - Fill, //http://www.fillmurray.com - Bear, //https://www.placebear.com - Kitten, //http://placekitten.com - Bacon, //http://baconmockup.com - Xoart //http://xoart.link - } - - private static readonly string _typesStr = string.Join(", ", Enum.GetNames()); - - [Cmd] - public async Task Placelist() - => await SendConfirmAsync(GetText(strs.list_of_place_tags(prefix)), _typesStr); - - [Cmd] - public async Task Place(PlaceType placeType, uint width = 0, uint height = 0) - { - var url = string.Empty; - switch (placeType) - { - case PlaceType.Cage: - url = "http://www.placecage.com"; - break; - case PlaceType.Steven: - url = "http://www.stevensegallery.com"; - break; - case PlaceType.Beard: - url = "http://placebeard.it"; - break; - case PlaceType.Fill: - url = "http://www.fillmurray.com"; - break; - case PlaceType.Bear: - url = "https://www.placebear.com"; - break; - case PlaceType.Kitten: - url = "http://placekitten.com"; - break; - case PlaceType.Bacon: - url = "http://baconmockup.com"; - break; - case PlaceType.Xoart: - url = "http://xoart.link"; - break; - } - - var rng = new NadekoRandom(); - if (width is <= 0 or > 1000) - width = (uint)rng.Next(250, 850); - - if (height is <= 0 or > 1000) - height = (uint)rng.Next(250, 850); - - url += $"/{width}/{height}"; - - await ctx.Channel.SendMessageAsync(url); - } - } -} \ No newline at end of file diff --git a/src/NadekoBot/Modules/Searches/PokemonSearchCommands.cs b/src/NadekoBot/Modules/Searches/PokemonSearchCommands.cs index 0aa2b61a5..d16568366 100644 --- a/src/NadekoBot/Modules/Searches/PokemonSearchCommands.cs +++ b/src/NadekoBot/Modules/Searches/PokemonSearchCommands.cs @@ -25,7 +25,7 @@ public partial class Searches if (kvp.Key.ToUpperInvariant() == pokemon.ToUpperInvariant()) { var p = kvp.Value; - await ctx.Channel.EmbedAsync(_eb.Create() + await EmbedAsync(_eb.Create() .WithOkColor() .WithTitle(kvp.Key.ToTitleCase()) .WithDescription(p.BaseStats.ToString()) @@ -55,7 +55,7 @@ public partial class Searches { if (kvp.Key.ToUpperInvariant() == ability) { - await ctx.Channel.EmbedAsync(_eb.Create() + await EmbedAsync(_eb.Create() .WithOkColor() .WithTitle(kvp.Value.Name) .WithDescription(string.IsNullOrWhiteSpace(kvp.Value.Desc) diff --git a/src/NadekoBot/Modules/Searches/Search/SearchCommands.cs b/src/NadekoBot/Modules/Searches/Search/SearchCommands.cs index 4dc568829..4d5c01bab 100644 --- a/src/NadekoBot/Modules/Searches/Search/SearchCommands.cs +++ b/src/NadekoBot/Modules/Searches/Search/SearchCommands.cs @@ -68,7 +68,7 @@ public partial class Searches GetText(strs.results_in(data.Info.TotalResults, data.Info.SearchTime)), "https://i.imgur.com/G46fm8J.png"); - await ctx.Channel.EmbedAsync(embed); + await EmbedAsync(embed); } [Cmd] @@ -121,7 +121,7 @@ public partial class Searches embeds.Add(CreateEmbed(entry)); } - await ctx.Channel.EmbedAsync(null, embeds: embeds); + await EmbedAsync(null, embeds: embeds); } private TypedKey GetYtCacheKey(string query) @@ -196,7 +196,7 @@ public partial class Searches // .WithDescription($"{GetText(strs.search_for)} **{query}**\n\n" + descStr) // .WithOkColor(); // -// await ctx.Channel.EmbedAsync(embed); +// await EmbedAsync(embed); // } } } \ No newline at end of file diff --git a/src/NadekoBot/Modules/Searches/Searches.cs b/src/NadekoBot/Modules/Searches/Searches.cs index 659a7ea6a..50c5c21ff 100644 --- a/src/NadekoBot/Modules/Searches/Searches.cs +++ b/src/NadekoBot/Modules/Searches/Searches.cs @@ -93,7 +93,7 @@ public partial class Searches : NadekoModule $"https://openweathermap.org/img/w/{data.Weather[0].Icon}.png"); } - await ctx.Channel.EmbedAsync(embed); + await EmbedAsync(embed); } [Cmd] @@ -159,7 +159,7 @@ public partial class Searches : NadekoModule return; } - await ctx.Channel.EmbedAsync(_eb.Create() + await EmbedAsync(_eb.Create() .WithOkColor() .WithTitle(movie.Title) .WithUrl($"https://www.imdb.com/title/{movie.ImdbId}/") @@ -189,7 +189,7 @@ public partial class Searches : NadekoModule private Task InternalRandomImage(SearchesService.ImageTag tag) { var url = _service.GetRandomImageUrl(tag); - return ctx.Channel.EmbedAsync(_eb.Create().WithOkColor().WithImageUrl(url)); + return EmbedAsync(_eb.Create().WithOkColor().WithImageUrl(url)); } [Cmd] @@ -239,7 +239,7 @@ public partial class Searches : NadekoModule } } - await ctx.Channel.EmbedAsync(_eb.Create() + await EmbedAsync(_eb.Create() .WithOkColor() .AddField(GetText(strs.original_url), $"<{query}>") .AddField(GetText(strs.short_url), $"<{shortLink}>")); @@ -269,7 +269,7 @@ public partial class Searches : NadekoModule .AddField(GetText(strs.cost), card.ManaCost, true) .AddField(GetText(strs.types), card.Types, true); - await ctx.Channel.EmbedAsync(embed); + await EmbedAsync(embed); } [Cmd] @@ -298,7 +298,7 @@ public partial class Searches : NadekoModule if (!string.IsNullOrWhiteSpace(card.Flavor)) embed.WithDescription(card.Flavor); - await ctx.Channel.EmbedAsync(embed); + await EmbedAsync(embed); } [Cmd] @@ -468,7 +468,7 @@ public partial class Searches : NadekoModule var avatarUrl = usr.RealAvatarUrl(2048); - await ctx.Channel.EmbedAsync( + await EmbedAsync( _eb.Create() .WithOkColor() .AddField("Username", usr.ToString()) @@ -536,7 +536,7 @@ public partial class Searches : NadekoModule else { var v = obj.Verses[0]; - await ctx.Channel.EmbedAsync(_eb.Create() + await EmbedAsync(_eb.Create() .WithOkColor() .WithTitle($"{v.BookName} {v.Chapter}:{v.Verse}") .WithDescription(v.Text)); diff --git a/src/NadekoBot/Modules/Searches/SearchesService.cs b/src/NadekoBot/Modules/Searches/SearchesService.cs index 7fc964051..984e5f7f9 100644 --- a/src/NadekoBot/Modules/Searches/SearchesService.cs +++ b/src/NadekoBot/Modules/Searches/SearchesService.cs @@ -8,9 +8,6 @@ using SixLabors.ImageSharp; using SixLabors.ImageSharp.Drawing.Processing; using SixLabors.ImageSharp.PixelFormats; using SixLabors.ImageSharp.Processing; -using System.Collections; -using System.Net.Http.Json; -using System.Text.Json.Serialization; using Color = SixLabors.ImageSharp.Color; using Image = SixLabors.ImageSharp.Image; diff --git a/src/NadekoBot/Modules/Searches/StreamNotification/StreamNotificationCommands.cs b/src/NadekoBot/Modules/Searches/StreamNotification/StreamNotificationCommands.cs index 8e9d0df21..651394f03 100644 --- a/src/NadekoBot/Modules/Searches/StreamNotification/StreamNotificationCommands.cs +++ b/src/NadekoBot/Modules/Searches/StreamNotification/StreamNotificationCommands.cs @@ -29,7 +29,7 @@ public partial class Searches } var embed = _service.GetEmbed(ctx.Guild.Id, data); - await ctx.Channel.EmbedAsync(embed, GetText(strs.stream_tracked)); + await EmbedAsync(embed, GetText(strs.stream_tracked)); } [Cmd] diff --git a/src/NadekoBot/Modules/Searches/StreamNotification/StreamNotificationService.cs b/src/NadekoBot/Modules/Searches/StreamNotification/StreamNotificationService.cs index 38c7edf51..7a37fa1cc 100644 --- a/src/NadekoBot/Modules/Searches/StreamNotification/StreamNotificationService.cs +++ b/src/NadekoBot/Modules/Searches/StreamNotification/StreamNotificationService.cs @@ -1,12 +1,10 @@ #nullable disable using Microsoft.EntityFrameworkCore; -using NadekoBot.Common; using NadekoBot.Common.ModuleBehaviors; using NadekoBot.Db; using NadekoBot.Db.Models; using NadekoBot.Modules.Searches.Common; using NadekoBot.Modules.Searches.Common.StreamNotifications; -using Nadeko.Bot.Db.Models; namespace NadekoBot.Modules.Searches.Services; diff --git a/src/NadekoBot/Modules/Searches/Translate/TranslateService.cs b/src/NadekoBot/Modules/Searches/Translate/TranslateService.cs index 663031a8d..e2e575109 100644 --- a/src/NadekoBot/Modules/Searches/Translate/TranslateService.cs +++ b/src/NadekoBot/Modules/Searches/Translate/TranslateService.cs @@ -3,7 +3,7 @@ using LinqToDB; using LinqToDB.EntityFrameworkCore; using Microsoft.EntityFrameworkCore; using NadekoBot.Common.ModuleBehaviors; -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; using System.Net; namespace NadekoBot.Modules.Searches; diff --git a/src/NadekoBot/Modules/Searches/Translate/TranslatorCommands.cs b/src/NadekoBot/Modules/Searches/Translate/TranslatorCommands.cs index 761e3ec81..310787c44 100644 --- a/src/NadekoBot/Modules/Searches/Translate/TranslatorCommands.cs +++ b/src/NadekoBot/Modules/Searches/Translate/TranslatorCommands.cs @@ -22,7 +22,7 @@ public partial class Searches var embed = _eb.Create(ctx).WithOkColor().AddField(from, text).AddField(to, translation); - await ctx.Channel.EmbedAsync(embed); + await EmbedAsync(embed); } catch { @@ -89,7 +89,7 @@ public partial class Searches eb.AddField("󠀁", chunk.Join("\n"), isInline: true); } - await ctx.Channel.EmbedAsync(eb); + await EmbedAsync(eb); } } } \ No newline at end of file diff --git a/src/NadekoBot/Modules/Searches/XkcdCommands.cs b/src/NadekoBot/Modules/Searches/XkcdCommands.cs index 8aeed026a..24d14b8bf 100644 --- a/src/NadekoBot/Modules/Searches/XkcdCommands.cs +++ b/src/NadekoBot/Modules/Searches/XkcdCommands.cs @@ -31,7 +31,7 @@ public partial class Searches .WithAuthor(comic.Title, "https://xkcd.com/s/919f27.ico", $"{XKCD_URL}/{comic.Num}") .AddField(GetText(strs.comic_number), comic.Num.ToString(), true) .AddField(GetText(strs.date), $"{comic.Month}/{comic.Year}", true); - var sent = await ctx.Channel.EmbedAsync(embed); + var sent = await EmbedAsync(embed); await Task.Delay(10000); @@ -67,7 +67,7 @@ public partial class Searches .AddField(GetText(strs.comic_number), comic.Num.ToString(), true) .AddField(GetText(strs.date), $"{comic.Month}/{comic.Year}", true); - var sent = await ctx.Channel.EmbedAsync(embed); + var sent = await EmbedAsync(embed); await Task.Delay(10000); diff --git a/src/NadekoBot/Modules/Searches/_common/AtlExtensions.cs b/src/NadekoBot/Modules/Searches/_common/AtlExtensions.cs index 7f10a9c85..bd8627962 100644 --- a/src/NadekoBot/Modules/Searches/_common/AtlExtensions.cs +++ b/src/NadekoBot/Modules/Searches/_common/AtlExtensions.cs @@ -1,7 +1,7 @@ #nullable disable using LinqToDB.EntityFrameworkCore; using Microsoft.EntityFrameworkCore; -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; namespace NadekoBot.Modules.Searches; diff --git a/src/NadekoBot/Modules/Utility/Alias/AliasCommands.cs b/src/NadekoBot/Modules/Utility/Alias/AliasCommands.cs index 1245d3ff3..8ad0402e0 100644 --- a/src/NadekoBot/Modules/Utility/Alias/AliasCommands.cs +++ b/src/NadekoBot/Modules/Utility/Alias/AliasCommands.cs @@ -2,7 +2,7 @@ using Microsoft.EntityFrameworkCore; using NadekoBot.Db; using NadekoBot.Modules.Utility.Services; -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; namespace NadekoBot.Modules.Utility; diff --git a/src/NadekoBot/Modules/Utility/Alias/AliasService.cs b/src/NadekoBot/Modules/Utility/Alias/AliasService.cs index 7ccfcb45e..7bc6e0539 100644 --- a/src/NadekoBot/Modules/Utility/Alias/AliasService.cs +++ b/src/NadekoBot/Modules/Utility/Alias/AliasService.cs @@ -2,7 +2,7 @@ using Microsoft.EntityFrameworkCore; using NadekoBot.Common.ModuleBehaviors; using NadekoBot.Db; -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; namespace NadekoBot.Modules.Utility.Services; diff --git a/src/NadekoBot/Modules/Utility/ConfigCommands.cs b/src/NadekoBot/Modules/Utility/ConfigCommands.cs index af1f6aee5..04da91fce 100644 --- a/src/NadekoBot/Modules/Utility/ConfigCommands.cs +++ b/src/NadekoBot/Modules/Utility/ConfigCommands.cs @@ -25,7 +25,7 @@ public partial class Utility .WithDescription(GetText(strs.config_not_found(Format.Code(name)))) .AddField(GetText(strs.config_list), string.Join("\n", configNames)); - await ctx.Channel.EmbedAsync(embed); + await EmbedAsync(embed); return; } @@ -48,7 +48,7 @@ public partial class Utility .WithTitle(GetText(strs.config_list)) .WithDescription(string.Join("\n", configNames)); - await ctx.Channel.EmbedAsync(embed); + await EmbedAsync(embed); return; } @@ -63,7 +63,7 @@ public partial class Utility .WithDescription(GetText(strs.config_not_found(Format.Code(name)))) .AddField(GetText(strs.config_list), string.Join("\n", configNames)); - await ctx.Channel.EmbedAsync(embed); + await EmbedAsync(embed); return; } @@ -78,7 +78,7 @@ public partial class Utility var embed = _eb.Create().WithOkColor().WithTitle($"⚙️ {setting.Name}").WithDescription(propStrings); - await ctx.Channel.EmbedAsync(embed); + await EmbedAsync(embed); return; } // if the prop is invalid -> print error and list of @@ -94,7 +94,7 @@ public partial class Utility strs.config_prop_not_found(Format.Code(prop), Format.Code(name)))) .AddField($"⚙️ {setting.Name}", propStrings); - await ctx.Channel.EmbedAsync(propErrorEmbed); + await EmbedAsync(propErrorEmbed); return; } @@ -120,7 +120,7 @@ public partial class Utility if (!string.IsNullOrWhiteSpace(comment)) embed.AddField("Comment", comment); - await ctx.Channel.EmbedAsync(embed); + await EmbedAsync(embed); return; } diff --git a/src/NadekoBot/Modules/Utility/Giveaway/GiveawayCommands.cs b/src/NadekoBot/Modules/Utility/Giveaway/GiveawayCommands.cs index 2147e6ad4..66d076da2 100644 --- a/src/NadekoBot/Modules/Utility/Giveaway/GiveawayCommands.cs +++ b/src/NadekoBot/Modules/Utility/Giveaway/GiveawayCommands.cs @@ -22,7 +22,7 @@ public partial class Utility .WithTitle(GetText(strs.giveaway_starting)) .WithDescription(message); - var startingMsg = await ctx.Channel.EmbedAsync(eb); + var startingMsg = await EmbedAsync(eb); var maybeId = await _service.StartGiveawayAsync(ctx.Guild.Id, ctx.Channel.Id, startingMsg.Id, duration, message); @@ -112,7 +112,7 @@ public partial class Utility eb.AddField($"id: {new kwum(g.Id)}", g.Message, true); } - await ctx.Channel.EmbedAsync(eb); + await EmbedAsync(eb); } } } \ No newline at end of file diff --git a/src/NadekoBot/Modules/Utility/Info/InfoCommands.cs b/src/NadekoBot/Modules/Utility/Info/InfoCommands.cs index 5f15947f7..4cdde2f77 100644 --- a/src/NadekoBot/Modules/Utility/Info/InfoCommands.cs +++ b/src/NadekoBot/Modules/Utility/Info/InfoCommands.cs @@ -75,7 +75,7 @@ public partial class Utility string.Join(" ", guild.Emotes.Shuffle().Take(20).Select(e => $"{e.Name} {e}")).TrimTo(1020)); } - await ctx.Channel.EmbedAsync(embed); + await EmbedAsync(embed); } [Cmd] @@ -94,7 +94,7 @@ public partial class Utility .AddField(GetText(strs.created_at), $"{createdAt:dd.MM.yyyy HH:mm}", true) .AddField(GetText(strs.users), usercount.ToString(), true) .WithOkColor(); - await ctx.Channel.EmbedAsync(embed); + await EmbedAsync(embed); } [Cmd] @@ -121,7 +121,7 @@ public partial class Utility if (!string.IsNullOrWhiteSpace(role.GetIconUrl())) embed = embed.WithThumbnailUrl(role.GetIconUrl()); - await ctx.Channel.EmbedAsync(embed); + await EmbedAsync(embed); } [Cmd] @@ -165,7 +165,7 @@ public partial class Utility if (av.IsAbsoluteUri) embed.WithThumbnailUrl(av.ToString()); - await ctx.Channel.EmbedAsync(embed); + await EmbedAsync(embed); } private DateTimeOffset? GetJoinedAt(IGuildUser user) @@ -204,7 +204,7 @@ public partial class Utility kvp.Value))); } - await ctx.Channel.EmbedAsync(_eb.Create() + await EmbedAsync(_eb.Create() .WithTitle(GetText(strs.activity_page(page + 1))) .WithOkColor() .WithFooter(GetText( diff --git a/src/NadekoBot/Modules/Utility/Quote/QuoteCommands.cs b/src/NadekoBot/Modules/Utility/Quote/QuoteCommands.cs index bc83601c2..149c423e0 100644 --- a/src/NadekoBot/Modules/Utility/Quote/QuoteCommands.cs +++ b/src/NadekoBot/Modules/Utility/Quote/QuoteCommands.cs @@ -1,8 +1,7 @@ #nullable disable warnings -using NadekoBot.Common; using NadekoBot.Common.Yml; using NadekoBot.Db; -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; using YamlDotNet.Serialization; using YamlDotNet.Serialization.NamingConventions; @@ -105,7 +104,7 @@ public partial class Utility var text = SmartText.CreateFrom(quote.Text); text = await repSvc.ReplaceAsync(text, repCtx); - await ctx.Channel.SendAsync($"`#{quote.Id}` 📣 " + text, true); + await ctx.Channel.SendAsync($"`#{quote.Id}` 📣 " + text, true, replyTo: ctx.Message); } [Cmd] @@ -214,7 +213,7 @@ public partial class Utility var text = SmartText.CreateFrom(quote.Text); text = await repSvc.ReplaceAsync(text, repCtx); - await ctx.Channel.SendAsync(infoText + text, true); + await ctx.Channel.SendAsync(infoText + text, true, replyTo: ctx.Message); } [Cmd] diff --git a/src/NadekoBot/Modules/Utility/Quote/QuoteService.cs b/src/NadekoBot/Modules/Utility/Quote/QuoteService.cs index 0a38d35a9..aa15e020e 100644 --- a/src/NadekoBot/Modules/Utility/Quote/QuoteService.cs +++ b/src/NadekoBot/Modules/Utility/Quote/QuoteService.cs @@ -1,7 +1,7 @@ #nullable disable warnings using LinqToDB; using LinqToDB.EntityFrameworkCore; -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; namespace NadekoBot.Modules.Utility; diff --git a/src/NadekoBot/Modules/Utility/Remind/RemindCommands.cs b/src/NadekoBot/Modules/Utility/Remind/RemindCommands.cs index 02be487f5..06bd40cba 100644 --- a/src/NadekoBot/Modules/Utility/Remind/RemindCommands.cs +++ b/src/NadekoBot/Modules/Utility/Remind/RemindCommands.cs @@ -2,7 +2,7 @@ using Humanizer.Localisation; using NadekoBot.Db; using NadekoBot.Modules.Utility.Services; -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; namespace NadekoBot.Modules.Utility; @@ -127,7 +127,7 @@ public partial class Utility embed.WithDescription(GetText(strs.reminders_none)); embed.AddPaginatedFooter(page + 1, null); - await ctx.Channel.EmbedAsync(embed); + await EmbedAsync(embed); } [Cmd] diff --git a/src/NadekoBot/Modules/Utility/Remind/RemindService.cs b/src/NadekoBot/Modules/Utility/Remind/RemindService.cs index e82a8a77a..7b1604542 100644 --- a/src/NadekoBot/Modules/Utility/Remind/RemindService.cs +++ b/src/NadekoBot/Modules/Utility/Remind/RemindService.cs @@ -3,7 +3,7 @@ using System.Globalization; using LinqToDB; using LinqToDB.EntityFrameworkCore; using NadekoBot.Common.ModuleBehaviors; -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; using System.Text.RegularExpressions; namespace NadekoBot.Modules.Utility.Services; diff --git a/src/NadekoBot/Modules/Utility/Repeater/RepeatCommands.cs b/src/NadekoBot/Modules/Utility/Repeater/RepeatCommands.cs index d572f60a4..56b2df992 100644 --- a/src/NadekoBot/Modules/Utility/Repeater/RepeatCommands.cs +++ b/src/NadekoBot/Modules/Utility/Repeater/RepeatCommands.cs @@ -1,5 +1,4 @@ -using LinqToDB.Common; -using NadekoBot.Common.TypeReaders; +using NadekoBot.Common.TypeReaders; using NadekoBot.Common.TypeReaders.Models; using NadekoBot.Modules.Utility.Services; @@ -65,7 +64,7 @@ public partial class Utility } var description = GetRepeaterInfoString(removed); - await ctx.Channel.EmbedAsync(_eb.Create() + await EmbedAsync(_eb.Create() .WithOkColor() .WithTitle(GetText(strs.repeater_removed(index + 1))) .WithDescription(description)); @@ -188,7 +187,7 @@ public partial class Utility } var description = GetRepeaterInfoString(runner); - await ctx.Channel.EmbedAsync(_eb.Create() + await EmbedAsync(_eb.Create() .WithOkColor() .WithTitle(GetText(strs.repeater_created)) .WithDescription(description)); @@ -216,7 +215,7 @@ public partial class Utility embed.AddField(name, description); } - await ctx.Channel.EmbedAsync(embed); + await EmbedAsync(embed); } private string GetRepeaterInfoString(RunningRepeater runner) diff --git a/src/NadekoBot/Modules/Utility/Repeater/RepeaterService.cs b/src/NadekoBot/Modules/Utility/Repeater/RepeaterService.cs index 8c7f90351..411642df1 100644 --- a/src/NadekoBot/Modules/Utility/Repeater/RepeaterService.cs +++ b/src/NadekoBot/Modules/Utility/Repeater/RepeaterService.cs @@ -1,9 +1,8 @@ using LinqToDB; using LinqToDB.EntityFrameworkCore; using Microsoft.EntityFrameworkCore; -using NadekoBot.Common; using NadekoBot.Common.ModuleBehaviors; -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; namespace NadekoBot.Modules.Utility.Services; diff --git a/src/NadekoBot/Modules/Utility/Repeater/RunningRepeater.cs b/src/NadekoBot/Modules/Utility/Repeater/RunningRepeater.cs index 21d9a1796..a19989f1d 100644 --- a/src/NadekoBot/Modules/Utility/Repeater/RunningRepeater.cs +++ b/src/NadekoBot/Modules/Utility/Repeater/RunningRepeater.cs @@ -1,5 +1,5 @@ #nullable disable -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; namespace NadekoBot.Modules.Utility.Services; diff --git a/src/NadekoBot/Modules/Utility/StreamRole/StreamRoleService.cs b/src/NadekoBot/Modules/Utility/StreamRole/StreamRoleService.cs index 417438d66..adee9f06c 100644 --- a/src/NadekoBot/Modules/Utility/StreamRole/StreamRoleService.cs +++ b/src/NadekoBot/Modules/Utility/StreamRole/StreamRoleService.cs @@ -2,7 +2,7 @@ using NadekoBot.Db; using NadekoBot.Modules.Utility.Common; using NadekoBot.Modules.Utility.Common.Exceptions; -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; using System.Net; namespace NadekoBot.Modules.Utility.Services; diff --git a/src/NadekoBot/Modules/Utility/UnitConversion/UnitConversionCommands.cs b/src/NadekoBot/Modules/Utility/UnitConversion/UnitConversionCommands.cs index a6baf19ec..e3d92d158 100644 --- a/src/NadekoBot/Modules/Utility/UnitConversion/UnitConversionCommands.cs +++ b/src/NadekoBot/Modules/Utility/UnitConversion/UnitConversionCommands.cs @@ -22,7 +22,7 @@ public partial class Utility string.Join(", ", g.Select(x => x.Triggers.FirstOrDefault()).OrderBy(x => x))); } - await ctx.Channel.EmbedAsync(embed); + await EmbedAsync(embed); } [Cmd] diff --git a/src/NadekoBot/Modules/Utility/Utility.cs b/src/NadekoBot/Modules/Utility/Utility.cs index cb7565b9d..70a9b0e22 100644 --- a/src/NadekoBot/Modules/Utility/Utility.cs +++ b/src/NadekoBot/Modules/Utility/Utility.cs @@ -68,14 +68,24 @@ public partial class Utility : NadekoModule [Priority(1)] public async Task Say(ITextChannel channel, [Leftover] SmartText message) { - // var rep = new ReplacementBuilder() - // .WithDefault(ctx.User, channel, (SocketGuild)ctx.Guild, (DiscordSocketClient)ctx.Client) - // .Build(); + if (!((IGuildUser)ctx.User).GetPermissions(channel).SendMessages) + { + await ReplyErrorLocalizedAsync(strs.insuf_perms_u); + return; + } + + if (!((ctx.Guild as SocketGuild)?.CurrentUser.GetPermissions(channel).SendMessages ?? false)) + { + await ReplyErrorLocalizedAsync(strs.insuf_perms_i); + return; + } var repCtx = new ReplacementContext(Context); message = await repSvc.ReplaceAsync(message, repCtx); - await channel.SendAsync(message, !((IGuildUser)ctx.User).GuildPermissions.MentionEveryone); + await channel.SendAsync(message, + !((IGuildUser)ctx.User).GuildPermissions.MentionEveryone, + replyTo: ctx.Message); } [Cmd] @@ -101,12 +111,14 @@ public partial class Utility : NadekoModule var rng = new NadekoRandom(); var arr = await Task.Run(() => socketGuild.Users - .Where(u => u.Activities.FirstOrDefault()?.Name?.Trim().ToUpperInvariant() - == game) - .Select(u => u.Username) - .OrderBy(_ => rng.Next()) - .Take(60) - .ToArray()); + .Where(u => u.Activities.FirstOrDefault() + ?.Name?.Trim() + .ToUpperInvariant() + == game) + .Select(u => u.Username) + .OrderBy(_ => rng.Next()) + .Take(60) + .ToArray()); var i = 0; if (arr.Length == 0) @@ -116,7 +128,7 @@ public partial class Utility : NadekoModule await SendConfirmAsync("```css\n" + string.Join("\n", arr.GroupBy(_ => i++ / 2) - .Select(ig => string.Concat(ig.Select(el => $"• {el,-27}")))) + .Select(ig => string.Concat(ig.Select(el => $"• {el,-27}")))) + "\n```"); } } @@ -137,8 +149,8 @@ public partial class Utility : NadekoModule ); var roleUsers = users.Where(u => role is null ? u.RoleIds.Count == 1 : u.RoleIds.Contains(role.Id)) - .Select(u => $"`{u.Id,18}` {u}") - .ToArray(); + .Select(u => $"`{u.Id,18}` {u}") + .ToArray(); await ctx.SendPaginatedConfirmAsync(page, cur => @@ -149,9 +161,9 @@ public partial class Utility : NadekoModule return _eb.Create().WithOkColor().WithDescription(GetText(strs.no_user_on_this_page)); return _eb.Create() - .WithOkColor() - .WithTitle(GetText(strs.inrole_list(Format.Bold(role?.Name ?? "No Role"), roleUsers.Length))) - .WithDescription(string.Join("\n", pageUsers)); + .WithOkColor() + .WithTitle(GetText(strs.inrole_list(Format.Bold(role?.Name ?? "No Role"), roleUsers.Length))) + .WithDescription(string.Join("\n", pageUsers)); }, roleUsers.Length, 20); @@ -171,14 +183,14 @@ public partial class Utility : NadekoModule var user = who == MeOrBot.Me ? (IGuildUser)ctx.User : ((SocketGuild)ctx.Guild).CurrentUser; var perms = user.GetPermissions((ITextChannel)ctx.Channel); foreach (var p in perms.GetType() - .GetProperties() - .Where(static p => - { - var method = p.GetGetMethod(); - if (method is null) - return false; - return !method.GetParameters().Any(); - })) + .GetProperties() + .Where(static p => + { + var method = p.GetGetMethod(); + if (method is null) + return false; + return !method.GetParameters().Any(); + })) builder.AppendLine($"{p.Name} : {p.GetValue(perms, null)}"); await SendConfirmAsync(builder.ToString()); } @@ -223,11 +235,11 @@ public partial class Utility : NadekoModule if (target is not null) { var roles = target.GetRoles() - .Except(new[] { guild.EveryoneRole }) - .OrderBy(r => -r.Position) - .Skip((page - 1) * rolesPerPage) - .Take(rolesPerPage) - .ToArray(); + .Except(new[] { guild.EveryoneRole }) + .OrderBy(r => -r.Position) + .Skip((page - 1) * rolesPerPage) + .Take(rolesPerPage) + .ToArray(); if (!roles.Any()) await ReplyErrorLocalizedAsync(strs.no_roles_on_page); else @@ -239,10 +251,10 @@ public partial class Utility : NadekoModule else { var roles = guild.Roles.Except(new[] { guild.EveryoneRole }) - .OrderBy(r => -r.Position) - .Skip((page - 1) * rolesPerPage) - .Take(rolesPerPage) - .ToArray(); + .OrderBy(r => -r.Position) + .Skip((page - 1) * rolesPerPage) + .Take(rolesPerPage) + .ToArray(); if (!roles.Any()) await ReplyErrorLocalizedAsync(strs.no_roles_on_page); else @@ -279,30 +291,30 @@ public partial class Utility : NadekoModule if (string.IsNullOrWhiteSpace(ownerIds)) ownerIds = "-"; - await ctx.Channel.EmbedAsync(_eb.Create() - .WithOkColor() - .WithAuthor($"NadekoBot v{StatsService.BOT_VERSION}", - "https://nadeko-pictures.nyc3.digitaloceanspaces.com/other/avatar.png", - "https://nadekobot.readthedocs.io/en/latest/") - .AddField(GetText(strs.author), _stats.Author, true) - .AddField(GetText(strs.botid), _client.CurrentUser.Id.ToString(), true) - .AddField(GetText(strs.shard), - $"#{_client.ShardId} / {_creds.TotalShards}", - true) - .AddField(GetText(strs.commands_ran), _stats.CommandsRan.ToString(), true) - .AddField(GetText(strs.messages), - $"{_stats.MessageCounter} ({_stats.MessagesPerSecond:F2}/sec)", - true) - .AddField(GetText(strs.memory), - FormattableString.Invariant($"{_stats.GetPrivateMemoryMegabytes():F2} MB"), - true) - .AddField(GetText(strs.owner_ids), ownerIds, true) - .AddField(GetText(strs.uptime), _stats.GetUptimeString("\n"), true) - .AddField(GetText(strs.presence), - GetText(strs.presence_txt(_coord.GetGuildCount(), - _stats.TextChannels, - _stats.VoiceChannels)), - true)); + await EmbedAsync(_eb.Create() + .WithOkColor() + .WithAuthor($"NadekoBot v{StatsService.BOT_VERSION}", + "https://nadeko-pictures.nyc3.digitaloceanspaces.com/other/avatar.png", + "https://nadekobot.readthedocs.io/en/latest/") + .AddField(GetText(strs.author), _stats.Author, true) + .AddField(GetText(strs.botid), _client.CurrentUser.Id.ToString(), true) + .AddField(GetText(strs.shard), + $"#{_client.ShardId} / {_creds.TotalShards}", + true) + .AddField(GetText(strs.commands_ran), _stats.CommandsRan.ToString(), true) + .AddField(GetText(strs.messages), + $"{_stats.MessageCounter} ({_stats.MessagesPerSecond:F2}/sec)", + true) + .AddField(GetText(strs.memory), + FormattableString.Invariant($"{_stats.GetPrivateMemoryMegabytes():F2} MB"), + true) + .AddField(GetText(strs.owner_ids), ownerIds, true) + .AddField(GetText(strs.uptime), _stats.GetUptimeString("\n"), true) + .AddField(GetText(strs.presence), + GetText(strs.presence_txt(_coord.GetGuildCount(), + _stats.TextChannels, + _stats.VoiceChannels)), + true)); } [Cmd] @@ -485,9 +497,9 @@ public partial class Utility : NadekoModule return; var guilds = _client.Guilds.OrderBy(g => g.Name) - .Skip(page * 15) - .Take(15) - .ToList(); + .Skip(page * 15) + .Take(15) + .ToList(); if (!guilds.Any()) { @@ -499,7 +511,7 @@ public partial class Utility : NadekoModule foreach (var guild in guilds) embed.AddField(guild.Name, GetText(strs.listservers(guild.Id, guild.MemberCount, guild.OwnerId))); - await ctx.Channel.EmbedAsync(embed); + await EmbedAsync(embed); } [Cmd] @@ -536,7 +548,7 @@ public partial class Utility : NadekoModule { Content = msg.Content, Embeds = msg.Embeds - .Map(x => new SmartEmbedArrayElementText(x)) + .Map(x => new SmartEmbedArrayElementText(x)) }.ToJson(_showEmbedSerializerOptions); await SendConfirmAsync(Format.Code(json, "json").Replace("](", "]\\(")); @@ -552,34 +564,34 @@ public partial class Utility : NadekoModule var title = $"Chatlog-{ctx.Guild.Name}/#{ctx.Channel.Name}-{DateTime.Now}.txt"; var grouping = msgs.GroupBy(x => $"{x.CreatedAt.Date:dd.MM.yyyy}") - .Select(g => new - { - date = g.Key, - messages = g.OrderBy(x => x.CreatedAt) - .Select(s => - { - var msg = $"【{s.Timestamp:HH:mm:ss}】{s.Author}:"; - if (string.IsNullOrWhiteSpace(s.ToString())) - { - if (s.Attachments.Any()) - { - msg += "FILES_UPLOADED: " - + string.Join("\n", s.Attachments.Select(x => x.Url)); - } - else if (s.Embeds.Any()) - { - msg += "EMBEDS: " - + string.Join("\n--------\n", - s.Embeds.Select(x - => $"Description: {x.Description}")); - } - } - else - msg += s.ToString(); + .Select(g => new + { + date = g.Key, + messages = g.OrderBy(x => x.CreatedAt) + .Select(s => + { + var msg = $"【{s.Timestamp:HH:mm:ss}】{s.Author}:"; + if (string.IsNullOrWhiteSpace(s.ToString())) + { + if (s.Attachments.Any()) + { + msg += "FILES_UPLOADED: " + + string.Join("\n", s.Attachments.Select(x => x.Url)); + } + else if (s.Embeds.Any()) + { + msg += "EMBEDS: " + + string.Join("\n--------\n", + s.Embeds.Select(x + => $"Description: {x.Description}")); + } + } + else + msg += s.ToString(); - return msg; - }) - }); + return msg; + }) + }); await using var stream = await JsonConvert.SerializeObject(grouping, Formatting.Indented).ToStream(); await ctx.User.SendFileAsync(stream, title, title); } @@ -633,15 +645,15 @@ public partial class Utility : NadekoModule var script = CSharpScript.Create(scriptText, ScriptOptions.Default - .WithReferences(this.GetType().Assembly) - .WithImports( - "System", - "NadekoBot", - "NadekoBot.Extensions", - "Microsoft.Extensions.DependencyInjection", - "NadekoBot.Common", - "System.Text", - "System.Text.Json"), + .WithReferences(this.GetType().Assembly) + .WithImports( + "System", + "NadekoBot", + "NadekoBot.Extensions", + "Microsoft.Extensions.DependencyInjection", + "NadekoBot.Common", + "System.Text", + "System.Text.Json"), globalsType: typeof(EvalGlobals)); try @@ -660,11 +672,11 @@ public partial class Utility : NadekoModule if (!string.IsNullOrWhiteSpace(output)) { var eb = _eb.Create(ctx) - .WithOkColor() - .AddField("Code", scriptText) - .AddField("Output", output.TrimTo(512)!); + .WithOkColor() + .AddField("Code", scriptText) + .AddField("Output", output.TrimTo(512)!); - _ = ctx.Channel.EmbedAsync(eb); + _ = EmbedAsync(eb); } } catch (Exception ex) diff --git a/src/NadekoBot/Modules/Xp/CleanupCommands.cs b/src/NadekoBot/Modules/Xp/CleanupCommands.cs deleted file mode 100644 index c43560596..000000000 --- a/src/NadekoBot/Modules/Xp/CleanupCommands.cs +++ /dev/null @@ -1,19 +0,0 @@ -namespace NadekoBot.Modules.Xp; - -public sealed partial class Xp -{ - public class CleanupCommands : CleanupModuleBase - { - private readonly IXpCleanupService _service; - - public CleanupCommands(IXpCleanupService service) - { - _service = service; - } - - [Cmd] - [OwnerOnly] - public Task DeleteXp() - => ConfirmActionInternalAsync("Delete Xp", () => _service.DeleteXp()); - } -} \ No newline at end of file diff --git a/src/NadekoBot/Modules/Xp/Club/Club.cs b/src/NadekoBot/Modules/Xp/Club/Club.cs index 7ece9ce0f..20333edc4 100644 --- a/src/NadekoBot/Modules/Xp/Club/Club.cs +++ b/src/NadekoBot/Modules/Xp/Club/Club.cs @@ -405,7 +405,7 @@ public partial class Xp .WithOkColor() .WithDescription(desc); - await ctx.Channel.EmbedAsync(eb); + await EmbedAsync(eb); } else { @@ -436,7 +436,7 @@ public partial class Xp foreach (var club in clubs) embed.AddField($"#{++i} " + club, club.Xp + " xp"); - return ctx.Channel.EmbedAsync(embed); + return EmbedAsync(embed); } [Cmd] @@ -452,7 +452,7 @@ public partial class Xp case ClubRenameResult.Success: { var embed = _eb.Create().WithTitle(GetText(strs.club_renamed(clubName))).WithOkColor(); - await ctx.Channel.EmbedAsync(embed); + await EmbedAsync(embed); return; } case ClubRenameResult.NameTaken: diff --git a/src/NadekoBot/Modules/Xp/Xp.cs b/src/NadekoBot/Modules/Xp/Xp.cs index 60d29c1b3..881238688 100644 --- a/src/NadekoBot/Modules/Xp/Xp.cs +++ b/src/NadekoBot/Modules/Xp/Xp.cs @@ -1,8 +1,7 @@ #nullable disable warnings using NadekoBot.Modules.Xp.Services; -using Nadeko.Bot.Db.Models; -using NadekoBot.Db; using NadekoBot.Db.Models; +using NadekoBot.Db; using NadekoBot.Modules.Patronage; namespace NadekoBot.Modules.Xp; @@ -65,7 +64,7 @@ public partial class Xp : NadekoModule .AddField(GetText(strs.xpn_setting_global), GetNotifLocationString(globalSetting)) .AddField(GetText(strs.xpn_setting_server), GetNotifLocationString(serverSetting)); - await ctx.Channel.EmbedAsync(embed); + await EmbedAsync(embed); } [Cmd] @@ -254,7 +253,7 @@ public partial class Xp : NadekoModule } } - await ctx.Channel.EmbedAsync(embed); + await EmbedAsync(embed); } [Cmd] diff --git a/src/NadekoBot/Modules/Xp/XpService.cs b/src/NadekoBot/Modules/Xp/XpService.cs index 6525fe7c6..5456b7490 100644 --- a/src/NadekoBot/Modules/Xp/XpService.cs +++ b/src/NadekoBot/Modules/Xp/XpService.cs @@ -4,7 +4,6 @@ using Microsoft.EntityFrameworkCore; using NadekoBot.Common.ModuleBehaviors; using NadekoBot.Db; using NadekoBot.Db.Models; -using Nadeko.Bot.Db.Models; using Newtonsoft.Json; using SixLabors.Fonts; using SixLabors.ImageSharp; diff --git a/src/NadekoBot/Modules/Xp/_common/Extensions.cs b/src/NadekoBot/Modules/Xp/_common/Extensions.cs deleted file mode 100644 index 39e505a04..000000000 --- a/src/NadekoBot/Modules/Xp/_common/Extensions.cs +++ /dev/null @@ -1,7 +0,0 @@ -#nullable disable -namespace NadekoBot.Modules.Xp.Extensions; - -public static class Extensions -{ - -} \ No newline at end of file diff --git a/src/NadekoBot/Modules/Xp/_common/FullUserStats.cs b/src/NadekoBot/Modules/Xp/_common/FullUserStats.cs index ac63142d5..73e388b84 100644 --- a/src/NadekoBot/Modules/Xp/_common/FullUserStats.cs +++ b/src/NadekoBot/Modules/Xp/_common/FullUserStats.cs @@ -1,7 +1,6 @@ #nullable disable using NadekoBot.Db; using NadekoBot.Db.Models; -using Nadeko.Bot.Db.Models; namespace NadekoBot.Modules.Xp; diff --git a/src/NadekoBot/Modules/Xp/_common/XpCleanupService.cs b/src/NadekoBot/Modules/Xp/_common/XpCleanupService.cs index a6a2635c6..c81e78638 100644 --- a/src/NadekoBot/Modules/Xp/_common/XpCleanupService.cs +++ b/src/NadekoBot/Modules/Xp/_common/XpCleanupService.cs @@ -1,6 +1,5 @@ using LinqToDB; using NadekoBot.Db.Models; -using Nadeko.Bot.Db.Models; namespace NadekoBot.Modules.Xp; diff --git a/src/NadekoBot/Modules/Xp/_common/db/XpShopOwnedItem.cs b/src/NadekoBot/Modules/Xp/_common/db/XpShopOwnedItem.cs index 105d3d821..ff75f4fcc 100644 --- a/src/NadekoBot/Modules/Xp/_common/db/XpShopOwnedItem.cs +++ b/src/NadekoBot/Modules/Xp/_common/db/XpShopOwnedItem.cs @@ -1,6 +1,4 @@ #nullable disable warnings -using Nadeko.Bot.Db.Models; - namespace NadekoBot.Db.Models; public class XpShopOwnedItem : DbEntity diff --git a/src/NadekoBot/NadekoBot.csproj b/src/NadekoBot/NadekoBot.csproj index b7783dd19..6a7ad69d1 100644 --- a/src/NadekoBot/NadekoBot.csproj +++ b/src/NadekoBot/NadekoBot.csproj @@ -108,7 +108,7 @@ - + @@ -133,6 +133,7 @@ + diff --git a/src/NadekoBot/Services/Impl/Localization.cs b/src/NadekoBot/Services/Impl/Localization.cs index 6abd65671..983e7067c 100644 --- a/src/NadekoBot/Services/Impl/Localization.cs +++ b/src/NadekoBot/Services/Impl/Localization.cs @@ -5,7 +5,7 @@ using System.Globalization; namespace NadekoBot.Services; -public class Localization : ILocalization, INService +public class Localization : ILocalization { private static readonly Dictionary _commandData = JsonConvert.DeserializeObject>( diff --git a/src/NadekoBot/_common/Abstractions/Extensions/StringExtensions.cs b/src/NadekoBot/_common/Abstractions/Extensions/StringExtensions.cs index c44478893..afa0d3a7c 100644 --- a/src/NadekoBot/_common/Abstractions/Extensions/StringExtensions.cs +++ b/src/NadekoBot/_common/Abstractions/Extensions/StringExtensions.cs @@ -1,8 +1,6 @@ using NadekoBot.Common.Yml; using System.Text; using System.Text.RegularExpressions; -using Humanizer; -using Nadeko.Common; namespace NadekoBot.Extensions; diff --git a/src/NadekoBot/_common/Abstractions/Helpers/LogSetup.cs b/src/NadekoBot/_common/Abstractions/Helpers/LogSetup.cs index ad8836f44..32f104d6e 100644 --- a/src/NadekoBot/_common/Abstractions/Helpers/LogSetup.cs +++ b/src/NadekoBot/_common/Abstractions/Helpers/LogSetup.cs @@ -1,7 +1,6 @@ using Serilog.Events; using Serilog.Sinks.SystemConsole.Themes; using System.Text; -using Serilog; namespace Nadeko.Common; diff --git a/src/NadekoBot/_common/Abstractions/QueueRunner.cs b/src/NadekoBot/_common/Abstractions/QueueRunner.cs index 95e1e2667..14384fd92 100644 --- a/src/NadekoBot/_common/Abstractions/QueueRunner.cs +++ b/src/NadekoBot/_common/Abstractions/QueueRunner.cs @@ -1,5 +1,4 @@ using System.Threading.Channels; -using Serilog; namespace Nadeko.Common; diff --git a/src/NadekoBot/_common/_common/AddRemove.cs b/src/NadekoBot/_common/AddRemove.cs similarity index 100% rename from src/NadekoBot/_common/_common/AddRemove.cs rename to src/NadekoBot/_common/AddRemove.cs diff --git a/src/NadekoBot/_common/_common/CmdStrings.cs b/src/NadekoBot/_common/CmdStrings.cs similarity index 100% rename from src/NadekoBot/_common/_common/CmdStrings.cs rename to src/NadekoBot/_common/CmdStrings.cs diff --git a/src/NadekoBot/_common/_common/CommandData.cs b/src/NadekoBot/_common/CommandData.cs similarity index 100% rename from src/NadekoBot/_common/_common/CommandData.cs rename to src/NadekoBot/_common/CommandData.cs diff --git a/src/NadekoBot/_common/DbService.cs b/src/NadekoBot/_common/DbService.cs index 429fd66d4..522a0d4c1 100644 --- a/src/NadekoBot/_common/DbService.cs +++ b/src/NadekoBot/_common/DbService.cs @@ -1,8 +1,6 @@ #nullable disable -using LinqToDB.Common; -using LinqToDB.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore; namespace NadekoBot.Services; diff --git a/src/NadekoBot/_common/_common/DownloadTracker.cs b/src/NadekoBot/_common/DownloadTracker.cs similarity index 100% rename from src/NadekoBot/_common/_common/DownloadTracker.cs rename to src/NadekoBot/_common/DownloadTracker.cs diff --git a/src/NadekoBot/_common/Gambling/Rps/RpsGame.cs b/src/NadekoBot/_common/Gambling/Rps/RpsGame.cs index c9f2b5824..304fb464e 100644 --- a/src/NadekoBot/_common/Gambling/Rps/RpsGame.cs +++ b/src/NadekoBot/_common/Gambling/Rps/RpsGame.cs @@ -3,10 +3,10 @@ public sealed class RpsGame { private static readonly NadekoRandom _rng = new NadekoRandom(); - - const decimal WIN_MULTI = 1.95m; - const decimal DRAW_MULTI = 1m; - const decimal LOSE_MULTI = 0m; + + private const decimal WIN_MULTI = 1.95m; + private const decimal DRAW_MULTI = 1m; + private const decimal LOSE_MULTI = 0m; public RpsGame() { diff --git a/src/NadekoBot/_common/_common/Helpers.cs b/src/NadekoBot/_common/Helpers.cs similarity index 100% rename from src/NadekoBot/_common/_common/Helpers.cs rename to src/NadekoBot/_common/Helpers.cs diff --git a/src/NadekoBot/_common/IBot.cs b/src/NadekoBot/_common/IBot.cs index 5709d969e..0dae11a93 100644 --- a/src/NadekoBot/_common/IBot.cs +++ b/src/NadekoBot/_common/IBot.cs @@ -1,5 +1,5 @@ #nullable disable -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; namespace NadekoBot; diff --git a/src/NadekoBot/_common/IDiscordPermOverrideService.cs b/src/NadekoBot/_common/IDiscordPermOverrideService.cs index 4ee2b27de..a292f1a10 100644 --- a/src/NadekoBot/_common/IDiscordPermOverrideService.cs +++ b/src/NadekoBot/_common/IDiscordPermOverrideService.cs @@ -3,5 +3,5 @@ namespace Nadeko.Common; public interface IDiscordPermOverrideService { - bool TryGetOverrides(ulong guildId, string commandName, out Nadeko.Bot.Db.GuildPerm? perm); + bool TryGetOverrides(ulong guildId, string commandName, out NadekoBot.Db.GuildPerm? perm); } \ No newline at end of file diff --git a/src/NadekoBot/_common/ILogCommandService.cs b/src/NadekoBot/_common/ILogCommandService.cs index 64ce0314e..303aa5262 100644 --- a/src/NadekoBot/_common/ILogCommandService.cs +++ b/src/NadekoBot/_common/ILogCommandService.cs @@ -1,4 +1,4 @@ -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; namespace NadekoBot.Common; diff --git a/src/NadekoBot/_common/IPermissionChecker.cs b/src/NadekoBot/_common/IPermissionChecker.cs index e60c3c4c2..f1e673adb 100644 --- a/src/NadekoBot/_common/IPermissionChecker.cs +++ b/src/NadekoBot/_common/IPermissionChecker.cs @@ -1,6 +1,4 @@ -using Nadeko.Bot.Db.Models; -using OneOf; -using OneOf.Types; +using OneOf; namespace NadekoBot.Common; diff --git a/src/NadekoBot/_common/_common/ImageUrls.cs b/src/NadekoBot/_common/ImageUrls.cs similarity index 100% rename from src/NadekoBot/_common/_common/ImageUrls.cs rename to src/NadekoBot/_common/ImageUrls.cs diff --git a/src/NadekoBot/_common/_common/JsonConverters/CultureInfoConverter.cs b/src/NadekoBot/_common/JsonConverters/CultureInfoConverter.cs similarity index 100% rename from src/NadekoBot/_common/_common/JsonConverters/CultureInfoConverter.cs rename to src/NadekoBot/_common/JsonConverters/CultureInfoConverter.cs diff --git a/src/NadekoBot/_common/_common/JsonConverters/Rgba32Converter.cs b/src/NadekoBot/_common/JsonConverters/Rgba32Converter.cs similarity index 100% rename from src/NadekoBot/_common/_common/JsonConverters/Rgba32Converter.cs rename to src/NadekoBot/_common/JsonConverters/Rgba32Converter.cs diff --git a/src/NadekoBot/_common/_common/LbOpts.cs b/src/NadekoBot/_common/LbOpts.cs similarity index 100% rename from src/NadekoBot/_common/_common/LbOpts.cs rename to src/NadekoBot/_common/LbOpts.cs diff --git a/src/NadekoBot/_common/_common/Linq2DbExpressions.cs b/src/NadekoBot/_common/Linq2DbExpressions.cs similarity index 100% rename from src/NadekoBot/_common/_common/Linq2DbExpressions.cs rename to src/NadekoBot/_common/Linq2DbExpressions.cs diff --git a/src/NadekoBot/_common/_common/LoginErrorHandler.cs b/src/NadekoBot/_common/LoginErrorHandler.cs similarity index 100% rename from src/NadekoBot/_common/_common/LoginErrorHandler.cs rename to src/NadekoBot/_common/LoginErrorHandler.cs diff --git a/src/NadekoBot/Medusa/Adapters/BehaviorAdapter.cs b/src/NadekoBot/_common/Medusa/Common/Adapters/BehaviorAdapter.cs similarity index 100% rename from src/NadekoBot/Medusa/Adapters/BehaviorAdapter.cs rename to src/NadekoBot/_common/Medusa/Common/Adapters/BehaviorAdapter.cs diff --git a/src/NadekoBot/Medusa/Adapters/ContextAdapterFactory.cs b/src/NadekoBot/_common/Medusa/Common/Adapters/ContextAdapterFactory.cs similarity index 100% rename from src/NadekoBot/Medusa/Adapters/ContextAdapterFactory.cs rename to src/NadekoBot/_common/Medusa/Common/Adapters/ContextAdapterFactory.cs diff --git a/src/NadekoBot/Medusa/Adapters/DmContextAdapter.cs b/src/NadekoBot/_common/Medusa/Common/Adapters/DmContextAdapter.cs similarity index 100% rename from src/NadekoBot/Medusa/Adapters/DmContextAdapter.cs rename to src/NadekoBot/_common/Medusa/Common/Adapters/DmContextAdapter.cs diff --git a/src/NadekoBot/Medusa/Adapters/FilterAdapter.cs b/src/NadekoBot/_common/Medusa/Common/Adapters/FilterAdapter.cs similarity index 100% rename from src/NadekoBot/Medusa/Adapters/FilterAdapter.cs rename to src/NadekoBot/_common/Medusa/Common/Adapters/FilterAdapter.cs diff --git a/src/NadekoBot/Medusa/Adapters/GuildContextAdapter.cs b/src/NadekoBot/_common/Medusa/Common/Adapters/GuildContextAdapter.cs similarity index 100% rename from src/NadekoBot/Medusa/Adapters/GuildContextAdapter.cs rename to src/NadekoBot/_common/Medusa/Common/Adapters/GuildContextAdapter.cs diff --git a/src/NadekoBot/Medusa/Adapters/ParamParserAdapter.cs b/src/NadekoBot/_common/Medusa/Common/Adapters/ParamParserAdapter.cs similarity index 100% rename from src/NadekoBot/Medusa/Adapters/ParamParserAdapter.cs rename to src/NadekoBot/_common/Medusa/Common/Adapters/ParamParserAdapter.cs diff --git a/src/NadekoBot/Medusa/CommandContextType.cs b/src/NadekoBot/_common/Medusa/Common/CommandContextType.cs similarity index 100% rename from src/NadekoBot/Medusa/CommandContextType.cs rename to src/NadekoBot/_common/Medusa/Common/CommandContextType.cs diff --git a/src/NadekoBot/Medusa/Config/IMedusaConfigService.cs b/src/NadekoBot/_common/Medusa/Common/Config/IMedusaConfigService.cs similarity index 100% rename from src/NadekoBot/Medusa/Config/IMedusaConfigService.cs rename to src/NadekoBot/_common/Medusa/Common/Config/IMedusaConfigService.cs diff --git a/src/NadekoBot/Medusa/Config/MedusaConfig.cs b/src/NadekoBot/_common/Medusa/Common/Config/MedusaConfig.cs similarity index 100% rename from src/NadekoBot/Medusa/Config/MedusaConfig.cs rename to src/NadekoBot/_common/Medusa/Common/Config/MedusaConfig.cs diff --git a/src/NadekoBot/Medusa/Config/MedusaConfigService.cs b/src/NadekoBot/_common/Medusa/Common/Config/MedusaConfigService.cs similarity index 100% rename from src/NadekoBot/Medusa/Config/MedusaConfigService.cs rename to src/NadekoBot/_common/Medusa/Common/Config/MedusaConfigService.cs diff --git a/src/NadekoBot/Medusa/MedusaAssemblyLoadContext.cs b/src/NadekoBot/_common/Medusa/Common/MedusaAssemblyLoadContext.cs similarity index 100% rename from src/NadekoBot/Medusa/MedusaAssemblyLoadContext.cs rename to src/NadekoBot/_common/Medusa/Common/MedusaAssemblyLoadContext.cs diff --git a/src/NadekoBot/Medusa/MedusaIoCKernelModule.cs b/src/NadekoBot/_common/Medusa/Common/MedusaIoCKernelModule.cs similarity index 100% rename from src/NadekoBot/Medusa/MedusaIoCKernelModule.cs rename to src/NadekoBot/_common/Medusa/Common/MedusaIoCKernelModule.cs diff --git a/src/NadekoBot/Medusa/MedusaLoaderService.cs b/src/NadekoBot/_common/Medusa/Common/MedusaLoaderService.cs similarity index 100% rename from src/NadekoBot/Medusa/MedusaLoaderService.cs rename to src/NadekoBot/_common/Medusa/Common/MedusaLoaderService.cs diff --git a/src/NadekoBot/Medusa/Models/ParamData.cs b/src/NadekoBot/_common/Medusa/Common/Models/ParamData.cs similarity index 100% rename from src/NadekoBot/Medusa/Models/ParamData.cs rename to src/NadekoBot/_common/Medusa/Common/Models/ParamData.cs diff --git a/src/NadekoBot/Medusa/Models/ResolvedMedusa.cs b/src/NadekoBot/_common/Medusa/Common/Models/ResolvedMedusa.cs similarity index 100% rename from src/NadekoBot/Medusa/Models/ResolvedMedusa.cs rename to src/NadekoBot/_common/Medusa/Common/Models/ResolvedMedusa.cs diff --git a/src/NadekoBot/Medusa/Models/SnekCommandData.cs b/src/NadekoBot/_common/Medusa/Common/Models/SnekCommandData.cs similarity index 100% rename from src/NadekoBot/Medusa/Models/SnekCommandData.cs rename to src/NadekoBot/_common/Medusa/Common/Models/SnekCommandData.cs diff --git a/src/NadekoBot/Medusa/Models/SnekData.cs b/src/NadekoBot/_common/Medusa/Common/Models/SnekData.cs similarity index 100% rename from src/NadekoBot/Medusa/Models/SnekData.cs rename to src/NadekoBot/_common/Medusa/Common/Models/SnekData.cs diff --git a/src/NadekoBot/Medusa/RemovablePlanner.cs b/src/NadekoBot/_common/Medusa/Common/RemovablePlanner.cs similarity index 100% rename from src/NadekoBot/Medusa/RemovablePlanner.cs rename to src/NadekoBot/_common/Medusa/Common/RemovablePlanner.cs diff --git a/src/NadekoBot/_common/NadekoModule.cs b/src/NadekoBot/_common/NadekoModule.cs index 411558980..dac62e18c 100644 --- a/src/NadekoBot/_common/NadekoModule.cs +++ b/src/NadekoBot/_common/NadekoModule.cs @@ -1,6 +1,5 @@ #nullable disable using System.Globalization; -using NadekoBot.Common; // ReSharper disable InconsistentNaming @@ -48,15 +47,18 @@ public abstract class NadekoModule : ModuleBase string footer = null) => ctx.Channel.SendConfirmAsync(_eb, title, text, url, footer); - // + // public Task SendAsync(SmartText text, NadekoInteraction inter = null, IUserMessage replyTo = null) + // => ctx.Channel.SendAsync(_eb, text, MsgType.Ok, inter, replyTo: replyTo); + + // colored public Task SendErrorAsync(string text, NadekoInteraction inter = null) - => ctx.Channel.SendAsync(_eb, text, MsgType.Error, inter); + => ctx.Channel.SendAsync(_eb, text, MsgType.Error, inter, replyTo: ctx.Message); public Task SendConfirmAsync(string text, NadekoInteraction inter = null) - => ctx.Channel.SendAsync(_eb, text, MsgType.Ok, inter); + => ctx.Channel.SendAsync(_eb, text, MsgType.Ok, inter, replyTo: ctx.Message); public Task SendPendingAsync(string text, NadekoInteraction inter = null) - => ctx.Channel.SendAsync(_eb, text, MsgType.Pending, inter); + => ctx.Channel.SendAsync(_eb, text, MsgType.Pending, inter, replyTo: ctx.Message); // localized normal @@ -138,6 +140,9 @@ public abstract class NadekoModule : ModuleBase return Task.CompletedTask; } } + + public Task EmbedAsync(IEmbedBuilder embed, string msg = "", IReadOnlyCollection embeds = null) + => ctx.Channel.EmbedAsync(embed, msg, replyTo: ctx.Message); } public abstract class NadekoModule : NadekoModule diff --git a/src/NadekoBot/_common/_common/OldCreds.cs b/src/NadekoBot/_common/OldCreds.cs similarity index 100% rename from src/NadekoBot/_common/_common/OldCreds.cs rename to src/NadekoBot/_common/OldCreds.cs diff --git a/src/NadekoBot/_common/_common/OptionsParser.cs b/src/NadekoBot/_common/OptionsParser.cs similarity index 100% rename from src/NadekoBot/_common/_common/OptionsParser.cs rename to src/NadekoBot/_common/OptionsParser.cs diff --git a/src/NadekoBot/_common/_common/Pokemon/PokemonNameId.cs b/src/NadekoBot/_common/Pokemon/PokemonNameId.cs similarity index 100% rename from src/NadekoBot/_common/_common/Pokemon/PokemonNameId.cs rename to src/NadekoBot/_common/Pokemon/PokemonNameId.cs diff --git a/src/NadekoBot/_common/_common/Pokemon/SearchPokemon.cs b/src/NadekoBot/_common/Pokemon/SearchPokemon.cs similarity index 100% rename from src/NadekoBot/_common/_common/Pokemon/SearchPokemon.cs rename to src/NadekoBot/_common/Pokemon/SearchPokemon.cs diff --git a/src/NadekoBot/_common/_common/Pokemon/SearchPokemonAbility.cs b/src/NadekoBot/_common/Pokemon/SearchPokemonAbility.cs similarity index 100% rename from src/NadekoBot/_common/_common/Pokemon/SearchPokemonAbility.cs rename to src/NadekoBot/_common/Pokemon/SearchPokemonAbility.cs diff --git a/src/NadekoBot/_common/_common/RequireObjectPropertiesContractResolver.cs b/src/NadekoBot/_common/RequireObjectPropertiesContractResolver.cs similarity index 100% rename from src/NadekoBot/_common/_common/RequireObjectPropertiesContractResolver.cs rename to src/NadekoBot/_common/RequireObjectPropertiesContractResolver.cs diff --git a/src/NadekoBot/_common/ServiceCollectionExtensions.cs b/src/NadekoBot/_common/ServiceCollectionExtensions.cs index a30307987..ab2e32d6a 100644 --- a/src/NadekoBot/_common/ServiceCollectionExtensions.cs +++ b/src/NadekoBot/_common/ServiceCollectionExtensions.cs @@ -139,7 +139,7 @@ public static class ServiceCollectionExtensions || c.IsAssignableTo(typeof(IExecPostCommand)) || c.IsAssignableTo(typeof(IExecNoCommand))) && !c.HasAttribute() -#if GLOBAL_NADEK +#if GLOBAL_NADEKO && !c.HasAttribute() #endif ) diff --git a/src/NadekoBot/_common/Services/Currency/DefaultWallet.cs b/src/NadekoBot/_common/Services/Currency/DefaultWallet.cs index ac7584632..7806ff588 100644 --- a/src/NadekoBot/_common/Services/Currency/DefaultWallet.cs +++ b/src/NadekoBot/_common/Services/Currency/DefaultWallet.cs @@ -1,7 +1,6 @@ using LinqToDB; using LinqToDB.EntityFrameworkCore; using NadekoBot.Db.Models; -using Nadeko.Bot.Db.Models; namespace NadekoBot.Services.Currency; diff --git a/src/NadekoBot/_common/Services/Currency/GamblingTxTracker.cs b/src/NadekoBot/_common/Services/Currency/GamblingTxTracker.cs index 635a7aac2..f005b3557 100644 --- a/src/NadekoBot/_common/Services/Currency/GamblingTxTracker.cs +++ b/src/NadekoBot/_common/Services/Currency/GamblingTxTracker.cs @@ -2,7 +2,7 @@ using LinqToDB; using LinqToDB.EntityFrameworkCore; using NadekoBot.Common.ModuleBehaviors; using NadekoBot.Services.Currency; -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; namespace NadekoBot.Services; diff --git a/src/NadekoBot/_common/Services/IRemindService.cs b/src/NadekoBot/_common/Services/IRemindService.cs index ee1f62255..760701271 100644 --- a/src/NadekoBot/_common/Services/IRemindService.cs +++ b/src/NadekoBot/_common/Services/IRemindService.cs @@ -1,5 +1,5 @@ #nullable disable -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; namespace NadekoBot.Modules.Utility.Services; diff --git a/src/NadekoBot/_common/Services/Impl/BlacklistService.cs b/src/NadekoBot/_common/Services/Impl/BlacklistService.cs index d4c157455..d77fea96b 100644 --- a/src/NadekoBot/_common/Services/Impl/BlacklistService.cs +++ b/src/NadekoBot/_common/Services/Impl/BlacklistService.cs @@ -3,9 +3,7 @@ using LinqToDB; using LinqToDB.Data; using LinqToDB.EntityFrameworkCore; using NadekoBot.Common.ModuleBehaviors; -using NadekoBot.Db; using NadekoBot.Db.Models; -using Nadeko.Bot.Db.Models; namespace NadekoBot.Modules.Permissions.Services; diff --git a/src/NadekoBot/_common/Services/Impl/DiscordPermOverrideService.cs b/src/NadekoBot/_common/Services/Impl/DiscordPermOverrideService.cs index 615dab2e2..39778676b 100644 --- a/src/NadekoBot/_common/Services/Impl/DiscordPermOverrideService.cs +++ b/src/NadekoBot/_common/Services/Impl/DiscordPermOverrideService.cs @@ -1,7 +1,7 @@ #nullable disable using Microsoft.EntityFrameworkCore; using NadekoBot.Common.ModuleBehaviors; -using Nadeko.Bot.Db.Models; +using NadekoBot.Db.Models; namespace NadekoBot.Services; @@ -25,7 +25,7 @@ public class DiscordPermOverrideService : INService, IExecPreCommand, IDiscordPe .ToConcurrent(); } - public bool TryGetOverrides(ulong guildId, string commandName, out Nadeko.Bot.Db.GuildPerm? perm) + public bool TryGetOverrides(ulong guildId, string commandName, out NadekoBot.Db.GuildPerm? perm) { commandName = commandName.ToLowerInvariant(); if (_overrides.TryGetValue((guildId, commandName), out var dpo)) @@ -62,12 +62,12 @@ public class DiscordPermOverrideService : INService, IExecPreCommand, IDiscordPe .Add(over = new() { Command = commandName, - Perm = (Nadeko.Bot.Db.GuildPerm)perm, + Perm = (NadekoBot.Db.GuildPerm)perm, GuildId = guildId }); } else - over.Perm = (Nadeko.Bot.Db.GuildPerm)perm; + over.Perm = (NadekoBot.Db.GuildPerm)perm; _overrides[(guildId, commandName)] = over; diff --git a/src/NadekoBot/_common/Services/Impl/StatsService.cs b/src/NadekoBot/_common/Services/Impl/StatsService.cs index fe9f40ba7..fee826aa9 100644 --- a/src/NadekoBot/_common/Services/Impl/StatsService.cs +++ b/src/NadekoBot/_common/Services/Impl/StatsService.cs @@ -7,7 +7,7 @@ namespace NadekoBot.Services; public sealed class StatsService : IStatsService, IReadyExecutor, INService { - public const string BOT_VERSION = "5.0.0-alpha2"; + public const string BOT_VERSION = "5.0.0-beta1"; public string Author => "Kwoth#2452"; diff --git a/src/NadekoBot/_common/_common/TriviaQuestionModel.cs b/src/NadekoBot/_common/TriviaQuestionModel.cs similarity index 100% rename from src/NadekoBot/_common/_common/TriviaQuestionModel.cs rename to src/NadekoBot/_common/TriviaQuestionModel.cs diff --git a/src/NadekoBot/_common/_common/TypeReaders/EmoteTypeReader.cs b/src/NadekoBot/_common/TypeReaders/EmoteTypeReader.cs similarity index 100% rename from src/NadekoBot/_common/_common/TypeReaders/EmoteTypeReader.cs rename to src/NadekoBot/_common/TypeReaders/EmoteTypeReader.cs diff --git a/src/NadekoBot/_common/_common/TypeReaders/GuildTypeReader.cs b/src/NadekoBot/_common/TypeReaders/GuildTypeReader.cs similarity index 100% rename from src/NadekoBot/_common/_common/TypeReaders/GuildTypeReader.cs rename to src/NadekoBot/_common/TypeReaders/GuildTypeReader.cs diff --git a/src/NadekoBot/_common/_common/TypeReaders/GuildUserTypeReader.cs b/src/NadekoBot/_common/TypeReaders/GuildUserTypeReader.cs similarity index 100% rename from src/NadekoBot/_common/_common/TypeReaders/GuildUserTypeReader.cs rename to src/NadekoBot/_common/TypeReaders/GuildUserTypeReader.cs diff --git a/src/NadekoBot/_common/_common/TypeReaders/KwumTypeReader.cs b/src/NadekoBot/_common/TypeReaders/KwumTypeReader.cs similarity index 100% rename from src/NadekoBot/_common/_common/TypeReaders/KwumTypeReader.cs rename to src/NadekoBot/_common/TypeReaders/KwumTypeReader.cs diff --git a/src/NadekoBot/_common/_common/TypeReaders/Models/PermissionAction.cs b/src/NadekoBot/_common/TypeReaders/Models/PermissionAction.cs similarity index 100% rename from src/NadekoBot/_common/_common/TypeReaders/Models/PermissionAction.cs rename to src/NadekoBot/_common/TypeReaders/Models/PermissionAction.cs diff --git a/src/NadekoBot/_common/_common/TypeReaders/Models/StoopidTime.cs b/src/NadekoBot/_common/TypeReaders/Models/StoopidTime.cs similarity index 100% rename from src/NadekoBot/_common/_common/TypeReaders/Models/StoopidTime.cs rename to src/NadekoBot/_common/TypeReaders/Models/StoopidTime.cs diff --git a/src/NadekoBot/_common/_common/TypeReaders/ModuleTypeReader.cs b/src/NadekoBot/_common/TypeReaders/ModuleTypeReader.cs similarity index 100% rename from src/NadekoBot/_common/_common/TypeReaders/ModuleTypeReader.cs rename to src/NadekoBot/_common/TypeReaders/ModuleTypeReader.cs diff --git a/src/NadekoBot/_common/_common/TypeReaders/PermissionActionTypeReader.cs b/src/NadekoBot/_common/TypeReaders/PermissionActionTypeReader.cs similarity index 100% rename from src/NadekoBot/_common/_common/TypeReaders/PermissionActionTypeReader.cs rename to src/NadekoBot/_common/TypeReaders/PermissionActionTypeReader.cs diff --git a/src/NadekoBot/_common/_common/TypeReaders/Rgba32TypeReader.cs b/src/NadekoBot/_common/TypeReaders/Rgba32TypeReader.cs similarity index 100% rename from src/NadekoBot/_common/_common/TypeReaders/Rgba32TypeReader.cs rename to src/NadekoBot/_common/TypeReaders/Rgba32TypeReader.cs diff --git a/src/NadekoBot/_common/_common/TypeReaders/StoopidTimeTypeReader.cs b/src/NadekoBot/_common/TypeReaders/StoopidTimeTypeReader.cs similarity index 100% rename from src/NadekoBot/_common/_common/TypeReaders/StoopidTimeTypeReader.cs rename to src/NadekoBot/_common/TypeReaders/StoopidTimeTypeReader.cs diff --git a/src/NadekoBot/_common/Extensions/DbExtensions.cs b/src/NadekoBot/_common/_Extensions/DbExtensions.cs similarity index 100% rename from src/NadekoBot/_common/Extensions/DbExtensions.cs rename to src/NadekoBot/_common/_Extensions/DbExtensions.cs diff --git a/src/NadekoBot/_common/_Extensions/IMessageChannelExtensions.cs b/src/NadekoBot/_common/_Extensions/IMessageChannelExtensions.cs index afad257ed..9f43a2ad0 100644 --- a/src/NadekoBot/_common/_Extensions/IMessageChannelExtensions.cs +++ b/src/NadekoBot/_common/_Extensions/IMessageChannelExtensions.cs @@ -1,4 +1,3 @@ - namespace NadekoBot.Extensions; public static class MessageChannelExtensions @@ -10,18 +9,35 @@ public static class MessageChannelExtensions Embed? embed = null, IReadOnlyCollection? embeds = null, bool sanitizeAll = false, - MessageComponent? components = null) + MessageComponent? components = null, + IUserMessage? replyTo = null) { plainText = sanitizeAll ? plainText?.SanitizeAllMentions() ?? "" : plainText?.SanitizeMentions() ?? ""; + var msgReference = CreateMessageReference(channel, replyTo); return channel.SendMessageAsync(plainText, embed: embed, embeds: embeds is null ? null : embeds as Embed[] ?? embeds.ToArray(), - components: components); + components: components, + messageReference: msgReference); + } + + private static MessageReference? CreateMessageReference(IChannel source, IMessage? replyTo) + { + if (replyTo is null) + return null; + + if (replyTo.Channel.Id != source.Id) + return null; + + return new(replyTo.Id, + replyTo.Channel.Id, + (replyTo.Channel as ITextChannel)?.GuildId, + failIfNotExists: false); } public static async Task SendAsync( @@ -30,14 +46,16 @@ public static class MessageChannelExtensions NadekoInteraction? inter, Embed? embed = null, IReadOnlyCollection? embeds = null, - bool sanitizeAll = false) + bool sanitizeAll = false, + IUserMessage? replyTo = null) { var msg = await channel.SendAsync(plainText, embed, embeds, sanitizeAll, - inter?.CreateComponent()); - + inter?.CreateComponent(), + replyTo); + if (inter is not null) await inter.RunAsync(msg); @@ -47,17 +65,22 @@ public static class MessageChannelExtensions public static Task SendAsync( this IMessageChannel channel, SmartText text, - bool sanitizeAll = false) + bool sanitizeAll = false, + IUserMessage? replyTo = null) => text switch { SmartEmbedText set => channel.SendAsync(set.PlainText, set.IsValid ? set.GetEmbed().Build() : null, - sanitizeAll: sanitizeAll), + sanitizeAll: sanitizeAll, + replyTo: replyTo), SmartPlainText st => channel.SendAsync(st.Text, default(Embed), - sanitizeAll: sanitizeAll), + sanitizeAll: sanitizeAll, + replyTo: replyTo), SmartEmbedTextArray arr => channel.SendAsync(arr.Content, - embeds: arr.GetEmbedBuilders().Map(e => e.Build())), + embeds: arr.GetEmbedBuilders().Map(e => e.Build()), + sanitizeAll: sanitizeAll, + replyTo: replyTo), _ => throw new ArgumentOutOfRangeException(nameof(text)) }; @@ -66,18 +89,21 @@ public static class MessageChannelExtensions IEmbedBuilder? embed, string plainText = "", IReadOnlyCollection? embeds = null, - NadekoInteraction? inter = null) + NadekoInteraction? inter = null, + IUserMessage? replyTo = null) => ch.SendAsync(plainText, inter, embed: embed?.Build(), - embeds: embeds?.Map(x => x.Build())); - + embeds: embeds?.Map(x => x.Build()), + replyTo: replyTo); + public static Task SendAsync( this IMessageChannel ch, IEmbedBuilderService eb, string text, MsgType type, - NadekoInteraction? inter = null) + NadekoInteraction? inter = null, + IUserMessage? replyTo = null) { var builder = eb.Create().WithDescription(text); @@ -89,12 +115,12 @@ public static class MessageChannelExtensions _ => throw new ArgumentOutOfRangeException(nameof(type)) }); - return ch.EmbedAsync(builder, inter: inter); + return ch.EmbedAsync(builder, inter: inter, replyTo: replyTo); } - + public static Task SendConfirmAsync(this IMessageChannel ch, IEmbedBuilderService eb, string text) => ch.SendAsync(eb, text, MsgType.Ok); - + public static Task SendAsync( this IMessageChannel ch, IEmbedBuilderService eb, @@ -121,12 +147,12 @@ public static class MessageChannelExtensions MsgType.Pending => embed.WithPendingColor(), _ => throw new ArgumentOutOfRangeException(nameof(type)) }; - + return ch.EmbedAsync(embed); } // embed title and optional footer overloads - + public static Task SendConfirmAsync( this IMessageChannel ch, IEmbedBuilderService eb, @@ -135,7 +161,7 @@ public static class MessageChannelExtensions string? url = null, string? footer = null) => ch.SendAsync(eb, MsgType.Ok, title, text, url, footer); - + public static Task SendErrorAsync( this IMessageChannel ch, IEmbedBuilderService eb, @@ -144,7 +170,7 @@ public static class MessageChannelExtensions string? url = null, string? footer = null) => ch.SendAsync(eb, MsgType.Error, title, text, url, footer); - + // regular send overloads public static Task SendErrorAsync(this IMessageChannel ch, IEmbedBuilderService eb, string text) => ch.SendAsync(eb, text, MsgType.Error); @@ -164,7 +190,7 @@ public static class MessageChannelExtensions private const string BUTTON_LEFT = "BUTTON_LEFT"; private const string BUTTON_RIGHT = "BUTTON_RIGHT"; - + private static readonly IEmote _arrowLeft = Emote.Parse("<:x:1232256519844790302>"); private static readonly IEmote _arrowRight = Emote.Parse("<:x:1232256515298295838>"); @@ -181,7 +207,7 @@ public static class MessageChannelExtensions totalElements, itemsPerPage, addPaginatedFooter); - + public static async Task SendPaginatedConfirmAsync( this ICommandContext ctx, int currentPage, @@ -192,23 +218,24 @@ public static class MessageChannelExtensions bool addPaginatedFooter = true) { var lastPage = (totalElements - 1) / itemsPerPage; - + var embed = await pageFunc(currentPage); if (addPaginatedFooter) embed.AddPaginatedFooter(currentPage, lastPage); SimpleInteraction? maybeInter = null; + async Task GetComponentBuilder() { var cb = new ComponentBuilder(); - + cb.WithButton(new ButtonBuilder() - .WithStyle(ButtonStyle.Primary) - .WithCustomId(BUTTON_LEFT) - .WithDisabled(lastPage == 0) - .WithEmote(_arrowLeft) - .WithDisabled(currentPage <= 0)); + .WithStyle(ButtonStyle.Primary) + .WithCustomId(BUTTON_LEFT) + .WithDisabled(lastPage == 0) + .WithEmote(_arrowLeft) + .WithDisabled(currentPage <= 0)); if (interFactory is not null) { @@ -219,10 +246,10 @@ public static class MessageChannelExtensions } cb.WithButton(new ButtonBuilder() - .WithStyle(ButtonStyle.Primary) - .WithCustomId(BUTTON_RIGHT) - .WithDisabled(lastPage == 0 || currentPage >= lastPage) - .WithEmote(_arrowRight)); + .WithStyle(ButtonStyle.Primary) + .WithCustomId(BUTTON_RIGHT) + .WithDisabled(lastPage == 0 || currentPage >= lastPage) + .WithEmote(_arrowRight)); return cb; } @@ -232,7 +259,7 @@ public static class MessageChannelExtensions var toSend = await pageFunc(currentPage); if (addPaginatedFooter) toSend.AddPaginatedFooter(currentPage, lastPage); - + var component = (await GetComponentBuilder()).Build(); await smc.ModifyOriginalResponseAsync(x => @@ -241,9 +268,9 @@ public static class MessageChannelExtensions x.Components = component; }); } - + var component = (await GetComponentBuilder()).Build(); - var msg = await ctx.Channel.SendAsync(null, embed: embed.Build(), components: component); + var msg = await ctx.Channel.SendAsync(null, embed: embed.Build(), components: component, replyTo: ctx.Message); async Task OnInteractionAsync(SocketInteraction si) { @@ -271,7 +298,7 @@ public static class MessageChannelExtensions { if (currentPage >= lastPage) return; - + ++currentPage; _ = UpdatePageAsync(smc); } @@ -297,14 +324,14 @@ public static class MessageChannelExtensions await Task.Delay(30_000); client.InteractionCreated -= OnInteractionAsync; - + await msg.ModifyAsync(mp => mp.Components = new ComponentBuilder().Build()); } private static readonly Emoji _okEmoji = new Emoji("✅"); private static readonly Emoji _warnEmoji = new Emoji("⚠️"); private static readonly Emoji _errorEmoji = new Emoji("❌"); - + public static Task ReactAsync(this ICommandContext ctx, MsgType type) { var emoji = type switch diff --git a/src/NadekoBot/_common/Extensions/ImagesharpExtensions.cs b/src/NadekoBot/_common/_Extensions/ImagesharpExtensions.cs similarity index 100% rename from src/NadekoBot/_common/Extensions/ImagesharpExtensions.cs rename to src/NadekoBot/_common/_Extensions/ImagesharpExtensions.cs diff --git a/src/NadekoBot/data/aliases.yml b/src/NadekoBot/data/aliases.yml index bafe3535d..2841e319d 100644 --- a/src/NadekoBot/data/aliases.yml +++ b/src/NadekoBot/data/aliases.yml @@ -743,10 +743,6 @@ unmute: - unmute xkcd: - xkcd -placelist: - - placelist -place: - - place autotranslang: - autotranslang - atl @@ -1090,6 +1086,8 @@ clubleaderboard: - clubs clubadmin: - clubadmin +clubrename: + - clubrename eightball: - eightball - 8ball @@ -1385,4 +1383,9 @@ todoarchivedelete: - delete - del - remove - - rm \ No newline at end of file + - rm +todoedit: + - edit + - change +stickyroles: + - stickyroles diff --git a/src/ayu/Ayu.Discord.Voice/CloseCodes.cs b/src/ayu/NadekoBot.Voice/CloseCodes.cs similarity index 100% rename from src/ayu/Ayu.Discord.Voice/CloseCodes.cs rename to src/ayu/NadekoBot.Voice/CloseCodes.cs diff --git a/src/ayu/Ayu.Discord.Voice/LibOpus.cs b/src/ayu/NadekoBot.Voice/LibOpus.cs similarity index 100% rename from src/ayu/Ayu.Discord.Voice/LibOpus.cs rename to src/ayu/NadekoBot.Voice/LibOpus.cs diff --git a/src/ayu/Ayu.Discord.Voice/LibSodium.cs b/src/ayu/NadekoBot.Voice/LibSodium.cs similarity index 100% rename from src/ayu/Ayu.Discord.Voice/LibSodium.cs rename to src/ayu/NadekoBot.Voice/LibSodium.cs diff --git a/src/ayu/Ayu.Discord.Voice/Models/SelectProtocol.cs b/src/ayu/NadekoBot.Voice/Models/SelectProtocol.cs similarity index 100% rename from src/ayu/Ayu.Discord.Voice/Models/SelectProtocol.cs rename to src/ayu/NadekoBot.Voice/Models/SelectProtocol.cs diff --git a/src/ayu/Ayu.Discord.Voice/Models/VoiceHello.cs b/src/ayu/NadekoBot.Voice/Models/VoiceHello.cs similarity index 100% rename from src/ayu/Ayu.Discord.Voice/Models/VoiceHello.cs rename to src/ayu/NadekoBot.Voice/Models/VoiceHello.cs diff --git a/src/ayu/Ayu.Discord.Voice/Models/VoiceIdentify.cs b/src/ayu/NadekoBot.Voice/Models/VoiceIdentify.cs similarity index 100% rename from src/ayu/Ayu.Discord.Voice/Models/VoiceIdentify.cs rename to src/ayu/NadekoBot.Voice/Models/VoiceIdentify.cs diff --git a/src/ayu/Ayu.Discord.Voice/Models/VoicePayload.cs b/src/ayu/NadekoBot.Voice/Models/VoicePayload.cs similarity index 100% rename from src/ayu/Ayu.Discord.Voice/Models/VoicePayload.cs rename to src/ayu/NadekoBot.Voice/Models/VoicePayload.cs diff --git a/src/ayu/Ayu.Discord.Voice/Models/VoiceReady.cs b/src/ayu/NadekoBot.Voice/Models/VoiceReady.cs similarity index 100% rename from src/ayu/Ayu.Discord.Voice/Models/VoiceReady.cs rename to src/ayu/NadekoBot.Voice/Models/VoiceReady.cs diff --git a/src/ayu/Ayu.Discord.Voice/Models/VoiceResume.cs b/src/ayu/NadekoBot.Voice/Models/VoiceResume.cs similarity index 100% rename from src/ayu/Ayu.Discord.Voice/Models/VoiceResume.cs rename to src/ayu/NadekoBot.Voice/Models/VoiceResume.cs diff --git a/src/ayu/Ayu.Discord.Voice/Models/VoiceSessionDescription.cs b/src/ayu/NadekoBot.Voice/Models/VoiceSessionDescription.cs similarity index 100% rename from src/ayu/Ayu.Discord.Voice/Models/VoiceSessionDescription.cs rename to src/ayu/NadekoBot.Voice/Models/VoiceSessionDescription.cs diff --git a/src/ayu/Ayu.Discord.Voice/Models/VoiceSpeaking.cs b/src/ayu/NadekoBot.Voice/Models/VoiceSpeaking.cs similarity index 100% rename from src/ayu/Ayu.Discord.Voice/Models/VoiceSpeaking.cs rename to src/ayu/NadekoBot.Voice/Models/VoiceSpeaking.cs diff --git a/src/ayu/Ayu.Discord.Voice/Ayu.Discord.Voice.csproj b/src/ayu/NadekoBot.Voice/NadekoBot.Voice.csproj similarity index 90% rename from src/ayu/Ayu.Discord.Voice/Ayu.Discord.Voice.csproj rename to src/ayu/NadekoBot.Voice/NadekoBot.Voice.csproj index 46071ccf6..fabee0835 100644 --- a/src/ayu/Ayu.Discord.Voice/Ayu.Discord.Voice.csproj +++ b/src/ayu/NadekoBot.Voice/NadekoBot.Voice.csproj @@ -5,6 +5,7 @@ true CS8632 1.0.2 + Ayu.Discord.Voice diff --git a/src/ayu/Ayu.Discord.Voice/PoopyBufferImmortalized.cs b/src/ayu/NadekoBot.Voice/PoopyBufferImmortalized.cs similarity index 100% rename from src/ayu/Ayu.Discord.Voice/PoopyBufferImmortalized.cs rename to src/ayu/NadekoBot.Voice/PoopyBufferImmortalized.cs diff --git a/src/ayu/Ayu.Discord.Voice/SocketClient.cs b/src/ayu/NadekoBot.Voice/SocketClient.cs similarity index 100% rename from src/ayu/Ayu.Discord.Voice/SocketClient.cs rename to src/ayu/NadekoBot.Voice/SocketClient.cs diff --git a/src/ayu/Ayu.Discord.Voice/SongBuffer.cs b/src/ayu/NadekoBot.Voice/SongBuffer.cs similarity index 100% rename from src/ayu/Ayu.Discord.Voice/SongBuffer.cs rename to src/ayu/NadekoBot.Voice/SongBuffer.cs diff --git a/src/ayu/Ayu.Discord.Voice/VoiceClient.cs b/src/ayu/NadekoBot.Voice/VoiceClient.cs similarity index 100% rename from src/ayu/Ayu.Discord.Voice/VoiceClient.cs rename to src/ayu/NadekoBot.Voice/VoiceClient.cs diff --git a/src/ayu/Ayu.Discord.Voice/VoiceGateway.cs b/src/ayu/NadekoBot.Voice/VoiceGateway.cs similarity index 100% rename from src/ayu/Ayu.Discord.Voice/VoiceGateway.cs rename to src/ayu/NadekoBot.Voice/VoiceGateway.cs