Add Foreign ID for faster retreival

This commit is contained in:
derek.holloway
2025-07-14 08:03:32 -07:00
parent 84fb9f14b1
commit b7462329c1
2 changed files with 19 additions and 3 deletions
+4
View File
@@ -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;