using System;
using System.Text.Json.Serialization;

namespace JobTrackerApi.Models
{
    public class Attachment
    {
        public int Id { get; set; }
        public int JobApplicationId { get; set; }

        [JsonIgnore]
        public JobApplication JobApplication { get; set; } = null!;
        public string FileName { get; set; } = "";
        public string FilePath { get; set; } = "";
        public DateTime UploadDate { get; set; } = DateTime.Now;
        public string FileType { get; set; } = ""; // e.g., PDF, DOCX
        public long FileSize { get; set; }
        public string? Purpose { get; set; }
        public bool UseForAi { get; set; } = true;
    }
}
