//
using ChaosBot.Models;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
namespace ChaosBot.Migrations
{
[DbContext(typeof(ChaosbotContext))]
partial class ChaosbotContextModelSnapshot : ModelSnapshot
{
protected override void BuildModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "3.1.6")
.HasAnnotation("Relational:MaxIdentifierLength", 64);
modelBuilder.Entity("ChaosBot.Models.CommandPermission", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint unsigned");
b.Property("Command")
.IsRequired()
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property("DiscordGuildId")
.HasColumnType("bigint unsigned");
b.Property("TargetId")
.HasColumnType("bigint unsigned");
b.Property("TargetType")
.HasColumnType("int");
b.HasKey("Id");
b.ToTable("CommandPermissions");
});
modelBuilder.Entity("ChaosBot.Models.Configuration", b =>
{
b.Property("DiscordGuildId")
.HasColumnType("bigint unsigned");
b.Property("Key")
.HasColumnType("varchar(128) CHARACTER SET utf8mb4")
.HasMaxLength(128);
b.Property("SerializedValue")
.IsRequired()
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.HasKey("DiscordGuildId", "Key");
b.ToTable("Configuration");
});
modelBuilder.Entity("ChaosBot.Models.LodestoneCharacter", b =>
{
b.Property("DiscordGuildId")
.HasColumnType("bigint unsigned");
b.Property("LodestoneId")
.HasColumnType("bigint unsigned");
b.Property("Avatar")
.IsRequired()
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property("DiscordUserId")
.HasColumnType("bigint unsigned");
b.Property("Name")
.IsRequired()
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.HasKey("DiscordGuildId", "LodestoneId");
b.ToTable("LodestoneCharacter");
});
modelBuilder.Entity("ChaosBot.Models.LodestoneFreeCompany", b =>
{
b.Property("DiscordGuildId")
.HasColumnType("bigint unsigned");
b.Property("LodestoneId")
.HasColumnType("bigint unsigned");
b.Property("Name")
.IsRequired()
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.HasKey("DiscordGuildId", "LodestoneId");
b.ToTable("LodestoneFreeCompany");
});
modelBuilder.Entity("ChaosBot.Models.Point", b =>
{
b.Property("DiscordGuildId")
.HasColumnType("bigint unsigned");
b.Property("DiscordUserId")
.HasColumnType("bigint unsigned");
b.Property("Amount")
.HasColumnType("bigint unsigned");
b.HasKey("DiscordGuildId", "DiscordUserId");
b.ToTable("Points");
});
modelBuilder.Entity("ChaosBot.Models.Raffle", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint unsigned");
b.Property("DiscordGuildId")
.HasColumnType("bigint unsigned");
b.Property("DiscordUserId")
.HasColumnType("bigint unsigned");
b.HasKey("Id");
b.ToTable("Raffles");
});
#pragma warning restore 612, 618
}
}
}