20 lines
653 B
C#
20 lines
653 B
C#
namespace BlueLaminate.EFCore.Entities;
|
|
|
|
/// <summary>
|
|
/// One successful run of a data-scraping job. Used to throttle jobs that
|
|
/// should run infrequently (e.g. the weapon catalogue, which changes rarely).
|
|
/// Only successful runs are recorded, so a failed run never blocks a retry.
|
|
/// </summary>
|
|
public class ScrapeRun
|
|
{
|
|
public int Id { get; set; }
|
|
|
|
/// <summary>Identifies which job this run belongs to, e.g. "weapons".</summary>
|
|
public string Source { get; set; } = null!;
|
|
|
|
public DateTimeOffset RanAt { get; set; }
|
|
|
|
/// <summary>How many records the run inserted or updated.</summary>
|
|
public int ItemCount { get; set; }
|
|
}
|