mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-09-30 11:53:12 +00:00
Introduce in-process WeekRolled job with idempotent ledger to increment carriedOver for the SHOC board, plus optional PastDue cache and admin reprocess endpoints while keeping isPastDue derived on-read.
15 lines
487 B
C#
15 lines
487 B
C#
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace Data.SeaHavenIndustries
|
|
{
|
|
public class WorkOrderWeekRolledLedger
|
|
{
|
|
public int Id { get; set; }
|
|
public int WorkOrderId { get; set; }
|
|
[ForeignKey(nameof(WorkOrderId))]
|
|
public virtual WorkOrder? WorkOrder { get; set; }
|
|
public DateOnly SourceWeekStart { get; set; }
|
|
public DateTime ProcessedAt { get; set; }
|
|
public string CorrelationId { get; set; } = "";
|
|
}
|
|
}
|