namespace PSLauncher.Models;

public sealed class LocalConfig
{
    public int SchemaVersion { get; set; } = 1;
    public string ServerBaseUrl { get; set; } = "https://example.com/PS_Launcher/api";
    public string InstallRoot { get; set; } = string.Empty;
    public string? LastLaunchedVersion { get; set; }
    public LicenseConfig License { get; set; } = new();
}

public sealed class LicenseConfig
{
    public string? EncryptedKey { get; set; }
    public DateTime? LastValidationAt { get; set; }
    public DateTime? CachedEntitlementUntil { get; set; }
    public string? CachedOwnerName { get; set; }
}
