Add Foreign ID for faster retreival
This commit is contained in:
@@ -57,9 +57,11 @@ CREATE TABLE IF NOT EXISTS `Resume` (
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `ResumeExperienceBullet` (
|
||||
`ID` int NOT NULL AUTO_INCREMENT,
|
||||
`ResumeID` int NOT NULL,
|
||||
`ResumeExperienceID` int NOT NULL,
|
||||
`JobFunction` text NOT NULL,
|
||||
PRIMARY KEY (`ID`),
|
||||
FOREIGN KEY (`ResumeID`) REFERENCES `Resume`(`ID`) ON DELETE CASCADE,
|
||||
FOREIGN KEY (`ResumeExperienceID`) REFERENCES `ResumeExperience`(`ID`) ON DELETE CASCADE
|
||||
) AUTO_INCREMENT=1;
|
||||
|
||||
@@ -77,10 +79,12 @@ CREATE TABLE IF NOT EXISTS `Resume` (
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `ResumeMillitaryBullet` (
|
||||
`ID` int NOT NULL AUTO_INCREMENT,
|
||||
`ResumeID` int NOT NULL,
|
||||
`ResumeMillitaryID` int NOT NULL,
|
||||
`Achevement` varchar(100) NOT NULL,
|
||||
`Description` text DEFAULT NULL,
|
||||
PRIMARY KEY (`ID`),
|
||||
FOREIGN KEY (`ResumeID`) REFERENCES `Resume`(`ID`) ON DELETE CASCADE,
|
||||
FOREIGN KEY (`ResumeMillitaryID`) REFERENCES `ResumeMillitary`(`ID`) ON DELETE CASCADE
|
||||
) AUTO_INCREMENT=1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user