Commit 502be714 authored by damianofalcioni's avatar damianofalcioni
Browse files

updated models

parent 0ae87794
......@@ -2,5 +2,5 @@
Prop3=19,2
[InternetShortcut]
IDList=
URL=http://127.0.0.1:8080/overview/
URL=http://127.0.0.1:8080/micro-service-controller-rest/
HotKey=0
-- --------------------------------------------------------
-- Host: 127.0.0.1
-- Server version: 5.7.29 - MySQL Community Server (GPL)
-- Server OS: Win32
-- HeidiSQL Version: 9.4.0.5125
-- --------------------------------------------------------
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET NAMES utf8 */;
/*!50503 SET NAMES utf8mb4 */;
/*!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' */;
-- Dumping database structure for model_questionnaire
DROP DATABASE IF EXISTS `model_questionnaire`;
CREATE DATABASE IF NOT EXISTS `model_questionnaire` /*!40100 DEFAULT CHARACTER SET latin1 */;
USE `model_questionnaire`;
-- Dumping structure for table model_questionnaire.mappings
DROP TABLE IF EXISTS `mappings`;
CREATE TABLE IF NOT EXISTS `mappings` (
`model_name` varchar(50) NOT NULL,
`model_instance_name` varchar(50) NOT NULL,
`questionnaire_id` varchar(50) NOT NULL,
`answer_json` longtext,
PRIMARY KEY (`model_name`,`model_instance_name`),
KEY `FK_mappings_questionnaires` (`questionnaire_id`),
CONSTRAINT `FK_mappings_questionnaires` FOREIGN KEY (`questionnaire_id`) REFERENCES `questionnaires` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table model_questionnaire.mappings: ~1 rows (approximately)
DELETE FROM `mappings`;
/*!40000 ALTER TABLE `mappings` DISABLE KEYS */;
INSERT INTO `mappings` (`model_name`, `model_instance_name`, `questionnaire_id`, `answer_json`) VALUES
('1.1 Supermarket - Fixed Binding', 'Rest Robot Arm', 'q1', '{"questions":{"q1":{"answer":"answer"},"q2":{"answer":"long answer"},"q3":{"answer":"a2"},"q4":{"answer":"a2"},"q5":{"answer":"a2"}}}');
/*!40000 ALTER TABLE `mappings` ENABLE KEYS */;
-- Dumping structure for table model_questionnaire.questionnaires
DROP TABLE IF EXISTS `questionnaires`;
CREATE TABLE IF NOT EXISTS `questionnaires` (
`id` varchar(50) NOT NULL,
`json` longtext NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- Dumping data for table model_questionnaire.questionnaires: ~1 rows (approximately)
DELETE FROM `questionnaires`;
/*!40000 ALTER TABLE `questionnaires` DISABLE KEYS */;
INSERT INTO `questionnaires` (`id`, `json`) VALUES
('q1', '{"results":{"lev0":{"scoreThreshold":0,"scoreDescription":"fail","scoreColor":"red"},"lev1":{"scoreThreshold":6,"scoreDescription":"sufficient","scoreColor":"yellow"}},"questionsOrder":["q1","q2","q3","q4","q5"],"questions":{"q1":{"question":"question 1 ?","image":"https://www.adoxx.org/live/image/layout_set_logo?img_id=179909&t=1591596811747","answer":{"type":0,"facets":{"placeholder":"put your answer here.."},"required":true},"scores":{"answer":1,"answet":1}},"q2":{"question":"question 2 ?","answer":{"type":1,"facets":{"placeholder":"put your long answer here..","minlength":10,"maxlength":100},"required":true},"scores":{"long answer":1,"long answet":1}},"q3":{"question":"question 3 ?","answer":{"type":2,"facets":{"answersOrder":["a1","a2"],"answers":{"a1":{"text":"response 1","image":"https://www.adoxx.org/live/image/layout_set_logo?img_id=179909&t=1591596811747"},"a2":{"text":"response 2"}}},"required":true},"scores":{"a1":-1,"a2":2}},"q4":{"question":"question 4 ?","answer":{"type":3,"facets":{"answersOrder":["a1","a2"],"answers":{"a1":{"text":"response 1"},"a2":{"text":"response 2"}}},"required":true},"scores":{"a1":-1,"a2":2}},"q5":{"question":"question 5 ?","answer":{"type":4,"facets":{"answersOrder":["a1","a2"],"answers":{"a1":{"text":"response 1","image":"https://www.adoxx.org/live/image/layout_set_logo?img_id=179909&t=1591596811747"},"a2":{"text":"response 2"}}},"required":true},"scores":{"a1":-1,"a2":2}}}}'),
('q2', '{}');
/*!40000 ALTER TABLE `questionnaires` ENABLE KEYS */;
/*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */;
/*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
......@@ -161,8 +161,8 @@ Servers\localhost\SSL_CA<|||>1<|||>
Servers\localhost\SSL_Cipher<|||>1<|||>
Servers\localhost\RefusedCount<|||>3<|||>8
Servers\localhost\ServerVersionFull<|||>1<|||>5.7.29 - MySQL Community Server (GPL)
Servers\localhost\ConnectCount<|||>3<|||>52
Servers\localhost\ConnectCount<|||>3<|||>53
Servers\localhost\ServerVersion<|||>3<|||>50729
Servers\localhost\LastConnect<|||>1<|||>2020-07-15 14:54:38
Servers\localhost\lastUsedDB<|||>1<|||>
Servers\localhost\LastConnect<|||>1<|||>2020-07-17 17:38:08
Servers\localhost\lastUsedDB<|||>1<|||>model_questionnaire
Servers\localhost\QueryHistory\3<|||>1<|||>2020-01-14 10:30:19|repo|0|SHOW WARNINGS
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment