fixed: foreignkeys
This commit is contained in:
parent
da0445ccf6
commit
af0d895227
@ -42,17 +42,17 @@ CREATE TABLE `utente`
|
||||
CREATE TABLE `elencoIngredienti`
|
||||
( /*Liste_Zutaten*/
|
||||
`id` int auto_increment NOT NULL PRIMARY KEY,
|
||||
`ingredientiID` varchar(36) NOT NULL, /*ZutatenID*/
|
||||
`elencoID` varchar(36) NOT NULL, /*ListeID*/
|
||||
`follaID` varchar(36) NOT NULL, /*MengeID*/
|
||||
`ingredientiID` int NOT NULL, /*ZutatenID*/
|
||||
`elencoID` int NOT NULL, /*ListeID*/
|
||||
`follaID` int NOT NULL, /*MengeID*/
|
||||
`created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
CREATE TABLE `utenteElenco`
|
||||
( /*Benutzer_Liste*/
|
||||
`id` int auto_increment NOT NULL PRIMARY KEY,
|
||||
`elencoID` varchar(36) NOT NULL, /*ListeID*/
|
||||
`utenteID` varchar(36) NOT NULL, /*BenutzerID*/
|
||||
`elencoID` int NOT NULL, /*ListeID*/
|
||||
`utenteID` int NOT NULL, /*BenutzerID*/
|
||||
`created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user