Skip to content

Commit

Permalink
add models fo Job applications
Browse files Browse the repository at this point in the history
  • Loading branch information
nixhantb committed Dec 11, 2023
1 parent 2297e47 commit f0ed0b3
Show file tree
Hide file tree
Showing 11 changed files with 93 additions and 26 deletions.
17 changes: 17 additions & 0 deletions JobLeet.WebApi/JobLeet.Api/Models/Common/V1/ExperienceModel.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
namespace JobLeet.WebApi.JobLeet.Api.Models.Common.V1
{
public class ExperienceModel : BaseModel
{
public ExperienceLevel ExperienceLevel { get; set; }
}
public enum ExperienceLevel
{
EntryLevel,
Intermediate,
Senior,
Lead,
Principal,
Executive,
Others
}
}
14 changes: 14 additions & 0 deletions JobLeet.WebApi/JobLeet.Api/Models/Common/V1/QualificationModel.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
namespace JobLeet.WebApi.JobLeet.Api.Models.Common.V1
{
public class QualificationModel : BaseModel
{
public List<QualificationType> QualificationTypes { get; set; }
public string QualificationInformation { get; set; }
}
public enum QualificationType
{
Education,
Skill,
Certification
}
}
6 changes: 0 additions & 6 deletions JobLeet.WebApi/JobLeet.Api/Models/Jobs/V1/Application.cs

This file was deleted.

11 changes: 11 additions & 0 deletions JobLeet.WebApi/JobLeet.Api/Models/Jobs/V1/ApplicationDateModel.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
namespace JobLeet.WebApi.JobLeet.Api.Models.Jobs.V1
{
public class ApplicationDateModel : BaseModel
{
public DateTime SubmitDate { get; set; }
public DateTime ReviewDate { get; set; }
public DateTime DecisionDate { get; set; }
public string Comments { get; set; }

}
}
11 changes: 11 additions & 0 deletions JobLeet.WebApi/JobLeet.Api/Models/Jobs/V1/ApplicationModel.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
using JobLeet.WebApi.JobLeet.Api.Models.Employers.V1;

namespace JobLeet.WebApi.JobLeet.Api.Models.Jobs.V1
{
public class ApplicationModel : BaseModel
{
public EmployerModel Employer { get; set; }
public JobModel Job { get; set; }
public StatusModel Status { get; set; }
}
}
23 changes: 23 additions & 0 deletions JobLeet.WebApi/JobLeet.Api/Models/Jobs/V1/JobModel.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
using JobLeet.WebApi.JobLeet.Api.Models.Common.V1;
using JobLeet.WebApi.JobLeet.Api.Models.Companies.V1;
using JobLeet.WebApi.JobLeet.Api.Models.Employers.V1;

namespace JobLeet.WebApi.JobLeet.Api.Models.Jobs.V1
{
public class JobModel : BaseModel
{
public EmployerModel Employer { get; set; }
public AddressModel JobAddress { get; set; }
public QualificationModel RequiredQualification { get; set; }
public string JobTitle { get; set; }
public string JobDescription { get; set; }
public int Vacancies { get; set; }
public ExperienceModel RequiredExperience { get; set; }

public decimal BasicPay { get; set; }
public string FunctionalArea { get; set; }
public IndustryTypeModel IndustryType { get; set; }

public DateTime PostingDate { get; set; }
}
}
15 changes: 15 additions & 0 deletions JobLeet.WebApi/JobLeet.Api/Models/Jobs/V1/StatusModel.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
namespace JobLeet.WebApi.JobLeet.Api.Models.Jobs.V1
{
public class StatusModel : BaseModel
{
public StatusName StatusName { get; set; }
}
public enum StatusName
{
Active,
Inactive,
Pending,
Completed,
Cancelled
}
}
7 changes: 0 additions & 7 deletions JobLeet.WebApi/JobLeet.Core/Entities/Common/V1/Date.cs

This file was deleted.

3 changes: 1 addition & 2 deletions JobLeet.WebApi/JobLeet.Core/Entities/Jobs/V1/Application.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using JobLeet.WebApi.JobLeet.Core.Entities.Common.V1;
using JobLeet.WebApi.JobLeet.Core.Entities.Employers.V1;
using JobLeet.WebApi.JobLeet.Core.Entities.Employers.V1;
using System.ComponentModel.DataAnnotations.Schema;

namespace JobLeet.WebApi.JobLeet.Core.Entities.Jobs.V1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
using JobLeet.WebApi.JobLeet.Core.Entities.Common.V1;
using System.ComponentModel.DataAnnotations.Schema;

namespace JobLeet.WebApi.JobLeet.Core.Entities.Jobs.V1
namespace JobLeet.WebApi.JobLeet.Core.Entities.Jobs.V1
{
public class ApplicationDate : BaseEntity
{
[ForeignKey("Date")]
public int DateId { get; set; }
public Date Date { get; set; }
public DateTime SubmitDate { get; set; }
public DateTime ReviewDate { get; set; }
public DateTime DecisionDate { get; set; }
Expand Down
4 changes: 0 additions & 4 deletions JobLeet.WebApi/JobLeet.Core/Entities/Jobs/V1/Job.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ public class Job : BaseEntity
[ForeignKey("Qualification")]
public int QualificationId { get; set; }
public Qualification RequiredQualification { get; set; }
[ForeignKey("Date")]
public int DateId { get; set; }
public Date JobDate { get; set; }

public string JobTitle { get; set; }
public string JobDescription { get; set; }
public int Vacancies { get; set; }
Expand Down

0 comments on commit f0ed0b3

Please sign in to comment.