// using System; using GreadyPoang.DataLayer.Database; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; #nullable disable namespace GreadyPoang.DataLayer.Migrations { [DbContext(typeof(DataContext))] partial class DataContextModelSnapshot : ModelSnapshot { protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder.HasAnnotation("ProductVersion", "9.0.8"); modelBuilder.Entity("GreadyPoang.EntityLayer.GamePoint", b => { b.Property("GamePointId") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("GameDate") .HasColumnType("TEXT"); b.Property("GameRegPoints") .HasColumnType("INTEGER"); b.Property("GameRoundId") .HasColumnType("INTEGER"); b.Property("GameRoundRegNr") .HasColumnType("INTEGER"); b.Property("ParticipantId") .HasColumnType("INTEGER"); b.Property("PointStatus") .HasColumnType("INTEGER"); b.HasKey("GamePointId"); b.ToTable("GamePoints"); b.HasData( new { GamePointId = 1, GameDate = new DateTime(2025, 10, 15, 20, 10, 15, 0, DateTimeKind.Unspecified), GameRegPoints = 1050, GameRoundId = 2, GameRoundRegNr = 1, ParticipantId = 1, PointStatus = 0 }, new { GamePointId = 2, GameDate = new DateTime(2025, 10, 15, 20, 15, 15, 0, DateTimeKind.Unspecified), GameRegPoints = 350, GameRoundId = 2, GameRoundRegNr = 3, ParticipantId = 1, PointStatus = 0 }, new { GamePointId = 3, GameDate = new DateTime(2025, 10, 15, 20, 12, 15, 0, DateTimeKind.Unspecified), GameRegPoints = 1000, GameRoundId = 2, GameRoundRegNr = 2, ParticipantId = 3, PointStatus = 0 }, new { GamePointId = 4, GameDate = new DateTime(2025, 10, 15, 20, 20, 15, 0, DateTimeKind.Unspecified), GameRegPoints = 400, GameRoundId = 2, GameRoundRegNr = 4, ParticipantId = 3, PointStatus = 0 }); }); modelBuilder.Entity("GreadyPoang.EntityLayer.GameRound", b => { b.Property("GameRoundId") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("GameRoundFinished") .HasColumnType("TEXT"); b.Property("GameRoundStartDate") .HasColumnType("TEXT"); b.HasKey("GameRoundId"); b.ToTable("GameRounds"); b.HasData( new { GameRoundId = 1, GameRoundFinished = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), GameRoundStartDate = new DateTime(2025, 10, 15, 19, 10, 15, 0, DateTimeKind.Unspecified) }, new { GameRoundId = 2, GameRoundFinished = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), GameRoundStartDate = new DateTime(2025, 9, 15, 19, 10, 15, 0, DateTimeKind.Unspecified) }, new { GameRoundId = 3, GameRoundFinished = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), GameRoundStartDate = new DateTime(2025, 9, 20, 19, 10, 15, 0, DateTimeKind.Unspecified) }); }); modelBuilder.Entity("GreadyPoang.EntityLayer.Participant", b => { b.Property("ParticipantId") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("Email") .IsRequired() .HasColumnType("TEXT"); b.Property("FirstName") .IsRequired() .HasColumnType("TEXT"); b.Property("LastName") .IsRequired() .HasColumnType("TEXT"); b.HasKey("ParticipantId"); b.ToTable("Participants"); b.HasData( new { ParticipantId = 1, Email = "John.Doe@gmail.com", FirstName = "John", LastName = "Doe" }, new { ParticipantId = 2, Email = "jb@gmail.com", FirstName = "Jane", LastName = "Black" }, new { ParticipantId = 3, Email = "mw@gmail.com", FirstName = "Mary", LastName = "White" }); }); #pragma warning restore 612, 618 } } }