Files
spacerace/Server/Migrations/SpaceRaceDbContextModelSnapshot.cs
T
2023-08-29 13:52:19 +10:00

109 lines
4.1 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("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<int>("Completions")
.HasColumnType("integer");
b.Property<DateTimeOffset>("Created")
.HasColumnType("timestamp with time zone");
b.Property<Guid>("Id")
.HasColumnType("uuid");
b.Property<string>("Map")
.HasColumnType("text");
b.Property<int>("Position")
.HasColumnType("integer");
b.Property<double>("Time")
.HasColumnType("double precision");
b.Property<Guid>("UserId")
.HasColumnType("uuid");
b.ToTable("PbDTO");
});
#pragma warning restore 612, 618
}
}
}