From b9402251f75cdfcdf48832a6e4fdb51e5d2cf6af Mon Sep 17 00:00:00 2001 From: Derek Holloway Date: Wed, 30 Jul 2025 21:31:59 -0700 Subject: [PATCH] Remove all references to account and forignkeys --- database/mistox.sql | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/database/mistox.sql b/database/mistox.sql index 995ee57..c469570 100755 --- a/database/mistox.sql +++ b/database/mistox.sql @@ -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;