mirror of
https://github.com/RPCS3/discord-bot.git
synced 2026-01-31 01:25:22 +01:00
RPCS3 Compatibility Bot reimplemented in C# for .NET Core Current status of this PR: * tested and targeted for .NET Core 2.1 * all functionality is either on par or improved compared to the python version * compatibility with current bot.db should be preserved in all upgrade scenarios * some bot management commands were changed (now under !sudo bot) * standard help generator for the new discord client is ... different; compatibility with old format could be restored through custom formatter if needed * everything has been split in more loosely tied components for easier extensibility and maintenance * log parsing has been rewritten and should work ~2x as fast
123 lines
3.8 KiB
C#
123 lines
3.8 KiB
C#
// <auto-generated />
|
|
using System;
|
|
using CompatBot.Database;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
|
|
namespace CompatBot.Database.Migrations
|
|
{
|
|
[DbContext(typeof(BotDb))]
|
|
[Migration("20180719122730_WarningTimestamp")]
|
|
partial class WarningTimestamp
|
|
{
|
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder
|
|
.HasAnnotation("ProductVersion", "2.1.1-rtm-30846");
|
|
|
|
modelBuilder.Entity("CompatBot.Database.Explanation", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnName("id");
|
|
|
|
b.Property<string>("Keyword")
|
|
.IsRequired()
|
|
.HasColumnName("keyword");
|
|
|
|
b.Property<string>("Text")
|
|
.IsRequired()
|
|
.HasColumnName("text");
|
|
|
|
b.HasKey("Id")
|
|
.HasName("id");
|
|
|
|
b.HasIndex("Keyword")
|
|
.IsUnique()
|
|
.HasName("explanation_keyword");
|
|
|
|
b.ToTable("explanation");
|
|
});
|
|
|
|
modelBuilder.Entity("CompatBot.Database.Moderator", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnName("id");
|
|
|
|
b.Property<ulong>("DiscordId")
|
|
.HasColumnName("discord_id");
|
|
|
|
b.Property<bool>("Sudoer")
|
|
.HasColumnName("sudoer");
|
|
|
|
b.HasKey("Id")
|
|
.HasName("id");
|
|
|
|
b.HasIndex("DiscordId")
|
|
.IsUnique()
|
|
.HasName("moderator_discord_id");
|
|
|
|
b.ToTable("moderator");
|
|
});
|
|
|
|
modelBuilder.Entity("CompatBot.Database.Piracystring", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnName("id");
|
|
|
|
b.Property<string>("String")
|
|
.IsRequired()
|
|
.HasColumnName("string")
|
|
.HasColumnType("varchar(255)");
|
|
|
|
b.HasKey("Id")
|
|
.HasName("id");
|
|
|
|
b.HasIndex("String")
|
|
.IsUnique()
|
|
.HasName("piracystring_string");
|
|
|
|
b.ToTable("piracystring");
|
|
});
|
|
|
|
modelBuilder.Entity("CompatBot.Database.Warning", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnName("id");
|
|
|
|
b.Property<ulong>("DiscordId")
|
|
.HasColumnName("discord_id");
|
|
|
|
b.Property<string>("FullReason")
|
|
.IsRequired()
|
|
.HasColumnName("full_reason");
|
|
|
|
b.Property<ulong>("IssuerId")
|
|
.HasColumnName("issuer_id");
|
|
|
|
b.Property<string>("Reason")
|
|
.IsRequired()
|
|
.HasColumnName("reason");
|
|
|
|
b.Property<long?>("Timestamp")
|
|
.HasColumnName("timestamp");
|
|
|
|
b.HasKey("Id")
|
|
.HasName("id");
|
|
|
|
b.HasIndex("DiscordId")
|
|
.HasName("warning_discord_id");
|
|
|
|
b.ToTable("warning");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|