-- phpMyAdmin SQL Dump -- version 4.1.12 -- http://www.phpmyadmin.net -- -- Servidor: localhost:3306 -- Tiempo de generación: 07-11-2014 a las 20:01:14 -- Versión del servidor: 5.5.34 -- Versión de PHP: 5.4.26 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Base de datos: `re_manager` -- -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `modulos` -- CREATE TABLE `modulos` ( `id` int(11) unsigned NOT NULL, `nombre` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', `descripcion` text COLLATE utf8_unicode_ci, `descripcion2` text COLLATE utf8_unicode_ci, `icono` varchar(30) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', `color` varchar(15) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', `orden` decimal(8,2) NOT NULL, `activo` tinyint(4) NOT NULL DEFAULT '1', `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP, `deleted_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `modulos_nombre_unique` (`nombre`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=COMPACT; -- -- Volcado de datos para la tabla `modulos` -- INSERT INTO `modulos` (`id`, `nombre`, `descripcion`, `descripcion2`, `icono`, `color`, `orden`, `activo`, `created_at`, `updated_at`, `deleted_at`) VALUES (1, 'CONFIGURACION', 'Admin. del Sistema ', 'Gestion Administrativa', 'fa fa-cog', 'tile-orange', 1.00, 1, '0000-00-00 00:00:00', '2014-06-14 04:00:57', NULL), (2, 'ORDERS', 'Control of Requierements', 'Buyer Auto Management', 'entypo-basket', 'tile-blue', 2.00, 0, '0000-00-00 00:00:00', '2014-11-08 00:57:31', NULL), (3, 'PRESUPUESTO', 'Control de Flujos', 'Administración de recursos corporativos', 'entypo-list-add', 'tile-red', 2.00, 0, '0000-00-00 00:00:00', '2014-06-14 04:01:21', NULL), (4, 'COMERCIAL', 'Gestion Comercial', 'Gestion de productos', 'fa fa-dollar', 'tile-black', 1.00, 1, '0000-00-00 00:00:00', '2014-11-08 00:57:27', NULL), (5, 'MERCADEO', 'Penetración del Mercado', 'Posicionamiento de marca', 'entypo-chart-line', 'tile-red', 2.50, 0, '0000-00-00 00:00:00', '2014-06-14 04:01:22', NULL), (6, 'CALL CENTER', 'Contact Center', 'Contacto con los clientes', 'entypo-phone', 'tile-aqua', 3.00, 0, '0000-00-00 00:00:00', '2014-06-14 04:01:23', NULL), (7, 'CARTERA', 'Control de la Deuda', 'Gestion de cobros', 'entypo-credit-card', 'tile-blue', 4.00, 0, '0000-00-00 00:00:00', '2014-06-14 04:01:23', NULL), (8, 'RECAUDOS', 'Captación de Recursos', 'Control y registro de pagos', 'fa fa-money', 'tile-cyan', 5.00, 0, '0000-00-00 00:00:00', '2014-06-14 04:01:24', NULL), (9, 'CEDI', 'Centro de Distribución', 'Gestión logística', 'fa fa-truck', 'tile-pink', 7.00, 0, '0000-00-00 00:00:00', '2014-06-14 04:01:25', NULL), (10, 'PRODUCCION', 'Productos Propios', 'Gestión de autoabastecimiento', 'fa fa-gears', 'tile-orange', 8.00, 0, '0000-00-00 00:00:00', '2014-06-14 03:54:16', NULL), (11, 'PERSONAL', 'Gestión Humana', 'Administración del talento humano', 'entypo-flow-tree', 'tile-green', 9.00, 0, '0000-00-00 00:00:00', '2014-06-14 03:54:16', NULL), (12, 'RIESGOS', 'Control de Accidentes', 'Protección a colaboradores', 'fa fa-exclamation-triangle', 'tile-brown', 10.00, 0, '0000-00-00 00:00:00', '2014-06-14 03:54:17', NULL), (13, 'ANALITICA', 'Información de Gestión', 'Apoyo a toma de decisiones', 'entypo-chart-area', 'tile-plum', 11.00, 0, '0000-00-00 00:00:00', '2014-06-14 03:54:18', NULL), (14, 'CLIENTES', 'Administración de Clientes', 'Localización', 'fa fa-users', 'tile-red', 12.00, 0, '0000-00-00 00:00:00', '2014-06-14 03:54:19', NULL), (15, 'ADMIN...', 'Areas Administrativas', 'Gestión de buen funcionamiento', 'fa fa-users', 'tile-default', 14.00, 0, '0000-00-00 00:00:00', '2014-06-14 03:54:20', NULL); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `opciones` -- CREATE TABLE `opciones` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `nombre` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', `modulo_id` smallint(5) unsigned NOT NULL, `parent` int(11) NOT NULL, `orden` decimal(5,3) NOT NULL, `url` varchar(155) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', `parametros` varchar(155) COLLATE utf8_unicode_ci DEFAULT '', `icono` varchar(20) COLLATE utf8_unicode_ci DEFAULT '', `activo` tinyint(1) NOT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=COMPACT AUTO_INCREMENT=12 ; -- -- Volcado de datos para la tabla `opciones` -- INSERT INTO `opciones` (`id`, `nombre`, `modulo_id`, `parent`, `orden`, `url`, `parametros`, `icono`, `activo`, `created_at`, `updated_at`) VALUES (1, 'GESTIÓN', 1, 0, 1.000, '', '', 'fa fa-cock', 1, '0000-00-00 00:00:00', '2014-11-07 18:31:20'), (2, 'USUARIOS', 1, 1, 1.002, '/dashboard?item=gestion&opt=usuarios', '', 'fa fa-user', 1, '0000-00-00 00:00:00', '2014-11-07 18:09:01'), (3, 'TIPOS DE USUARIO', 1, 1, 1.010, '/dashboard?item=gestion&opt=tipo_usuarios', '', 'fa fa-users', 1, '0000-00-00 00:00:00', '2014-11-08 00:56:05'), (4, 'OPCIONES DEL SISTEMA', 1, 1, 1.003, '/dashboard?item=gestion&opt=opciones', '', 'fa fa-list-ul', 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00'), (5, 'TEST', 2, 0, 0.000, '', '', '', 1, '0000-00-00 00:00:00', '2014-11-07 20:43:13'), (6, 'PARAMETROS', 4, 0, 1.000, '', '', 'fa fa-list-ul', 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00'), (7, 'PROCESOS', 4, 0, 2.000, '', '', 'fa fa-cog', 1, '0000-00-00 00:00:00', '2014-11-08 00:58:12'), (8, 'INFORMES', 4, 0, 3.000, '', '', 'fa fa-list', 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00'), (9, 'TIPO PROYECTOS', 4, 6, 1.010, '/dashboard?item=comercial.parametros&opt=tipo_proyecto', '', 'fa fa-list-ul', 1, '0000-00-00 00:00:00', '2014-11-08 00:56:24'), (10, 'TIPO INMUEBLES', 4, 6, 1.020, '/dashboard?item=comercial.parametros&opt=tipo_inmueble', '', 'fa fa-list-ul', 1, '0000-00-00 00:00:00', '2014-11-08 00:56:33'), (11, 'SOCIEDADES', 4, 6, 1.030, '/dashboard?item=comercial.parametros&opt=sociedades', '', 'fa fa-users', 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `roles_opciones` -- CREATE TABLE `roles_opciones` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `role_id` int(11) NOT NULL, `opcion_id` int(11) NOT NULL, `permisos` varchar(4) COLLATE utf8_unicode_ci DEFAULT '', `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=COMPACT AUTO_INCREMENT=48 ; -- -- Volcado de datos para la tabla `roles_opciones` -- INSERT INTO `roles_opciones` (`id`, `role_id`, `opcion_id`, `permisos`, `created_at`, `updated_at`) VALUES (28, 2, 1, '', '0000-00-00 00:00:00', '0000-00-00 00:00:00'), (29, 2, 3, '', '0000-00-00 00:00:00', '0000-00-00 00:00:00'), (32, 7, 1, '', '0000-00-00 00:00:00', '0000-00-00 00:00:00'), (33, 7, 2, '', '0000-00-00 00:00:00', '0000-00-00 00:00:00'), (38, 1, 1, '', '0000-00-00 00:00:00', '0000-00-00 00:00:00'), (39, 1, 2, '', '0000-00-00 00:00:00', '0000-00-00 00:00:00'), (40, 1, 4, '', '0000-00-00 00:00:00', '0000-00-00 00:00:00'), (41, 1, 3, '', '0000-00-00 00:00:00', '0000-00-00 00:00:00'), (42, 1, 6, '', '0000-00-00 00:00:00', '0000-00-00 00:00:00'), (43, 1, 9, '', '0000-00-00 00:00:00', '0000-00-00 00:00:00'), (44, 1, 10, '', '0000-00-00 00:00:00', '0000-00-00 00:00:00'), (45, 1, 11, '', '0000-00-00 00:00:00', '0000-00-00 00:00:00'), (46, 1, 7, '', '0000-00-00 00:00:00', '0000-00-00 00:00:00'), (47, 1, 8, '', '0000-00-00 00:00:00', '0000-00-00 00:00:00');