// using BHServer.Data; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; #nullable disable namespace BHServer.Migrations { [DbContext(typeof(ApplicationDbContext))] [Migration("20241116161946_UpdateProvinceTable")] partial class UpdateProvinceTable { /// protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "8.0.10") .HasAnnotation("Relational:MaxIdentifierLength", 128); SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); modelBuilder.Entity("BHServer.Models.Province", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int"); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); b.Property("ATs") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("Faction") .HasColumnType("int"); b.Property("Multiplier") .HasColumnType("int"); b.Property("Name") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("ProvinceId") .HasColumnType("int"); b.Property("State") .HasColumnType("int"); b.HasKey("Id"); b.ToTable("Provinces"); }); #pragma warning restore 612, 618 } } }