using Shared.Data.Entities;

namespace CvSearch.Data.Entities;

public sealed class JobSearchTokenEntity : BaseEntity
{
    public string CvDocumentId { get; set; } = string.Empty;
    public string Email { get; set; } = string.Empty;
    public string Language { get; set; } = "en";
    public DateTime ExpiresAt { get; set; }
    public bool Used { get; set; }
    public string Keywords { get; set; } = string.Empty;
    public string? Location { get; set; }
    /// <summary>Client IP address captured when the user submitted the CV match request. Null for tokens created before this field was added.</summary>
    public string? ClientIpAddress { get; set; }
}
