93 lines
3.0 KiB
C#
93 lines
3.0 KiB
C#
// <auto-generated />
|
|
using BHServer.Data;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
|
|
|
#nullable disable
|
|
|
|
namespace BHServer.Migrations
|
|
{
|
|
[DbContext(typeof(ApplicationDbContext))]
|
|
[Migration("20241126211247_working state naming")]
|
|
partial class workingstatenaming
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder
|
|
.HasAnnotation("ProductVersion", "9.0.0")
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 63);
|
|
|
|
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
|
|
|
|
modelBuilder.Entity("BHServer.Models.AssaultTroop", b =>
|
|
{
|
|
b.Property<int>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("integer");
|
|
|
|
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("id"));
|
|
|
|
b.Property<int>("faction")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<string>("name")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("orders")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<int>("owner")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<int>("province")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<int>("type")
|
|
.HasColumnType("integer");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.ToTable("assault_troop");
|
|
});
|
|
|
|
modelBuilder.Entity("BHServer.Models.Province", b =>
|
|
{
|
|
b.Property<int>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("integer");
|
|
|
|
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("id"));
|
|
|
|
b.Property<string>("ats")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<int>("faction")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<int>("multiplier")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<string>("name")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<int>("state")
|
|
.HasColumnType("integer");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.ToTable("province");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|