ecco:
-- Struttura della tabella `maestri`
--
CREATE TABLE IF NOT EXISTS `maestri` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`citta` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL,
`nome` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`cognome` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`sesso` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL,
PRIMARY KEY (`id`),
KEY `id_scuola` (`citta`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=100 ;
--
--
-- Struttura della tabella `lezioni`
--
CREATE TABLE IF NOT EXISTS `lezioni` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`week` int(2) NOT NULL,
`anno` year(4) NOT NULL,
`lez` int(3) NOT NULL,
`id_ins` int(10) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;