Files
odpo/works/lab-01/pokedex_api/PokedexApi/Migrations/20260911140633_Init.Designer.cs
T
2026-09-17 15:54:12 +03:00

52 lines
1.6 KiB
C#

// <auto-generated />
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
using PokedexApi.Data;
#nullable disable
namespace PokedexApi.Migrations
{
[DbContext(typeof(PokemonContext))]
[Migration("20260911140633_Init")]
partial class Init
{
/// <inheritdoc />
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "10.0.4")
.HasAnnotation("Relational:MaxIdentifierLength", 63);
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
modelBuilder.Entity("PokedexApi.Data.Models.Type", b =>
{
b.Property<int>("TypeId")
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasColumnName("type_id");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("TypeId"));
b.Property<string>("Name")
.IsRequired()
.HasColumnType("text")
.HasColumnName("type_name");
b.HasKey("TypeId");
b.HasIndex("Name")
.IsUnique();
b.ToTable("type");
});
#pragma warning restore 612, 618
}
}
}