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

/// <summary>
/// Options for <see cref="OperationTrackingStore"/> — site-local cached-call
/// tracking SQLite store (Audit Log #23 / M3).
/// </summary>
public class OperationTrackingOptions
{
    /// <summary>
    /// Full ADO.NET connection string for the SQLite database (e.g.
    /// <c>"Data Source=site-tracking.db"</c>). Tests use the
    /// <c>Mode=Memory;Cache=Shared</c> form to keep the database in-memory.
    /// </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;
}
