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,30 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using RadicadeServer.DB;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace RadicadeServer.Migrations;
|
||||
|
||||
[DbContext(typeof(RecDBContext))]
|
||||
[Migration("20260909040000_AddWishlistItems")]
|
||||
public partial class AddWishlistItems : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "WishlistItems",
|
||||
columns: table => new
|
||||
{
|
||||
WishlistItemId = table.Column<string>(type: "nvarchar(450)", nullable: false),
|
||||
AccountId = table.Column<long>(type: "bigint", nullable: false),
|
||||
PurchasableItemId = table.Column<long>(type: "bigint", nullable: false),
|
||||
CreatedAt = table.Column<DateTime>(type: "datetime2", nullable: false)
|
||||
},
|
||||
constraints: table => table.PrimaryKey("PK_WishlistItems", x => x.WishlistItemId));
|
||||
|
||||
migrationBuilder.CreateIndex("IX_WishlistItems_AccountId", "WishlistItems", "AccountId");
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder) => migrationBuilder.DropTable("WishlistItems");
|
||||
}
|
||||
Reference in New Issue
Block a user