CREATE TABLE academie_orchestre_candidatures (
  id INT UNSIGNED NOT NULL AUTO_INCREMENT,
  nom VARCHAR(255) NOT NULL,
  prenom VARCHAR(255) NOT NULL,
  genre VARCHAR(50) NOT NULL,
  date_naissance DATE NOT NULL,
  lieu_naissance VARCHAR(255) NOT NULL,
  nationalite VARCHAR(255) NOT NULL,
  email VARCHAR(255) NOT NULL,
  telephone VARCHAR(100) NOT NULL,
  adresse TEXT NOT NULL,
  ville VARCHAR(255) NOT NULL,
  code_postal VARCHAR(20) NOT NULL,
  pays_residence VARCHAR(255) NOT NULL,
  instrument VARCHAR(255) NOT NULL,
  deja_participe_academie VARCHAR(10) NOT NULL,
  nombre_participations_academie INT UNSIGNED NULL,
  niveau_cycle_2026_2027 VARCHAR(255) NOT NULL,
  autre_formation VARCHAR(255) NULL,
  conservatoire_2026_2027 VARCHAR(500) NOT NULL,
  autre_conservatoire VARCHAR(500) NULL,
  professeur_instrument VARCHAR(255) NOT NULL,
  diplome_1_type VARCHAR(255) NULL,
  diplome_1_autre_type VARCHAR(255) NULL,
  diplome_1_discipline VARCHAR(255) NULL,
  diplome_1_annee VARCHAR(20) NULL,
  diplome_1_etablissement VARCHAR(255) NULL,
  diplome_2_type VARCHAR(255) NULL,
  diplome_2_autre_type VARCHAR(255) NULL,
  diplome_2_discipline VARCHAR(255) NULL,
  diplome_2_annee VARCHAR(20) NULL,
  diplome_2_etablissement VARCHAR(255) NULL,
  diplome_3_type VARCHAR(255) NULL,
  diplome_3_autre_type VARCHAR(255) NULL,
  diplome_3_discipline VARCHAR(255) NULL,
  diplome_3_annee VARCHAR(20) NULL,
  diplome_3_etablissement VARCHAR(255) NULL,
  contact_urgence_nom VARCHAR(255) NOT NULL,
  contact_urgence_prenom VARCHAR(255) NOT NULL,
  contact_urgence_lien VARCHAR(100) NOT NULL,
  contact_urgence_telephone VARCHAR(100) NOT NULL,
  contact_urgence_email VARCHAR(255) NOT NULL,
  reglement_accepte TINYINT(1) NOT NULL DEFAULT 0,
  created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
