server post wip
This commit is contained in:
1 parent
ef95f63d14
commit
d6445332be
13 files changed
+239
-30
No files matched your search
@@ -0,0 +1,48 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Server.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class Beginninging : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "Laps",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<Guid>(type: "uuid", nullable: false),
|
||||
Created = table.Column<DateTimeOffset>(type: "timestamp with time zone", nullable: false),
|
||||
UserId = table.Column<Guid>(type: "uuid", nullable: false),
|
||||
Time = table.Column<double>(type: "double precision", nullable: false),
|
||||
Map = table.Column<string>(type: "text", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_Laps", x => x.Id);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Laps_Map",
|
||||
table: "Laps",
|
||||
column: "Map");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Laps_UserId_Map",
|
||||
table: "Laps",
|
||||
columns: new[] { "UserId", "Map" },
|
||||
unique: true);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "Laps");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user