Files
Dhananjaya99 bffc9b1686 first commit
2026-09-28 11:44:26 +05:30

23 lines
810 B
C#

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; }
}
}