mirror of
https://github.com/chylex/Minecraft-Phantom-Panel.git
synced 2024-11-24 13:42:53 +01:00
93 lines
3.1 KiB
C#
93 lines
3.1 KiB
C#
// <auto-generated />
|
|
using System;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
|
using Phantom.Server.Database;
|
|
|
|
#nullable disable
|
|
|
|
namespace Phantom.Server.Database.Postgres.Migrations
|
|
{
|
|
[DbContext(typeof(ApplicationDbContext))]
|
|
partial class ApplicationDbContextModelSnapshot : ModelSnapshot
|
|
{
|
|
protected override void BuildModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder
|
|
.HasAnnotation("ProductVersion", "7.0.0-rc.1.22426.7")
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 63);
|
|
|
|
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
|
|
|
|
modelBuilder.Entity("Phantom.Server.Database.Entities.AgentEntity", b =>
|
|
{
|
|
b.Property<Guid>("AgentGuid")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<int>("MaxInstances")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<ushort>("MaxMemory")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<int>("Version")
|
|
.HasColumnType("integer");
|
|
|
|
b.HasKey("AgentGuid");
|
|
|
|
b.ToTable("Agents", "agents");
|
|
});
|
|
|
|
modelBuilder.Entity("Phantom.Server.Database.Entities.InstanceEntity", b =>
|
|
{
|
|
b.Property<Guid>("InstanceGuid")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<Guid>("AgentGuid")
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<string>("InstanceName")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<Guid>("JavaRuntimeGuid")
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<bool>("LaunchAutomatically")
|
|
.HasColumnType("boolean");
|
|
|
|
b.Property<ushort>("MemoryAllocation")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<string>("MinecraftServerKind")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("MinecraftVersion")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<int>("RconPort")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<int>("ServerPort")
|
|
.HasColumnType("integer");
|
|
|
|
b.HasKey("InstanceGuid");
|
|
|
|
b.ToTable("Instances", "agents");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|