From e3a7e4ea5764ec8457f7588c5b32f78f66fbfca4 Mon Sep 17 00:00:00 2001 From: Simon Date: Thu, 15 Dec 2022 14:47:47 +0100 Subject: [PATCH] Datenbank Datei --- BancaDati.sql | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 BancaDati.sql diff --git a/BancaDati.sql b/BancaDati.sql new file mode 100644 index 0000000..daa96c2 --- /dev/null +++ b/BancaDati.sql @@ -0,0 +1,29 @@ +-- phpMyAdmin SQL Dump +-- version 4.5.1 +-- http://www.phpmyadmin.net +-- +-- Host: 127.0.0.1 +-- Erstellungszeit: 24. Nov 2017 um 17:01 +-- Server-Version: 10.1.16-MariaDB +-- PHP-Version: 7.0.9 + +SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; +SET time_zone = "+00:00"; + +-- +-- Datenbank: `blog` +-- + +-- -------------------------------------------------------- + +CREATE TABLE `ingredienti` ( /*Zutaten*/ + `id` varchar(36) NOT NULL, + `cognome` varchar(200) NOT NULL, /*Name*/ + `caloriePerCento` int(5) NOT NULL, /*Kalorien pro Gramm*/ + `ilPeso` int(5) NULL, /*Gewicht*/ + `prezzo` decimal(4,2) NOT NULL, /*Preis*/ + `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +ALTER TABLE `ingredienti` + ADD PRIMARY KEY (`id`)