Files
spacerace/Server/Migrations/SpaceRaceDbContextModelSnapshot.cs
T
2023-08-29 11:45:08 +10:00

83 lines
3.2 KiB
C#

// <auto-generated />
using System;
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<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property<DateTimeOffset>("Created")
.HasColumnType("timestamp with time zone");
b.Property<string>("Map")
.IsRequired()
.HasColumnType("text");
b.Property<double>("Time")
.HasColumnType("double precision");
b.Property<Guid>("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
}
}
}