Add init weapon scraper
This commit is contained in:
19
BlueLaminate/BlueLaminate.EFCore/Entities/ScrapeRun.cs
Normal file
19
BlueLaminate/BlueLaminate.EFCore/Entities/ScrapeRun.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
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; }
|
||||
}
|
||||
Reference in New Issue
Block a user