// 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("20230829030053_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("dd85f455-658c-4e39-b77e-a8f227c3d0cf"), Created = new DateTimeOffset(new DateTime(2023, 8, 29, 3, 0, 53, 704, DateTimeKind.Unspecified).AddTicks(7826), new TimeSpan(0, 0, 0, 0, 0)), Map = "sr_TestTrack", Time = 128.0, UserId = new Guid("a6e068ac-5aaa-48f2-adf5-ca30963d2f9d") }, new { Id = new Guid("be83b30b-15f0-4013-95c1-d4c71ac602f9"), Created = new DateTimeOffset(new DateTime(2023, 8, 29, 3, 0, 53, 704, DateTimeKind.Unspecified).AddTicks(7873), new TimeSpan(0, 0, 0, 0, 0)), Map = "sr_TestTrack", Time = 132.0, UserId = new Guid("3620fbda-a45a-4eec-824b-9a6c77e9dbfd") }, new { Id = new Guid("cb42e7cb-02c4-4725-8d41-a62fa3868d67"), Created = new DateTimeOffset(new DateTime(2023, 8, 29, 3, 0, 53, 704, DateTimeKind.Unspecified).AddTicks(7881), new TimeSpan(0, 0, 0, 0, 0)), Map = "sr_TestTrack", Time = 148.0, UserId = new Guid("b3a23d2c-ee77-4122-9086-50a884bf49b5") }); }); modelBuilder.Entity("Server.Models.PbDTO", b => { b.Property("Completions") .HasColumnType("integer"); b.Property("Created") .HasColumnType("timestamp with time zone"); b.Property("Id") .HasColumnType("uuid"); b.Property("Map") .HasColumnType("text"); b.Property("Position") .HasColumnType("integer"); b.Property("Time") .HasColumnType("double precision"); b.Property("UserId") .HasColumnType("uuid"); b.ToTable("PbDTO"); }); #pragma warning restore 612, 618 } } }