namespace BoredCareers.Entities {
    public class JobListing {
        public int? ID { get; set; } // PK
        public int CompanyID { get; set; } // FK
        public string Title { get; set; } = "";
        public string PostalCode { get; set; } = "";
        public string Country { get; set; } = ""; // 2 Letter Country Code
        public string StateOrRegion { get; set; } = "";
        public string City { get; set; } = "";
        public int SalaryMin { get; set; } = 0;
        public int SalaryMax { get; set; } = 0;
        public string JobType { get; set; } = "";
        public bool Remote { get; set; } = false;
        public string Description { get; set; } = "";
        public JobListingSkill[] Skills { get; set; } = [];
        public DateTime CreatedTime { get; set; }
        public DateTime ModifiedTime { get; set; }
        public bool IsDeleted { get; set; } = false;
    }

    public class JobListingSkill {
        public int? ID { get; set; } // PK
        public int JobListingID { get; set; } // FK
        public string Name { get; set; } = "";
        public string Description { get; set; } = "";
    }
}