mirror of
https://github.com/JogmansonReal/Radicade.git
synced 2026-10-27 16:09:07 -07:00
Radicade Public Code
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace RadicadeServer.Migrations
|
||||
{
|
||||
|
||||
public partial class LeaderboardScores : Migration
|
||||
{
|
||||
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "LeaderboardScores",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<long>(type: "bigint", nullable: false)
|
||||
.Annotation("SqlServer:Identity", "1, 1"),
|
||||
RoomId = table.Column<long>(type: "bigint", nullable: false),
|
||||
SubRoomId = table.Column<long>(type: "bigint", nullable: false),
|
||||
PlayerId = table.Column<long>(type: "bigint", nullable: false),
|
||||
StatChannel = table.Column<int>(type: "int", nullable: false),
|
||||
Score = table.Column<double>(type: "float", nullable: false),
|
||||
Time = table.Column<long>(type: "bigint", nullable: false),
|
||||
SubmittedAt = table.Column<DateTime>(type: "datetime2", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_LeaderboardScores", x => x.Id);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_LeaderboardScores_RoomId_StatChannel_PlayerId",
|
||||
table: "LeaderboardScores",
|
||||
columns: new[] { "RoomId", "StatChannel", "PlayerId" });
|
||||
}
|
||||
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "LeaderboardScores");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user