namespace CvSearch.Models.Settings;

public sealed class JobSearchSettings
{
    public bool Enabled { get; set; } = true;
    public string JobSearchLinkBaseUrl { get; set; } = string.Empty;
    public int TokenExpiryDays { get; set; } = 7;
    public int MinMatchScore { get; set; } = 15;
    public int MaxJobsToMatch { get; set; } = 15;
    public List<JobProviderConfig> Providers { get; set; } = [];
}

public sealed class JobProviderConfig
{
    public string Name { get; set; } = string.Empty;
    public bool Enabled { get; set; } = true;
    public string SearchUrlTemplate { get; set; } = string.Empty;
    public string JobLinkContains { get; set; } = string.Empty;
    public List<string> InitialKeywords { get; set; } = [];
    public int MaxResults { get; set; } = 20;
}
