server post wip
This commit is contained in:
1 parent
ef95f63d14
commit
d6445332be
13 files changed
+239
-30
No files matched your search
+4
-3
@@ -12,7 +12,7 @@ using Server;
|
||||
namespace Server.Migrations
|
||||
{
|
||||
[DbContext(typeof(SpaceRaceDbContext))]
|
||||
[Migration("20230823032740_Beginninging")]
|
||||
[Migration("20230828112623_Beginninging")]
|
||||
partial class Beginninging
|
||||
{
|
||||
/// <inheritdoc />
|
||||
@@ -31,7 +31,7 @@ namespace Server.Migrations
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("uuid");
|
||||
|
||||
b.Property<DateTimeOffset>("Date")
|
||||
b.Property<DateTimeOffset>("Created")
|
||||
.HasColumnType("timestamp with time zone");
|
||||
|
||||
b.Property<string>("Map")
|
||||
@@ -48,7 +48,8 @@ namespace Server.Migrations
|
||||
|
||||
b.HasIndex("Map");
|
||||
|
||||
b.HasIndex("UserId");
|
||||
b.HasIndex("UserId", "Map")
|
||||
.IsUnique();
|
||||
|
||||
b.ToTable("Laps");
|
||||
});
|
||||
+6
-5
@@ -16,10 +16,10 @@ namespace Server.Migrations
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<Guid>(type: "uuid", nullable: false),
|
||||
Date = table.Column<DateTimeOffset>(type: "timestamp with time zone", nullable: false),
|
||||
Created = table.Column<DateTimeOffset>(type: "timestamp with time zone", nullable: false),
|
||||
UserId = table.Column<Guid>(type: "uuid", nullable: false),
|
||||
Map = table.Column<string>(type: "text", nullable: false),
|
||||
Time = table.Column<double>(type: "double precision", nullable: false)
|
||||
Time = table.Column<double>(type: "double precision", nullable: false),
|
||||
Map = table.Column<string>(type: "text", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
@@ -32,9 +32,10 @@ namespace Server.Migrations
|
||||
column: "Map");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Laps_UserId",
|
||||
name: "IX_Laps_UserId_Map",
|
||||
table: "Laps",
|
||||
column: "UserId");
|
||||
columns: new[] { "UserId", "Map" },
|
||||
unique: true);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
@@ -28,7 +28,7 @@ namespace Server.Migrations
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("uuid");
|
||||
|
||||
b.Property<DateTimeOffset>("Date")
|
||||
b.Property<DateTimeOffset>("Created")
|
||||
.HasColumnType("timestamp with time zone");
|
||||
|
||||
b.Property<string>("Map")
|
||||
@@ -45,7 +45,8 @@ namespace Server.Migrations
|
||||
|
||||
b.HasIndex("Map");
|
||||
|
||||
b.HasIndex("UserId");
|
||||
b.HasIndex("UserId", "Map")
|
||||
.IsUnique();
|
||||
|
||||
b.ToTable("Laps");
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user