Add ParseStatus field to Receipt model with states: NotRequested, Queued, Parsing, Completed, Failed. Includes indexed column and EF Core migration for tracking receipt parse queue progress. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
39 lines
1.0 KiB
C#
39 lines
1.0 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace MoneyMap.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class AddReceiptParseStatus : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "ParseStatus",
|
|
table: "Receipts",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_Receipts_ParseStatus",
|
|
table: "Receipts",
|
|
column: "ParseStatus");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_Receipts_ParseStatus",
|
|
table: "Receipts");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "ParseStatus",
|
|
table: "Receipts");
|
|
}
|
|
}
|
|
}
|