Remove all references to account and forignkeys #10
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user