Add fields to Employee SQL
This commit is contained in:
1 parent
3c00b10a11
commit
c2886a1baf
8 files changed
+36
-20
No files matched your search
@@ -146,6 +146,8 @@ CREATE TABLE IF NOT EXISTS `Company` (
|
||||
CREATE TABLE IF NOT EXISTS `Employee` (
|
||||
`ID` int NOT NULL AUTO_INCREMENT,
|
||||
`AccountID` int NOT NULL,
|
||||
`AccountName` varchar(60) NOT NULL,
|
||||
`AccountEmail` varchar(255) NOT NULL,
|
||||
`CompanyID` int NOT NULL,
|
||||
PRIMARY KEY (`ID`),
|
||||
FOREIGN KEY (`CompanyID`) REFERENCES `Company`(`ID`) ON DELETE CASCADE
|
||||
|
||||
Reference in new issue
Block a user