feat(infra): added migrations for adding properties to user model

This commit is contained in:
Stevan Freeborn
2026-02-06 06:43:55 -06:00
parent bbe3779a53
commit 34102e451d
11 changed files with 322 additions and 44 deletions
@@ -0,0 +1,29 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace FiscalOS.Infra.Migrations
{
/// <inheritdoc />
public partial class AddEncryptionKeyToUserModel : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "EncryptedDataKey",
table: "Users",
type: "TEXT",
nullable: false,
defaultValue: "");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "EncryptedDataKey",
table: "Users");
}
}
}