first commit
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Fitness_core_BE.Models
|
||||
{
|
||||
// One row per (client, sweep) a background job processed. Central, not tenant-scoped --
|
||||
// job history isn't gym-operational data, and needs to be visible from one place
|
||||
// regardless of which tenant schema it's actually about.
|
||||
public class JobRunLog
|
||||
{
|
||||
[Key]
|
||||
public Guid JobRunLogId { get; set; }
|
||||
|
||||
public string JobName { get; set; } = string.Empty;
|
||||
public Guid FKClientId { get; set; }
|
||||
public DateTime RunAtUtc { get; set; } = DateTime.UtcNow;
|
||||
|
||||
// "Success" | "PartialFailure" | "Failed"
|
||||
public string Status { get; set; } = string.Empty;
|
||||
public int SubscriptionsRenewed { get; set; }
|
||||
public string? ErrorMessage { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user