Make DB id's nullable
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
namespace BoredCareers.Entities {
|
||||
|
||||
public class Resume {
|
||||
public int ID { get; set; } // PK
|
||||
public int? ID { get; set; } // PK
|
||||
public int AccountID { get; set; } // FK
|
||||
public string Name { get; set; } = "";
|
||||
public string Field { get; set; } = "";
|
||||
@@ -22,7 +22,7 @@ namespace BoredCareers.Entities {
|
||||
}
|
||||
|
||||
public class ResumeExperience {
|
||||
public int ID { get; set; } // PK
|
||||
public int? ID { get; set; } // PK
|
||||
public int ResumeID { get; set; } // FK
|
||||
public string JobTitle { get; set; } = "";
|
||||
public string Company { get; set; } = "";
|
||||
@@ -37,14 +37,14 @@ namespace BoredCareers.Entities {
|
||||
}
|
||||
|
||||
public class ResumeExperienceBullet {
|
||||
public int ID { get; set; } // PK
|
||||
public int? ID { get; set; } // PK
|
||||
public int ResumeID { get; set; } // FK
|
||||
public int ResumeExperienceID { get; set; } // FK
|
||||
public string JobFunction { get; set; } = "";
|
||||
}
|
||||
|
||||
public class ResumeMilitary {
|
||||
public int ID { get; set; } // PK
|
||||
public int? ID { get; set; } // PK
|
||||
public int ResumeID { get; set; } // FK
|
||||
public string Country { get; set; } = ""; // 2 Letter Country Code
|
||||
public string Rank { get; set; } = "";
|
||||
@@ -55,7 +55,7 @@ namespace BoredCareers.Entities {
|
||||
}
|
||||
|
||||
public class ResumeMilitaryBullet {
|
||||
public int ID { get; set; } // PK
|
||||
public int? ID { get; set; } // PK
|
||||
public int ResumeID { get; set; } // FK
|
||||
public int ResumeMilitaryID { get; set; } // FK
|
||||
public string Achievement { get; set; } = "";
|
||||
@@ -63,7 +63,7 @@ namespace BoredCareers.Entities {
|
||||
}
|
||||
|
||||
public class ResumeEducation {
|
||||
public int ID { get; set; } // PK
|
||||
public int? ID { get; set; } // PK
|
||||
public int ResumeID { get; set; } // FK
|
||||
public string DegreeType { get; set; } = "";
|
||||
public string DegreeField { get; set; } = "";
|
||||
@@ -78,21 +78,21 @@ namespace BoredCareers.Entities {
|
||||
}
|
||||
|
||||
public class ResumeSkill {
|
||||
public int ID { get; set; } // PK
|
||||
public int? ID { get; set; } // PK
|
||||
public int ResumeID { get; set; } // FK
|
||||
public string Name { get; set; } = "";
|
||||
public string Description { get; set; } = "";
|
||||
}
|
||||
|
||||
public class ResumeLanguage {
|
||||
public int ID { get; set; } // PK
|
||||
public int? ID { get; set; } // PK
|
||||
public int ResumeID { get; set; } // FK
|
||||
public string Language { get; set; } = "";
|
||||
public string Proficiency { get; set; } = "";
|
||||
}
|
||||
|
||||
public class ResumeCertification {
|
||||
public int ID { get; set; } // PK
|
||||
public int? ID { get; set; } // PK
|
||||
public int ResumeID { get; set; } // FK
|
||||
public string Name { get; set; } = "";
|
||||
public string VerificationURL { get; set; } = "";
|
||||
@@ -100,7 +100,7 @@ namespace BoredCareers.Entities {
|
||||
}
|
||||
|
||||
public class ResumeProject {
|
||||
public int ID { get; set; } // PK
|
||||
public int? ID { get; set; } // PK
|
||||
public int ResumeID { get; set; } // FK
|
||||
public string Name { get; set; } = "";
|
||||
public string URL { get; set; } = "";
|
||||
|
||||
Reference in New Issue
Block a user