//
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace MuiCharts.Infrastructure.Migrations
{
[DbContext(typeof(DataContext))]
[Migration("20240221200319_InitialCreate")]
partial class InitialCreate
{
///
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder.HasAnnotation("ProductVersion", "8.0.2");
modelBuilder.Entity("MuiCharts.Domain.Models.Point", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property("Height")
.HasColumnType("INTEGER");
b.Property("Name")
.IsRequired()
.HasColumnType("TEXT");
b.HasKey("Id");
b.ToTable("Points");
});
modelBuilder.Entity("MuiCharts.Domain.Models.Track", b =>
{
b.Property("FirstId")
.HasColumnType("INTEGER");
b.Property("SecondId")
.HasColumnType("INTEGER");
b.Property("Distance")
.HasColumnType("INTEGER");
b.Property("MaxSpeed")
.HasColumnType("INTEGER");
b.Property("Surface")
.HasColumnType("INTEGER");
b.HasKey("FirstId", "SecondId");
b.ToTable("Tracks");
});
#pragma warning restore 612, 618
}
}
}