//
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("20241124152636_Initial")]
partial class Initial
{
///
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("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
b.Property("ATId")
.HasColumnType("integer");
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("AssaultTroop");
});
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("ProvinceId")
.HasColumnType("integer");
b.Property("State")
.HasColumnType("integer");
b.HasKey("Id");
b.ToTable("Province");
});
#pragma warning restore 612, 618
}
}
}