Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Txuleton
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Patrick Etcheverry
Txuleton
Commits
023e04f7
Commit
023e04f7
authored
Sep 22, 2017
by
Patrick Etcheverry
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
-
parent
dbff1041
Changes
76
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
76 changed files
with
2467 additions
and
517 deletions
+2467
-517
CONF_NGINX
CONF_NGINX
+33
-0
DUMP.SQL
DUMP.SQL
+604
-0
app/Resources/translations/messages.fr.yml
app/Resources/translations/messages.fr.yml
+122
-63
app/Resources/views/Emails/redefinePassword.html.twig
app/Resources/views/Emails/redefinePassword.html.twig
+4
-0
app/Resources/views/base.html.twig
app/Resources/views/base.html.twig
+16
-38
app/Resources/views/baseLogin.html.twig
app/Resources/views/baseLogin.html.twig
+30
-12
app/Resources/views/menu.html.twig
app/Resources/views/menu.html.twig
+1
-1
app/config/config.yml
app/config/config.yml
+12
-4
app/config/routing.yml
app/config/routing.yml
+7
-0
app/logs/.gitkeep
app/logs/.gitkeep
+0
-0
dump_symfony.sql
dump_symfony.sql
+0
-66
src/.DS_Store
src/.DS_Store
+0
-0
src/ScenarioBundle/Controller/PedagogicalScenarioController.php
...enarioBundle/Controller/PedagogicalScenarioController.php
+80
-16
src/ScenarioBundle/DataFixtures/ORM/LoadAnswerData.php
src/ScenarioBundle/DataFixtures/ORM/LoadAnswerData.php
+1
-1
src/ScenarioBundle/DataFixtures/ORM/LoadPedagogicalScenarioData.php
...ioBundle/DataFixtures/ORM/LoadPedagogicalScenarioData.php
+3
-3
src/ScenarioBundle/DataFixtures/ORM/LoadProjectData.php
src/ScenarioBundle/DataFixtures/ORM/LoadProjectData.php
+1
-1
src/ScenarioBundle/DataFixtures/ORM/LoadSequenceData.php
src/ScenarioBundle/DataFixtures/ORM/LoadSequenceData.php
+2
-2
src/ScenarioBundle/DataFixtures/ORM/LoadSessionData.php
src/ScenarioBundle/DataFixtures/ORM/LoadSessionData.php
+2
-2
src/ScenarioBundle/Resources/translations/messages.fr.yml
src/ScenarioBundle/Resources/translations/messages.fr.yml
+33
-2
src/ScenarioBundle/Resources/views/pedagogicalscenario/defineteachers.html.twig
...ources/views/pedagogicalscenario/defineteachers.html.twig
+5
-6
src/ScenarioBundle/Resources/views/pedagogicalscenario/design.html.twig
...ndle/Resources/views/pedagogicalscenario/design.html.twig
+9
-9
src/ScenarioBundle/Resources/views/pedagogicalscenario/edit.html.twig
...Bundle/Resources/views/pedagogicalscenario/edit.html.twig
+0
-1
src/ScenarioBundle/Resources/views/pedagogicalscenario/index.html.twig
...undle/Resources/views/pedagogicalscenario/index.html.twig
+0
-2
src/ScenarioBundle/Resources/views/pedagogicalscenario/new.html.twig
...oBundle/Resources/views/pedagogicalscenario/new.html.twig
+1
-0
src/ScenarioBundle/Resources/views/pedagogicalscenario/show.html.twig
...Bundle/Resources/views/pedagogicalscenario/show.html.twig
+2
-2
src/ScenarioBundle/Resources/views/pedagogicalscenario/stagequestionsanswersedit.html.twig
...s/pedagogicalscenario/stagequestionsanswersedit.html.twig
+223
-6
src/ScenarioBundle/Resources/views/pedagogicalscenario/stagequestionsanswersview.html.twig
...s/pedagogicalscenario/stagequestionsanswersview.html.twig
+2
-2
src/ScenarioBundle/Resources/views/pedagogicalscenario/trainingcoursemanagement.html.twig
...ws/pedagogicalscenario/trainingcoursemanagement.html.twig
+5
-6
src/ScenarioBundle/Resources/views/project/edit.html.twig
src/ScenarioBundle/Resources/views/project/edit.html.twig
+1
-0
src/ScenarioBundle/Resources/views/project/index.html.twig
src/ScenarioBundle/Resources/views/project/index.html.twig
+1
-1
src/ScenarioBundle/Resources/views/project/new.html.twig
src/ScenarioBundle/Resources/views/project/new.html.twig
+1
-0
src/ScenarioBundle/Resources/views/project/pedagogicalscenariomanagement.html.twig
...ces/views/project/pedagogicalscenariomanagement.html.twig
+9
-11
src/ScenarioBundle/Resources/views/project/show.html.twig
src/ScenarioBundle/Resources/views/project/show.html.twig
+1
-0
src/ScenarioBundle/Resources/views/trainingcourse/edit.html.twig
...narioBundle/Resources/views/trainingcourse/edit.html.twig
+1
-0
src/ScenarioBundle/Resources/views/trainingcourse/index.html.twig
...arioBundle/Resources/views/trainingcourse/index.html.twig
+1
-1
src/ScenarioBundle/Resources/views/trainingcourse/new.html.twig
...enarioBundle/Resources/views/trainingcourse/new.html.twig
+1
-0
src/ScenarioBundle/Resources/views/trainingcourse/pedagogicalscenariomanagement.html.twig
...ws/trainingcourse/pedagogicalscenariomanagement.html.twig
+6
-6
src/ScenarioBundle/Resources/views/trainingcourse/show.html.twig
...narioBundle/Resources/views/trainingcourse/show.html.twig
+1
-0
src/ScenarisationProcessBundle/Controller/QuestionController.php
...narisationProcessBundle/Controller/QuestionController.php
+1
-1
src/ScenarisationProcessBundle/Controller/ScenarisationProcessController.php
...ocessBundle/Controller/ScenarisationProcessController.php
+332
-57
src/ScenarisationProcessBundle/Controller/ScenarisationStageController.php
...ProcessBundle/Controller/ScenarisationStageController.php
+620
-64
src/ScenarisationProcessBundle/DataFixtures/ORM/LoadQuestionData.php
...sationProcessBundle/DataFixtures/ORM/LoadQuestionData.php
+2
-17
src/ScenarisationProcessBundle/DataFixtures/ORM/LoadScenarisationProcessData.php
...sBundle/DataFixtures/ORM/LoadScenarisationProcessData.php
+1
-4
src/ScenarisationProcessBundle/DataFixtures/ORM/LoadScenarisationStageData.php
...essBundle/DataFixtures/ORM/LoadScenarisationStageData.php
+2
-6
src/ScenarisationProcessBundle/Entity/ScenarisationStage.php
src/ScenarisationProcessBundle/Entity/ScenarisationStage.php
+0
-31
src/ScenarisationProcessBundle/Repository/ScenarisationProcessRepository.php
...ocessBundle/Repository/ScenarisationProcessRepository.php
+22
-0
src/ScenarisationProcessBundle/Resources/config/routing/scenarisationstage.yml
...essBundle/Resources/config/routing/scenarisationstage.yml
+4
-4
src/ScenarisationProcessBundle/Resources/translations/messages.fr.yml
...ationProcessBundle/Resources/translations/messages.fr.yml
+6
-0
src/ScenarisationProcessBundle/Resources/views/question/edit.html.twig
...tionProcessBundle/Resources/views/question/edit.html.twig
+1
-0
src/ScenarisationProcessBundle/Resources/views/question/index.html.twig
...ionProcessBundle/Resources/views/question/index.html.twig
+1
-1
src/ScenarisationProcessBundle/Resources/views/question/new.html.twig
...ationProcessBundle/Resources/views/question/new.html.twig
+1
-0
src/ScenarisationProcessBundle/Resources/views/scenarisationprocess/edit.html.twig
...undle/Resources/views/scenarisationprocess/edit.html.twig
+1
-0
src/ScenarisationProcessBundle/Resources/views/scenarisationprocess/index.html.twig
...ndle/Resources/views/scenarisationprocess/index.html.twig
+1
-1
src/ScenarisationProcessBundle/Resources/views/scenarisationprocess/new.html.twig
...Bundle/Resources/views/scenarisationprocess/new.html.twig
+1
-0
src/ScenarisationProcessBundle/Resources/views/scenarisationprocess/show.html.twig
...undle/Resources/views/scenarisationprocess/show.html.twig
+3
-8
src/ScenarisationProcessBundle/Resources/views/scenarisationprocess/stagesEdit.html.twig
...Resources/views/scenarisationprocess/stagesEdit.html.twig
+7
-6
src/ScenarisationProcessBundle/Resources/views/scenarisationstage/edit.html.twig
...sBundle/Resources/views/scenarisationstage/edit.html.twig
+1
-0
src/ScenarisationProcessBundle/Resources/views/scenarisationstage/index.html.twig
...Bundle/Resources/views/scenarisationstage/index.html.twig
+3
-3
src/ScenarisationProcessBundle/Resources/views/scenarisationstage/new.html.twig
...ssBundle/Resources/views/scenarisationstage/new.html.twig
+1
-0
src/ScenarisationProcessBundle/Resources/views/scenarisationstage/processManagement.html.twig
...rces/views/scenarisationstage/processManagement.html.twig
+2
-2
src/ScenarisationProcessBundle/Resources/views/scenarisationstage/questionsEdit.html.twig
...esources/views/scenarisationstage/questionsEdit.html.twig
+7
-9
src/ScenarisationProcessBundle/Resources/views/scenarisationstage/show.html.twig
...sBundle/Resources/views/scenarisationstage/show.html.twig
+1
-1
src/UserBundle/Controller/SecurityController.php
src/UserBundle/Controller/SecurityController.php
+80
-0
src/UserBundle/Controller/UserController.php
src/UserBundle/Controller/UserController.php
+38
-0
src/UserBundle/DataFixtures/ORM/LoadUserData.php
src/UserBundle/DataFixtures/ORM/LoadUserData.php
+1
-7
src/UserBundle/Entity/User.php
src/UserBundle/Entity/User.php
+41
-0
src/UserBundle/Repository/LecturerRepository.php
src/UserBundle/Repository/LecturerRepository.php
+0
-13
src/UserBundle/Repository/PedagogicalEngineerRepository.php
src/UserBundle/Repository/PedagogicalEngineerRepository.php
+0
-13
src/UserBundle/Repository/UserRepository.php
src/UserBundle/Repository/UserRepository.php
+11
-5
src/UserBundle/Resources/config/routing/user.yml
src/UserBundle/Resources/config/routing/user.yml
+5
-0
src/UserBundle/Resources/translations/messages.fr.yml
src/UserBundle/Resources/translations/messages.fr.yml
+10
-0
src/UserBundle/Resources/views/user/redefine_password.html.twig
...erBundle/Resources/views/user/redefine_password.html.twig
+14
-0
src/UserBundle/Resources/views/user/show.html.twig
src/UserBundle/Resources/views/user/show.html.twig
+4
-0
web/.DS_Store
web/.DS_Store
+0
-0
web/config.php
web/config.php
+2
-0
web/js/deleting_modal_window.js
web/js/deleting_modal_window.js
+19
-0
No files found.
CONF_NGINX
0 → 100644
View file @
023e04f7
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;
}
DUMP.SQL
0 → 100644
View file @
023e04f7
-- 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`
);
--