Store user-provided parsing notes in the database so they persist across parsing attempts. Notes are displayed in Receipt Information and pre-populated in the textarea for future parses. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
30 lines
779 B
C#
30 lines
779 B
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace MoneyMap.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class AddReceiptParsingNotes : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "ParsingNotes",
|
|
table: "Receipts",
|
|
type: "nvarchar(2000)",
|
|
maxLength: 2000,
|
|
nullable: true);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "ParsingNotes",
|
|
table: "Receipts");
|
|
}
|
|
}
|
|
}
|