Merge pull request 'Remove all references to account and forignkeys' (#10) from working into main
Docker Build and Release Upload / build (push) Successful in 1m22s

Reviewed-on: #10
This commit was merged in pull request #10.
This commit is contained in:
2025-07-31 04:32:17 +00:00
-21
View File
@@ -1,25 +1,6 @@
CREATE DATABASE IF NOT EXISTS `boredcareers`; CREATE DATABASE IF NOT EXISTS `boredcareers`;
USE `boredcareers`; USE `boredcareers`;
-- Account Section
CREATE TABLE IF NOT EXISTS `Account` (
`ID` int NOT NULL AUTO_INCREMENT,
`UserName` varchar(60) NOT NULL,
`Email` varchar(255) NOT NULL,
`EmailVerified` boolean DEFAULT 0,
`PasswordHash` char(60) DEFAULT NULL,
`FailedPasswordLock` boolean DEFAULT 0,
`PasswordAttempts` int(11) DEFAULT NULL,
`CurrentPasswordAttempts` int(11) DEFAULT NULL,
`Role` varchar(45) DEFAULT NULL,
`EmailToken` varchar(45) DEFAULT NULL,
`DataServer` varchar(200) DEFAULT NULL,
UNIQUE(`Email`),
UNIQUE(`UserName`),
PRIMARY KEY (`ID`)
) AUTO_INCREMENT=1;
-- Resume Section -- Resume Section
CREATE TABLE IF NOT EXISTS `Resume` ( CREATE TABLE IF NOT EXISTS `Resume` (
@@ -35,7 +16,6 @@ CREATE TABLE IF NOT EXISTS `Resume` (
`City` varchar(100) NOT NULL, `City` varchar(100) NOT NULL,
`IsActive` boolean DEFAULT 0, `IsActive` boolean DEFAULT 0,
PRIMARY KEY (`ID`), PRIMARY KEY (`ID`),
FOREIGN KEY (`AccountID`) REFERENCES `Account`(`ID`) ON DELETE CASCADE
) AUTO_INCREMENT=1; ) AUTO_INCREMENT=1;
CREATE TABLE IF NOT EXISTS `ResumeExperience` ( CREATE TABLE IF NOT EXISTS `ResumeExperience` (
@@ -165,7 +145,6 @@ CREATE TABLE IF NOT EXISTS `Employee` (
`AccountID` int NOT NULL, `AccountID` int NOT NULL,
`CompanyID` int NOT NULL, `CompanyID` int NOT NULL,
PRIMARY KEY (`ID`), PRIMARY KEY (`ID`),
FOREIGN KEY (`AccountID`) REFERENCES `Account`(`ID`) ON DELETE CASCADE,
FOREIGN KEY (`CompanyID`) REFERENCES `Company`(`ID`) ON DELETE CASCADE FOREIGN KEY (`CompanyID`) REFERENCES `Company`(`ID`) ON DELETE CASCADE
) AUTO_INCREMENT=1; ) AUTO_INCREMENT=1;