using JdeScoping.Core.Models.Enums;
namespace JdeScoping.Core.Models.Infrastructure;
///
/// Cache data update tracking entity
///
public class DataUpdate
{
///
/// PK ID of record
///
public int Id { get; set; }
///
/// Name of source system (JDE/CMS/etc)
///
public string SourceSystem { get; set; } = string.Empty;
///
/// Name of source data (WORK_ORDER, WORK_ORDER_STEP, etc)
///
public string SourceData { get; set; } = string.Empty;
///
/// Cache table name
///
public string TableName { get; set; } = string.Empty;
///
/// Timestamp at start of update
///
public DateTime StartDt { get; set; }
///
/// Timestamp at end of update (null while sync is in progress)
///
public DateTime? EndDt { get; set; }
///
/// Type of data update (Hourly, Daily, Mass)
///
public UpdateTypes UpdateType { get; set; }
///
/// Whether the update was successful
///
public bool WasSuccessful { get; set; }
///
/// Number of records in update
///
public long NumberRecords { get; set; }
///
/// JSON string of parameters used during the sync operation (key:value pairs).
///
public string? Parameters { get; set; }
}