32 lines
985 B
C#
32 lines
985 B
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
namespace Sean.Migrations
|
|
{
|
|
public partial class InitialCreate : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.CreateTable(
|
|
name: "Scores",
|
|
columns: table => new
|
|
{
|
|
UserId = table.Column<ulong>(nullable: false),
|
|
Date = table.Column<DateTime>(nullable: false),
|
|
Score = table.Column<int>(nullable: false),
|
|
Name = table.Column<string>(nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_Scores", x => new { x.UserId, x.Date });
|
|
});
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropTable(
|
|
name: "Scores");
|
|
}
|
|
}
|
|
}
|