feat(processing): persist safe atomic operation history

This commit is contained in:
cesnimda
2026-10-28 15:54:37 +01:00
parent 5f261083f3
commit 1f87301ee9
17 changed files with 501 additions and 32 deletions
@@ -2265,6 +2265,24 @@ namespace JobTrackerApi.Migrations
b.ToTable("TwoFactorRecoveryCodes");
});
modelBuilder.Entity("JobTrackerApi.Models.UserOperationEvent", b =>
{
b.Property<long>("Id").ValueGeneratedOnAdd().HasColumnType("INTEGER");
b.Property<Guid>("OperationId").HasColumnType("TEXT");
b.Property<string>("OwnerUserId").IsRequired().HasMaxLength(255).HasColumnType("TEXT");
b.Property<DateTime>("AtUtc").HasColumnType("TEXT");
b.Property<string>("Kind").IsRequired().HasMaxLength(40).HasColumnType("TEXT");
b.Property<string>("Status").IsRequired().HasMaxLength(32).HasColumnType("TEXT");
b.Property<string>("Stage").HasMaxLength(64).HasColumnType("TEXT");
b.Property<int>("Attempt").HasColumnType("INTEGER");
b.Property<string>("FailureCode").HasMaxLength(64).HasColumnType("TEXT");
b.HasKey("Id");
b.HasIndex("OperationId", "Id");
b.HasIndex("AtUtc");
b.ToTable("UserOperationEvents");
b.HasOne("JobTrackerApi.Models.UserOperation", null).WithMany().HasForeignKey("OperationId").OnDelete(DeleteBehavior.Cascade).IsRequired();
});
modelBuilder.Entity("JobTrackerApi.Models.UserNotification", b =>
{
b.Property<Guid>("Id")