//
using System;
using System.Text.Json;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Minecraft_Realms_Emulator.Data;
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
#nullable disable
namespace Minecraft_Realms_Emulator.Migrations
{
[DbContext(typeof(DataContext))]
[Migration("20240211135246_Slots")]
partial class Slots
{
///
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "8.0.1")
.HasAnnotation("Relational:MaxIdentifierLength", 63);
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Subscription", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
b.Property("DaysLeft")
.HasColumnType("integer");
b.Property("RemoteId")
.IsRequired()
.HasColumnType("text");
b.Property("StartDate")
.IsRequired()
.HasColumnType("text");
b.Property("SubscriptionType")
.IsRequired()
.HasColumnType("text");
b.HasKey("Id");
b.ToTable("Subscriptions");
});
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.World", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
b.Property("ActiveSlot")
.HasColumnType("integer");
b.Property("DaysLeft")
.HasColumnType("integer");
b.Property("Expired")
.HasColumnType("boolean");
b.Property("ExpiredTrial")
.HasColumnType("boolean");
b.Property("MaxPlayers")
.HasColumnType("integer");
b.Property("Member")
.HasColumnType("boolean");
b.Property("MinigameId")
.HasColumnType("integer");
b.Property("MinigameImage")
.HasColumnType("text");
b.Property("MinigameName")
.HasColumnType("text");
b.Property("Motd")
.HasColumnType("text");
b.Property("Name")
.HasColumnType("text");
b.Property("Owner")
.HasColumnType("text");
b.Property("OwnerUUID")
.HasColumnType("text");
b.Property("Players")
.IsRequired()
.HasColumnType("text[]");
b.Property("RemoteSubscriptionId")
.IsRequired()
.HasColumnType("text");
b.Property("Slots")
.IsRequired()
.HasColumnType("jsonb[]");
b.Property("State")
.IsRequired()
.HasColumnType("text");
b.Property("WorldType")
.IsRequired()
.HasColumnType("text");
b.HasKey("Id");
b.ToTable("Worlds");
});
#pragma warning restore 612, 618
}
}
}