Commit 023e04f7 authored by Patrick Etcheverry's avatar Patrick Etcheverry

-

parent dbff1041
server {
listen 80;
listen 443 ssl;
ssl on;
server_name #txuleton.azkenhack.fr#;
root #/home/gaizka/txuleton/web#;
location / {
try_files $uri @rewriteapp;
}
location @rewriteapp {
# Ici on réécrit toutes les URL de telle sorte qu'elles pointent vers
# le fichier app.php
# Dans mon cas, mon installation était pour un environnement de
# développement, j'ai donc remplacer app.php par app_dev.php
rewrite ^(.*)$ /app.php/$1 last;
}
location ~ ^/(app|app_dev|config)\.php(/|$) {
fastcgi_pass unix:#/var/run/php/php7.0-fpm.sock#;
fastcgi_split_path_info ^(.+\.php)(/.*)$;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param HTTPS on;
}
# N'oubliez de modifier ici aussi
error_log /var/log/nginx/txuleton.error.log;
access_log /var/log/nginx/txuleton.access.log;
}
-- phpMyAdmin SQL Dump
-- version 4.6.4
-- https://www.phpmyadmin.net/
--
-- Client : localhost:3306
-- Généré le : Ven 22 Septembre 2017 à 12:05
-- Version du serveur : 5.6.28
-- Version de PHP : 7.0.10
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
--
-- Base de données : `txuleton`
--
-- --------------------------------------------------------
--
-- Structure de la table `answer`
--
CREATE TABLE `answer` (
`id` int(11) NOT NULL,
`question_id` int(11) DEFAULT NULL,
`pedagogical_scenario_id` int(11) NOT NULL,
`pedagogicalEngineerObservation` longtext COLLATE utf8_unicode_ci,
`isValid` tinyint(1) NOT NULL,
`discr` varchar(255) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Structure de la table `general_answer`
--
CREATE TABLE `general_answer` (
`id` int(11) NOT NULL,
`general_question_id` int(11) NOT NULL,
`textAnswer` longtext COLLATE utf8_unicode_ci
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Structure de la table `general_question`
--
CREATE TABLE `general_question` (
`id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Structure de la table `pedagogical_scenario`
--
CREATE TABLE `pedagogical_scenario` (
`id` int(11) NOT NULL,
`referent_teacher_id` int(11) DEFAULT NULL,
`project_id` int(11) DEFAULT NULL,
`scenarisation_process_id` int(11) NOT NULL,
`shortname` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`fullname` longtext COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Structure de la table `pedagogical_scenario_training_course`
--
CREATE TABLE `pedagogical_scenario_training_course` (
`id` int(11) NOT NULL,
`pedagogical_scenario_id` int(11) DEFAULT NULL,
`training_course_id` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Structure de la table `project`
--
CREATE TABLE `project` (
`id` int(11) NOT NULL,
`shortname` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`fullname` longtext COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Structure de la table `question`
--
CREATE TABLE `question` (
`id` int(11) NOT NULL,
`enWording` longtext COLLATE utf8_unicode_ci,
`frWording` longtext COLLATE utf8_unicode_ci,
`esWording` longtext COLLATE utf8_unicode_ci,
`discr` varchar(255) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Structure de la table `question_order`
--
CREATE TABLE `question_order` (
`id` int(11) NOT NULL,
`question_id` int(11) DEFAULT NULL,
`scenarisation_stage_id` int(11) DEFAULT NULL,
`position` smallint(6) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Structure de la table `scenarisation_process`
--
CREATE TABLE `scenarisation_process` (
`id` int(11) NOT NULL,
`author_id` int(11) DEFAULT NULL,
`title` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`description` longtext COLLATE utf8_unicode_ci
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Structure de la table `scenarisation_stage`
--
CREATE TABLE `scenarisation_stage` (
`id` int(11) NOT NULL,
`title` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`goals` longtext COLLATE utf8_unicode_ci,
`description` longtext COLLATE utf8_unicode_ci
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Structure de la table `scenarisation_stage_order`
--
CREATE TABLE `scenarisation_stage_order` (
`id` int(11) NOT NULL,
`scenarisation_process_id` int(11) DEFAULT NULL,
`scenarisation_stage_id` int(11) DEFAULT NULL,
`position` smallint(6) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Structure de la table `sequence`
--
CREATE TABLE `sequence` (
`id` int(11) NOT NULL,
`pedagogical_scenario_id` int(11) NOT NULL,
`sequence_answer_id` int(11) DEFAULT NULL,
`title` longtext COLLATE utf8_unicode_ci NOT NULL,
`duration` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`order` smallint(6) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Structure de la table `sequence_answer`
--
CREATE TABLE `sequence_answer` (
`id` int(11) NOT NULL,
`sequence_question_id` int(11) NOT NULL,
`sequencearray` longtext COLLATE utf8_unicode_ci COMMENT '(DC2Type:array)'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Structure de la table `sequence_question`
--
CREATE TABLE `sequence_question` (
`id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Structure de la table `session`
--
CREATE TABLE `session` (
`id` int(11) NOT NULL,
`sequence_id` int(11) NOT NULL,
`session_answer_id` int(11) DEFAULT NULL,
`description` longtext COLLATE utf8_unicode_ci NOT NULL,
`goal` longtext COLLATE utf8_unicode_ci NOT NULL,
`modality` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`order` smallint(6) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Structure de la table `session_answer`
--
CREATE TABLE `session_answer` (
`id` int(11) NOT NULL,
`session_question_id` int(11) NOT NULL,
`sessionsarray` longtext COLLATE utf8_unicode_ci COMMENT '(DC2Type:array)'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Structure de la table `session_question`
--
CREATE TABLE `session_question` (
`id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Structure de la table `training_course`
--
CREATE TABLE `training_course` (
`id` int(11) NOT NULL,
`shortname` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`fullname` longtext COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Structure de la table `user`
--
CREATE TABLE `user` (
`id` int(11) NOT NULL,
`lastname` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`firstname` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`plateformLanguage` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`email` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`password` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`salt` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`roles` longtext COLLATE utf8_unicode_ci NOT NULL COMMENT '(DC2Type:array)',
`token` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Contenu de la table `user`
--
INSERT INTO `user` (`id`, `lastname`, `firstname`, `plateformLanguage`, `email`, `password`, `salt`, `roles`, `token`) VALUES
(85, 'ingenieur', 'ingenieur', 'fr', 'patrick.etcheverry@iutbayonne.univ-pau.fr', 'gwFuo5t24FQxUNtPUmM2nkEoet4RP8zM8R9W4CSIOMIbOsg9aM6IE5P2zafhGfMwcKYVhX2PVvYqvII7Vmmc7A==', 'ed87c6799bc4e5ed5eab1d2491130acd', 'a:1:{i:0;s:25:"ROLE_PEDAGOGICAL_ENGINEER";}', NULL);
-- --------------------------------------------------------
--
-- Structure de la table `user_pedagogical_scenario`
--
CREATE TABLE `user_pedagogical_scenario` (
`user_id` int(11) NOT NULL,
`pedagogical_scenario_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Index pour les tables exportées
--
--
-- Index pour la table `answer`
--
ALTER TABLE `answer`
ADD PRIMARY KEY (`id`),
ADD KEY `IDX_DADD4A251E27F6BF` (`question_id`),
ADD KEY `IDX_DADD4A25D2A39CD0` (`pedagogical_scenario_id`);
--
-- Index pour la table `general_answer`
--
ALTER TABLE `general_answer`
ADD PRIMARY KEY (`id`),
ADD KEY `IDX_4BF5B761995C6A4F` (`general_question_id`);
--
-- Index pour la table `general_question`
--
ALTER TABLE `general_question`
ADD PRIMARY KEY (`id`);
--
-- Index pour la table `pedagogical_scenario`
--
ALTER TABLE `pedagogical_scenario`
ADD PRIMARY KEY (`id`),
ADD KEY `IDX_CC88D8137E3BAE1D` (`referent_teacher_id`),
ADD KEY `IDX_CC88D813166D1F9C` (`project_id`),
ADD KEY `IDX_CC88D8135D59E8C9` (`scenarisation_process_id`);
--
-- Index pour la table `pedagogical_scenario_training_course`
--
ALTER TABLE `pedagogical_scenario_training_course`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `pedagogical_scenario_already_include` (`training_course_id`,`pedagogical_scenario_id`),
ADD KEY `IDX_AFA6E1CBD2A39CD0` (`pedagogical_scenario_id`),
ADD KEY `IDX_AFA6E1CB3790AA66` (`training_course_id`);
--
-- Index pour la table `project`
--
ALTER TABLE `project`
ADD PRIMARY KEY (`id`);
--
-- Index pour la table `question`
--
ALTER TABLE `question`
ADD PRIMARY KEY (`id`);
--
-- Index pour la table `question_order`
--
ALTER TABLE `question_order`
ADD PRIMARY KEY (`id`),
ADD KEY `IDX_C5C2829C1E27F6BF` (`question_id`),
ADD KEY `IDX_C5C2829CEA024ABA` (`scenarisation_stage_id`);
--
-- Index pour la table `scenarisation_process`
--
ALTER TABLE `scenarisation_process`
ADD PRIMARY KEY (`id`),
ADD KEY `IDX_CBD7B1A4F675F31B` (`author_id`);
--
-- Index pour la table `scenarisation_stage`
--
ALTER TABLE `scenarisation_stage`
ADD PRIMARY KEY (`id`);
--
-- Index pour la table `scenarisation_stage_order`
--
ALTER TABLE `scenarisation_stage_order`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `unique_stage_in_process` (`scenarisation_process_id`,`scenarisation_stage_id`),
ADD KEY `IDX_C07D75705D59E8C9` (`scenarisation_process_id`),
ADD KEY `IDX_C07D7570EA024ABA` (`scenarisation_stage_id`);
--
-- Index pour la table `sequence`
--
ALTER TABLE `sequence`
ADD PRIMARY KEY (`id`),
ADD KEY `IDX_5286D72BD2A39CD0` (`pedagogical_scenario_id`),
ADD KEY `IDX_5286D72B16A490E` (`sequence_answer_id`);
--
-- Index pour la table `sequence_answer`
--
ALTER TABLE `sequence_answer`
ADD PRIMARY KEY (`id`),
ADD KEY `IDX_BECD6E4CB8E2D639` (`sequence_question_id`);
--
-- Index pour la table `sequence_question`
--
ALTER TABLE `sequence_question`
ADD PRIMARY KEY (`id`);
--
-- Index pour la table `session`
--
ALTER TABLE `session`
ADD PRIMARY KEY (`id`),
ADD KEY `IDX_D044D5D498FB19AE` (`sequence_id`),
ADD KEY `IDX_D044D5D4E9D10D0D` (`session_answer_id`);
--
-- Index pour la table `session_answer`
--
ALTER TABLE `session_answer`
ADD PRIMARY KEY (`id`),
ADD KEY `IDX_B5B6407CE27EE8C8` (`session_question_id`);
--
-- Index pour la table `session_question`
--
ALTER TABLE `session_question`
ADD PRIMARY KEY (`id`);
--
-- Index pour la table `training_course`
--
ALTER TABLE `training_course`
ADD PRIMARY KEY (`id`);
--
-- Index pour la table `user`
--
ALTER TABLE `user`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `UNIQ_8D93D649E7927C74` (`email`);
--
-- Index pour la table `user_pedagogical_scenario`
--
ALTER TABLE `user_pedagogical_scenario`
ADD PRIMARY KEY (`user_id`,`pedagogical_scenario_id`),
ADD KEY `IDX_72A90B6CA76ED395` (`user_id`),
ADD KEY `IDX_72A90B6CD2A39CD0` (`pedagogical_scenario_id`);
--
-- AUTO_INCREMENT pour les tables exportées
--
--
-- AUTO_INCREMENT pour la table `answer`
--
ALTER TABLE `answer`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT pour la table `pedagogical_scenario`
--
ALTER TABLE `pedagogical_scenario`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT pour la table `pedagogical_scenario_training_course`
--
ALTER TABLE `pedagogical_scenario_training_course`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `project`
--
ALTER TABLE `project`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT pour la table `question`
--
ALTER TABLE `question`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=119;
--
-- AUTO_INCREMENT pour la table `question_order`
--
ALTER TABLE `question_order`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=139;
--
-- AUTO_INCREMENT pour la table `scenarisation_process`
--
ALTER TABLE `scenarisation_process`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=102;
--
-- AUTO_INCREMENT pour la table `scenarisation_stage`
--
ALTER TABLE `scenarisation_stage`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=107;
--
-- AUTO_INCREMENT pour la table `scenarisation_stage_order`
--
ALTER TABLE `scenarisation_stage_order`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=110;
--
-- AUTO_INCREMENT pour la table `sequence`
--
ALTER TABLE `sequence`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `session`
--
ALTER TABLE `session`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `training_course`
--
ALTER TABLE `training_course`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT pour la table `user`
--
ALTER TABLE `user`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=86;
--
-- Contraintes pour les tables exportées
--
--
-- Contraintes pour la table `answer`
--
ALTER TABLE `answer`
ADD CONSTRAINT `FK_DADD4A251E27F6BF` FOREIGN KEY (`question_id`) REFERENCES `question` (`id`) ON DELETE SET NULL,
ADD CONSTRAINT `FK_DADD4A25D2A39CD0` FOREIGN KEY (`pedagogical_scenario_id`) REFERENCES `pedagogical_scenario` (`id`);
--
-- Contraintes pour la table `general_answer`
--
ALTER TABLE `general_answer`
ADD CONSTRAINT `FK_4BF5B761995C6A4F` FOREIGN KEY (`general_question_id`) REFERENCES `general_question` (`id`),
ADD CONSTRAINT `FK_4BF5B761BF396750` FOREIGN KEY (`id`) REFERENCES `answer` (`id`) ON DELETE CASCADE;
--
-- Contraintes pour la table `general_question`
--
ALTER TABLE `general_question`
ADD CONSTRAINT `FK_E1EEDCC6BF396750` FOREIGN KEY (`id`) REFERENCES `question` (`id`) ON DELETE CASCADE;
--
-- Contraintes pour la table `pedagogical_scenario`
--
ALTER TABLE `pedagogical_scenario`
ADD CONSTRAINT `FK_CC88D813166D1F9C` FOREIGN KEY (`project_id`) REFERENCES `project` (`id`) ON DELETE SET NULL,
ADD CONSTRAINT `FK_CC88D8135D59E8C9` FOREIGN KEY (`scenarisation_process_id`) REFERENCES `scenarisation_process` (`id`) ON DELETE CASCADE,
ADD CONSTRAINT `FK_CC88D8137E3BAE1D` FOREIGN KEY (`referent_teacher_id`) REFERENCES `user` (`id`) ON DELETE SET NULL;
--
-- Contraintes pour la table `pedagogical_scenario_training_course`
--
ALTER TABLE `pedagogical_scenario_training_course`
ADD CONSTRAINT `FK_AFA6E1CB3790AA66` FOREIGN KEY (`training_course_id`) REFERENCES `training_course` (`id`) ON DELETE SET NULL,
ADD CONSTRAINT `FK_AFA6E1CBD2A39CD0` FOREIGN KEY (`pedagogical_scenario_id`) REFERENCES `pedagogical_scenario` (`id`) ON DELETE SET NULL;
--
-- Contraintes pour la table `question_order`
--
ALTER TABLE `question_order`
ADD CONSTRAINT `FK_C5C2829C1E27F6BF` FOREIGN KEY (`question_id`) REFERENCES `question` (`id`) ON DELETE SET NULL,
ADD CONSTRAINT `FK_C5C2829CEA024ABA` FOREIGN KEY (`scenarisation_stage_id`) REFERENCES `scenarisation_stage` (`id`) ON DELETE SET NULL;
--
-- Contraintes pour la table `scenarisation_process`
--
ALTER TABLE `scenarisation_process`
ADD CONSTRAINT `FK_CBD7B1A4F675F31B` FOREIGN KEY (`author_id`) REFERENCES `user` (`id`) ON DELETE SET NULL;
--
-- Contraintes pour la table `scenarisation_stage_order`
--
ALTER TABLE `scenarisation_stage_order`
ADD CONSTRAINT `FK_C07D75705D59E8C9` FOREIGN KEY (`scenarisation_process_id`) REFERENCES `scenarisation_process` (`id`) ON DELETE SET NULL,
ADD CONSTRAINT `FK_C07D7570EA024ABA` FOREIGN KEY (`scenarisation_stage_id`) REFERENCES `scenarisation_stage` (`id`) ON DELETE SET NULL;
--
-- Contraintes pour la table `sequence`
--
ALTER TABLE `sequence`
ADD CONSTRAINT `FK_5286D72B16A490E` FOREIGN KEY (`sequence_answer_id`) REFERENCES `sequence_answer` (`id`),
ADD CONSTRAINT `FK_5286D72BD2A39CD0` FOREIGN KEY (`pedagogical_scenario_id`) REFERENCES `pedagogical_scenario` (`id`);
--
-- Contraintes pour la table `sequence_answer`
--
ALTER TABLE `sequence_answer`
ADD CONSTRAINT `FK_BECD6E4CB8E2D639` FOREIGN KEY (`sequence_question_id`) REFERENCES `sequence_question` (`id`),
ADD CONSTRAINT `FK_BECD6E4CBF396750` FOREIGN KEY (`id`) REFERENCES `answer` (`id`) ON DELETE CASCADE;
--
-- Contraintes pour la table `sequence_question`
--
ALTER TABLE `sequence_question`
ADD CONSTRAINT `FK_3ECB1961BF396750` FOREIGN KEY (`id`) REFERENCES `question` (`id`) ON DELETE CASCADE;
--
-- Contraintes pour la table `session`
--
ALTER TABLE `session`
ADD CONSTRAINT `FK_D044D5D498FB19AE` FOREIGN KEY (`sequence_id`) REFERENCES `sequence` (`id`),
ADD CONSTRAINT `FK_D044D5D4E9D10D0D` FOREIGN KEY (`session_answer_id`) REFERENCES `session_answer` (`id`);
--
-- Contraintes pour la table `session_answer`
--
ALTER TABLE `session_answer`
ADD CONSTRAINT `FK_B5B6407CBF396750` FOREIGN KEY (`id`) REFERENCES `answer` (`id`) ON DELETE CASCADE,
ADD CONSTRAINT `FK_B5B6407CE27EE8C8` FOREIGN KEY (`session_question_id`) REFERENCES `session_question` (`id`);
--