Add fields to Employee SQL
This commit is contained in:
@@ -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