feat(Core): add AppConfig database table and logic

This commit is contained in:
2026-06-13 23:19:35 +02:00
parent 0c39c6169d
commit 6d228214f9
12 changed files with 210 additions and 4 deletions
@@ -0,0 +1,33 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Core.Migrations
{
/// <inheritdoc />
public partial class AppConfig_Init : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "AppConfig",
columns: table => new
{
Key = table.Column<string>(type: "text", nullable: false),
Value = table.Column<string>(type: "jsonb", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_AppConfig", x => x.Key);
});
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "AppConfig");
}
}
}