Add the PageContent table (entity, DbContext, migration, model snapshot)

This commit is contained in:
Francesco Lorenzo D'Amico
2026-09-11 13:29:15 +02:00
parent ea14d9208e
commit 776d62a724
5 changed files with 195 additions and 4 deletions
@@ -0,0 +1,35 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BewerbungsSeite.Migrations
{
/// <inheritdoc />
public partial class AddPageContent : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "PageContent",
columns: table => new
{
Id = table.Column<int>(type: "int", nullable: false),
Content = table.Column<byte[]>(type: "varbinary(max)", nullable: false),
UpdatedAt = table.Column<DateTime>(type: "datetime2", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_PageContent", x => x.Id);
});
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "PageContent");
}
}
}