//
using BHServer.Data;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
#nullable disable
namespace BHServer.Migrations
{
[DbContext(typeof(ApplicationDbContext))]
partial class ApplicationDbContextModelSnapshot : ModelSnapshot
{
protected override void BuildModel(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("id")
.ValueGeneratedOnAdd()
.HasColumnType("integer");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("id"));
b.Property("faction")
.HasColumnType("integer");
b.Property("name")
.IsRequired()
.HasColumnType("text");
b.Property("orders")
.IsRequired()
.HasColumnType("text");
b.Property("owner")
.HasColumnType("integer");
b.Property("province")
.HasColumnType("integer");
b.Property("type")
.HasColumnType("integer");
b.HasKey("id");
b.ToTable("assault_troop");
});
modelBuilder.Entity("BHServer.Models.Province", b =>
{
b.Property("id")
.ValueGeneratedOnAdd()
.HasColumnType("integer");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("id"));
b.Property("ats")
.IsRequired()
.HasColumnType("text");
b.Property("faction")
.HasColumnType("integer");
b.Property("multiplier")
.HasColumnType("integer");
b.Property("name")
.IsRequired()
.HasColumnType("text");
b.Property("state")
.HasColumnType("integer");
b.HasKey("id");
b.ToTable("province");
});
#pragma warning restore 612, 618
}
}
}