// using System; using System.Collections.Generic; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; using Server; #nullable disable namespace Server.Migrations { [DbContext(typeof(SpaceRaceDbContext))] partial class SpaceRaceDbContextModelSnapshot : ModelSnapshot { protected override void BuildModel(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") .HasColumnType("uuid"); b.Property("Created") .HasColumnType("timestamp with time zone"); b.Property("Map") .IsRequired() .HasMaxLength(128) .HasColumnType("character varying(128)"); b.Property>("Sectors") .IsRequired() .HasColumnType("double precision[]"); 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("be3d3d80-a0c3-4aff-b373-711b6eb2c9f3"), Created = new DateTimeOffset(new DateTime(2023, 8, 31, 6, 48, 46, 941, DateTimeKind.Unspecified).AddTicks(8821), new TimeSpan(0, 0, 0, 0, 0)), Map = "sr_testtrack", Sectors = new List { 64.0, 24.0, 24.0 }, Time = 128.0, UserId = new Guid("11111111-1111-1111-1111-111111111111") }, new { Id = new Guid("a5f5815a-2ba5-4b9f-8f45-fe41f5b20102"), Created = new DateTimeOffset(new DateTime(2023, 8, 31, 6, 48, 46, 941, DateTimeKind.Unspecified).AddTicks(8875), new TimeSpan(0, 0, 0, 0, 0)), Map = "sr_junglism", Sectors = new List { 64.0, 64.0, 128.0 }, Time = 256.0, UserId = new Guid("22222222-2222-2222-2222-222222222222") }, new { Id = new Guid("d2a3e508-8a8e-4959-8103-67c60567e294"), Created = new DateTimeOffset(new DateTime(2023, 8, 31, 6, 48, 46, 941, DateTimeKind.Unspecified).AddTicks(8882), new TimeSpan(0, 0, 0, 0, 0)), Map = "sr_silverstorage", Sectors = new List { 64.0, 64.0, 128.0 }, Time = 256.0, UserId = new Guid("33333333-3333-3333-3333-333333333333") }); }); modelBuilder.Entity("SpaceRace.Shared.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>("Sectors") .HasColumnType("double precision[]"); b.Property("Time") .HasColumnType("double precision"); b.Property("UserId") .HasColumnType("uuid"); b.ToTable((string)null); }); #pragma warning restore 612, 618 } } }