Files
Radicade/Server/Migrations/20260521114914_GiftsTest.cs
T
2026-10-16 23:33:13 -07:00

52 lines
2.4 KiB
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace RadicadeServer.Migrations
{
public partial class GiftsTest : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "GiftItems",
columns: table => new
{
GiftDropId = table.Column<long>(type: "bigint", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
ItemSetId = table.Column<long>(type: "bigint", nullable: false),
ItemSetFriendlyName = table.Column<string>(type: "nvarchar(max)", nullable: false),
FriendlyName = table.Column<string>(type: "nvarchar(max)", nullable: false),
Tooltip = table.Column<string>(type: "nvarchar(max)", nullable: false),
IsQuery = table.Column<bool>(type: "bit", nullable: false),
Unique = table.Column<bool>(type: "bit", nullable: false),
SubscribersOnly = table.Column<bool>(type: "bit", nullable: false),
ConsumableItemDesc = table.Column<string>(type: "nvarchar(max)", nullable: false),
AvatarItemDesc = table.Column<string>(type: "nvarchar(max)", nullable: false),
AvatarItemType = table.Column<int>(type: "int", nullable: false),
EquipmentPrefabName = table.Column<string>(type: "nvarchar(max)", nullable: false),
EquipmentModificationGuid = table.Column<string>(type: "nvarchar(max)", nullable: false),
CurrencyType = table.Column<int>(type: "int", nullable: false),
Currency = table.Column<int>(type: "int", nullable: false),
Context = table.Column<int>(type: "int", nullable: false),
Rarity = table.Column<int>(type: "int", nullable: false),
IsFeatured = table.Column<bool>(type: "bit", nullable: false),
Accessibility = table.Column<int>(type: "int", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_GiftItems", x => x.GiftDropId);
});
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "GiftItems");
}
}
}