-
Notifications
You must be signed in to change notification settings - Fork 1
/
db.sql
70 lines (59 loc) · 2.29 KB
/
db.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
-- Adminer 4.2.5 MySQL dump
SET NAMES utf8;
SET time_zone = '+00:00';
SET foreign_key_checks = 0;
SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO';
CREATE DATABASE `reactive` /*!40100 DEFAULT CHARACTER SET latin1 */;
USE `reactive`;
DROP TABLE IF EXISTS `pool`;
CREATE TABLE `pool` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`title` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `UNIQ_AF91A9862B36786B` (`title`),
KEY `IDX_AF91A986A76ED395` (`user_id`),
CONSTRAINT `FK_AF91A986A76ED395` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
INSERT INTO `pool` (`id`, `user_id`, `title`) VALUES
(1, NULL, 'Checklist Asignaciones del Desafio');
DROP TABLE IF EXISTS `question`;
CREATE TABLE `question` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`pool_id` int(11) DEFAULT NULL,
`name` longtext COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`id`),
KEY `IDX_B6F7494E7B3406DF` (`pool_id`),
CONSTRAINT `FK_B6F7494E7B3406DF` FOREIGN KEY (`pool_id`) REFERENCES `pool` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
INSERT INTO `question` (`id`, `pool_id`, `name`) VALUES
(1, 1, '¿Formulario Estilo seleccion multiple?'),
(2, 1, '¿Procesa información?'),
(3, 1, '¿Generaciòn dinámica de formularios extras?'),
(4, 1, '¿Muestra resultados y totalizaciones?'),
(5, 1, '¿Manejo de autenticacion?');
DROP TABLE IF EXISTS `revision`;
CREATE TABLE `revision` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`question` int(11) NOT NULL,
`answer` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
INSERT INTO `revision` (`id`, `question`, `answer`) VALUES
(1, 1, 1),
(2, 2, 1),
(3, 3, 1),
(4, 4, 1),
(5, 5, 2);
DROP TABLE IF EXISTS `user`;
CREATE TABLE `user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(200) COLLATE utf8_unicode_ci NOT NULL,
`username` varchar(60) COLLATE utf8_unicode_ci NOT NULL,
`password` varchar(64) COLLATE utf8_unicode_ci NOT NULL,
`email` varchar(60) COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `UNIQ_8D93D649F85E0677` (`username`),
UNIQUE KEY `UNIQ_8D93D649E7927C74` (`email`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- 2017-03-25 03:20:08