using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Server.Migrations
{
///
public partial class Beginninging : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "Completions",
columns: table => new
{
Id = table.Column(type: "uuid", nullable: false),
Date = table.Column(type: "timestamp with time zone", nullable: false),
UserId = table.Column(type: "uuid", nullable: false),
Map = table.Column(type: "text", nullable: false),
Time = table.Column(type: "double precision", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_Completions", x => x.Id);
});
migrationBuilder.CreateIndex(
name: "IX_Completions_Map",
table: "Completions",
column: "Map");
migrationBuilder.CreateIndex(
name: "IX_Completions_UserId",
table: "Completions",
column: "UserId");
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "Completions");
}
}
}