//
using System;
using Apollon.EntityFramework;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
#nullable disable
namespace Apollon.EntityFramework.Migrations
{
[DbContext(typeof(ApplicationDbContext))]
partial class TournamentsDbContextModelSnapshot : ModelSnapshot
{
protected override void BuildModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "6.0.8")
.HasAnnotation("Relational:MaxIdentifierLength", 128);
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1);
modelBuilder.Entity("Apollon.EntityFramework.DTOs.CompetitionDto", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"), 1L, 1);
b.Property("CompetitionImage")
.HasColumnType("nvarchar(max)");
b.Property("CompetitionName")
.HasColumnType("nvarchar(max)");
b.HasKey("Id");
b.ToTable("Competition");
});
modelBuilder.Entity("Apollon.EntityFramework.DTOs.NameListDto", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property("Birthday")
.HasColumnType("nvarchar(max)");
b.Property("Country")
.HasColumnType("nvarchar(max)");
b.Property("FirstName")
.HasColumnType("nvarchar(max)");
b.Property("LastName")
.HasColumnType("nvarchar(max)");
b.Property("PassNumber")
.HasColumnType("int");
b.Property("Qualification")
.HasColumnType("int");
b.Property("Society")
.HasColumnType("nvarchar(max)");
b.Property("SocietyNumber")
.HasColumnType("int");
b.HasKey("Id");
b.ToTable("NameList");
});
modelBuilder.Entity("Apollon.EntityFramework.DTOs.TournamentDto", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property("Competition")
.HasColumnType("nvarchar(max)");
b.Property("CompetitionImage")
.HasColumnType("nvarchar(max)");
b.Property("EndDate")
.HasColumnType("datetime2");
b.Property("Location")
.HasColumnType("nvarchar(max)");
b.Property("Logo")
.HasColumnType("nvarchar(max)");
b.Property("Organisation")
.HasColumnType("nvarchar(max)");
b.Property("Rounds")
.HasColumnType("int");
b.Property("StartDate")
.HasColumnType("datetime2");
b.Property("Targets")
.HasColumnType("int");
b.Property("TournamentName")
.HasColumnType("nvarchar(max)");
b.HasKey("Id");
b.ToTable("Tournaments");
});
#pragma warning restore 612, 618
}
}
}