namespace ZB.MOM.WW.ScadaBridge.SiteRuntime.Tracking;

/// <summary>
/// Options for <see cref="OperationTrackingStore"/> — site-local cached-call
/// tracking SQLite store.
/// </summary>
public class OperationTrackingOptions
{
    /// <summary>
    /// MIGRATION-ONLY as of LocalDb Phase 1. <see cref="OperationTrackingStore"/> no longer
    /// reads this: the tracking table lives in the consolidated site database at
    /// <c>LocalDb:Path</c>. The only remaining consumer is
    /// <c>SiteLocalDbLegacyMigrator</c>, which uses it to locate a pre-Phase-1
    /// <c>site-tracking.db</c> and copy it in once. Safe to delete from a config once that
    /// node's migration has run.
    /// </summary>
    public string ConnectionString { get; set; } = "Data Source=site-tracking.db";

    /// <summary>
    /// Retention window for terminal tracking rows. The default purge cadence
    /// (driven by the host) deletes terminal rows older than this many days.
    /// </summary>
    public int RetentionDays { get; set; } = 7;
}
