// using System; using Dotnet.Samples.AspNetCore.WebApi.Data; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace Dotnet.Samples.AspNetCore.WebApi.Migrations.Npgsql { [DbContext(typeof(PlayerDbContext))] [Migration("20260409151000_InitialCreate")] partial class InitialCreate { /// protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder.HasAnnotation("ProductVersion", "10.0.7"); modelBuilder.Entity("Dotnet.Samples.AspNetCore.WebApi.Models.Player", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("AbbrPosition") .HasColumnType("text"); b.Property("DateOfBirth") .HasColumnType("timestamp with time zone"); b.Property("FirstName") .HasColumnType("text"); b.Property("LastName") .HasColumnType("text"); b.Property("League") .HasColumnType("text"); b.Property("MiddleName") .HasColumnType("text"); b.Property("Position") .HasColumnType("text"); b.Property("SquadNumber") .HasColumnType("integer"); b.Property("Starting11") .HasColumnType("boolean"); b.Property("Team") .HasColumnType("text"); b.HasKey("Id"); b.HasIndex("SquadNumber") .IsUnique(); b.ToTable("Players"); }); #pragma warning restore 612, 618 } } }