Remove all references to account and forignkeys #10

Merged
derek merged 1 commits from working into main 2025-07-30 21:32:17 -07:00
Showing only changes of commit b9402251f7 - Show all commits
-21
View File
@@ -1,25 +1,6 @@
CREATE DATABASE IF NOT EXISTS `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
CREATE TABLE IF NOT EXISTS `Resume` (
@@ -35,7 +16,6 @@ CREATE TABLE IF NOT EXISTS `Resume` (
`City` varchar(100) NOT NULL,
`IsActive` boolean DEFAULT 0,
PRIMARY KEY (`ID`),
FOREIGN KEY (`AccountID`) REFERENCES `Account`(`ID`) ON DELETE CASCADE
) AUTO_INCREMENT=1;
CREATE TABLE IF NOT EXISTS `ResumeExperience` (
@@ -165,7 +145,6 @@ CREATE TABLE IF NOT EXISTS `Employee` (
`AccountID` int NOT NULL,
`CompanyID` int NOT NULL,
PRIMARY KEY (`ID`),
FOREIGN KEY (`AccountID`) REFERENCES `Account`(`ID`) ON DELETE CASCADE,
FOREIGN KEY (`CompanyID`) REFERENCES `Company`(`ID`) ON DELETE CASCADE
) AUTO_INCREMENT=1;