Added .todo commands and added toned down version of .fairplay

This commit is contained in:
Kwoth
2024-04-25 22:33:12 +00:00
parent b34f383649
commit 6bc8e4b7d2
30 changed files with 12293 additions and 148 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,72 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace NadekoBot.Db.Migrations.Sqlite
{
/// <inheritdoc />
public partial class todolist : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "TodosArchive",
columns: table => new
{
Id = table.Column<int>(type: "INTEGER", nullable: false)
.Annotation("Sqlite:Autoincrement", true),
UserId = table.Column<ulong>(type: "INTEGER", nullable: false),
Name = table.Column<string>(type: "TEXT", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_TodosArchive", x => x.Id);
});
migrationBuilder.CreateTable(
name: "Todos",
columns: table => new
{
Id = table.Column<int>(type: "INTEGER", nullable: false)
.Annotation("Sqlite:Autoincrement", true),
UserId = table.Column<ulong>(type: "INTEGER", nullable: false),
Todo = table.Column<string>(type: "TEXT", nullable: false),
DateAdded = table.Column<DateTime>(type: "TEXT", nullable: false),
IsDone = table.Column<bool>(type: "INTEGER", nullable: false),
ArchiveId = table.Column<int>(type: "INTEGER", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_Todos", x => x.Id);
table.ForeignKey(
name: "FK_Todos_TodosArchive_ArchiveId",
column: x => x.ArchiveId,
principalTable: "TodosArchive",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
});
migrationBuilder.CreateIndex(
name: "IX_Todos_ArchiveId",
table: "Todos",
column: "ArchiveId");
migrationBuilder.CreateIndex(
name: "IX_Todos_UserId",
table: "Todos",
column: "UserId");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "Todos");
migrationBuilder.DropTable(
name: "TodosArchive");
}
}
}

View File

@@ -43,7 +43,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasIndex("GuildConfigId")
.IsUnique();
b.ToTable("AntiAltSetting");
b.ToTable("AntiAltSetting", (string)null);
});
modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiRaidSetting", b =>
@@ -75,7 +75,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasIndex("GuildConfigId")
.IsUnique();
b.ToTable("AntiRaidSetting");
b.ToTable("AntiRaidSetting", (string)null);
});
modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamIgnore", b =>
@@ -97,7 +97,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasIndex("AntiSpamSettingId");
b.ToTable("AntiSpamIgnore");
b.ToTable("AntiSpamIgnore", (string)null);
});
modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamSetting", b =>
@@ -129,7 +129,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasIndex("GuildConfigId")
.IsUnique();
b.ToTable("AntiSpamSetting");
b.ToTable("AntiSpamSetting", (string)null);
});
modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoCommand", b =>
@@ -167,7 +167,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasKey("Id");
b.ToTable("AutoCommands");
b.ToTable("AutoCommands", (string)null);
});
modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoTranslateChannel", b =>
@@ -195,7 +195,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasIndex("GuildId");
b.ToTable("AutoTranslateChannels");
b.ToTable("AutoTranslateChannels", (string)null);
});
modelBuilder.Entity("Nadeko.Bot.Db.Models.AutoTranslateUser", b =>
@@ -223,7 +223,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasAlternateKey("ChannelId", "UserId");
b.ToTable("AutoTranslateUsers");
b.ToTable("AutoTranslateUsers", (string)null);
});
modelBuilder.Entity("Nadeko.Bot.Db.Models.BanTemplate", b =>
@@ -249,7 +249,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasIndex("GuildId")
.IsUnique();
b.ToTable("BanTemplates");
b.ToTable("BanTemplates", (string)null);
});
modelBuilder.Entity("Nadeko.Bot.Db.Models.BlacklistEntry", b =>
@@ -269,7 +269,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasKey("Id");
b.ToTable("Blacklist");
b.ToTable("Blacklist", (string)null);
});
modelBuilder.Entity("Nadeko.Bot.Db.Models.CommandAlias", b =>
@@ -294,7 +294,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasIndex("GuildConfigId");
b.ToTable("CommandAlias");
b.ToTable("CommandAlias", (string)null);
});
modelBuilder.Entity("Nadeko.Bot.Db.Models.CommandCooldown", b =>
@@ -319,7 +319,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasIndex("GuildConfigId");
b.ToTable("CommandCooldown");
b.ToTable("CommandCooldown", (string)null);
});
modelBuilder.Entity("Nadeko.Bot.Db.Models.CurrencyTransaction", b =>
@@ -357,7 +357,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasIndex("UserId");
b.ToTable("CurrencyTransactions");
b.ToTable("CurrencyTransactions", (string)null);
});
modelBuilder.Entity("Nadeko.Bot.Db.Models.DelMsgOnCmdChannel", b =>
@@ -382,7 +382,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasIndex("GuildConfigId");
b.ToTable("DelMsgOnCmdChannel");
b.ToTable("DelMsgOnCmdChannel", (string)null);
});
modelBuilder.Entity("Nadeko.Bot.Db.Models.DiscordPermOverride", b =>
@@ -408,7 +408,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasIndex("GuildId", "Command")
.IsUnique();
b.ToTable("DiscordPermOverrides");
b.ToTable("DiscordPermOverrides", (string)null);
});
modelBuilder.Entity("Nadeko.Bot.Db.Models.ExcludedItem", b =>
@@ -433,7 +433,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasIndex("XpSettingsId");
b.ToTable("ExcludedItem");
b.ToTable("ExcludedItem", (string)null);
});
modelBuilder.Entity("Nadeko.Bot.Db.Models.FeedSub", b =>
@@ -462,7 +462,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasAlternateKey("GuildConfigId", "Url");
b.ToTable("FeedSub");
b.ToTable("FeedSub", (string)null);
});
modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterChannelId", b =>
@@ -484,7 +484,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasIndex("GuildConfigId");
b.ToTable("FilterChannelId");
b.ToTable("FilterChannelId", (string)null);
});
modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterLinksChannelId", b =>
@@ -506,7 +506,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasIndex("GuildConfigId");
b.ToTable("FilterLinksChannelId");
b.ToTable("FilterLinksChannelId", (string)null);
});
modelBuilder.Entity("Nadeko.Bot.Db.Models.FilterWordsChannelId", b =>
@@ -528,7 +528,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasIndex("GuildConfigId");
b.ToTable("FilterWordsChannelId");
b.ToTable("FilterWordsChannelId", (string)null);
});
modelBuilder.Entity("Nadeko.Bot.Db.Models.FilteredWord", b =>
@@ -550,7 +550,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasIndex("GuildConfigId");
b.ToTable("FilteredWord");
b.ToTable("FilteredWord", (string)null);
});
modelBuilder.Entity("Nadeko.Bot.Db.Models.GCChannelId", b =>
@@ -572,7 +572,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasIndex("GuildConfigId");
b.ToTable("GCChannelId");
b.ToTable("GCChannelId", (string)null);
});
modelBuilder.Entity("Nadeko.Bot.Db.Models.GamblingStats", b =>
@@ -598,7 +598,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasIndex("Feature")
.IsUnique();
b.ToTable("GamblingStats");
b.ToTable("GamblingStats", (string)null);
});
modelBuilder.Entity("Nadeko.Bot.Db.Models.GroupName", b =>
@@ -624,7 +624,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasIndex("GuildConfigId", "Number")
.IsUnique();
b.ToTable("GroupName");
b.ToTable("GroupName", (string)null);
});
modelBuilder.Entity("Nadeko.Bot.Db.Models.GuildConfig", b =>
@@ -759,7 +759,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasIndex("WarnExpireHours");
b.ToTable("GuildConfigs");
b.ToTable("GuildConfigs", (string)null);
});
modelBuilder.Entity("Nadeko.Bot.Db.Models.IgnoredLogItem", b =>
@@ -785,7 +785,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasIndex("LogSettingId", "LogItemId", "ItemType")
.IsUnique();
b.ToTable("IgnoredLogChannels");
b.ToTable("IgnoredLogChannels", (string)null);
});
modelBuilder.Entity("Nadeko.Bot.Db.Models.IgnoredVoicePresenceChannel", b =>
@@ -807,7 +807,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasIndex("LogSettingId");
b.ToTable("IgnoredVoicePresenceCHannels");
b.ToTable("IgnoredVoicePresenceCHannels", (string)null);
});
modelBuilder.Entity("Nadeko.Bot.Db.Models.ImageOnlyChannel", b =>
@@ -833,7 +833,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasIndex("ChannelId")
.IsUnique();
b.ToTable("ImageOnlyChannels");
b.ToTable("ImageOnlyChannels", (string)null);
});
modelBuilder.Entity("Nadeko.Bot.Db.Models.LogSetting", b =>
@@ -907,7 +907,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasIndex("GuildId")
.IsUnique();
b.ToTable("LogSettings");
b.ToTable("LogSettings", (string)null);
});
modelBuilder.Entity("Nadeko.Bot.Db.Models.MusicPlayerSettings", b =>
@@ -944,7 +944,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasIndex("GuildId")
.IsUnique();
b.ToTable("MusicPlayerSettings");
b.ToTable("MusicPlayerSettings", (string)null);
});
modelBuilder.Entity("Nadeko.Bot.Db.Models.MusicPlaylist", b =>
@@ -967,7 +967,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasKey("Id");
b.ToTable("MusicPlaylists");
b.ToTable("MusicPlaylists", (string)null);
});
modelBuilder.Entity("Nadeko.Bot.Db.Models.MutedUserId", b =>
@@ -989,7 +989,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasIndex("GuildConfigId");
b.ToTable("MutedUserId");
b.ToTable("MutedUserId", (string)null);
});
modelBuilder.Entity("Nadeko.Bot.Db.Models.NadekoExpression", b =>
@@ -1027,7 +1027,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasKey("Id");
b.ToTable("Expressions");
b.ToTable("Expressions", (string)null);
});
modelBuilder.Entity("Nadeko.Bot.Db.Models.NsfwBlacklistedTag", b =>
@@ -1049,7 +1049,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasIndex("GuildId");
b.ToTable("NsfwBlacklistedTags");
b.ToTable("NsfwBlacklistedTags", (string)null);
});
modelBuilder.Entity("Nadeko.Bot.Db.Models.Permissionv2", b =>
@@ -1089,7 +1089,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasIndex("GuildConfigId");
b.ToTable("Permissions");
b.ToTable("Permissions", (string)null);
});
modelBuilder.Entity("Nadeko.Bot.Db.Models.PlantedCurrency", b =>
@@ -1126,7 +1126,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasIndex("MessageId")
.IsUnique();
b.ToTable("PlantedCurrency");
b.ToTable("PlantedCurrency", (string)null);
});
modelBuilder.Entity("Nadeko.Bot.Db.Models.PlaylistSong", b =>
@@ -1160,7 +1160,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasIndex("MusicPlaylistId");
b.ToTable("PlaylistSong");
b.ToTable("PlaylistSong", (string)null);
});
modelBuilder.Entity("Nadeko.Bot.Db.Models.Poll", b =>
@@ -1186,7 +1186,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasIndex("GuildId")
.IsUnique();
b.ToTable("Poll");
b.ToTable("Poll", (string)null);
});
modelBuilder.Entity("Nadeko.Bot.Db.Models.PollAnswer", b =>
@@ -1211,7 +1211,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasIndex("PollId");
b.ToTable("PollAnswer");
b.ToTable("PollAnswer", (string)null);
});
modelBuilder.Entity("Nadeko.Bot.Db.Models.PollVote", b =>
@@ -1236,7 +1236,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasIndex("PollId");
b.ToTable("PollVote");
b.ToTable("PollVote", (string)null);
});
modelBuilder.Entity("Nadeko.Bot.Db.Models.Quote", b =>
@@ -1272,7 +1272,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasIndex("Keyword");
b.ToTable("Quotes");
b.ToTable("Quotes", (string)null);
});
modelBuilder.Entity("Nadeko.Bot.Db.Models.ReactionRoleV2", b =>
@@ -1313,7 +1313,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasIndex("MessageId", "Emote")
.IsUnique();
b.ToTable("ReactionRoles");
b.ToTable("ReactionRoles", (string)null);
});
modelBuilder.Entity("Nadeko.Bot.Db.Models.Reminder", b =>
@@ -1350,7 +1350,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasIndex("When");
b.ToTable("Reminders");
b.ToTable("Reminders", (string)null);
});
modelBuilder.Entity("Nadeko.Bot.Db.Models.Repeater", b =>
@@ -1385,7 +1385,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasKey("Id");
b.ToTable("Repeaters");
b.ToTable("Repeaters", (string)null);
});
modelBuilder.Entity("Nadeko.Bot.Db.Models.RewardedUser", b =>
@@ -1414,7 +1414,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasIndex("PlatformUserId")
.IsUnique();
b.ToTable("RewardedUsers");
b.ToTable("RewardedUsers", (string)null);
});
modelBuilder.Entity("Nadeko.Bot.Db.Models.RotatingPlayingStatus", b =>
@@ -1434,7 +1434,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasKey("Id");
b.ToTable("RotatingStatus");
b.ToTable("RotatingStatus", (string)null);
});
modelBuilder.Entity("Nadeko.Bot.Db.Models.SelfAssignedRole", b =>
@@ -1465,7 +1465,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasIndex("GuildId", "RoleId")
.IsUnique();
b.ToTable("SelfAssignableRoles");
b.ToTable("SelfAssignableRoles", (string)null);
});
modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntry", b =>
@@ -1511,7 +1511,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasIndex("GuildConfigId");
b.ToTable("ShopEntry");
b.ToTable("ShopEntry", (string)null);
});
modelBuilder.Entity("Nadeko.Bot.Db.Models.ShopEntryItem", b =>
@@ -1533,7 +1533,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasIndex("ShopEntryId");
b.ToTable("ShopEntryItem");
b.ToTable("ShopEntryItem", (string)null);
});
modelBuilder.Entity("Nadeko.Bot.Db.Models.SlowmodeIgnoredRole", b =>
@@ -1555,7 +1555,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasIndex("GuildConfigId");
b.ToTable("SlowmodeIgnoredRole");
b.ToTable("SlowmodeIgnoredRole", (string)null);
});
modelBuilder.Entity("Nadeko.Bot.Db.Models.SlowmodeIgnoredUser", b =>
@@ -1577,7 +1577,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasIndex("GuildConfigId");
b.ToTable("SlowmodeIgnoredUser");
b.ToTable("SlowmodeIgnoredUser", (string)null);
});
modelBuilder.Entity("Nadeko.Bot.Db.Models.StickyRole", b =>
@@ -1604,7 +1604,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasIndex("GuildId", "UserId")
.IsUnique();
b.ToTable("StickyRoles");
b.ToTable("StickyRoles", (string)null);
});
modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleBlacklistedUser", b =>
@@ -1629,7 +1629,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasIndex("StreamRoleSettingsId");
b.ToTable("StreamRoleBlacklistedUser");
b.ToTable("StreamRoleBlacklistedUser", (string)null);
});
modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleSettings", b =>
@@ -1661,7 +1661,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasIndex("GuildConfigId")
.IsUnique();
b.ToTable("StreamRoleSettings");
b.ToTable("StreamRoleSettings", (string)null);
});
modelBuilder.Entity("Nadeko.Bot.Db.Models.StreamRoleWhitelistedUser", b =>
@@ -1686,7 +1686,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasIndex("StreamRoleSettingsId");
b.ToTable("StreamRoleWhitelistedUser");
b.ToTable("StreamRoleWhitelistedUser", (string)null);
});
modelBuilder.Entity("Nadeko.Bot.Db.Models.UnbanTimer", b =>
@@ -1711,7 +1711,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasIndex("GuildConfigId");
b.ToTable("UnbanTimer");
b.ToTable("UnbanTimer", (string)null);
});
modelBuilder.Entity("Nadeko.Bot.Db.Models.UnmuteTimer", b =>
@@ -1736,7 +1736,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasIndex("GuildConfigId");
b.ToTable("UnmuteTimer");
b.ToTable("UnmuteTimer", (string)null);
});
modelBuilder.Entity("Nadeko.Bot.Db.Models.UnroleTimer", b =>
@@ -1764,7 +1764,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasIndex("GuildConfigId");
b.ToTable("UnroleTimer");
b.ToTable("UnroleTimer", (string)null);
});
modelBuilder.Entity("Nadeko.Bot.Db.Models.UserXpStats", b =>
@@ -1804,7 +1804,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasIndex("UserId", "GuildId")
.IsUnique();
b.ToTable("UserXpStats");
b.ToTable("UserXpStats", (string)null);
});
modelBuilder.Entity("Nadeko.Bot.Db.Models.VcRoleInfo", b =>
@@ -1829,7 +1829,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasIndex("GuildConfigId");
b.ToTable("VcRoleInfo");
b.ToTable("VcRoleInfo", (string)null);
});
modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuInfo", b =>
@@ -1864,7 +1864,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasIndex("WaifuId")
.IsUnique();
b.ToTable("WaifuInfo");
b.ToTable("WaifuInfo", (string)null);
});
modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuItem", b =>
@@ -1889,7 +1889,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasIndex("WaifuInfoId");
b.ToTable("WaifuItem");
b.ToTable("WaifuItem", (string)null);
});
modelBuilder.Entity("Nadeko.Bot.Db.Models.WaifuUpdate", b =>
@@ -1921,7 +1921,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasIndex("UserId");
b.ToTable("WaifuUpdates");
b.ToTable("WaifuUpdates", (string)null);
});
modelBuilder.Entity("Nadeko.Bot.Db.Models.Warning", b =>
@@ -1964,7 +1964,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasIndex("UserId");
b.ToTable("Warnings");
b.ToTable("Warnings", (string)null);
});
modelBuilder.Entity("Nadeko.Bot.Db.Models.WarningPunishment", b =>
@@ -1995,7 +1995,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasIndex("GuildConfigId");
b.ToTable("WarningPunishment");
b.ToTable("WarningPunishment", (string)null);
});
modelBuilder.Entity("Nadeko.Bot.Db.Models.XpCurrencyReward", b =>
@@ -2020,7 +2020,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasIndex("XpSettingsId");
b.ToTable("XpCurrencyReward");
b.ToTable("XpCurrencyReward", (string)null);
});
modelBuilder.Entity("Nadeko.Bot.Db.Models.XpRoleReward", b =>
@@ -2049,7 +2049,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasIndex("XpSettingsId", "Level")
.IsUnique();
b.ToTable("XpRoleReward");
b.ToTable("XpRoleReward", (string)null);
});
modelBuilder.Entity("Nadeko.Bot.Db.Models.XpSettings", b =>
@@ -2072,7 +2072,25 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasIndex("GuildConfigId")
.IsUnique();
b.ToTable("XpSettings");
b.ToTable("XpSettings", (string)null);
});
modelBuilder.Entity("NadekoBot.Db.Models.ArchivedTodoListModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<string>("Name")
.IsRequired()
.HasColumnType("TEXT");
b.Property<ulong>("UserId")
.HasColumnType("INTEGER");
b.HasKey("Id");
b.ToTable("TodosArchive", (string)null);
});
modelBuilder.Entity("NadekoBot.Db.Models.AutoPublishChannel", b =>
@@ -2095,7 +2113,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasIndex("GuildId")
.IsUnique();
b.ToTable("AutoPublishChannel");
b.ToTable("AutoPublishChannel", (string)null);
});
modelBuilder.Entity("NadekoBot.Db.Models.BankUser", b =>
@@ -2118,7 +2136,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasIndex("UserId")
.IsUnique();
b.ToTable("BankUsers");
b.ToTable("BankUsers", (string)null);
});
modelBuilder.Entity("NadekoBot.Db.Models.ClubApplicants", b =>
@@ -2133,7 +2151,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasIndex("UserId");
b.ToTable("ClubApplicants");
b.ToTable("ClubApplicants", (string)null);
});
modelBuilder.Entity("NadekoBot.Db.Models.ClubBans", b =>
@@ -2148,7 +2166,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasIndex("UserId");
b.ToTable("ClubBans");
b.ToTable("ClubBans", (string)null);
});
modelBuilder.Entity("NadekoBot.Db.Models.ClubInfo", b =>
@@ -2184,7 +2202,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasIndex("OwnerId")
.IsUnique();
b.ToTable("Clubs");
b.ToTable("Clubs", (string)null);
});
modelBuilder.Entity("NadekoBot.Db.Models.DiscordUser", b =>
@@ -2243,7 +2261,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasIndex("UserId");
b.ToTable("DiscordUser");
b.ToTable("DiscordUser", (string)null);
});
modelBuilder.Entity("NadekoBot.Db.Models.FollowedStream", b =>
@@ -2277,7 +2295,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasIndex("GuildConfigId");
b.ToTable("FollowedStream");
b.ToTable("FollowedStream", (string)null);
});
modelBuilder.Entity("NadekoBot.Db.Models.GiveawayModel", b =>
@@ -2304,7 +2322,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasKey("Id");
b.ToTable("GiveawayModel");
b.ToTable("GiveawayModel", (string)null);
});
modelBuilder.Entity("NadekoBot.Db.Models.GiveawayUser", b =>
@@ -2328,7 +2346,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasIndex("GiveawayId", "UserId")
.IsUnique();
b.ToTable("GiveawayUser");
b.ToTable("GiveawayUser", (string)null);
});
modelBuilder.Entity("NadekoBot.Db.Models.PatronQuota", b =>
@@ -2355,7 +2373,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasIndex("UserId");
b.ToTable("PatronQuotas");
b.ToTable("PatronQuotas", (string)null);
});
modelBuilder.Entity("NadekoBot.Db.Models.PatronUser", b =>
@@ -2381,7 +2399,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasIndex("UniquePlatformUserId")
.IsUnique();
b.ToTable("Patrons");
b.ToTable("Patrons", (string)null);
});
modelBuilder.Entity("NadekoBot.Db.Models.StreamOnlineMessage", b =>
@@ -2407,7 +2425,38 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasKey("Id");
b.ToTable("StreamOnlineMessages");
b.ToTable("StreamOnlineMessages", (string)null);
});
modelBuilder.Entity("NadekoBot.Db.Models.TodoModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<int?>("ArchiveId")
.HasColumnType("INTEGER");
b.Property<DateTime>("DateAdded")
.HasColumnType("TEXT");
b.Property<bool>("IsDone")
.HasColumnType("INTEGER");
b.Property<string>("Todo")
.IsRequired()
.HasColumnType("TEXT");
b.Property<ulong>("UserId")
.HasColumnType("INTEGER");
b.HasKey("Id");
b.HasIndex("ArchiveId");
b.HasIndex("UserId");
b.ToTable("Todos", (string)null);
});
modelBuilder.Entity("NadekoBot.Db.Models.XpShopOwnedItem", b =>
@@ -2437,7 +2486,7 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.HasIndex("UserId", "ItemType", "ItemKey")
.IsUnique();
b.ToTable("XpShopOwnedItem");
b.ToTable("XpShopOwnedItem", (string)null);
});
modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiAltSetting", b =>
@@ -2882,6 +2931,14 @@ namespace NadekoBot.Db.Migrations.Sqlite
.IsRequired();
});
modelBuilder.Entity("NadekoBot.Db.Models.TodoModel", b =>
{
b.HasOne("NadekoBot.Db.Models.ArchivedTodoListModel", null)
.WithMany("Items")
.HasForeignKey("ArchiveId")
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("Nadeko.Bot.Db.Models.AntiSpamSetting", b =>
{
b.Navigation("IgnoredChannels");
@@ -2990,6 +3047,11 @@ namespace NadekoBot.Db.Migrations.Sqlite
b.Navigation("RoleRewards");
});
modelBuilder.Entity("NadekoBot.Db.Models.ArchivedTodoListModel", b =>
{
b.Navigation("Items");
});
modelBuilder.Entity("NadekoBot.Db.Models.ClubInfo", b =>
{
b.Navigation("Applicants");