add: alt + L
This commit is contained in:
parent
6dffa09e88
commit
d4e275e28c
@ -1,54 +1,62 @@
|
|||||||
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
|
SET
|
||||||
SET time_zone = "+00:00";
|
SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
|
||||||
|
SET
|
||||||
|
time_zone = "+00:00";
|
||||||
|
|
||||||
|
|
||||||
CREATE TABLE `ingredienti` ( /*Zutaten*/
|
CREATE TABLE `ingredienti`
|
||||||
`id` varchar(36) NOT NULL,
|
( /*Zutaten*/
|
||||||
`cognome` varchar(200) NOT NULL, /*Name*/
|
`id` varchar(36) NOT NULL,
|
||||||
`caloriePerCento` int(5) NOT NULL, /*Kalorien pro Gramm*/
|
`cognome` varchar(200) NOT NULL, /*Name*/
|
||||||
`ilPeso` int(5) NULL, /*Gewicht*/
|
`caloriePerCento` int(5) NOT NULL, /*Kalorien pro Gramm*/
|
||||||
`prezzo` decimal(4,2) NOT NULL, /*Preis*/
|
`ilPeso` int(5) NULL, /*Gewicht*/
|
||||||
`created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
|
`prezzo` decimal(4, 2) NOT NULL, /*Preis*/
|
||||||
|
`created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
CREATE TABLE `folla` ( /*Menge*/
|
CREATE TABLE `folla`
|
||||||
`id` varchar(36) NOT NULL,
|
( /*Menge*/
|
||||||
`unita` varchar(200) NOT NULL, /*Einheit*/
|
`id` varchar(36) NOT NULL,
|
||||||
`created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
|
`unita` varchar(200) NOT NULL, /*Einheit*/
|
||||||
|
`created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
CREATE TABLE `elenco` ( /*Liste*/
|
CREATE TABLE `elenco`
|
||||||
`id` varchar(36) NOT NULL,
|
( /*Liste*/
|
||||||
`creatore` varchar(200) NOT NULL, /*Ersteller*/
|
`id` varchar(36) NOT NULL,
|
||||||
`coloreDiSfondo` integer(10) NOT NULL, /*Hintergrundfarbe*/
|
`creatore` varchar(200) NOT NULL, /*Ersteller*/
|
||||||
`created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
|
`coloreDiSfondo` integer(10) NOT NULL, /*Hintergrundfarbe*/
|
||||||
|
`created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
CREATE TABLE `utente` ( /*Benutzer*/
|
CREATE TABLE `utente`
|
||||||
`id` varchar(36) NOT NULL,
|
( /*Benutzer*/
|
||||||
`email` varchar(200) NOT NULL, /*Email*/
|
`id` varchar(36) NOT NULL,
|
||||||
`parolaDordine` integer(10) NOT NULL, /*Passwort*/
|
`email` varchar(200) NOT NULL, /*Email*/
|
||||||
`nomeUtente` integer(10) NOT NULL, /*Benutzernamen*/
|
`parolaDordine` integer(10) NOT NULL, /*Passwort*/
|
||||||
`created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
|
`nomeUtente` integer(10) NOT NULL, /*Benutzernamen*/
|
||||||
|
`created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
CREATE TABLE `elencoIngredienti` ( /*Liste_Zutaten*/
|
CREATE TABLE `elencoIngredienti`
|
||||||
`id` varchar(36) NOT NULL,
|
( /*Liste_Zutaten*/
|
||||||
`ingredientiID` varchar(36) NOT NULL, /*ZutatenID*/
|
`id` varchar(36) NOT NULL,
|
||||||
`elencoID` varchar(36) NOT NULL, /*ListeID*/
|
`ingredientiID` varchar(36) NOT NULL, /*ZutatenID*/
|
||||||
`follaID` varchar(36) NOT NULL, /*MengeID*/
|
`elencoID` varchar(36) NOT NULL, /*ListeID*/
|
||||||
`created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
|
`follaID` varchar(36) NOT NULL, /*MengeID*/
|
||||||
|
`created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
CREATE TABLE `utenteElenco` ( /*Benutzer_Liste*/
|
CREATE TABLE `utenteElenco`
|
||||||
`id` varchar(36) NOT NULL,
|
( /*Benutzer_Liste*/
|
||||||
`elencoID` varchar(36) NOT NULL, /*ListeID*/
|
`id` varchar(36) NOT NULL,
|
||||||
`utenteID` varchar(36) NOT NULL, /*BenutzerID*/
|
`elencoID` varchar(36) NOT NULL, /*ListeID*/
|
||||||
`created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
|
`utenteID` varchar(36) NOT NULL, /*BenutzerID*/
|
||||||
|
`created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
ALTER TABLE `ingredienti`
|
ALTER TABLE `ingredienti`
|
||||||
ADD PRIMARY KEY (`id`);
|
ADD PRIMARY KEY (`id`);
|
||||||
|
|
||||||
ALTER TABLE `folla`
|
ALTER TABLE `folla`
|
||||||
ADD PRIMARY KEY (`id`);
|
ADD PRIMARY KEY (`id`);
|
||||||
|
Loading…
Reference in New Issue
Block a user