-- MySQL dump 10.13  Distrib 8.0.21, for Win64 (x86_64)
--
-- Host: localhost    Database: gestionsaf
-- ------------------------------------------------------
-- Server version	5.7.31

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!50503 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!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 */;

--
-- Table structure for table `t_demande`
--

DROP TABLE IF EXISTS `t_demande`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `t_demande` (
  `PK_Demande` int(11) NOT NULL AUTO_INCREMENT,
  `FK_Questionnaire` int(11) NOT NULL,
  `dateCreation` date NOT NULL,
  `FK_etatdemande` int(11) NOT NULL,
  `actuelle` tinyint(4) NOT NULL DEFAULT '1',
  `FK_Utilisateur` int(11) NOT NULL,
  `motifEtat` varchar(200) COLLATE utf8_bin DEFAULT NULL,
  PRIMARY KEY (`PK_Demande`),
  KEY `FK_Questionnaire_idx` (`FK_Questionnaire`),
  KEY `FK_Etatdemande_idx` (`FK_etatdemande`),
  KEY `fk_t_utilisateur_t_demande` (`FK_Utilisateur`),
  CONSTRAINT `FK_Etatdemande` FOREIGN KEY (`FK_etatdemande`) REFERENCES `t_etatdemande` (`PK_Etatdemande`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `FK_Questionnaire` FOREIGN KEY (`FK_Questionnaire`) REFERENCES `t_questionnaire` (`PK_Questionnaire`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_t_utilisateur_t_demande` FOREIGN KEY (`FK_Utilisateur`) REFERENCES `t_utilisateur` (`PK_utilisateur`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `t_demande`
--

LOCK TABLES `t_demande` WRITE;
/*!40000 ALTER TABLE `t_demande` DISABLE KEYS */;
INSERT INTO `t_demande` VALUES (1,1,'2021-03-12',9,1,4,'validé'),(2,1,'2021-03-17',1,1,18,'');
/*!40000 ALTER TABLE `t_demande` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `t_etatdemande`
--

DROP TABLE IF EXISTS `t_etatdemande`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `t_etatdemande` (
  `PK_Etatdemande` int(11) NOT NULL,
  `etat` varchar(45) NOT NULL,
  `couleur` varchar(45) NOT NULL,
  PRIMARY KEY (`PK_Etatdemande`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `t_etatdemande`
--

LOCK TABLES `t_etatdemande` WRITE;
/*!40000 ALTER TABLE `t_etatdemande` DISABLE KEYS */;
INSERT INTO `t_etatdemande` VALUES (1,'Non soumis','#FFFFFF'),(2,'Soumis','#FFFF00'),(3,'Préavis positif','	#7CFC00'),(4,'Préavis négatif','#F08080'),(5,'Positif','#008000'),(6,'Négatif','	#FF0000'),(7,'Positif (Espoirs)','#008000'),(8,'Positif (SAF)','#008000'),(9,'Positif (Hors canton)','#008000'),(10,'Négatif (Hors canton)','	#FF0000');
/*!40000 ALTER TABLE `t_etatdemande` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `t_multichoix`
--

DROP TABLE IF EXISTS `t_multichoix`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `t_multichoix` (
  `PK_multichoix` int(11) NOT NULL,
  `Choix_FR` varchar(255) COLLATE utf8_bin NOT NULL,
  `Choix_DE` varchar(255) COLLATE utf8_bin NOT NULL,
  `FK_Question` int(11) NOT NULL,
  `position` int(11) NOT NULL,
  PRIMARY KEY (`PK_multichoix`),
  KEY `FK_Question_idx` (`FK_Question`),
  CONSTRAINT `FK_Question` FOREIGN KEY (`FK_Question`) REFERENCES `t_question` (`PK_Question`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `t_multichoix`
--

LOCK TABLES `t_multichoix` WRITE;
/*!40000 ALTER TABLE `t_multichoix` DISABLE KEYS */;
INSERT INTO `t_multichoix` VALUES (1,'Sportif de talent SAF','Talentsportler SAF',1,1),(2,'Sportif de talent Espoirs','Talentsportler Espoirs',1,2),(3,'Ecolage hors canton','Ausserkantonales Schulgeld',1,3),(4,'1ère demande','Erste Anfrage',2,1),(5,'Renouvellement','Erneueurung',2,2),(6,'Féminin','Weiblich',5,1),(7,'Masculin','Männlich ',5,2),(8,'Français','Französisch',7,1),(9,'Allemand','Deutsch',7,2),(10,'Athlétisme','Leichtathletik',17,1),(11,'Aviron','Rudern',17,2),(12,'Badminton','Badminton',17,3),(13,'Basketball masculin','Basketball Männer',17,4),(14,'Basketball féminin','Basketball Frauen',17,5),(15,'Course d\'orientation','Orientierungslauf',17,6),(16,'Cyclisme','Radsport',17,7),(17,'Equitation','Reiten',17,8),(18,'Escalade sportive','Sportklettern',17,9),(19,'Escrime','Fechten',17,10),(20,'Football masculin','Fussball Männer',17,11),(21,'Football féminin','Fussball Frauen',17,12),(22,'Golf','Golf ',17,13),(23,'Gymnastique artistique','Kunstturnen',17,14),(24,'Handball','Handball',17,15),(25,'Hockey sur glace','Eishockey',17,16),(26,'Judo','Judo',17,17),(27,'Karaté','Karaté',17,18),(28,'Lutte','Ringen',17,19),(29,'Natation','Schwimmen',17,20),(30,'Natation synchronisée','Synchronschwimmen',17,21),(31,'Patinage artistique','Eiskunstlauf',17,22),(32,'Plongeon','Wasserspringen',17,23),(33,'Ski alpinisme','Skitourenrennen',17,24),(34,'Saut à ski','Skispringen',17,25),(35,'Ski alpin','Ski alpin',17,26),(36,'Ski freestyle','Ski freestyle',17,27),(37,'Ski nordique','Skilanglauf',17,28),(38,'Snowboard','Snowboard',17,29),(39,'Tennis','Tennis',17,30),(40,'Tennis de table','Tischtennis',17,31),(41,'Tir','Sportschiessen',17,32),(42,'Triathlon','Triathlon',17,33),(43,'Unihockey','Unihockey',17,34),(44,'Volleyball','Volleyball',17,35),(45,'Voile','Segeln',17,36),(46,'Autre :','Sonstiges:',17,37),(47,'International','International',22,1),(48,'National','National',22,2),(49,'Régional','Regional',22,3),(50,'Oui','Ja',23,1),(51,'Non','Nein',23,2),(52,'Oui','Ja',24,1),(53,'Non','Nein',24,2),(54,'Swiss Olympic Talent Card','Swiss Olympic Talent Card',25,1),(55,'Swiss Olympic Card','Swiss Olympic Card',25,2),(56,'Elite','Elite',26,1),(57,'Bronze','Bronze',26,2),(58,'Silver','Silver',26,3),(59,'Gold','Gold',26,4),(60,'Locale','Lokal',27,1),(61,'Régionale','Regional',27,2),(62,'Nationale','National',27,3),(63,'Aucun','Keinen',28,1),(64,'de formation','Ausbildugsvertrag',28,2),(65,'semi-professionnel / professionnel','Halb-profi/profi',28,3),(66,'Annuelle','Jährlich',33,1),(67,'Saisonnière','Saisonal',33,2),(68,'Ecole primaire ','Primarschule',39,1),(69,'Cycle d\'orientation','Orientierungsschule',39,2),(70,'Secondaire II','Sekundarstufe II',39,3),(71,'Apprentissage','Lehre',39,4),(72,'4H (av. 2e prim.)','4.H (ehem. 2. Kl.)',41,1),(73,'5H (av. 3e prim.)','5.H (ehem. 3. Kl.)',41,2),(74,'6H (av. 4e prim.)','6.H (ehem. 4. Kl.)',41,3),(75,'7H (av. 5e prim.)','7.H (ehem. 5. Kl.)',41,4),(76,'8H (av. 6e prim.)','8.H (ehem. 6. Kl.)',41,5),(77,'Autre','Sonstiges',41,6),(78,'CO du Belluard (Fribourg)','CO du Belluard (Fribourg)',43,1),(79,'CO de la Broye (Estavayer-le-Lac)','CO de la Broye (Estavayer-le-Lac)',43,2),(80,'CO de la Broye (Domdidier)','CO de la Broye (Domdidier)',43,3),(81,'CO du Gibloux','CO du Gibloux',43,4),(82,'CO de la Glâne','CO de la Glâne',43,5),(83,'CO de la Gruyère-Bulle','CO de la Gruyère-Bulle',43,6),(84,'CO de la Gruyère-La Tour-de-Trême','CO de la Gruyère-La Tour-de-Trême',43,7),(85,'CO de Riaz','CO de Riaz',43,8),(86,'CO de Jolimont (Fribourg)','CO de Jolimont (Fribourg)',43,9),(87,'CO de marly','CO de marly',43,10),(88,'CORM (Région Morat)','CORM (Région Morat)',43,11),(89,'CO de Pérolles (Fribourg)','CO de Pérolles (Fribourg)',43,12),(90,'CO de la Sarine Ouest','CO de la Sarine Ouest',43,13),(91,'CO de la Veveyse','CO de la Veveyse',43,14),(92,'OS Tafers','OS Tafers',43,15),(93,'OSRM (Region Murten)','OSRM (Region Murten)',43,16),(94,'OS Düdingen','OS Düdingen',43,17),(95,'OS Plaffein','OS Plaffein',43,18),(96,'OS Gurmels','OS Gurmels',43,19),(97,'OS Wünnewil','OS Wünnewil',43,20),(98,'DOS Freiburg','DOS Freiburg',43,21),(99,'OS Kerzers','OS Kerzers',43,22),(100,'OS Jaun','OS Jaun',43,23),(101,'Autre','Sonstiges',43,24),(102,'9H (av. 7e CO)','9.H (ehem. 7. Kl. OS)',45,1),(103,'10H (av. 8e CO)','10.H (ehem. 8. Kl. OS)',45,2),(104,'11H (av. 9e CO)','11.H (ehem. 9. Kl. OS)',45,3),(105,'12H (av. 10e CO)','12.H (ehem. 10. Kl. OS)',45,4),(106,'Collège Sainte-Croix','Kollegium Heilig Kreuz',46,1),(107,'Collège St-Michel','Kollegium St. Michael',46,2),(108,'Collège de Gambach','Kollegium Gambach',46,3),(109,'Gambach - Ecole de commerce','Gambach - Handelsmittelschule',46,4),(110,'Collège du Sud','Kollegium des Südens',46,5),(111,'Collège du Su-Ecole le culture générale','Kollegium des Südens-Fachmittelschule',46,6),(112,'Collège du Sud-Ecole de commerce','Kollegium des Südens-Handelsmittelschule',46,7),(113,'Gymnase intercantonale de la Broye','Gymnase intercantonale de la Broye',46,8),(114,'ECGF (Ecole de Culture Générale de Fribourg)','Fachmittelschule Freiburg (FMSF)',46,9),(122,'Autre','Sonstiges',46,17),(123,'1ère année','1. Klasse',48,1),(124,'2ème année','2. Klasse',48,2),(125,'3ème année','3. Klasse',48,3),(126,'4ème année','4. Klasse',48,4),(127,'1ère année d\'apprentissage','1. Lehrjahr',48,5),(128,'2ème année d\'apprentissage','2. Lehrjahr',48,6),(129,'3ème année d\'apprentissage','3. Lehrjahr',48,7),(130,'4ème année d\'apprentissage (maturité)','4. Lehrjahr (Matura)',48,8),(132,'Ecole professionnelle artisanale et commerciale de Bulle (EPAC)','Gewerbliche und Kaufmänniche Berufsfachschule Bulle',49,2),(133,'Ecole professionnelle artisanale et industrielle de Fribourg (EPAI)','Gewerbliche und Industrielle Berufsfachschule Freiburg (GIBS)',49,3),(134,'Ecole professionnelle commerciale de Fribourg (EPC)','Kaufmännische Berufsfachschule Freiburg (KBS)',49,4),(135,'Ecole professionnelle santé-social de Posieux (ESSG)','Berufsfachschule Soziales-Gesundheit Posieux (ESSG)',49,5),(136,'Ecole des métiers de Fribourg (EMF)','Lehrwerkstätte Freiburg',49,6),(137,'Centre de perfectionnement interprofessionnel de Granges-Paccot (CPI)','Interprofessionel Weiterbildungszentrum Granges-Paccot (IWZ)',49,7),(138,'Institut agricole de l\'Etat de Fribourg IAG','Landwirtschaftliches Institut des Kantons Freiburg LIG',49,8),(139,'Autre','Sonstiges',49,9),(140,'1ère année d\'apprentissage','1. Lehrjahr',51,1),(141,'2ème année d\'apprentissage','2. Lehrjahr',51,2),(142,'3ème année d\'apprentissage','3. Lehrjahr',51,3),(143,'4ème année d\'apprentissage (maturité)','4. Lehrjahr (Matura)',51,4),(144,'Agent/e de voyages','Kaufmann/frau Reisebüro',52,1),(145,'Assistant/e dentaire CFC','Dentalassistent/in EFZ',52,2),(146,'Assistant/e en pharmacie CFC','Pharma-Assistent/in EFZ',52,3),(147,'Assistant/e médical CFC','Medizinische/r Praxisassistent/in EFZ',52,4),(148,'Assistant/e sociaux éducatif/ve CFC','Fachmann/frau Gesundheit EFZ',52,5),(149,'Automaticien/ne CFC','Automatiker/in EFZ',52,6),(150,'Bijoutier/ière CFC','Goldschmied/in EFZ',52,7),(151,'Boucher/ère - charcutier/ère CFC','Metzger/in EFZ',52,8),(152,'Boulanger/ère - pâtissier/ère CFC','Bäcker/in EFZ',52,9),(153,'Carreleur/euse CFC','Plattenleger/in EFZ',52,10),(154,'Carrossier/ère - peintre CFC','Carrossier/in Lackiererei EFZ',52,11),(155,'Charpentier/ière','Zimmermann/Zimmerin EFZ',52,12),(156,'Coiffeur/euse CFC','Coiffeur/euse CFC',52,13),(157,'Concepteur/trice multimédia','Multimediagestalter/in ',52,14),(158,'Constructeur/trice métallique CFC','Metallbauer/in EFZ',52,15),(159,'Cuisinier/ère CFC','Koch/Köchin EFZ',52,16),(160,'Décorateur/trice d\'intérieur CFC','Innendekorateur/in',52,17),(161,'Constructeur/trice industrielle CFC','Konstrukteur/in EFZ',52,18),(162,'Dessinateur/trice CFC : architecte','Zeichner/in EFZ',52,19),(163,'Droguiste CFC','Drogist/in EFZ',52,20),(164,'Ebéniste CFC','Möbelschreiner/in EFZ',52,21),(165,'Electronicien/ne CFC','Elektroniker/in EFZ',52,22),(166,'Employé/e de commerce CFC','Fachmann/frau EFZ',52,23),(167,'Esthéticien/ne CFC','Kosmetiker/in EFZ',52,24),(168,'Fleuriste CFC','Florist/in EFZ',52,25),(169,'Forestier/ière bûcheron/ne CFC','Forstwart/in EFZ',52,26),(170,'Gestionnaire de commerce de détail CFC','Detailhandelsfachmann/frau EFZ',52,27),(171,'Informaticien/ne CFC','Informatiker/in EFZ',52,28),(172,'Installateur/trice-électricien/ne CFC','Elektroinstallateur/in EFZ',52,29),(173,'Laborantin/e CFC','Laborant/in EFZ',52,30),(174,'Libraire CFC','Buchhändler/in EFZ',52,31),(175,'Maçon/ne CFC','Maurer/in EFZ',52,32),(176,'Menuisier/ière CFC','Schreiner/in EFZ',52,33),(177,'Opticien/ne CFC','Augenoptiker/in EFZ',52,34),(178,'Pâtissier/ière - confiseur/euse CFC','Konditor/in - Confiseur/in EFZ',52,35),(179,'Peintre en bâtiments CFC','Maler/in EFZ',52,36),(180,'Photographe CFC','Fotograf/in EFZ',52,37),(181,'Plâtrier/ière - peintre CFC','Gipser/in und Maler/in',52,38),(182,'Polygraphe CFC','Polygraph/in EFZ',52,39),(183,'Autre :','Sonstiges',52,40),(184,'Ecole primaire ','Primarschule',54,1),(185,'Cycle d\'orientation','Orientierungsschule',54,2),(186,'Secondaire II','Sekundarstufe II',54,3),(187,'Apprentissage','Lehre',54,4),(188,'4H (av. 2e prim.)','4.H (ehem. 2. Kl.)',56,1),(189,'5H (av. 3e prim.)','5.H (ehem. 3. Kl.)',56,2),(190,'6H (av. 4e prim.)','6.H (ehem. 4. Kl.)',56,3),(191,'7H (av. 5e prim.)','7.H (ehem. 5. Kl.)',56,4),(192,'8H (av. 6e prim.)','8.H (ehem. 6. Kl.)',56,5),(193,'Autre','Sonstiges',56,6),(194,'CO du Belluard (Fribourg)','CO du Belluard (Fribourg)',58,1),(195,'CO de la Broye (Estavayer-le-Lac)','CO de la Broye (Estavayer-le-Lac)',58,2),(196,'CO de la Broye (Domdidier)','CO de la Broye (Domdidier)',58,3),(197,'CO du Gibloux','CO du Gibloux',58,4),(198,'CO de la Glâne','CO de la Glâne',58,5),(199,'CO de la Gruyère-Bulle','CO de la Gruyère-Bulle',58,6),(200,'CO de la Gruyère-La Tour-de-Trême','CO de la Gruyère-La Tour-de-Trême',58,7),(201,'CO de Riaz','CO de Riaz',58,8),(202,'CO de Jolimont (Fribourg)','CO de Jolimont (Fribourg)',58,9),(203,'CO de marly','CO de marly',58,10),(204,'CORM (Région Morat)','CORM (Région Morat)',58,11),(205,'CO de Pérolles (Fribourg)','CO de Pérolles (Fribourg)',58,12),(206,'CO de la Sarine Ouest','CO de la Sarine Ouest',58,13),(207,'CO de la Veveyse','CO de la Veveyse',58,14),(208,'OS Tafers','OS Tafers',58,15),(209,'OSRM (Region Murten)','OSRM (Region Murten)',58,16),(210,'OS Düdingen','OS Düdingen',58,17),(211,'OS Plaffein','OS Plaffein',58,18),(212,'OS Gurmels','OS Gurmels',58,19),(213,'OS Wünnewil','OS Wünnewil',58,20),(214,'DOS Freiburg','DOS Freiburg',58,21),(215,'OS Kerzers','OS Kerzers',58,22),(216,'OS Jaun','OS Jaun',58,23),(217,'Autre','Sonstiges',58,24),(218,'9H (av. 7e CO)','9.H (ehem. 7. Kl. OS)',60,1),(219,'10H (av. 8e CO)','10.H (ehem. 8. Kl. OS)',60,2),(220,'11H (av. 9e CO)','11.H (ehem. 9. Kl. OS)',60,3),(221,'12H (av. 10e CO)','12.H (ehem. 10. Kl. OS)',60,4),(222,'Collège Sainte-Croix','Kollegium Heilig Kreuz',61,1),(223,'Collège St-Michel','Kollegium St. Michael',61,2),(224,'Collège de Gambach','Kollegium Gambach',61,3),(225,'Gambach - Ecole de commerce','Gambach - Handelsmittelschule',61,4),(226,'Collège du Sud','Kollegium des Südens',61,5),(227,'Collège du Su-Ecole le culture générale','Kollegium des Südens-Fachmittelschule',61,6),(228,'Collège du Sud-Ecole de commerce','Kollegium des Südens-Handelsmittelschule',61,7),(229,'Gymnase intercantonale de la Broye','Gymnase intercantonale de la Broye',61,8),(238,'Autre','Sonstiges',61,17),(239,'1ère année','1. Klasse',63,1),(240,'2ème année','2. Klasse',63,2),(241,'3ème année','3. Klasse',63,3),(242,'4ème année','4. Klasse',63,4),(243,'1ère année d\'apprentissage','1. Lehrjahr',63,5),(244,'2ème année d\'apprentissage','2. Lehrjahr',63,6),(245,'3ème année d\'apprentissage','3. Lehrjahr',63,7),(246,'4ème année d\'apprentissage (maturité)','4. Lehrjahr (Matura)',63,8),(248,'Ecole professionnelle artisanale et commerciale de Bulle (EPAC)','Gewerbliche und Kaufmänniche Berufsfachschule Bulle',64,2),(249,'Ecole professionnelle artisanale et industrielle de Fribourg (EPAI)','Gewerbliche und Industrielle Berufsfachschule Freiburg (GIBS)',64,3),(250,'Ecole professionnelle commerciale de Fribourg (EPC)','Kaufmännische Berufsfachschule Freiburg (KBS)',64,4),(251,'Ecole professionnelle santé-social de Posieux (ESSG)','Berufsfachschule Soziales-Gesundheit Posieux (ESSG)',64,5),(252,'Ecole des métiers de Fribourg (EMF)','Lehrwerkstätte Freiburg',64,6),(253,'Centre de perfectionnement interprofessionnel de Granges-Paccot (CPI)','Interprofessionel Weiterbildungszentrum Granges-Paccot (IWZ)',64,7),(254,'Institut agricole de l\'Etat de Fribourg IAG','Landwirtschaftliches Institut des Kantons Freiburg LIG',64,8),(255,'Autre','Sonstiges',64,9),(256,'1ère année d\'apprentissage','1. Lehrjahr',66,1),(257,'2ème année d\'apprentissage','2. Lehrjahr',66,2),(258,'3ème année d\'apprentissage','3. Lehrjahr',66,3),(259,'4ème année d\'apprentissage (maturité)','4. Lehrjahr (Matura)',66,4),(260,'Agent/e de voyages','Kaufmann/frau Reisebüro',67,1),(261,'Assistant/e dentaire CFC','Dentalassistent/in EFZ',67,2),(262,'Assistant/e en pharmacie CFC','Pharma-Assistent/in EFZ',67,3),(263,'Assistant/e médical CFC','Medizinische/r Praxisassistent/in EFZ',67,4),(264,'Assistant/e sociaux éducatif/ve CFC','Fachmann/frau Gesundheit EFZ',67,5),(265,'Automaticien/ne CFC','Automatiker/in EFZ',67,6),(266,'Bijoutier/ière CFC','Goldschmied/in EFZ',67,7),(267,'Boucher/ère - charcutier/ère CFC','Metzger/in EFZ',67,8),(268,'Boulanger/ère - pâtissier/ère CFC','Bäcker/in EFZ',67,9),(269,'Carreleur/euse CFC','Plattenleger/in EFZ',67,10),(270,'Carrossier/ère - peintre CFC','Carrossier/in Lackiererei EFZ',67,11),(271,'Charpentier/ière','Zimmermann/Zimmerin EFZ',67,12),(272,'Coiffeur/euse CFC','Coiffeur/euse CFC',67,13),(273,'Concepteur/trice multimédia','Multimediagestalter/in ',67,14),(274,'Constructeur/trice métallique CFC','Metallbauer/in EFZ',67,15),(275,'Cuisinier/ère CFC','Koch/Köchin EFZ',67,16),(276,'Décorateur/trice d\'intérieur CFC','Innendekorateur/in',67,17),(277,'Constructeur/trice industrielle CFC','Konstrukteur/in EFZ',67,18),(278,'Dessinateur/trice CFC : architecte','Zeichner/in EFZ',67,19),(279,'Droguiste CFC','Drogist/in EFZ',67,20),(280,'Ebéniste CFC','Möbelschreiner/in EFZ',67,21),(281,'Electronicien/ne CFC','Elektroniker/in EFZ',67,22),(282,'Employé/e de commerce CFC','Fachmann/frau EFZ',67,23),(283,'Esthéticien/ne CFC','Kosmetiker/in EFZ',67,24),(284,'Fleuriste CFC','Florist/in EFZ',67,25),(285,'Forestier/ière bûcheron/ne CFC','Forstwart/in EFZ',67,26),(286,'Gestionnaire de commerce de détail CFC','Detailhandelsfachmann/frau EFZ',67,27),(287,'Informaticien/ne CFC','Informatiker/in EFZ',67,28),(288,'Installateur/trice-électricien/ne CFC','Elektroinstallateur/in EFZ',67,29),(289,'Laborantin/e CFC','Laborant/in EFZ',67,30),(290,'Libraire CFC','Buchhändler/in EFZ',67,31),(291,'Maçon/ne CFC','Maurer/in EFZ',67,32),(292,'Menuisier/ière CFC','Schreiner/in EFZ',67,33),(293,'Opticien/ne CFC','Augenoptiker/in EFZ',67,34),(294,'Pâtissier/ière - confiseur/euse CFC','Konditor/in - Confiseur/in EFZ',67,35),(295,'Peintre en bâtiments CFC','Maler/in EFZ',67,36),(296,'Photographe CFC','Fotograf/in EFZ',67,37),(297,'Plâtrier/ière - peintre CFC','Gipser/in und Maler/in',67,38),(298,'Polygraphe CFC','Polygraph/in EFZ',67,39),(299,'Autre :','Sonstiges',67,40),(300,'Oui','Ja',70,1),(301,'Non','Nein',70,2),(302,'Aucun ','Keine',78,1),(303,'Local','Lokal',78,2),(304,'Régional','Regional',78,3),(305,'National','National',78,4),(314,'Danse','Tanz',84,1),(315,'Autre','Sonstiges',84,2),(316,'Fillière préprofessionnelle Danse','Vorstudium Tanz',89,1),(317,'Fillière préprofessionnelle Musique','Vostudium Musik',89,2),(318,'Annuelle','Jährlich',92,1),(319,'Saisonnière','Saisonal',92,2),(320,'Aucun','Keinen',98,1),(321,'de formation','Ausbildungsvertrag',98,2),(322,'semi-professionnel / professionnel','Halb-profi / Profi',98,3);
/*!40000 ALTER TABLE `t_multichoix` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `t_question`
--

DROP TABLE IF EXISTS `t_question`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `t_question` (
  `PK_Question` int(11) NOT NULL,
  `Question_FR` varchar(255) COLLATE utf8_bin NOT NULL,
  `Question_DE` varchar(255) COLLATE utf8_bin NOT NULL,
  `FK_type` int(11) NOT NULL,
  `FK_section` int(11) NOT NULL,
  `FK_questionlie` int(11) DEFAULT NULL,
  `FK_multichoixlie` int(11) DEFAULT NULL,
  `position` int(11) NOT NULL,
  `active` tinyint(4) NOT NULL DEFAULT '1',
  `placeholder` varchar(100) COLLATE utf8_bin DEFAULT NULL,
  PRIMARY KEY (`PK_Question`),
  KEY `FK_Pattern_idx` (`FK_type`),
  KEY `FK_Section_idx` (`FK_section`),
  KEY `FK_Questionlie_idx` (`FK_questionlie`),
  KEY `FK_Multichoix_idx` (`FK_multichoixlie`),
  CONSTRAINT `FK_Multichoix` FOREIGN KEY (`FK_multichoixlie`) REFERENCES `t_multichoix` (`PK_multichoix`),
  CONSTRAINT `FK_Pattern` FOREIGN KEY (`FK_type`) REFERENCES `t_typequestion` (`PK_Type`),
  CONSTRAINT `FK_Questionlie` FOREIGN KEY (`FK_questionlie`) REFERENCES `t_question` (`PK_Question`),
  CONSTRAINT `FK_Section` FOREIGN KEY (`FK_section`) REFERENCES `t_section` (`PK_Section`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `t_question`
--

LOCK TABLES `t_question` WRITE;
/*!40000 ALTER TABLE `t_question` DISABLE KEYS */;
INSERT INTO `t_question` VALUES (1,'Dans quel cadre faites-vous la demande ?','In welchem Rahmen reichen Sie Ihr Antragsgesuch ein?',4,1,NULL,NULL,1,1,NULL),(2,'Est-ce une 1ère demande ou un renouvellement?','Handelt es sich um ein erstes Antragsgesuch oder eine Erneuerung ?',7,1,NULL,NULL,2,1,NULL),(3,'Nom','Name',1,2,NULL,NULL,1,1,NULL),(4,'Prénom','Vorname',1,2,NULL,NULL,2,1,NULL),(5,'Sexe','Geschlecht',7,2,NULL,NULL,3,1,NULL),(6,'Date de naissance','Geburtsdatum ',3,2,NULL,NULL,4,1,NULL),(7,'Langue de correspondance','Korrespondenzsprache ',4,2,NULL,NULL,5,1,NULL),(8,'Rue','Strasse',1,2,NULL,NULL,6,1,NULL),(9,'NPA','PLZ',9,2,NULL,NULL,7,1,NULL),(10,'Lieu','Ort',1,2,NULL,NULL,8,1,NULL),(11,'Nom du représentant légal','Name des gesetzlichen Vetreters',1,2,NULL,NULL,9,1,NULL),(12,'Prénom du représentant légal','Vorname des gesetzlichen Vertreters',1,2,NULL,NULL,10,1,NULL),(13,'E-mail du représentant légal','E-mail des gesetzlichen Vertreters',2,2,NULL,NULL,11,1,NULL),(14,'No téléphone du représentant légal','Telefonnummer des gesetzlichen Vertreters',6,2,NULL,NULL,12,1,'Ex : 078 443 34 43'),(15,'No portable du représentant légal','Mobilnummer des gesetzlichen Vertreters',6,2,NULL,NULL,13,1,NULL),(16,'Adresse complète (si différente de celle de l’athlète)','vollständige Adresse (wenn nicht identisch mit der Adresse des Schülers)',1,2,NULL,NULL,14,1,NULL),(17,'Discipline sportive','Sportart',4,3,NULL,NULL,1,1,NULL),(18,'Autre','Sonstiges',1,3,17,46,2,1,NULL),(19,'Spécialisation / Groupe d\'entraînement','Spezialisierung',1,3,17,46,3,1,NULL),(20,'Club ','Klub',1,3,NULL,NULL,4,1,NULL),(21,'Equipe / Catégorie (2021/2022) :','Mannschaft / Kategorie (2021/2022)',1,3,NULL,NULL,5,1,NULL),(22,'Niveau','Niveau ',4,3,NULL,NULL,6,1,NULL),(23,'Faites-vous partie d\'une sélection dans le cadre d\'un centre cantonal de formation ?','Gehören Sie zur Auswahl eines kantonalen Ausbildungszentrums?',7,3,NULL,NULL,7,1,NULL),(24,'Possédez-vous une carte Swiss Olympic ?','Haben Sie eine Swiss Olympic Karte:',7,3,NULL,NULL,8,1,NULL),(25,'Quelle carte possédez-vous ?','Welche Karte besitzen Sie ?',4,3,24,52,9,1,NULL),(26,'Catégorie de ma Swiss Olympic Card','Kategorie meiner Swiss Olympic Card:',4,3,25,55,10,1,NULL),(27,'Catégorie de ma Swiss Olympic Talent Card :','Kategorie der Swiss Olympic Talent Card',4,3,25,54,11,1,NULL),(28,'Je suis au bénéfice d\'un contrat:','Ich habe einen Vertrag:',8,3,NULL,NULL,12,1,NULL),(29,'Meilleurs résultats de l\'année en cours :','Beste Resultate des laufenden Jahres :',5,3,NULL,NULL,13,1,NULL),(30,'Meilleurs résultats de l\'année précédente :','Beste Resultate des vergangenen Jahres :',5,3,NULL,NULL,14,1,NULL),(31,'Nombre d\'heures d\'entraînement par semaine (sans compétition) :','Anzahl Trainingsstunden pro Woche (ohne Wettkämpfe / Turniere) :',11,3,NULL,NULL,15,1,NULL),(32,'Temps investi par semaine pour les compétitions et les tournois (temps effectif, en heures) :','Wöchentlicher Zeitaufwand für Wettkämpfe und Turniere (effektive Stundenzahl) :',11,3,NULL,NULL,16,1,NULL),(33,'Période de compétition :','Wettkampfperiode :',4,3,NULL,NULL,17,1,NULL),(34,'Veuillez préciser la/les saison(s) de compétition','Erwähnen Sie die saisonalen Wettkampfperioden',5,3,33,67,18,1,NULL),(35,'Objectifs sportifs :','Sportliche Ziele :',5,3,NULL,NULL,19,1,NULL),(36,'Motif de la demande :','Grund des Gesuchs :',5,3,NULL,NULL,20,1,NULL),(37,'Objectifs scolaires :','Schulische Ziele :',5,3,NULL,NULL,21,1,NULL),(38,'Evaluation personnelle de mon état de santé :','Persönliche Einschätzung meines Gesundheitszustandes :',5,3,NULL,NULL,22,1,NULL),(39,'Ecole actuelle','Aktuelle Schule',7,4,NULL,NULL,1,1,NULL),(40,'Lieu','Ort',1,4,39,68,2,1,NULL),(41,'Degré de scolarité','Schulstufe',4,4,39,68,3,1,NULL),(42,'Autre','Sonstiges',1,4,41,77,4,1,NULL),(43,'Ecole','Schule',4,4,39,69,5,1,NULL),(44,'Autre','Sonstiges',1,4,43,101,6,1,NULL),(45,'Degré de scolarité','Schulstufe',4,4,39,69,7,1,NULL),(46,'Ecole','Schule',4,4,39,70,8,1,NULL),(47,'Autre','Sonstiges',1,4,46,122,9,1,NULL),(48,'Degré de scolarité','Schulstufe',4,4,39,70,10,1,NULL),(49,'Ecole','Schule',4,4,39,71,11,1,NULL),(50,'Autre','Sonstiges',1,4,49,139,12,1,NULL),(51,'Degré de scolarité','Schulstufe',4,4,39,71,13,1,NULL),(52,'Métier','Beruf',4,4,39,71,14,1,NULL),(53,'Autre','Sonstiges',1,4,52,183,15,1,NULL),(54,'Ecole','Schule',7,5,NULL,NULL,1,1,NULL),(55,'Lieu','Ort',1,5,54,184,2,1,NULL),(56,'Degré de scolarité','Schulstufe',4,5,54,184,3,1,NULL),(57,'Autre','Sonstiges',1,5,56,193,4,1,NULL),(58,'Ecole','Schule',4,5,54,185,5,1,NULL),(59,'Autre','Sonstiges',1,5,58,217,6,1,NULL),(60,'Degré de scolarité','Schulstufe',4,5,54,185,7,1,NULL),(61,'Ecole','Schule',4,5,54,186,8,1,NULL),(62,'Autre','Sonstiges',1,5,61,238,9,1,NULL),(63,'Degré de scolarité','Schulstufe',4,5,54,186,10,1,NULL),(64,'Ecole','Schule',4,5,54,187,11,1,NULL),(65,'Autre','Sonstiges',1,5,64,255,12,1,NULL),(66,'Degré de scolarité','Schulstufe',4,5,54,187,13,1,NULL),(67,'Métier','Beruf',4,5,54,187,14,1,NULL),(68,'Autre','Sonstiges',1,5,67,299,15,1,NULL),(69,'Type de classe/Option/Filière','Klassentypus/Option/Abteilung',5,5,NULL,NULL,16,1,NULL),(70,'Je fais la demande pour un changement de cercle scolaire','Ich mache eine Anfrage für einen Schulkreiwechsel',7,5,NULL,NULL,17,1,NULL),(71,'Motif','Motiv',5,5,70,300,18,1,NULL),(72,'Nom','Name',1,6,NULL,NULL,1,1,NULL),(73,'Prénom','Vorname',1,6,NULL,NULL,2,1,NULL),(74,'E-Mail','E-mail',2,6,NULL,NULL,3,1,NULL),(75,'No Téléphone','Telefonnummer',6,6,NULL,NULL,4,1,NULL),(76,'No Natel','Mobilnummer',6,6,NULL,NULL,5,1,NULL),(77,'Reconnaissances (diplôme, niveau,…)','Anerkennungen (Diplom, ....)',5,6,NULL,NULL,6,1,NULL),(78,'Niveau de promotion des espoirs','Niveau der Förderung von Nachwuchsathleten',8,6,NULL,NULL,7,1,NULL),(79,'Nom','Name',1,7,NULL,NULL,1,1,NULL),(80,'Prénom','Vorname',1,7,NULL,NULL,2,1,NULL),(81,'E-Mail','E-mail',2,7,NULL,NULL,3,1,NULL),(82,'No téléphone professionnel','Telefon Arbeitsplatz',6,7,NULL,NULL,4,1,NULL),(84,'Discipline artistique','Künstlerische Angaben',4,9,NULL,NULL,1,1,NULL),(85,'Autre','Sonstiges',1,9,84,315,2,1,NULL),(86,'Spécialisation','Spezialisierung',1,9,NULL,NULL,3,1,NULL),(87,'Société / Institution','Verein / Institution :',1,9,NULL,NULL,4,1,NULL),(88,'Catégorie ','Kategorie ',1,9,NULL,NULL,5,1,NULL),(89,'Niveau ','Niveau ',4,9,NULL,NULL,6,1,NULL),(90,'Nombre d\'heures de répétitions par semaine (sans spectacles, représentations, stages, concours):','Wöchentlicher Zeitaufwand für Proben oder Übungszeiten (ohne Vorführungen, Wettbewerbe, Prüfungen, Praktika):',11,9,NULL,NULL,7,1,NULL),(91,'Temps investi par semaine pour les spectacles, auditions, coucours, stages (en heure):','Wöchentlicher Zeitaufwand für Vorführungen, Wettbewerbe, Prüfungen, Praktika (Stundenzahl) :',11,9,NULL,NULL,8,1,NULL),(92,'Période de spectacles, concours, représentations:','Periode für Anlässe, Verführungen, Wettbewerbe :',4,9,NULL,NULL,9,1,NULL),(93,'Veuillez préciser la/les saison(s) des représentations et concours:','Erwähnen Sie die saisonalen Vorführungs- und Wettbewerbsperioden:',5,9,92,319,10,1,NULL),(94,'Objectifs artistiques :','Künstlerische Ziele :',5,9,NULL,NULL,11,1,NULL),(95,'Motif de la demande :','Grund der Anfrage :',5,9,NULL,NULL,12,1,NULL),(96,'Objectifs scolaires :','Schulische Ziele :',5,9,NULL,NULL,13,1,NULL),(97,'Evaluation personnelle de mon état de santé :','Persönliche Einschätzung meines Gesundheitszustandes :',5,9,NULL,NULL,14,1,NULL),(98,'Je suis au bénéfice d\'un contrat:','Ich habe einen Vertrag:',4,9,NULL,NULL,15,1,NULL),(99,'Nom','Name',1,10,NULL,NULL,1,1,NULL),(100,'Prénom','Vorname',1,10,NULL,NULL,2,1,NULL),(101,'E-Mail','E-mail',2,10,NULL,NULL,3,1,NULL),(102,'No téléphone professionnel :','Telefonnummer',6,10,NULL,NULL,4,1,NULL),(103,'No Natel','Mobilnummer',6,10,NULL,NULL,5,1,NULL),(104,'Reconnaissances (diplôme, niveau,…)','Anerkennungen (Diplom, ....)',5,10,NULL,NULL,6,1,NULL),(106,'Attestation parentale signée par la mère et le père','Bestätigung der Eltern mit der Unterschrift der Mutter und des Vaters',10,8,NULL,NULL,2,1,NULL),(107,'Copie du carnet de notes du 1er semestre de l\'année en cours','Kopie der Zeugnisse vom laufenden Schuljahr',10,8,NULL,NULL,3,1,NULL),(108,'Attestation médicale','Ärztliches Attest',10,8,NULL,NULL,4,1,NULL),(109,'Copie de la Swiss Olympic Talent Card ou Swiss Olympic Card','Kopie der Swiss Olympic Talent Card bzw. der Swiss Olympic Card',10,8,NULL,NULL,5,1,NULL),(110,'Lettre de recommandation de l\'association (cantonale, régionale, nationale) attestant du niveau de performance','Empfehlungsschreiben des kantonalen, regionalen oder nationalen Verbandes mit Bestätigungdes Leistungsniveaus',10,8,23,51,6,1,NULL),(111,'Plan d\'entraînement hebdomadaire complet (horaires et lieux)','Detaillierter Wochenplan der Trainingseinheiten (Zeitplan und Orte)',10,8,23,51,7,1,NULL),(112,'Plan annuel d\'entraînement et de compétition (contenus et objectifs)','Jahresplanung der Trainings und der Wettkämpfe (Inhalt und Ziele)',10,8,23,51,8,1,NULL),(113,'Planification de carrière et de formation sur 4 ans','Karriereplan und Ausbildungsplan über 4 Jahre',10,8,23,51,9,1,NULL),(114,'Attestation du représentant légal','Bestätigung der Eltern mit der Unterschrift der Mutter und des Vaters',10,11,NULL,NULL,2,1,NULL),(115,'Copie du carnet de notes du 1er semestre','Kopie der Zeugnisse vom laufenden Schuljahr',10,11,NULL,NULL,3,1,NULL),(116,'Attestation médicale','Ärztliches Attest',10,11,NULL,NULL,4,1,NULL),(117,'Plan de carrière et de formation sur 4 ans','Karriere- und Ausbildungsplan über 4 Jahre',10,11,NULL,NULL,5,1,NULL),(118,'Plan de répétition hebdomadaire complet (horaires et lieux)','Detaillierter Wochenplan der Übungseinheiten (Zeitplan und Orte)',10,11,NULL,NULL,6,1,NULL),(119,'Contrat de formation, semi-professionnel ou professionnel (s\'il en existe un)','Kopie des Vertrags (semi-professionell oder professionell, falls vorhanden)',10,11,NULL,NULL,7,1,NULL);
/*!40000 ALTER TABLE `t_question` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `t_questionnaire`
--

DROP TABLE IF EXISTS `t_questionnaire`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `t_questionnaire` (
  `PK_Questionnaire` int(11) NOT NULL,
  `Questionnaire_FR` varchar(45) COLLATE utf8_bin NOT NULL,
  `Questionnaire_DE` varchar(45) COLLATE utf8_bin NOT NULL,
  PRIMARY KEY (`PK_Questionnaire`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `t_questionnaire`
--

LOCK TABLES `t_questionnaire` WRITE;
/*!40000 ALTER TABLE `t_questionnaire` DISABLE KEYS */;
INSERT INTO `t_questionnaire` VALUES (1,'Sportif','Sportler'),(2,'Artiste','Künstler');
/*!40000 ALTER TABLE `t_questionnaire` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `t_section`
--

DROP TABLE IF EXISTS `t_section`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `t_section` (
  `PK_Section` int(11) NOT NULL,
  `Section_FR` varchar(255) COLLATE utf8_bin NOT NULL,
  `Section_DE` varchar(255) COLLATE utf8_bin NOT NULL,
  PRIMARY KEY (`PK_Section`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `t_section`
--

LOCK TABLES `t_section` WRITE;
/*!40000 ALTER TABLE `t_section` DISABLE KEYS */;
INSERT INTO `t_section` VALUES (1,'Cadre de la demande','Rahmen des Antragsgesuchs'),(2,'Données personnelles du demandeur et du représentant légal','Persönliche Angaben des Antragstellers und des gesetzlichen Vertreters'),(3,'Données sportives ','Sportliche Angaben'),(4,'Ecole fréquentée au moment du dépôt de la demande','Besuchte Schule zum Zeitpunkt der Eingabe des Aufnahmegesuchs '),(5,'Ecole future','Zukünftige Schule'),(6,'Entraîneur','Trainer'),(7,'Médecin','Arzt'),(8,'Annexes Sportives','Anhänge Sportlich'),(9,'Données artistiques','Künstlerische Angaben'),(10,'Professeur responsable','Verantwortlicher Professor'),(11,'Annexes Artistiques','Künstlerische Beilagen');
/*!40000 ALTER TABLE `t_section` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `t_typequestion`
--

DROP TABLE IF EXISTS `t_typequestion`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `t_typequestion` (
  `PK_Type` int(11) NOT NULL,
  `type` varchar(45) COLLATE utf8_bin NOT NULL,
  `pattern` varchar(45) COLLATE utf8_bin DEFAULT NULL,
  PRIMARY KEY (`PK_Type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `t_typequestion`
--

LOCK TABLES `t_typequestion` WRITE;
/*!40000 ALTER TABLE `t_typequestion` DISABLE KEYS */;
INSERT INTO `t_typequestion` VALUES (1,'texte court',NULL),(2,'texte court','[a-z0-9._%+-]+@[a-z0-9.-]+\\.[a-z]{2,4}$'),(3,'date',NULL),(4,'liste déroulante',NULL),(5,'texte long',NULL),(6,'texte court','0[0-9]{2} [0-9]{3} [0-9]{2} [0-9]{2}'),(7,'radio bouton',NULL),(8,'case à cocher',NULL),(9,'numerique','[0-9]{4}'),(10,'annexe',NULL),(11,'numerique','');
/*!40000 ALTER TABLE `t_typequestion` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `t_typeutilisateur`
--

DROP TABLE IF EXISTS `t_typeutilisateur`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `t_typeutilisateur` (
  `PK_typeutilisateur` int(11) NOT NULL,
  `type` varchar(45) CHARACTER SET latin1 NOT NULL,
  PRIMARY KEY (`PK_typeutilisateur`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `t_typeutilisateur`
--

LOCK TABLES `t_typeutilisateur` WRITE;
/*!40000 ALTER TABLE `t_typeutilisateur` DISABLE KEYS */;
INSERT INTO `t_typeutilisateur` VALUES (1,'candidat'),(2,'gestionnaire');
/*!40000 ALTER TABLE `t_typeutilisateur` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `t_utilisateur`
--

DROP TABLE IF EXISTS `t_utilisateur`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `t_utilisateur` (
  `PK_utilisateur` int(11) NOT NULL AUTO_INCREMENT,
  `nom` varchar(45) CHARACTER SET latin1 NOT NULL,
  `prenom` varchar(45) CHARACTER SET latin1 NOT NULL,
  `mail` varchar(80) CHARACTER SET latin1 NOT NULL,
  `mdp` varchar(300) CHARACTER SET latin1 NOT NULL,
  `adresse` varchar(150) CHARACTER SET latin1 NOT NULL,
  `npa` int(11) NOT NULL,
  `localite` varchar(60) CHARACTER SET latin1 NOT NULL,
  `FK_typeutilisateur` int(11) NOT NULL,
  `actif` tinyint(4) NOT NULL DEFAULT '0',
  PRIMARY KEY (`PK_utilisateur`),
  UNIQUE KEY `mail_UNIQUE` (`mail`),
  KEY `FK_typeutilisateur_idx` (`FK_typeutilisateur`),
  CONSTRAINT `FK_utilisateur` FOREIGN KEY (`FK_typeutilisateur`) REFERENCES `t_typeutilisateur` (`PK_typeutilisateur`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB AUTO_INCREMENT=28 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `t_utilisateur`
--

LOCK TABLES `t_utilisateur` WRITE;
/*!40000 ALTER TABLE `t_utilisateur` DISABLE KEYS */;
INSERT INTO `t_utilisateur` VALUES (4,'Varenne','Hugo','hugo@test2.ch','$2y$10$i2f3MnBCysiZxzD/CAf8s.tddaX/WAzNQOLoKrtv4THaI4qwZzzA.','le clos du villars 34',1632,'Riaz',1,1),(13,'Varenne','Hugo','hugo@test10.ch','$2y$10$GlTxtShoKb4cBECTidZqTOpibGaZBpC5KpIjJOc4VmPSWsgzXo/N.','Le clos du villars 3',1632,'Riaz',1,1),(14,'Eüber','Euh','hugovarenne@ff.ch','$2y$10$cR9t85MCltv/fUjlSjypwOQZDGUW2W5R/tvJ0YdwDlqxs8IxSVNqi','rigjhrughurdg',1632,'Riaz',1,1),(16,'hfg','gdf','hugovarenne@fff.ch','$2y$10$MTaZKZu6X8WYe6jfDATlQ.RyvqWKca9i9CGptQMxEA/7W20wCs002','gdf',1233,'Riaze',1,1),(17,'Varenne','Hugo','hugo@5ew.ch','$2y$10$vUF8JHTABUX1xfNO8iwisOGEI366.Y13OlrQpTT5oJwNvRIk5Iq7O','le clos 22',1632,'Riaz',1,1),(18,'Varenne','Hugo','hugo@test11110.ch','$2y$10$1X7h5DNvlej5b.x7NJAivu3RCeZjoVufmiJXVlJ5XleEBjqf.Ylim','le clos 22',1632,'Riaz',1,1),(19,'Varenne','Hugo','varenneh@studentfr.ch','$2y$10$sVTU75IpRdRtBSVZUmg2JuGXF2e7ua/Gu7d7zv33G/7EgUX9tfHaK','le clos du villars 34',1632,'Riaz',2,1),(20,'Varenne','Hugo','hugo2@test.ch','$2y$10$L8UJ3l2rjLV2lrN3/XdmyOTeex/dPpm1heIwmfQQ4cvTMffzbHtX2','le clos 22',1111,'Riaz',2,1),(27,'Varenne','Hugo','hugossss@test10.ch','$2y$10$bW4.faweUNLJGQ8/h1RD7OThFAPwNP8uFBDwBNZiCPSGXI/VFwXtS','le clos 22',1111,'Riaz',1,1);
/*!40000 ALTER TABLE `t_utilisateur` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `tr_demande_question`
--

DROP TABLE IF EXISTS `tr_demande_question`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `tr_demande_question` (
  `PFK_demande` int(11) NOT NULL,
  `PFK_question` int(11) NOT NULL,
  `reponse` varchar(200) CHARACTER SET latin1 DEFAULT NULL,
  `date` datetime NOT NULL,
  PRIMARY KEY (`PFK_demande`,`PFK_question`),
  KEY `PFK_Question_idx` (`PFK_question`),
  KEY `PFK_Demande_idx` (`PFK_demande`),
  CONSTRAINT `PFK_Demande` FOREIGN KEY (`PFK_demande`) REFERENCES `t_demande` (`PK_Demande`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `PFK_Question` FOREIGN KEY (`PFK_question`) REFERENCES `t_question` (`PK_Question`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `tr_demande_question`
--

LOCK TABLES `tr_demande_question` WRITE;
/*!40000 ALTER TABLE `tr_demande_question` DISABLE KEYS */;
INSERT INTO `tr_demande_question` VALUES (1,1,NULL,'2021-05-11 12:49:19'),(1,2,NULL,'2021-05-11 12:49:19'),(1,3,'Varenne','2021-05-11 12:49:19'),(1,4,'Hugo','2021-05-11 12:49:19'),(1,5,NULL,'2021-05-11 12:49:19'),(1,6,'','2021-05-11 12:49:19'),(1,7,NULL,'2021-05-11 12:49:19'),(1,8,'','2021-05-11 12:49:19'),(1,9,'','2021-05-11 12:49:19'),(1,10,'','2021-05-11 12:49:19'),(1,11,'','2021-05-11 12:49:19'),(1,12,'','2021-05-11 12:49:19'),(1,13,'','2021-05-11 12:49:19'),(1,14,'','2021-05-11 12:49:19'),(1,15,'','2021-05-11 12:49:19'),(1,16,'','2021-05-11 12:49:19'),(1,17,NULL,'2021-05-11 12:49:19'),(1,18,'','2021-05-11 12:49:19'),(1,19,'','2021-05-11 12:49:19'),(1,20,'','2021-05-11 12:49:19'),(1,21,'','2021-05-11 12:49:19'),(1,22,NULL,'2021-05-11 12:49:19'),(1,23,NULL,'2021-05-11 12:49:19'),(1,24,NULL,'2021-05-11 12:49:19'),(1,28,NULL,'2021-05-11 12:49:19'),(1,29,'','2021-05-11 12:49:19'),(1,30,'','2021-05-11 12:49:19'),(1,31,'','2021-05-11 12:49:19'),(1,32,'','2021-05-11 12:49:19'),(1,33,NULL,'2021-05-11 12:49:19'),(1,35,'','2021-05-11 12:49:19'),(1,36,'','2021-05-11 12:49:19'),(1,37,'','2021-05-11 12:49:19'),(1,38,'','2021-05-11 12:49:19'),(1,39,NULL,'2021-05-11 12:49:19'),(1,54,NULL,'2021-05-11 12:49:19'),(1,61,NULL,'2021-05-11 12:49:19'),(1,63,NULL,'2021-05-11 12:49:19'),(1,69,'Informaticien','2021-05-11 12:49:19'),(1,70,NULL,'2021-05-11 12:49:19'),(1,71,'','2021-05-11 12:49:19'),(1,72,'','2021-05-11 12:49:19'),(1,73,'','2021-05-11 12:49:19'),(1,74,'','2021-05-11 12:49:19'),(1,75,'','2021-05-11 12:49:19'),(1,76,'','2021-05-11 12:49:19'),(1,77,'','2021-05-11 12:49:19'),(1,78,NULL,'2021-05-11 12:49:19'),(1,79,'','2021-05-11 12:49:19'),(1,80,'','2021-05-11 12:49:19'),(1,81,'','2021-05-11 12:49:19'),(1,82,'','2021-05-11 12:49:19'),(1,106,'','2021-05-11 12:49:19'),(1,107,'','2021-05-11 12:49:19'),(1,108,'','2021-05-11 12:49:19'),(1,109,'','2021-05-11 12:49:19'),(2,1,NULL,'2021-03-19 15:38:21'),(2,2,NULL,'2021-03-19 15:38:21'),(2,3,'','2021-03-19 15:38:21'),(2,4,'','2021-03-19 15:38:21'),(2,5,NULL,'2021-03-19 15:38:21'),(2,6,'','2021-03-19 15:38:21'),(2,7,NULL,'2021-03-19 15:38:21'),(2,8,'','2021-03-19 15:38:21'),(2,9,'','2021-03-19 15:38:21'),(2,10,'','2021-03-19 15:38:21'),(2,11,'','2021-03-19 15:38:21'),(2,12,'','2021-03-19 15:38:21'),(2,13,'','2021-03-19 15:38:21'),(2,14,'','2021-03-19 15:38:21'),(2,15,'','2021-03-19 15:38:21'),(2,16,'','2021-03-19 15:38:21'),(2,17,NULL,'2021-03-19 15:38:21'),(2,20,'','2021-03-19 15:38:21'),(2,21,'','2021-03-19 15:38:21'),(2,22,NULL,'2021-03-19 15:38:21'),(2,23,NULL,'2021-03-19 15:38:21'),(2,24,NULL,'2021-03-19 15:38:21'),(2,28,NULL,'2021-03-19 15:38:21'),(2,29,'','2021-03-19 15:38:21'),(2,30,'','2021-03-19 15:38:21'),(2,31,'','2021-03-19 15:38:21'),(2,32,'','2021-03-19 15:38:21'),(2,33,NULL,'2021-03-19 15:38:21'),(2,35,'','2021-03-19 15:38:21'),(2,36,'','2021-03-19 15:38:21'),(2,37,'','2021-03-19 15:38:21'),(2,38,'','2021-03-19 15:38:21'),(2,39,NULL,'2021-03-19 15:38:21'),(2,54,NULL,'2021-03-19 15:38:21'),(2,69,'','2021-03-19 15:38:21'),(2,70,NULL,'2021-03-19 15:38:21'),(2,72,'','2021-03-19 15:38:21'),(2,73,'','2021-03-19 15:38:21'),(2,74,'','2021-03-19 15:38:21'),(2,75,'','2021-03-19 15:38:21'),(2,76,'','2021-03-19 15:38:21'),(2,77,'','2021-03-19 15:38:21'),(2,78,NULL,'2021-03-19 15:38:21'),(2,79,'','2021-03-19 15:38:21'),(2,80,'','2021-03-19 15:38:21'),(2,81,'','2021-03-19 15:38:21'),(2,82,'','2021-03-19 15:38:21'),(2,106,'','2021-03-19 15:38:21'),(2,107,'','2021-03-19 15:38:21'),(2,108,'','2021-03-19 15:38:21'),(2,109,'','2021-03-19 15:38:21');
/*!40000 ALTER TABLE `tr_demande_question` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `tr_questionnaire_section`
--

DROP TABLE IF EXISTS `tr_questionnaire_section`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `tr_questionnaire_section` (
  `PFK_questionnaire` int(11) NOT NULL,
  `PFK_section` int(11) NOT NULL,
  `position` int(11) NOT NULL,
  PRIMARY KEY (`PFK_questionnaire`,`PFK_section`),
  KEY `PFK_section_idx` (`PFK_section`),
  CONSTRAINT `PFK_questionnaire` FOREIGN KEY (`PFK_questionnaire`) REFERENCES `t_questionnaire` (`PK_Questionnaire`),
  CONSTRAINT `PFK_section` FOREIGN KEY (`PFK_section`) REFERENCES `t_section` (`PK_Section`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `tr_questionnaire_section`
--

LOCK TABLES `tr_questionnaire_section` WRITE;
/*!40000 ALTER TABLE `tr_questionnaire_section` DISABLE KEYS */;
INSERT INTO `tr_questionnaire_section` VALUES (1,1,1),(1,2,2),(1,3,3),(1,4,4),(1,5,5),(1,6,6),(1,7,7),(1,8,8),(2,1,1),(2,2,2),(2,4,4),(2,5,5),(2,7,7),(2,9,3),(2,10,6),(2,11,8);
/*!40000 ALTER TABLE `tr_questionnaire_section` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `tr_reponse_multichoix`
--

DROP TABLE IF EXISTS `tr_reponse_multichoix`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `tr_reponse_multichoix` (
  `PFK_Demande` int(11) NOT NULL,
  `PFK_Question` int(11) NOT NULL,
  `PFK_Multichoix` int(11) NOT NULL,
  PRIMARY KEY (`PFK_Demande`,`PFK_Question`,`PFK_Multichoix`),
  KEY `PFK_Multichoix_idx` (`PFK_Multichoix`),
  KEY `PFK_Question_idx` (`PFK_Question`),
  CONSTRAINT `PFK_Demande_Question` FOREIGN KEY (`PFK_Demande`, `PFK_Question`) REFERENCES `tr_demande_question` (`PFK_demande`, `PFK_question`) ON DELETE CASCADE ON UPDATE NO ACTION,
  CONSTRAINT `PFK_Multichoix` FOREIGN KEY (`PFK_Multichoix`) REFERENCES `t_multichoix` (`PK_multichoix`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `tr_reponse_multichoix`
--

LOCK TABLES `tr_reponse_multichoix` WRITE;
/*!40000 ALTER TABLE `tr_reponse_multichoix` DISABLE KEYS */;
INSERT INTO `tr_reponse_multichoix` VALUES (1,1,1),(2,1,1),(1,7,8),(2,7,8),(2,17,10),(1,17,46),(1,22,47),(2,22,47),(1,33,66),(2,33,66),(1,54,186),(1,61,222),(1,63,239),(1,70,300),(1,78,303),(1,78,304),(1,78,305);
/*!40000 ALTER TABLE `tr_reponse_multichoix` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2021-05-12  9:30:12
