Files
Radicade/Server/Migrations/20260810081825_AddVoteKickLog.cs
2026-10-16 23:33:13 -07:00

41 lines
1.4 KiB
C#

using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace RadicadeServer.Migrations
{
public partial class AddVoteKickLog : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "VoteKicks",
columns: table => new
{
Id = table.Column<long>(type: "bigint", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
PlayerId = table.Column<long>(type: "bigint", nullable: false),
Reason = table.Column<string>(type: "nvarchar(max)", nullable: false),
Category = table.Column<int>(type: "int", nullable: false),
IsForce = table.Column<bool>(type: "bit", nullable: false),
CreatedAt = table.Column<DateTime>(type: "datetime2", nullable: false),
ExpiresAt = table.Column<DateTime>(type: "datetime2", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_VoteKicks", x => x.Id);
});
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "VoteKicks");
}
}
}