//
using EntityFrameWorkLib;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
#nullable disable
namespace EntityFrameWorkLib.Migrations
{
[DbContext(typeof(TrekContext))]
[Migration("20230212152210_MyMigration")]
partial class MyMigration
{
///
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder.HasAnnotation("ProductVersion", "7.0.2");
modelBuilder.Entity("EntityFrameWorkLib.PlayerEntity", b =>
{
b.Property("PlayerId")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property("MaxPoints")
.HasColumnType("INTEGER");
b.Property("MaxZone")
.HasColumnType("INTEGER");
b.Property("NbPlayed")
.HasColumnType("INTEGER");
b.Property("NbPoints")
.HasColumnType("INTEGER");
b.Property("NbWin")
.HasColumnType("INTEGER");
b.Property("Pseudo")
.IsRequired()
.HasColumnType("TEXT");
b.HasKey("PlayerId");
b.ToTable("Players");
});
#pragma warning restore 612, 618
}
}
}