1+ # noinspection SqlNoDataSourceInspectionForFile
2+
3+ CREATE TABLE `glpi_plugin_satisfaction_surveys ` (
4+ ` id` int (11 ) NOT NULL AUTO_INCREMENT,
5+ ` entities_id` int (11 ) NOT NULL DEFAULT 0 ,
6+ ` is_recursive` tinyint (1 ) NOT NULL default ' 0' ,
7+ ` is_active` tinyint (1 ) NOT NULL default ' 0' ,
8+ ` name` varchar (255 ) collate utf8_unicode_ci default NULL ,
9+ ` comment` text collate utf8_unicode_ci default NULL ,
10+ ` date_creation` timestamp NULL DEFAULT NULL ,
11+ ` date_mod` timestamp NULL DEFAULT NULL ,
12+ ` reminders_days` int (11 ) NOT NULL default ' 30' ,
13+ PRIMARY KEY (` id` )
14+ ) ENGINE = InnoDB DEFAULT CHARSET= utf8 COLLATE= utf8_unicode_ci;
15+
16+ CREATE TABLE `glpi_plugin_satisfaction_surveyquestions ` (
17+ ` id` int (11 ) NOT NULL AUTO_INCREMENT,
18+ ` plugin_satisfaction_surveys_id` int (11 ) NOT NULL ,
19+ ` name` text collate utf8_unicode_ci default NULL ,
20+ ` type` varchar (255 ) collate utf8_unicode_ci default NULL ,
21+ ` comment` text collate utf8_unicode_ci default NULL ,
22+ ` number` int (11 ) NOT NULL DEFAULT 0 ,
23+ ` default_value` int (11 ) NOT NULL DEFAULT 1 ,
24+ PRIMARY KEY (` id` )
25+ ) ENGINE = InnoDB DEFAULT CHARSET= utf8 COLLATE= utf8_unicode_ci;
26+
27+ CREATE TABLE `glpi_plugin_satisfaction_surveyanswers ` (
28+ ` id` int (11 ) NOT NULL AUTO_INCREMENT,
29+ ` answer` text collate utf8_unicode_ci default NULL ,
30+ ` comment` text collate utf8_unicode_ci default NULL ,
31+ ` plugin_satisfaction_surveys_id` int (11 ) NOT NULL ,
32+ ` ticketsatisfactions_id` int (11 ) NOT NULL ,
33+ PRIMARY KEY (` id` )
34+ ) ENGINE = InnoDB DEFAULT CHARSET= utf8 COLLATE= utf8_unicode_ci;
35+
36+ DROP TABLE IF EXISTS ` glpi_plugin_satisfaction_surveytranslations` ;
37+ CREATE TABLE `glpi_plugin_satisfaction_surveytranslations ` (
38+ ` id` int (11 ) NOT NULL AUTO_INCREMENT,
39+ ` plugin_satisfaction_surveys_id` int (11 ) NOT NULL DEFAULT ' 0' ,
40+ ` glpi_plugin_satisfaction_surveyquestions_id` int (11 ) NOT NULL DEFAULT ' 0' ,
41+ ` language` varchar (5 ) COLLATE utf8_unicode_ci DEFAULT NULL ,
42+ ` value` text COLLATE utf8_unicode_ci,
43+ PRIMARY KEY (` id` ),
44+ UNIQUE KEY ` unicity` (` plugin_satisfaction_surveys_id` ,` glpi_plugin_satisfaction_surveyquestions_id` ,` language` ),
45+ KEY ` typeid` (` plugin_satisfaction_surveys_id` ,` glpi_plugin_satisfaction_surveyquestions_id` ),
46+ KEY ` language` (` language` )
47+ ) ENGINE= InnoDB DEFAULT CHARSET= utf8 COLLATE= utf8_unicode_ci;
48+
49+ DROP TABLE IF EXISTS ` glpi_plugin_satisfaction_surveyreminders` ;
50+ CREATE TABLE `glpi_plugin_satisfaction_surveyreminders ` (
51+ ` id` int (11 ) NOT NULL AUTO_INCREMENT,
52+ ` plugin_satisfaction_surveys_id` int (11 ) NOT NULL ,
53+ ` name` text collate utf8_unicode_ci default NULL ,
54+ ` duration_type` int (11 ) NOT NULL ,
55+ ` duration` int (11 ) NOT NULL ,
56+ ` is_active` tinyint (1 ) NOT NULL default ' 0' ,
57+ ` comment` text collate utf8_unicode_ci default NULL ,
58+ PRIMARY KEY (` id` )
59+ ) ENGINE = InnoDB DEFAULT CHARSET= utf8 COLLATE= utf8_unicode_ci;
60+
61+ DROP TABLE IF EXISTS ` glpi_plugin_satisfaction_reminders` ;
62+ CREATE TABLE `glpi_plugin_satisfaction_reminders ` (
63+ ` id` int (11 ) NOT NULL AUTO_INCREMENT,
64+ ` type` int (11 ) NOT NULL DEFAULT ' 0' ,
65+ ` tickets_id` int (11 ) NOT NULL ,
66+ ` date` timestamp NULL DEFAULT NULL ,
67+ PRIMARY KEY (` id` ),
68+ UNIQUE KEY ` unicity` (` tickets_id` )
69+ ) ENGINE = InnoDB DEFAULT CHARSET= utf8 COLLATE= utf8_unicode_ci;
0 commit comments