mirror of
https://github.com/CyberL1/MyMcRealms.git
synced 2024-11-12 17:38:22 -05:00
260 lines
8.7 KiB
C#
260 lines
8.7 KiB
C#
// <auto-generated />
|
|
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("20240220092334_Invites")]
|
|
partial class Invites
|
|
{
|
|
/// <inheritdoc />
|
|
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.Backup", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("integer");
|
|
|
|
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
|
|
|
b.Property<string>("BackupId")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<long>("LastModifiedDate")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<JsonDocument>("Metadata")
|
|
.IsRequired()
|
|
.HasColumnType("jsonb");
|
|
|
|
b.Property<int>("Size")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<int>("WorldId")
|
|
.HasColumnType("integer");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("WorldId");
|
|
|
|
b.ToTable("Backups");
|
|
});
|
|
|
|
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Connection", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("integer");
|
|
|
|
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
|
|
|
b.Property<string>("Address")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<bool>("PendingUpdate")
|
|
.HasColumnType("boolean");
|
|
|
|
b.Property<int>("WorldId")
|
|
.HasColumnType("integer");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("WorldId");
|
|
|
|
b.ToTable("Connections");
|
|
});
|
|
|
|
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Invite", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("integer");
|
|
|
|
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
|
|
|
b.Property<DateTime>("Date")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<string>("InvitationId")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("RecipeintUUID")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<int>("WorldId")
|
|
.HasColumnType("integer");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("WorldId");
|
|
|
|
b.ToTable("Invites");
|
|
});
|
|
|
|
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Subscription", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("integer");
|
|
|
|
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
|
|
|
b.Property<string>("StartDate")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("SubscriptionType")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<int>("WorldId")
|
|
.HasColumnType("integer");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("WorldId");
|
|
|
|
b.ToTable("Subscriptions");
|
|
});
|
|
|
|
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.World", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("integer");
|
|
|
|
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
|
|
|
b.Property<int>("ActiveSlot")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<int>("DaysLeft")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<bool>("Expired")
|
|
.HasColumnType("boolean");
|
|
|
|
b.Property<bool>("ExpiredTrial")
|
|
.HasColumnType("boolean");
|
|
|
|
b.Property<int>("MaxPlayers")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<bool>("Member")
|
|
.HasColumnType("boolean");
|
|
|
|
b.Property<int?>("MinigameId")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<string>("MinigameImage")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("MinigameName")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("Motd")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("Name")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("Owner")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("OwnerUUID")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string[]>("Players")
|
|
.IsRequired()
|
|
.HasColumnType("text[]");
|
|
|
|
b.Property<string>("RemoteSubscriptionId")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<JsonDocument[]>("Slots")
|
|
.IsRequired()
|
|
.HasColumnType("jsonb[]");
|
|
|
|
b.Property<string>("State")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("WorldType")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Worlds");
|
|
});
|
|
|
|
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Backup", b =>
|
|
{
|
|
b.HasOne("Minecraft_Realms_Emulator.Entities.World", "World")
|
|
.WithMany()
|
|
.HasForeignKey("WorldId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("World");
|
|
});
|
|
|
|
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Connection", b =>
|
|
{
|
|
b.HasOne("Minecraft_Realms_Emulator.Entities.World", "World")
|
|
.WithMany()
|
|
.HasForeignKey("WorldId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("World");
|
|
});
|
|
|
|
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Invite", b =>
|
|
{
|
|
b.HasOne("Minecraft_Realms_Emulator.Entities.World", "World")
|
|
.WithMany()
|
|
.HasForeignKey("WorldId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("World");
|
|
});
|
|
|
|
modelBuilder.Entity("Minecraft_Realms_Emulator.Entities.Subscription", b =>
|
|
{
|
|
b.HasOne("Minecraft_Realms_Emulator.Entities.World", "World")
|
|
.WithMany()
|
|
.HasForeignKey("WorldId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("World");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|