Align the Entities to the database
Docker Build and Release Upload / build (push) Failing after 1m1s

This commit is contained in:
2025-07-13 20:09:16 -07:00
parent d134ad1dcd
commit ddf78e5606
5 changed files with 153 additions and 62 deletions
+16
View File
@@ -0,0 +1,16 @@
namespace BoredCareers.Entities {
public class Account {
public int ID { get; set; } // PK
public string UserName { get; set; } = "";
public string Email { get; set; } = "";
public bool EmailVerified { get; set; } = false;
public string PasswordHash { get; set; } = "";
public bool FailedPasswordLock { get; set; } = false;
public int PasswordAttempts { get; set; } = 5;
public int CurrentPasswordAttempts { get; set; } = 0;
public string Role { get; set; } = "Generic";
public string EmailToken { get; set; } = "";
public string DataServer { get; set; } = "";
public string Error { get; set; } = "";
}
}
+33
View File
@@ -0,0 +1,33 @@
namespace BoredCareers.Entities {
public class Company {
public int ID { get; set; } // PK
public string Name { get; set; } = "";
public string Email { get; set; } = "";
public bool EmailVerified { get; set; } = false;
public string WebsiteURL { get; set; } = "";
public string LogoURL { get; set; } = "";
public string Phone { 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 string Description { get; set; } = "";
}
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; } = "";
}
}
-59
View File
@@ -1,59 +0,0 @@
// Reflections of SQL Database objects
namespace BoredCareers.Entities {
public class Account {
public int ID { get; set; } // PK
public string UserName { get; set; } = "";
public string Email { get; set; } = "";
public bool EmailVerified { get; set; } = false;
public string PasswordHash { get; set; } = "";
public bool FailedPasswordLock { get; set; } = false;
public int PasswordAttempts { get; set; } = 5;
public int CurrentPasswordAttempts { get; set; } = 0;
public string Role { get; set; } = "Generic";
public string EmailToken { get; set; } = "";
public string Error { get; set; } = "";
}
public class Product {
public int ID { get; set; } // PK
public string Name { get; set; } = "";
public string Description { get; set; } = "";
public ProductImage[] Images { get; set; } = [];
public int Cost { get; set; }
public string URL { get; set; } = "";
}
public class ProductImage {
public int ImageID { get; set; } // PK
public int ProductID { get; set; } // PK
public byte[] Image { get; set; } = Array.Empty<byte>();
public string Name { get; set; } = "";
}
public class ProductInventory {
public int AccountID { get; set; } // PK
public int ProductID { get; set; } // PK
public string Key { get; set; } = string.Empty; // PK
public string Value { get; set; } = string.Empty;
}
public class Cart {
public int ID { get; set; } // PK
public int AccountID { get; set; }
public int ProductID { get; set; }
}
public class Receipt {
public int AccountID { get; set; } // PK
public int ProductID { get; set; } // PK
public string ReceiptID { get; set; } = string.Empty; // PK
public int LineItem { get; set; }
public DateTime Time { get; set; }
public int TaxAmount { get; set; }
public int TotalCost { get; set; }
}
}
+99
View File
@@ -0,0 +1,99 @@
namespace BoredCareers.Entities {
public class Resume {
public int ID { get; set; } // PK
public int AccountID { get; set; } // FK
public string Name { get; set; } = "";
public string Field { get; set; } = "";
public string Email { get; set; } = "";
public string PhoneNumber { 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 bool IsActive { get; set; } = false;
}
public class ResumeExperience {
public int ID { get; set; } // PK
public int ResumeID { get; set; } // FK
public string JobTitle { get; set; } = "";
public string Company { 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 DateTime DateStarted { get; set; } = new DateTime();
public bool StillEmployed { get; set; } = false;
public DateTime DateEnded { get; set; } = new DateTime();
}
public class ResumeExperienceBullet {
public int ID { get; set; } // PK
public int ResumeExperienceID { get; set; } // FK
public string JobFunction { get; set; } = "";
}
public class ResumeMillitary {
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; } = "";
public DateTime DateStarted { get; set; } = new DateTime();
public bool StillServing { get; set; } = false;
public DateTime DateEnded { get; set; } = new DateTime();
}
public class ResumeMillitaryBullet {
public int ID { get; set; } // PK
public int ResumeMillitaryID { get; set; } // FK
public string Achevement { get; set; } = "";
public string Description { get; set; } = "";
}
public class ResumeEducation {
public int ID { get; set; } // PK
public int ResumeID { get; set; } // FK
public string DegreeType { get; set; } = "";
public string DegreeField { get; set; } = "";
public string School { 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 DateTime DateStarted { get; set; } = new DateTime();
public bool StillStudying { get; set; } = false;
public DateTime DateEnded { get; set; } = new DateTime();
}
public class ResumeSkill {
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 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 ResumeID { get; set; } // FK
public string Name { get; set; } = "";
public string VerificationURL { get; set; } = "";
public string Description { get; set; } = "";
}
public class ResumeProject {
public int ID { get; set; } // PK
public int ResumeID { get; set; } // FK
public string Name { get; set; } = "";
public string URL { get; set; } = "";
public string Description { get; set; } = "";
}
}