Make DB id's nullable

This commit is contained in:
2025-07-30 22:01:02 -07:00
parent d5338d58c0
commit 47bc07e327
8 changed files with 28 additions and 28 deletions
+2 -2
View File
@@ -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
}