-- --------------------------------------------------------
-- Host:                         195.231.61.119
-- Versione server:              8.0.42-0ubuntu0.22.04.1 - (Ubuntu)
-- S.O. server:                  Linux
-- HeidiSQL Versione:            12.10.0.7000
-- --------------------------------------------------------

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET NAMES utf8 */;
/*!50503 SET NAMES utf8mb4 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;


-- Dump della struttura del database 5Days2026
CREATE DATABASE IF NOT EXISTS `5Days2026` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci */ /*!80016 DEFAULT ENCRYPTION='N' */;
USE `5Days2026`;

-- Dump della struttura di tabella 5Days2026.iscritti
CREATE TABLE IF NOT EXISTS `iscritti` (
  `id` int NOT NULL AUTO_INCREMENT,
  `nome` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `cognome` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `annonascita` year NOT NULL,
  `categoria` int NOT NULL,
  `sicard` int NOT NULL,
  `sicard_rent` tinyint(1) NOT NULL DEFAULT '0',
  `sicard_later` tinyint(1) NOT NULL DEFAULT '0',
  `nazione` varchar(2) NOT NULL,
  `quota_gara` decimal(9,2) DEFAULT '0.00',
  `voucher` tinyint(1) NOT NULL DEFAULT '0',
  `quota_tot` decimal(9,2) NOT NULL DEFAULT (0),
  `pagato_gara` tinyint NOT NULL DEFAULT (0),
  `pagato_prologo` tinyint NOT NULL DEFAULT (0),
  `voucher_check` tinyint(1) NOT NULL DEFAULT '0',
  `voucher_quota` decimal(9,2) DEFAULT NULL,
  `tesserafiso` varchar(7) DEFAULT NULL,
  `dataiscrizione` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `inseritoda` int NOT NULL,
  `idpagamento` int DEFAULT '0',
  `day1` tinyint(1) NOT NULL DEFAULT '0',
  `day2` tinyint(1) NOT NULL DEFAULT '0',
  `day3` tinyint(1) NOT NULL DEFAULT '0',
  `day4` tinyint(1) NOT NULL DEFAULT '0',
  `day5` tinyint(1) NOT NULL DEFAULT '0',
  `day6` tinyint(1) NOT NULL DEFAULT '0',
  `note` text CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL,
  `taglia` varchar(3) DEFAULT NULL,
  `pettorale` int NOT NULL,
  `team` int NOT NULL,
  `sex` varchar(1) DEFAULT NULL,
  `prologo_entry` tinyint(1) DEFAULT NULL,
  `prologo_class` int DEFAULT NULL,
  `prologo_quota` decimal(9,2) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=14 DEFAULT CHARSET=latin1;

-- L’esportazione dei dati non era selezionata.

/*!40103 SET TIME_ZONE=IFNULL(@OLD_TIME_ZONE, 'system') */;
/*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */;
/*!40014 SET FOREIGN_KEY_CHECKS=IFNULL(@OLD_FOREIGN_KEY_CHECKS, 1) */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40111 SET SQL_NOTES=IFNULL(@OLD_SQL_NOTES, 1) */;
