using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; namespace GroupService.Infrastructure.Migrations; [DbContext(typeof(GroupDbContext))] [Migration("20260915000100_ManagementReceipts")] public class ManagementReceipts : Migration { protected override void Up(MigrationBuilder m) => m.Sql(""" CREATE TABLE IF NOT EXISTS management_receipts ( Owner varchar(64) NOT NULL, Id char(36) NOT NULL, Payload longtext NOT NULL, CreatedAt datetime(6) NOT NULL, PRIMARY KEY (Owner, Id) ) CHARACTER SET utf8mb4; """); // Receipts are retained on rollback: losing idempotency history can repeat a previously applied action. protected override void Down(MigrationBuilder m) { } }