Make DB id's nullable
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
namespace BoredCareers.Entities {
|
||||
|
||||
public class Company {
|
||||
public int ID { get; set; } // PK
|
||||
public int? ID { get; set; } // PK
|
||||
public string Name { get; set; } = "";
|
||||
public string Email { get; set; } = "";
|
||||
public bool EmailVerified { get; set; } = false;
|
||||
@@ -16,7 +16,7 @@ namespace BoredCareers.Entities {
|
||||
}
|
||||
|
||||
public class Employee {
|
||||
public int ID { get; set; } // PK
|
||||
public int? ID { get; set; } // PK
|
||||
public int AccountID { get; set; } // FK
|
||||
public Company Company { get; set; } = new Company(); // FK
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user