69 lines
2.1 KiB
C#
69 lines
2.1 KiB
C#
// <auto-generated />
|
|
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
|
|
{
|
|
/// <inheritdoc />
|
|
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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<string>("AbbrPosition")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<DateTime?>("DateOfBirth")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<string>("FirstName")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("LastName")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("League")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("MiddleName")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("Position")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<int>("SquadNumber")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<bool>("Starting11")
|
|
.HasColumnType("boolean");
|
|
|
|
b.Property<string>("Team")
|
|
.HasColumnType("text");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("SquadNumber")
|
|
.IsUnique();
|
|
|
|
b.ToTable("Players");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|