// using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; using Server; #nullable disable namespace Server.Migrations { [DbContext(typeof(SpaceRaceDbContext))] [Migration("20230829014321_Beginninging")] partial class Beginninging { /// protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "7.0.10") .HasAnnotation("Relational:MaxIdentifierLength", 63); NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); modelBuilder.Entity("Server.Lap", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("Created") .HasColumnType("timestamp with time zone"); b.Property("Map") .IsRequired() .HasColumnType("text"); b.Property("Time") .HasColumnType("double precision"); b.Property("UserId") .HasColumnType("uuid"); b.HasKey("Id"); b.HasIndex("Map"); b.HasIndex("UserId", "Map") .IsUnique(); b.ToTable("Laps"); b.HasData( new { Id = new Guid("c3a3f8d9-01a7-4420-bb57-a8f26baabc4d"), Created = new DateTimeOffset(new DateTime(2023, 8, 29, 1, 43, 21, 914, DateTimeKind.Unspecified).AddTicks(5704), new TimeSpan(0, 0, 0, 0, 0)), Map = "sr_TestTrack", Time = 128.0, UserId = new Guid("9d2c95b9-5ba6-4ff5-afc5-f20f34620d82") }, new { Id = new Guid("6cb7876e-3059-44ea-af56-1968d653f001"), Created = new DateTimeOffset(new DateTime(2023, 8, 29, 1, 43, 21, 914, DateTimeKind.Unspecified).AddTicks(5742), new TimeSpan(0, 0, 0, 0, 0)), Map = "sr_TestTrack", Time = 132.0, UserId = new Guid("157a119a-e3e2-4623-ac6c-2dda797dd301") }, new { Id = new Guid("2b649610-1da8-450a-ad24-021626d80c60"), Created = new DateTimeOffset(new DateTime(2023, 8, 29, 1, 43, 21, 914, DateTimeKind.Unspecified).AddTicks(5750), new TimeSpan(0, 0, 0, 0, 0)), Map = "sr_TestTrack", Time = 148.0, UserId = new Guid("7ca95bb5-0145-4c59-86cc-a499b01ba036") }); }); #pragma warning restore 612, 618 } } }