From af0d895227677b3f37d2631197c2532fed1fa95c Mon Sep 17 00:00:00 2001 From: Malte Schulze Hobeling Date: Thu, 12 Jan 2023 14:56:50 +0100 Subject: [PATCH] fixed: foreignkeys --- BancaDati.sql | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/BancaDati.sql b/BancaDati.sql index 4b2d850..fc74c0f 100644 --- a/BancaDati.sql +++ b/BancaDati.sql @@ -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;