From 34ce91d886d3e16bde6e3f2c502351ed7504adda Mon Sep 17 00:00:00 2001 From: Derek Holloway Date: Mon, 14 Jul 2025 20:55:54 -0700 Subject: [PATCH] Split out JobListings --- src/Server/Entities/Company.cs | 13 ++----------- src/Server/Entities/JobListing.cs | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+), 11 deletions(-) create mode 100644 src/Server/Entities/JobListing.cs diff --git a/src/Server/Entities/Company.cs b/src/Server/Entities/Company.cs index fe42507..40b57f4 100644 --- a/src/Server/Entities/Company.cs +++ b/src/Server/Entities/Company.cs @@ -15,19 +15,10 @@ namespace BoredCareers.Entities { public string Description { get; set; } = ""; } - public class JobListing { + public class CompanyUser { public int ID { get; set; } // PK + public int AccountID { get; set; } // FK 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; } = ""; } } \ No newline at end of file diff --git a/src/Server/Entities/JobListing.cs b/src/Server/Entities/JobListing.cs new file mode 100644 index 0000000..3c02654 --- /dev/null +++ b/src/Server/Entities/JobListing.cs @@ -0,0 +1,18 @@ +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; } = ""; + } + +} \ No newline at end of file