// using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using EllieBot.Services.Database; #nullable disable namespace EllieBot.Migrations { [DbContext(typeof(SqliteContext))] [Migration("20220503234243_new-rero")] partial class newrero { protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder.HasAnnotation("ProductVersion", "6.0.3"); modelBuilder.Entity("EllieBot.Db.Models.BankUser", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("Balance") .HasColumnType("INTEGER"); b.Property("DateAdded") .HasColumnType("TEXT"); b.Property("UserId") .HasColumnType("INTEGER"); b.HasKey("Id"); b.HasIndex("UserId") .IsUnique(); b.ToTable("BankUsers"); }); modelBuilder.Entity("EllieBot.Db.Models.ClubApplicants", b => { b.Property("ClubId") .HasColumnType("INTEGER"); b.Property("UserId") .HasColumnType("INTEGER"); b.HasKey("ClubId", "UserId"); b.HasIndex("UserId"); b.ToTable("ClubApplicants"); }); modelBuilder.Entity("EllieBot.Db.Models.ClubBans", b => { b.Property("ClubId") .HasColumnType("INTEGER"); b.Property("UserId") .HasColumnType("INTEGER"); b.HasKey("ClubId", "UserId"); b.HasIndex("UserId"); b.ToTable("ClubBans"); }); modelBuilder.Entity("EllieBot.Db.Models.ClubInfo", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("DateAdded") .HasColumnType("TEXT"); b.Property("Description") .HasColumnType("TEXT"); b.Property("ImageUrl") .HasColumnType("TEXT"); b.Property("Name") .IsRequired() .HasMaxLength(20) .HasColumnType("TEXT"); b.Property("OwnerId") .HasColumnType("INTEGER"); b.Property("Xp") .HasColumnType("INTEGER"); b.HasKey("Id"); b.HasAlternateKey("Name"); b.HasIndex("OwnerId") .IsUnique(); b.ToTable("Clubs"); }); modelBuilder.Entity("EllieBot.Db.Models.DiscordUser", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("AvatarId") .HasColumnType("TEXT"); b.Property("ClubId") .HasColumnType("INTEGER"); b.Property("CurrencyAmount") .ValueGeneratedOnAdd() .HasColumnType("INTEGER") .HasDefaultValue(0L); b.Property("DateAdded") .HasColumnType("TEXT"); b.Property("Discriminator") .HasColumnType("TEXT"); b.Property("IsClubAdmin") .ValueGeneratedOnAdd() .HasColumnType("INTEGER") .HasDefaultValue(false); b.Property("LastLevelUp") .ValueGeneratedOnAdd() .HasColumnType("TEXT") .HasDefaultValueSql("datetime('now')"); b.Property("LastXpGain") .ValueGeneratedOnAdd() .HasColumnType("TEXT") .HasDefaultValueSql("datetime('now', '-1 years')"); b.Property("NotifyOnLevelUp") .ValueGeneratedOnAdd() .HasColumnType("INTEGER") .HasDefaultValue(0); b.Property("TotalXp") .ValueGeneratedOnAdd() .HasColumnType("INTEGER") .HasDefaultValue(0); b.Property("UserId") .HasColumnType("INTEGER"); b.Property("Username") .HasColumnType("TEXT"); b.HasKey("Id"); b.HasAlternateKey("UserId"); b.HasIndex("ClubId"); b.HasIndex("CurrencyAmount"); b.HasIndex("TotalXp"); b.HasIndex("UserId"); b.ToTable("DiscordUser"); }); modelBuilder.Entity("EllieBot.Db.Models.FollowedStream", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("ChannelId") .HasColumnType("INTEGER"); b.Property("DateAdded") .HasColumnType("TEXT"); b.Property("GuildConfigId") .HasColumnType("INTEGER"); b.Property("GuildId") .HasColumnType("INTEGER"); b.Property("Message") .HasColumnType("TEXT"); b.Property("Type") .HasColumnType("INTEGER"); b.Property("Username") .HasColumnType("TEXT"); b.HasKey("Id"); b.HasIndex("GuildConfigId"); b.ToTable("FollowedStream"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.AntiAltSetting", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("Action") .HasColumnType("INTEGER"); b.Property("ActionDurationMinutes") .HasColumnType("INTEGER"); b.Property("GuildConfigId") .HasColumnType("INTEGER"); b.Property("MinAge") .HasColumnType("TEXT"); b.Property("RoleId") .HasColumnType("INTEGER"); b.HasKey("Id"); b.HasIndex("GuildConfigId") .IsUnique(); b.ToTable("AntiAltSetting"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.AntiRaidSetting", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("Action") .HasColumnType("INTEGER"); b.Property("DateAdded") .HasColumnType("TEXT"); b.Property("GuildConfigId") .HasColumnType("INTEGER"); b.Property("PunishDuration") .HasColumnType("INTEGER"); b.Property("Seconds") .HasColumnType("INTEGER"); b.Property("UserThreshold") .HasColumnType("INTEGER"); b.HasKey("Id"); b.HasIndex("GuildConfigId") .IsUnique(); b.ToTable("AntiRaidSetting"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.AntiSpamIgnore", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("AntiSpamSettingId") .HasColumnType("INTEGER"); b.Property("ChannelId") .HasColumnType("INTEGER"); b.Property("DateAdded") .HasColumnType("TEXT"); b.HasKey("Id"); b.HasIndex("AntiSpamSettingId"); b.ToTable("AntiSpamIgnore"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.AntiSpamSetting", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("Action") .HasColumnType("INTEGER"); b.Property("DateAdded") .HasColumnType("TEXT"); b.Property("GuildConfigId") .HasColumnType("INTEGER"); b.Property("MessageThreshold") .HasColumnType("INTEGER"); b.Property("MuteTime") .HasColumnType("INTEGER"); b.Property("RoleId") .HasColumnType("INTEGER"); b.HasKey("Id"); b.HasIndex("GuildConfigId") .IsUnique(); b.ToTable("AntiSpamSetting"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.AutoCommand", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("ChannelId") .HasColumnType("INTEGER"); b.Property("ChannelName") .HasColumnType("TEXT"); b.Property("CommandText") .HasColumnType("TEXT"); b.Property("DateAdded") .HasColumnType("TEXT"); b.Property("GuildId") .HasColumnType("INTEGER"); b.Property("GuildName") .HasColumnType("TEXT"); b.Property("Interval") .HasColumnType("INTEGER"); b.Property("VoiceChannelId") .HasColumnType("INTEGER"); b.Property("VoiceChannelName") .HasColumnType("TEXT"); b.HasKey("Id"); b.ToTable("AutoCommands"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.AutoTranslateChannel", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("AutoDelete") .HasColumnType("INTEGER"); b.Property("ChannelId") .HasColumnType("INTEGER"); b.Property("DateAdded") .HasColumnType("TEXT"); b.Property("GuildId") .HasColumnType("INTEGER"); b.HasKey("Id"); b.HasIndex("ChannelId") .IsUnique(); b.HasIndex("GuildId"); b.ToTable("AutoTranslateChannels"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.AutoTranslateUser", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("ChannelId") .HasColumnType("INTEGER"); b.Property("DateAdded") .HasColumnType("TEXT"); b.Property("Source") .HasColumnType("TEXT"); b.Property("Target") .HasColumnType("TEXT"); b.Property("UserId") .HasColumnType("INTEGER"); b.HasKey("Id"); b.HasAlternateKey("ChannelId", "UserId"); b.ToTable("AutoTranslateUsers"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.BanTemplate", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("DateAdded") .HasColumnType("TEXT"); b.Property("GuildId") .HasColumnType("INTEGER"); b.Property("Text") .HasColumnType("TEXT"); b.HasKey("Id"); b.HasIndex("GuildId") .IsUnique(); b.ToTable("BanTemplates"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.BlacklistEntry", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("DateAdded") .HasColumnType("TEXT"); b.Property("ItemId") .HasColumnType("INTEGER"); b.Property("Type") .HasColumnType("INTEGER"); b.HasKey("Id"); b.ToTable("Blacklist"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.CommandAlias", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("DateAdded") .HasColumnType("TEXT"); b.Property("GuildConfigId") .HasColumnType("INTEGER"); b.Property("Mapping") .HasColumnType("TEXT"); b.Property("Trigger") .HasColumnType("TEXT"); b.HasKey("Id"); b.HasIndex("GuildConfigId"); b.ToTable("CommandAlias"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.CommandCooldown", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("CommandName") .HasColumnType("TEXT"); b.Property("DateAdded") .HasColumnType("TEXT"); b.Property("GuildConfigId") .HasColumnType("INTEGER"); b.Property("Seconds") .HasColumnType("INTEGER"); b.HasKey("Id"); b.HasIndex("GuildConfigId"); b.ToTable("CommandCooldown"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.CurrencyTransaction", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("Amount") .HasColumnType("INTEGER"); b.Property("DateAdded") .HasColumnType("TEXT"); b.Property("Extra") .IsRequired() .HasColumnType("TEXT"); b.Property("Note") .HasColumnType("TEXT"); b.Property("OtherId") .ValueGeneratedOnAdd() .HasColumnType("INTEGER") .HasDefaultValueSql("NULL"); b.Property("Type") .IsRequired() .HasColumnType("TEXT"); b.Property("UserId") .HasColumnType("INTEGER"); b.HasKey("Id"); b.HasIndex("UserId"); b.ToTable("CurrencyTransactions"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.DelMsgOnCmdChannel", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("ChannelId") .HasColumnType("INTEGER"); b.Property("DateAdded") .HasColumnType("TEXT"); b.Property("GuildConfigId") .HasColumnType("INTEGER"); b.Property("State") .HasColumnType("INTEGER"); b.HasKey("Id"); b.HasIndex("GuildConfigId"); b.ToTable("DelMsgOnCmdChannel"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.DiscordPermOverride", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("Command") .HasColumnType("TEXT"); b.Property("DateAdded") .HasColumnType("TEXT"); b.Property("GuildId") .HasColumnType("INTEGER"); b.Property("Perm") .HasColumnType("INTEGER"); b.HasKey("Id"); b.HasIndex("GuildId", "Command") .IsUnique(); b.ToTable("DiscordPermOverrides"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.ExcludedItem", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("DateAdded") .HasColumnType("TEXT"); b.Property("ItemId") .HasColumnType("INTEGER"); b.Property("ItemType") .HasColumnType("INTEGER"); b.Property("XpSettingsId") .HasColumnType("INTEGER"); b.HasKey("Id"); b.HasIndex("XpSettingsId"); b.ToTable("ExcludedItem"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.FeedSub", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("ChannelId") .HasColumnType("INTEGER"); b.Property("DateAdded") .HasColumnType("TEXT"); b.Property("GuildConfigId") .HasColumnType("INTEGER"); b.Property("Url") .IsRequired() .HasColumnType("TEXT"); b.HasKey("Id"); b.HasAlternateKey("GuildConfigId", "Url"); b.ToTable("FeedSub"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.FilterChannelId", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("ChannelId") .HasColumnType("INTEGER"); b.Property("DateAdded") .HasColumnType("TEXT"); b.Property("GuildConfigId") .HasColumnType("INTEGER"); b.HasKey("Id"); b.HasIndex("GuildConfigId"); b.ToTable("FilterChannelId"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.FilteredWord", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("DateAdded") .HasColumnType("TEXT"); b.Property("GuildConfigId") .HasColumnType("INTEGER"); b.Property("Word") .HasColumnType("TEXT"); b.HasKey("Id"); b.HasIndex("GuildConfigId"); b.ToTable("FilteredWord"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.FilterLinksChannelId", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("ChannelId") .HasColumnType("INTEGER"); b.Property("DateAdded") .HasColumnType("TEXT"); b.Property("GuildConfigId") .HasColumnType("INTEGER"); b.HasKey("Id"); b.HasIndex("GuildConfigId"); b.ToTable("FilterLinksChannelId"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.FilterWordsChannelId", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("ChannelId") .HasColumnType("INTEGER"); b.Property("DateAdded") .HasColumnType("TEXT"); b.Property("GuildConfigId") .HasColumnType("INTEGER"); b.HasKey("Id"); b.HasIndex("GuildConfigId"); b.ToTable("FilterWordsChannelId"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.GCChannelId", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("ChannelId") .HasColumnType("INTEGER"); b.Property("DateAdded") .HasColumnType("TEXT"); b.Property("GuildConfigId") .HasColumnType("INTEGER"); b.HasKey("Id"); b.HasIndex("GuildConfigId"); b.ToTable("GCChannelId"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.GroupName", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("DateAdded") .HasColumnType("TEXT"); b.Property("GuildConfigId") .HasColumnType("INTEGER"); b.Property("Name") .HasColumnType("TEXT"); b.Property("Number") .HasColumnType("INTEGER"); b.HasKey("Id"); b.HasIndex("GuildConfigId", "Number") .IsUnique(); b.ToTable("GroupName"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.GuildConfig", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("AutoAssignRoleIds") .HasColumnType("TEXT"); b.Property("AutoDeleteByeMessagesTimer") .HasColumnType("INTEGER"); b.Property("AutoDeleteGreetMessagesTimer") .HasColumnType("INTEGER"); b.Property("AutoDeleteSelfAssignedRoleMessages") .HasColumnType("INTEGER"); b.Property("BoostMessage") .HasColumnType("TEXT"); b.Property("BoostMessageChannelId") .HasColumnType("INTEGER"); b.Property("BoostMessageDeleteAfter") .HasColumnType("INTEGER"); b.Property("ByeMessageChannelId") .HasColumnType("INTEGER"); b.Property("ChannelByeMessageText") .HasColumnType("TEXT"); b.Property("ChannelGreetMessageText") .HasColumnType("TEXT"); b.Property("CleverbotEnabled") .HasColumnType("INTEGER"); b.Property("DateAdded") .HasColumnType("TEXT"); b.Property("DeleteMessageOnCommand") .HasColumnType("INTEGER"); b.Property("DeleteStreamOnlineMessage") .HasColumnType("INTEGER"); b.Property("DmGreetMessageText") .HasColumnType("TEXT"); b.Property("ExclusiveSelfAssignedRoles") .HasColumnType("INTEGER"); b.Property("FilterInvites") .HasColumnType("INTEGER"); b.Property("FilterLinks") .HasColumnType("INTEGER"); b.Property("FilterWords") .HasColumnType("INTEGER"); b.Property("GameVoiceChannel") .HasColumnType("INTEGER"); b.Property("GreetMessageChannelId") .HasColumnType("INTEGER"); b.Property("GuildId") .HasColumnType("INTEGER"); b.Property("Locale") .HasColumnType("TEXT"); b.Property("MuteRoleName") .HasColumnType("TEXT"); b.Property("NotifyStreamOffline") .HasColumnType("INTEGER"); b.Property("PermissionRole") .HasColumnType("TEXT"); b.Property("Prefix") .HasColumnType("TEXT"); b.Property("SendBoostMessage") .HasColumnType("INTEGER"); b.Property("SendChannelByeMessage") .HasColumnType("INTEGER"); b.Property("SendChannelGreetMessage") .HasColumnType("INTEGER"); b.Property("SendDmGreetMessage") .HasColumnType("INTEGER"); b.Property("TimeZoneId") .HasColumnType("TEXT"); b.Property("VerboseErrors") .HasColumnType("INTEGER"); b.Property("VerbosePermissions") .HasColumnType("INTEGER"); b.Property("WarnExpireAction") .HasColumnType("INTEGER"); b.Property("WarnExpireHours") .HasColumnType("INTEGER"); b.Property("WarningsInitialized") .HasColumnType("INTEGER"); b.HasKey("Id"); b.HasIndex("GuildId") .IsUnique(); b.HasIndex("WarnExpireHours"); b.ToTable("GuildConfigs"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.IgnoredLogItem", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("DateAdded") .HasColumnType("TEXT"); b.Property("ItemType") .HasColumnType("INTEGER"); b.Property("LogItemId") .HasColumnType("INTEGER"); b.Property("LogSettingId") .HasColumnType("INTEGER"); b.HasKey("Id"); b.HasIndex("LogSettingId", "LogItemId", "ItemType") .IsUnique(); b.ToTable("IgnoredLogChannels"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.IgnoredVoicePresenceChannel", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("ChannelId") .HasColumnType("INTEGER"); b.Property("DateAdded") .HasColumnType("TEXT"); b.Property("LogSettingId") .HasColumnType("INTEGER"); b.HasKey("Id"); b.HasIndex("LogSettingId"); b.ToTable("IgnoredVoicePresenceCHannels"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.ImageOnlyChannel", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("ChannelId") .HasColumnType("INTEGER"); b.Property("DateAdded") .HasColumnType("TEXT"); b.Property("GuildId") .HasColumnType("INTEGER"); b.HasKey("Id"); b.HasIndex("ChannelId") .IsUnique(); b.ToTable("ImageOnlyChannels"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.LogSetting", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("ChannelCreatedId") .HasColumnType("INTEGER"); b.Property("ChannelDestroyedId") .HasColumnType("INTEGER"); b.Property("ChannelUpdatedId") .HasColumnType("INTEGER"); b.Property("DateAdded") .HasColumnType("TEXT"); b.Property("GuildId") .HasColumnType("INTEGER"); b.Property("LogOtherId") .HasColumnType("INTEGER"); b.Property("LogUserPresenceId") .HasColumnType("INTEGER"); b.Property("LogVoicePresenceId") .HasColumnType("INTEGER"); b.Property("LogVoicePresenceTTSId") .HasColumnType("INTEGER"); b.Property("MessageDeletedId") .HasColumnType("INTEGER"); b.Property("MessageUpdatedId") .HasColumnType("INTEGER"); b.Property("UserBannedId") .HasColumnType("INTEGER"); b.Property("UserJoinedId") .HasColumnType("INTEGER"); b.Property("UserLeftId") .HasColumnType("INTEGER"); b.Property("UserMutedId") .HasColumnType("INTEGER"); b.Property("UserUnbannedId") .HasColumnType("INTEGER"); b.Property("UserUpdatedId") .HasColumnType("INTEGER"); b.HasKey("Id"); b.HasIndex("GuildId") .IsUnique(); b.ToTable("LogSettings"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.MusicPlayerSettings", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("AutoDisconnect") .HasColumnType("INTEGER"); b.Property("AutoPlay") .HasColumnType("INTEGER"); b.Property("GuildId") .HasColumnType("INTEGER"); b.Property("MusicChannelId") .HasColumnType("INTEGER"); b.Property("PlayerRepeat") .HasColumnType("INTEGER"); b.Property("QualityPreset") .HasColumnType("INTEGER"); b.Property("Volume") .ValueGeneratedOnAdd() .HasColumnType("INTEGER") .HasDefaultValue(100); b.HasKey("Id"); b.HasIndex("GuildId") .IsUnique(); b.ToTable("MusicPlayerSettings"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.MusicPlaylist", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("Author") .HasColumnType("TEXT"); b.Property("AuthorId") .HasColumnType("INTEGER"); b.Property("DateAdded") .HasColumnType("TEXT"); b.Property("Name") .HasColumnType("TEXT"); b.HasKey("Id"); b.ToTable("MusicPlaylists"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.MutedUserId", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("DateAdded") .HasColumnType("TEXT"); b.Property("GuildConfigId") .HasColumnType("INTEGER"); b.Property("UserId") .HasColumnType("INTEGER"); b.HasKey("Id"); b.HasIndex("GuildConfigId"); b.ToTable("MutedUserId"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.EllieExpression", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("AllowTarget") .HasColumnType("INTEGER"); b.Property("AutoDeleteTrigger") .HasColumnType("INTEGER"); b.Property("ContainsAnywhere") .HasColumnType("INTEGER"); b.Property("DateAdded") .HasColumnType("TEXT"); b.Property("DmResponse") .HasColumnType("INTEGER"); b.Property("GuildId") .HasColumnType("INTEGER"); b.Property("Reactions") .HasColumnType("TEXT"); b.Property("Response") .HasColumnType("TEXT"); b.Property("Trigger") .HasColumnType("TEXT"); b.HasKey("Id"); b.ToTable("Expressions"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.NsfwBlacklistedTag", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("DateAdded") .HasColumnType("TEXT"); b.Property("GuildId") .HasColumnType("INTEGER"); b.Property("Tag") .HasColumnType("TEXT"); b.HasKey("Id"); b.HasIndex("GuildId"); b.ToTable("NsfwBlacklistedTags"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.Permissionv2", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("DateAdded") .HasColumnType("TEXT"); b.Property("GuildConfigId") .HasColumnType("INTEGER"); b.Property("Index") .HasColumnType("INTEGER"); b.Property("IsCustomCommand") .HasColumnType("INTEGER"); b.Property("PrimaryTarget") .HasColumnType("INTEGER"); b.Property("PrimaryTargetId") .HasColumnType("INTEGER"); b.Property("SecondaryTarget") .HasColumnType("INTEGER"); b.Property("SecondaryTargetName") .HasColumnType("TEXT"); b.Property("State") .HasColumnType("INTEGER"); b.HasKey("Id"); b.HasIndex("GuildConfigId"); b.ToTable("Permissions"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.PlantedCurrency", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("Amount") .HasColumnType("INTEGER"); b.Property("ChannelId") .HasColumnType("INTEGER"); b.Property("DateAdded") .HasColumnType("TEXT"); b.Property("GuildId") .HasColumnType("INTEGER"); b.Property("MessageId") .HasColumnType("INTEGER"); b.Property("Password") .HasColumnType("TEXT"); b.Property("UserId") .HasColumnType("INTEGER"); b.HasKey("Id"); b.HasIndex("ChannelId"); b.HasIndex("MessageId") .IsUnique(); b.ToTable("PlantedCurrency"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.PlaylistSong", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("DateAdded") .HasColumnType("TEXT"); b.Property("MusicPlaylistId") .HasColumnType("INTEGER"); b.Property("Provider") .HasColumnType("TEXT"); b.Property("ProviderType") .HasColumnType("INTEGER"); b.Property("Query") .HasColumnType("TEXT"); b.Property("Title") .HasColumnType("TEXT"); b.Property("Uri") .HasColumnType("TEXT"); b.HasKey("Id"); b.HasIndex("MusicPlaylistId"); b.ToTable("PlaylistSong"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.Poll", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("ChannelId") .HasColumnType("INTEGER"); b.Property("DateAdded") .HasColumnType("TEXT"); b.Property("GuildId") .HasColumnType("INTEGER"); b.Property("Question") .HasColumnType("TEXT"); b.HasKey("Id"); b.HasIndex("GuildId") .IsUnique(); b.ToTable("Poll"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.PollAnswer", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("DateAdded") .HasColumnType("TEXT"); b.Property("Index") .HasColumnType("INTEGER"); b.Property("PollId") .HasColumnType("INTEGER"); b.Property("Text") .HasColumnType("TEXT"); b.HasKey("Id"); b.HasIndex("PollId"); b.ToTable("PollAnswer"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.PollVote", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("DateAdded") .HasColumnType("TEXT"); b.Property("PollId") .HasColumnType("INTEGER"); b.Property("UserId") .HasColumnType("INTEGER"); b.Property("VoteIndex") .HasColumnType("INTEGER"); b.HasKey("Id"); b.HasIndex("PollId"); b.ToTable("PollVote"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.Quote", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("AuthorId") .HasColumnType("INTEGER"); b.Property("AuthorName") .IsRequired() .HasColumnType("TEXT"); b.Property("DateAdded") .HasColumnType("TEXT"); b.Property("GuildId") .HasColumnType("INTEGER"); b.Property("Keyword") .IsRequired() .HasColumnType("TEXT"); b.Property("Text") .IsRequired() .HasColumnType("TEXT"); b.HasKey("Id"); b.HasIndex("GuildId"); b.HasIndex("Keyword"); b.ToTable("Quotes"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.ReactionRoleV2", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("ChannelId") .HasColumnType("INTEGER"); b.Property("DateAdded") .HasColumnType("TEXT"); b.Property("Emote") .HasMaxLength(100) .HasColumnType("TEXT"); b.Property("Group") .HasColumnType("INTEGER"); b.Property("GuildId") .HasColumnType("INTEGER"); b.Property("LevelReq") .HasColumnType("INTEGER"); b.Property("MessageId") .HasColumnType("INTEGER"); b.Property("RoleId") .HasColumnType("INTEGER"); b.HasKey("Id"); b.HasIndex("GuildId"); b.HasIndex("MessageId", "Emote") .IsUnique(); b.ToTable("ReactionRoles"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.Reminder", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("ChannelId") .HasColumnType("INTEGER"); b.Property("DateAdded") .HasColumnType("TEXT"); b.Property("IsPrivate") .HasColumnType("INTEGER"); b.Property("Message") .HasColumnType("TEXT"); b.Property("ServerId") .HasColumnType("INTEGER"); b.Property("UserId") .HasColumnType("INTEGER"); b.Property("When") .HasColumnType("TEXT"); b.HasKey("Id"); b.HasIndex("When"); b.ToTable("Reminders"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.Repeater", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("ChannelId") .HasColumnType("INTEGER"); b.Property("DateAdded") .HasColumnType("TEXT"); b.Property("GuildId") .HasColumnType("INTEGER"); b.Property("Interval") .HasColumnType("TEXT"); b.Property("LastMessageId") .HasColumnType("INTEGER"); b.Property("Message") .HasColumnType("TEXT"); b.Property("NoRedundant") .HasColumnType("INTEGER"); b.Property("StartTimeOfDay") .HasColumnType("TEXT"); b.HasKey("Id"); b.ToTable("Repeaters"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.RewardedUser", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("AmountRewardedThisMonth") .HasColumnType("INTEGER"); b.Property("DateAdded") .HasColumnType("TEXT"); b.Property("LastReward") .HasColumnType("TEXT"); b.Property("PatreonUserId") .HasColumnType("TEXT"); b.Property("UserId") .HasColumnType("INTEGER"); b.HasKey("Id"); b.HasIndex("PatreonUserId") .IsUnique(); b.ToTable("RewardedUsers"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.RotatingPlayingStatus", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("DateAdded") .HasColumnType("TEXT"); b.Property("Status") .HasColumnType("TEXT"); b.Property("Type") .HasColumnType("INTEGER"); b.HasKey("Id"); b.ToTable("RotatingStatus"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.SelfAssignedRole", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("DateAdded") .HasColumnType("TEXT"); b.Property("Group") .ValueGeneratedOnAdd() .HasColumnType("INTEGER") .HasDefaultValue(0); b.Property("GuildId") .HasColumnType("INTEGER"); b.Property("LevelRequirement") .HasColumnType("INTEGER"); b.Property("RoleId") .HasColumnType("INTEGER"); b.HasKey("Id"); b.HasIndex("GuildId", "RoleId") .IsUnique(); b.ToTable("SelfAssignableRoles"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.ShopEntry", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("AuthorId") .HasColumnType("INTEGER"); b.Property("DateAdded") .HasColumnType("TEXT"); b.Property("GuildConfigId") .HasColumnType("INTEGER"); b.Property("Index") .HasColumnType("INTEGER"); b.Property("Name") .HasColumnType("TEXT"); b.Property("Price") .HasColumnType("INTEGER"); b.Property("RoleId") .HasColumnType("INTEGER"); b.Property("RoleName") .HasColumnType("TEXT"); b.Property("Type") .HasColumnType("INTEGER"); b.HasKey("Id"); b.HasIndex("GuildConfigId"); b.ToTable("ShopEntry"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.ShopEntryItem", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("DateAdded") .HasColumnType("TEXT"); b.Property("ShopEntryId") .HasColumnType("INTEGER"); b.Property("Text") .HasColumnType("TEXT"); b.HasKey("Id"); b.HasIndex("ShopEntryId"); b.ToTable("ShopEntryItem"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.SlowmodeIgnoredRole", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("DateAdded") .HasColumnType("TEXT"); b.Property("GuildConfigId") .HasColumnType("INTEGER"); b.Property("RoleId") .HasColumnType("INTEGER"); b.HasKey("Id"); b.HasIndex("GuildConfigId"); b.ToTable("SlowmodeIgnoredRole"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.SlowmodeIgnoredUser", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("DateAdded") .HasColumnType("TEXT"); b.Property("GuildConfigId") .HasColumnType("INTEGER"); b.Property("UserId") .HasColumnType("INTEGER"); b.HasKey("Id"); b.HasIndex("GuildConfigId"); b.ToTable("SlowmodeIgnoredUser"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.StreamRoleBlacklistedUser", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("DateAdded") .HasColumnType("TEXT"); b.Property("StreamRoleSettingsId") .HasColumnType("INTEGER"); b.Property("UserId") .HasColumnType("INTEGER"); b.Property("Username") .HasColumnType("TEXT"); b.HasKey("Id"); b.HasIndex("StreamRoleSettingsId"); b.ToTable("StreamRoleBlacklistedUser"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.StreamRoleSettings", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("AddRoleId") .HasColumnType("INTEGER"); b.Property("DateAdded") .HasColumnType("TEXT"); b.Property("Enabled") .HasColumnType("INTEGER"); b.Property("FromRoleId") .HasColumnType("INTEGER"); b.Property("GuildConfigId") .HasColumnType("INTEGER"); b.Property("Keyword") .HasColumnType("TEXT"); b.HasKey("Id"); b.HasIndex("GuildConfigId") .IsUnique(); b.ToTable("StreamRoleSettings"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.StreamRoleWhitelistedUser", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("DateAdded") .HasColumnType("TEXT"); b.Property("StreamRoleSettingsId") .HasColumnType("INTEGER"); b.Property("UserId") .HasColumnType("INTEGER"); b.Property("Username") .HasColumnType("TEXT"); b.HasKey("Id"); b.HasIndex("StreamRoleSettingsId"); b.ToTable("StreamRoleWhitelistedUser"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.UnbanTimer", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("DateAdded") .HasColumnType("TEXT"); b.Property("GuildConfigId") .HasColumnType("INTEGER"); b.Property("UnbanAt") .HasColumnType("TEXT"); b.Property("UserId") .HasColumnType("INTEGER"); b.HasKey("Id"); b.HasIndex("GuildConfigId"); b.ToTable("UnbanTimer"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.UnmuteTimer", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("DateAdded") .HasColumnType("TEXT"); b.Property("GuildConfigId") .HasColumnType("INTEGER"); b.Property("UnmuteAt") .HasColumnType("TEXT"); b.Property("UserId") .HasColumnType("INTEGER"); b.HasKey("Id"); b.HasIndex("GuildConfigId"); b.ToTable("UnmuteTimer"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.UnroleTimer", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("DateAdded") .HasColumnType("TEXT"); b.Property("GuildConfigId") .HasColumnType("INTEGER"); b.Property("RoleId") .HasColumnType("INTEGER"); b.Property("UnbanAt") .HasColumnType("TEXT"); b.Property("UserId") .HasColumnType("INTEGER"); b.HasKey("Id"); b.HasIndex("GuildConfigId"); b.ToTable("UnroleTimer"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.UserXpStats", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("AwardedXp") .HasColumnType("INTEGER"); b.Property("DateAdded") .HasColumnType("TEXT"); b.Property("GuildId") .HasColumnType("INTEGER"); b.Property("LastLevelUp") .ValueGeneratedOnAdd() .HasColumnType("TEXT") .HasDefaultValueSql("datetime('now')"); b.Property("NotifyOnLevelUp") .HasColumnType("INTEGER"); b.Property("UserId") .HasColumnType("INTEGER"); b.Property("Xp") .HasColumnType("INTEGER"); b.HasKey("Id"); b.HasIndex("AwardedXp"); b.HasIndex("GuildId"); b.HasIndex("UserId"); b.HasIndex("Xp"); b.HasIndex("UserId", "GuildId") .IsUnique(); b.ToTable("UserXpStats"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.VcRoleInfo", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("DateAdded") .HasColumnType("TEXT"); b.Property("GuildConfigId") .HasColumnType("INTEGER"); b.Property("RoleId") .HasColumnType("INTEGER"); b.Property("VoiceChannelId") .HasColumnType("INTEGER"); b.HasKey("Id"); b.HasIndex("GuildConfigId"); b.ToTable("VcRoleInfo"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.WaifuInfo", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("AffinityId") .HasColumnType("INTEGER"); b.Property("ClaimerId") .HasColumnType("INTEGER"); b.Property("DateAdded") .HasColumnType("TEXT"); b.Property("Price") .HasColumnType("INTEGER"); b.Property("WaifuId") .HasColumnType("INTEGER"); b.HasKey("Id"); b.HasIndex("AffinityId"); b.HasIndex("ClaimerId"); b.HasIndex("Price"); b.HasIndex("WaifuId") .IsUnique(); b.ToTable("WaifuInfo"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.WaifuItem", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("DateAdded") .HasColumnType("TEXT"); b.Property("ItemEmoji") .HasColumnType("TEXT"); b.Property("Name") .HasColumnType("TEXT"); b.Property("WaifuInfoId") .HasColumnType("INTEGER"); b.HasKey("Id"); b.HasIndex("WaifuInfoId"); b.ToTable("WaifuItem"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.WaifuUpdate", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("DateAdded") .HasColumnType("TEXT"); b.Property("NewId") .HasColumnType("INTEGER"); b.Property("OldId") .HasColumnType("INTEGER"); b.Property("UpdateType") .HasColumnType("INTEGER"); b.Property("UserId") .HasColumnType("INTEGER"); b.HasKey("Id"); b.HasIndex("NewId"); b.HasIndex("OldId"); b.HasIndex("UserId"); b.ToTable("WaifuUpdates"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.Warning", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("DateAdded") .HasColumnType("TEXT"); b.Property("Forgiven") .HasColumnType("INTEGER"); b.Property("ForgivenBy") .HasColumnType("TEXT"); b.Property("GuildId") .HasColumnType("INTEGER"); b.Property("Moderator") .HasColumnType("TEXT"); b.Property("Reason") .HasColumnType("TEXT"); b.Property("UserId") .HasColumnType("INTEGER"); b.Property("Weight") .ValueGeneratedOnAdd() .HasColumnType("INTEGER") .HasDefaultValue(1L); b.HasKey("Id"); b.HasIndex("DateAdded"); b.HasIndex("GuildId"); b.HasIndex("UserId"); b.ToTable("Warnings"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.WarningPunishment", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("Count") .HasColumnType("INTEGER"); b.Property("DateAdded") .HasColumnType("TEXT"); b.Property("GuildConfigId") .HasColumnType("INTEGER"); b.Property("Punishment") .HasColumnType("INTEGER"); b.Property("RoleId") .HasColumnType("INTEGER"); b.Property("Time") .HasColumnType("INTEGER"); b.HasKey("Id"); b.HasIndex("GuildConfigId"); b.ToTable("WarningPunishment"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.XpCurrencyReward", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("Amount") .HasColumnType("INTEGER"); b.Property("DateAdded") .HasColumnType("TEXT"); b.Property("Level") .HasColumnType("INTEGER"); b.Property("XpSettingsId") .HasColumnType("INTEGER"); b.HasKey("Id"); b.HasIndex("XpSettingsId"); b.ToTable("XpCurrencyReward"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.XpRoleReward", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("DateAdded") .HasColumnType("TEXT"); b.Property("Level") .HasColumnType("INTEGER"); b.Property("Remove") .HasColumnType("INTEGER"); b.Property("RoleId") .HasColumnType("INTEGER"); b.Property("XpSettingsId") .HasColumnType("INTEGER"); b.HasKey("Id"); b.HasIndex("XpSettingsId", "Level") .IsUnique(); b.ToTable("XpRoleReward"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.XpSettings", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("DateAdded") .HasColumnType("TEXT"); b.Property("GuildConfigId") .HasColumnType("INTEGER"); b.Property("ServerExcluded") .HasColumnType("INTEGER"); b.HasKey("Id"); b.HasIndex("GuildConfigId") .IsUnique(); b.ToTable("XpSettings"); }); modelBuilder.Entity("EllieBot.Db.Models.ClubApplicants", b => { b.HasOne("EllieBot.Db.Models.ClubInfo", "Club") .WithMany("Applicants") .HasForeignKey("ClubId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("EllieBot.Db.Models.DiscordUser", "User") .WithMany() .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Club"); b.Navigation("User"); }); modelBuilder.Entity("EllieBot.Db.Models.ClubBans", b => { b.HasOne("EllieBot.Db.Models.ClubInfo", "Club") .WithMany("Bans") .HasForeignKey("ClubId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("EllieBot.Db.Models.DiscordUser", "User") .WithMany() .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Club"); b.Navigation("User"); }); modelBuilder.Entity("EllieBot.Db.Models.ClubInfo", b => { b.HasOne("EllieBot.Db.Models.DiscordUser", "Owner") .WithOne() .HasForeignKey("EllieBot.Db.Models.ClubInfo", "OwnerId") .OnDelete(DeleteBehavior.SetNull); b.Navigation("Owner"); }); modelBuilder.Entity("EllieBot.Db.Models.DiscordUser", b => { b.HasOne("EllieBot.Db.Models.ClubInfo", "Club") .WithMany("Members") .HasForeignKey("ClubId") .OnDelete(DeleteBehavior.NoAction); b.Navigation("Club"); }); modelBuilder.Entity("EllieBot.Db.Models.FollowedStream", b => { b.HasOne("EllieBot.Services.Database.Models.GuildConfig", null) .WithMany("FollowedStreams") .HasForeignKey("GuildConfigId"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.AntiAltSetting", b => { b.HasOne("EllieBot.Services.Database.Models.GuildConfig", null) .WithOne("AntiAltSetting") .HasForeignKey("EllieBot.Services.Database.Models.AntiAltSetting", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); modelBuilder.Entity("EllieBot.Services.Database.Models.AntiRaidSetting", b => { b.HasOne("EllieBot.Services.Database.Models.GuildConfig", "GuildConfig") .WithOne("AntiRaidSetting") .HasForeignKey("EllieBot.Services.Database.Models.AntiRaidSetting", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("GuildConfig"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.AntiSpamIgnore", b => { b.HasOne("EllieBot.Services.Database.Models.AntiSpamSetting", null) .WithMany("IgnoredChannels") .HasForeignKey("AntiSpamSettingId"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.AntiSpamSetting", b => { b.HasOne("EllieBot.Services.Database.Models.GuildConfig", "GuildConfig") .WithOne("AntiSpamSetting") .HasForeignKey("EllieBot.Services.Database.Models.AntiSpamSetting", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("GuildConfig"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.AutoTranslateUser", b => { b.HasOne("EllieBot.Services.Database.Models.AutoTranslateChannel", "Channel") .WithMany("Users") .HasForeignKey("ChannelId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Channel"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.CommandAlias", b => { b.HasOne("EllieBot.Services.Database.Models.GuildConfig", null) .WithMany("CommandAliases") .HasForeignKey("GuildConfigId"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.CommandCooldown", b => { b.HasOne("EllieBot.Services.Database.Models.GuildConfig", null) .WithMany("CommandCooldowns") .HasForeignKey("GuildConfigId"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.DelMsgOnCmdChannel", b => { b.HasOne("EllieBot.Services.Database.Models.GuildConfig", null) .WithMany("DelMsgOnCmdChannels") .HasForeignKey("GuildConfigId"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.ExcludedItem", b => { b.HasOne("EllieBot.Services.Database.Models.XpSettings", null) .WithMany("ExclusionList") .HasForeignKey("XpSettingsId"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.FeedSub", b => { b.HasOne("EllieBot.Services.Database.Models.GuildConfig", "GuildConfig") .WithMany("FeedSubs") .HasForeignKey("GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("GuildConfig"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.FilterChannelId", b => { b.HasOne("EllieBot.Services.Database.Models.GuildConfig", null) .WithMany("FilterInvitesChannelIds") .HasForeignKey("GuildConfigId"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.FilteredWord", b => { b.HasOne("EllieBot.Services.Database.Models.GuildConfig", null) .WithMany("FilteredWords") .HasForeignKey("GuildConfigId"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.FilterLinksChannelId", b => { b.HasOne("EllieBot.Services.Database.Models.GuildConfig", null) .WithMany("FilterLinksChannelIds") .HasForeignKey("GuildConfigId"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.FilterWordsChannelId", b => { b.HasOne("EllieBot.Services.Database.Models.GuildConfig", null) .WithMany("FilterWordsChannelIds") .HasForeignKey("GuildConfigId"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.GCChannelId", b => { b.HasOne("EllieBot.Services.Database.Models.GuildConfig", "GuildConfig") .WithMany("GenerateCurrencyChannelIds") .HasForeignKey("GuildConfigId"); b.Navigation("GuildConfig"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.GroupName", b => { b.HasOne("EllieBot.Services.Database.Models.GuildConfig", "GuildConfig") .WithMany("SelfAssignableRoleGroupNames") .HasForeignKey("GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("GuildConfig"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.IgnoredLogItem", b => { b.HasOne("EllieBot.Services.Database.Models.LogSetting", "LogSetting") .WithMany("LogIgnores") .HasForeignKey("LogSettingId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("LogSetting"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.IgnoredVoicePresenceChannel", b => { b.HasOne("EllieBot.Services.Database.Models.LogSetting", "LogSetting") .WithMany() .HasForeignKey("LogSettingId"); b.Navigation("LogSetting"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.MutedUserId", b => { b.HasOne("EllieBot.Services.Database.Models.GuildConfig", null) .WithMany("MutedUsers") .HasForeignKey("GuildConfigId"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.Permissionv2", b => { b.HasOne("EllieBot.Services.Database.Models.GuildConfig", null) .WithMany("Permissions") .HasForeignKey("GuildConfigId"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.PlaylistSong", b => { b.HasOne("EllieBot.Services.Database.Models.MusicPlaylist", null) .WithMany("Songs") .HasForeignKey("MusicPlaylistId") .OnDelete(DeleteBehavior.Cascade); }); modelBuilder.Entity("EllieBot.Services.Database.Models.PollAnswer", b => { b.HasOne("EllieBot.Services.Database.Models.Poll", null) .WithMany("Answers") .HasForeignKey("PollId"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.PollVote", b => { b.HasOne("EllieBot.Services.Database.Models.Poll", null) .WithMany("Votes") .HasForeignKey("PollId"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.ShopEntry", b => { b.HasOne("EllieBot.Services.Database.Models.GuildConfig", null) .WithMany("ShopEntries") .HasForeignKey("GuildConfigId"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.ShopEntryItem", b => { b.HasOne("EllieBot.Services.Database.Models.ShopEntry", null) .WithMany("Items") .HasForeignKey("ShopEntryId"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.SlowmodeIgnoredRole", b => { b.HasOne("EllieBot.Services.Database.Models.GuildConfig", null) .WithMany("SlowmodeIgnoredRoles") .HasForeignKey("GuildConfigId"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.SlowmodeIgnoredUser", b => { b.HasOne("EllieBot.Services.Database.Models.GuildConfig", null) .WithMany("SlowmodeIgnoredUsers") .HasForeignKey("GuildConfigId"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.StreamRoleBlacklistedUser", b => { b.HasOne("EllieBot.Services.Database.Models.StreamRoleSettings", null) .WithMany("Blacklist") .HasForeignKey("StreamRoleSettingsId"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.StreamRoleSettings", b => { b.HasOne("EllieBot.Services.Database.Models.GuildConfig", "GuildConfig") .WithOne("StreamRole") .HasForeignKey("EllieBot.Services.Database.Models.StreamRoleSettings", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("GuildConfig"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.StreamRoleWhitelistedUser", b => { b.HasOne("EllieBot.Services.Database.Models.StreamRoleSettings", null) .WithMany("Whitelist") .HasForeignKey("StreamRoleSettingsId"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.UnbanTimer", b => { b.HasOne("EllieBot.Services.Database.Models.GuildConfig", null) .WithMany("UnbanTimer") .HasForeignKey("GuildConfigId"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.UnmuteTimer", b => { b.HasOne("EllieBot.Services.Database.Models.GuildConfig", null) .WithMany("UnmuteTimers") .HasForeignKey("GuildConfigId"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.UnroleTimer", b => { b.HasOne("EllieBot.Services.Database.Models.GuildConfig", null) .WithMany("UnroleTimer") .HasForeignKey("GuildConfigId"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.VcRoleInfo", b => { b.HasOne("EllieBot.Services.Database.Models.GuildConfig", null) .WithMany("VcRoleInfos") .HasForeignKey("GuildConfigId"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.WaifuInfo", b => { b.HasOne("EllieBot.Db.Models.DiscordUser", "Affinity") .WithMany() .HasForeignKey("AffinityId"); b.HasOne("EllieBot.Db.Models.DiscordUser", "Claimer") .WithMany() .HasForeignKey("ClaimerId"); b.HasOne("EllieBot.Db.Models.DiscordUser", "Waifu") .WithOne() .HasForeignKey("EllieBot.Services.Database.Models.WaifuInfo", "WaifuId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Affinity"); b.Navigation("Claimer"); b.Navigation("Waifu"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.WaifuItem", b => { b.HasOne("EllieBot.Services.Database.Models.WaifuInfo", "WaifuInfo") .WithMany("Items") .HasForeignKey("WaifuInfoId"); b.Navigation("WaifuInfo"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.WaifuUpdate", b => { b.HasOne("EllieBot.Db.Models.DiscordUser", "New") .WithMany() .HasForeignKey("NewId"); b.HasOne("EllieBot.Db.Models.DiscordUser", "Old") .WithMany() .HasForeignKey("OldId"); b.HasOne("EllieBot.Db.Models.DiscordUser", "User") .WithMany() .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("New"); b.Navigation("Old"); b.Navigation("User"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.WarningPunishment", b => { b.HasOne("EllieBot.Services.Database.Models.GuildConfig", null) .WithMany("WarnPunishments") .HasForeignKey("GuildConfigId"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.XpCurrencyReward", b => { b.HasOne("EllieBot.Services.Database.Models.XpSettings", "XpSettings") .WithMany("CurrencyRewards") .HasForeignKey("XpSettingsId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("XpSettings"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.XpRoleReward", b => { b.HasOne("EllieBot.Services.Database.Models.XpSettings", "XpSettings") .WithMany("RoleRewards") .HasForeignKey("XpSettingsId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("XpSettings"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.XpSettings", b => { b.HasOne("EllieBot.Services.Database.Models.GuildConfig", "GuildConfig") .WithOne("XpSettings") .HasForeignKey("EllieBot.Services.Database.Models.XpSettings", "GuildConfigId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("GuildConfig"); }); modelBuilder.Entity("EllieBot.Db.Models.ClubInfo", b => { b.Navigation("Applicants"); b.Navigation("Bans"); b.Navigation("Members"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.AntiSpamSetting", b => { b.Navigation("IgnoredChannels"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.AutoTranslateChannel", b => { b.Navigation("Users"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.GuildConfig", b => { b.Navigation("AntiAltSetting"); b.Navigation("AntiRaidSetting"); b.Navigation("AntiSpamSetting"); b.Navigation("CommandAliases"); b.Navigation("CommandCooldowns"); b.Navigation("DelMsgOnCmdChannels"); b.Navigation("FeedSubs"); b.Navigation("FilterInvitesChannelIds"); b.Navigation("FilterLinksChannelIds"); b.Navigation("FilterWordsChannelIds"); b.Navigation("FilteredWords"); b.Navigation("FollowedStreams"); b.Navigation("GenerateCurrencyChannelIds"); b.Navigation("MutedUsers"); b.Navigation("Permissions"); b.Navigation("SelfAssignableRoleGroupNames"); b.Navigation("ShopEntries"); b.Navigation("SlowmodeIgnoredRoles"); b.Navigation("SlowmodeIgnoredUsers"); b.Navigation("StreamRole"); b.Navigation("UnbanTimer"); b.Navigation("UnmuteTimers"); b.Navigation("UnroleTimer"); b.Navigation("VcRoleInfos"); b.Navigation("WarnPunishments"); b.Navigation("XpSettings"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.LogSetting", b => { b.Navigation("LogIgnores"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.MusicPlaylist", b => { b.Navigation("Songs"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.Poll", b => { b.Navigation("Answers"); b.Navigation("Votes"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.ShopEntry", b => { b.Navigation("Items"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.StreamRoleSettings", b => { b.Navigation("Blacklist"); b.Navigation("Whitelist"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.WaifuInfo", b => { b.Navigation("Items"); }); modelBuilder.Entity("EllieBot.Services.Database.Models.XpSettings", b => { b.Navigation("CurrencyRewards"); b.Navigation("ExclusionList"); b.Navigation("RoleRewards"); }); #pragma warning restore 612, 618 } } }