· 6 years ago · Oct 20, 2019, 04:38 PM
1drop database if exists bancatempo;
2create database if not exists bancatempo;
3
4use bancatempo;
5
6create table persona(
7 idPersona int not null primary key auto_increment,
8 tempo int not null,
9 nome varchar(30) not null,
10 cognome varchar(30) not null
11);
12
13create table zona(
14 idZona int not null primary key auto_increment
15);
16
17cretae table comune(
18idComune int not null primary key auto_increment
19);
20
21cretae table prestazione_erogata(
22idPrestazione_erogata int not null primary key auto_increment,
23data date not null,
24ora int not null
25);
26
27create table prestazione(
28idPrestazione int not null primary key auto_increment
29);
30
31create table categoria(
32idCategoria int not null primary key auto_increment
33);