text: -- phpMyAdmin SQL Dump
  -- version 4.6.6
  -- https://www.phpmyadmin.net/
  --
  -- Servidor: localhost
  -- Tiempo de generación: 20-02-2017 a las 01:45:22
  -- Versión del servidor: 10.1.21-MariaDB
  -- Versión de PHP: 7.1.2
  
  SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
  SET time_zone = "+00:00";
  
  
  /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
  /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
  /*!40101 SET NAMES utf8mb4 */;
  
  --
  -- Base de datos: `D-admin`
  --
  
  -- --------------------------------------------------------
  
  --
  -- Estructura de tabla para la tabla `actions`
  --
  
  CREATE TABLE `actions` (
    `id` int(10) UNSIGNED NOT NULL,
    `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
    `created_at` timestamp NULL DEFAULT NULL,
    `updated_at` timestamp NULL DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  
  --
  -- Volcado de datos para la tabla `actions`
  --
  
  INSERT INTO `actions` (`id`, `name`, `created_at`, `updated_at`) VALUES
  (1, 'index', NULL, NULL),
  (2, 'create', NULL, NULL),
  (3, 'show', NULL, NULL),
  (4, 'edit', NULL, NULL),
  (5, 'delete', NULL, NULL);
  
  -- --------------------------------------------------------
  
  --
  -- Estructura de tabla para la tabla `administrators`
  --
  
  CREATE TABLE `administrators` (
    `id` int(10) UNSIGNED NOT NULL,
    `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
    `email` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
    `password` varchar(60) COLLATE utf8_unicode_ci NOT NULL,
    `role_id` int(10) UNSIGNED NOT NULL,
    `remember_token` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
    `created_at` timestamp NULL DEFAULT NULL,
    `updated_at` timestamp NULL DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  
  --
  -- Volcado de datos para la tabla `administrators`
  --
  
  INSERT INTO `administrators` (`id`, `name`, `email`, `password`, `role_id`, `remember_token`, `created_at`, `updated_at`) VALUES
  (1, 'Administrator', 'admin@beeringhoney.com', '$2y$10$FKfXH8WHibji6KMEbcc6W.Yhgx6hbwjzrQx.sk5UE/mx6yszE8JR.', 1, 'kFiA9gWgwChahrlfDTfzwZDg65WSLcyemQUbyscW8JAuGgRp3LrTHfvcbFGZ', NULL, '2017-02-20 04:20:26');
  
  -- --------------------------------------------------------
  
  --
  -- Estructura de tabla para la tabla `beerings`
  --
  
  CREATE TABLE `beerings` (
    `id` int(10) UNSIGNED NOT NULL,
    `title` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
    `objective` text COLLATE utf8_unicode_ci NOT NULL,
    `description` text COLLATE utf8_unicode_ci NOT NULL,
    `amount` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
    `created_at` timestamp NULL DEFAULT NULL,
    `updated_at` timestamp NULL DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  
  --
  -- Volcado de datos para la tabla `beerings`
  --
  
  INSERT INTO `beerings` (`id`, `title`, `objective`, `description`, `amount`, `created_at`, `updated_at`) VALUES
  (2, 'Beering 1', '<p>Objetivo&nbsp;Beering 1</p>', '<p><img style=\"float: left;\" src=\"http://beeringhoney.com/images/oct-nov2007-2520086.jpg?crc=258553730\" alt=\"\" width=\"270\" height=\"203\" />&nbsp; &nbsp; &nbsp; Descripci&oacute;n Beering 1</p>', '300000', '2017-01-17 06:27:30', '2017-01-24 05:42:48'),
  (3, 'Beering 2', '<p>Objetivo del beering 2</p>', '<p>Descripci&oacute;n del beering 2</p>', '150000', '2017-02-01 09:08:14', '2017-02-01 09:08:14');
  
  -- --------------------------------------------------------
  
  --
  -- Estructura de tabla para la tabla `countries`
  --
  
  CREATE TABLE `countries` (
    `id` int(10) UNSIGNED NOT NULL,
    `code` varchar(5) COLLATE utf8_unicode_ci NOT NULL,
    `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  
  --
  -- Volcado de datos para la tabla `countries`
  --
  
  INSERT INTO `countries` (`id`, `code`, `name`) VALUES
  (1, 'AF', 'Afghanistan'),
  (2, 'AL', 'Albania'),
  (3, 'DZ', 'Algeria'),
  (4, 'DS', 'American Samoa'),
  (5, 'AD', 'Andorra'),
  (6, 'AO', 'Angola'),
  (7, 'AI', 'Anguilla'),
  (8, 'AQ', 'Antarctica'),
  (9, 'AG', 'Antigua and Barbuda'),
  (10, 'AR', 'Argentina'),
  (11, 'AM', 'Armenia'),
  (12, 'AW', 'Aruba'),
  (13, 'AU', 'Australia'),
  (14, 'AT', 'Austria'),
  (15, 'AZ', 'Azerbaijan'),
  (16, 'BS', 'Bahamas'),
  (17, 'BH', 'Bahrain'),
  (18, 'BD', 'Bangladesh'),
  (19, 'BB', 'Barbados'),
  (20, 'BY', 'Belarus'),
  (21, 'BE', 'Belgium'),
  (22, 'BZ', 'Belize'),
  (23, 'BJ', 'Benin'),
  (24, 'BM', 'Bermuda'),
  (25, 'BT', 'Bhutan'),
  (26, 'BO', 'Bolivia'),
  (27, 'BA', 'Bosnia and Herzegovina'),
  (28, 'BW', 'Botswana'),
  (29, 'BV', 'Bouvet Island'),
  (30, 'BR', 'Brazil'),
  (31, 'IO', 'British Indian Ocean Territory'),
  (32, 'BN', 'Brunei Darussalam'),
  (33, 'BG', 'Bulgaria'),
  (34, 'BF', 'Burkina Faso'),
  (35, 'BI', 'Burundi'),
  (36, 'KH', 'Cambodia'),
  (37, 'CM', 'Cameroon'),
  (38, 'CA', 'Canada'),
  (39, 'CV', 'Cape Verde'),
  (40, 'KY', 'Cayman Islands'),
  (41, 'CF', 'Central African Republic'),
  (42, 'TD', 'Chad'),
  (43, 'CL', 'Chile'),
  (44, 'CN', 'China'),
  (45, 'CX', 'Christmas Island'),
  (46, 'CC', 'Cocos (Keeling) Islands'),
  (47, 'CO', 'Colombia'),
  (48, 'KM', 'Comoros'),
  (49, 'CG', 'Congo'),
  (50, 'CK', 'Cook Islands'),
  (51, 'CR', 'Costa Rica'),
  (52, 'HR', 'Croatia (Hrvatska)'),
  (53, 'CU', 'Cuba'),
  (54, 'CY', 'Cyprus'),
  (55, 'CZ', 'Czech Republic'),
  (56, 'DK', 'Denmark'),
  (57, 'DJ', 'Djibouti'),
  (58, 'DM', 'Dominica'),
  (59, 'DO', 'Dominican Republic'),
  (60, 'TP', 'East Timor'),
  (61, 'EC', 'Ecuador'),
  (62, 'EG', 'Egypt'),
  (63, 'SV', 'El Salvador'),
  (64, 'GQ', 'Equatorial Guinea'),
  (65, 'ER', 'Eritrea'),
  (66, 'EE', 'Estonia'),
  (67, 'ET', 'Ethiopia'),
  (68, 'FK', 'Falkland Islands (Malvinas)'),
  (69, 'FO', 'Faroe Islands'),
  (70, 'FJ', 'Fiji'),
  (71, 'FI', 'Finland'),
  (72, 'FR', 'France'),
  (73, 'FX', 'France, Metropolitan'),
  (74, 'GF', 'French Guiana'),
  (75, 'PF', 'French Polynesia'),
  (76, 'TF', 'French Southern Territories'),
  (77, 'GA', 'Gabon'),
  (78, 'GM', 'Gambia'),
  (79, 'GE', 'Georgia'),
  (80, 'DE', 'Germany'),
  (81, 'GH', 'Ghana'),
  (82, 'GI', 'Gibraltar'),
  (83, 'GK', 'Guernsey'),
  (84, 'GR', 'Greece'),
  (85, 'GL', 'Greenland'),
  (86, 'GD', 'Grenada'),
  (87, 'GP', 'Guadeloupe'),
  (88, 'GU', 'Guam'),
  (89, 'GT', 'Guatemala'),
  (90, 'GN', 'Guinea'),
  (91, 'GW', 'Guinea-Bissau'),
  (92, 'GY', 'Guyana'),
  (93, 'HT', 'Haiti'),
  (94, 'HM', 'Heard and Mc Donald Islands'),
  (95, 'HN', 'Honduras'),
  (96, 'HK', 'Hong Kong'),
  (97, 'HU', 'Hungary'),
  (98, 'IS', 'Iceland'),
  (99, 'IN', 'India'),
  (100, 'IM', 'Isle of Man'),
  (101, 'ID', 'Indonesia'),
  (102, 'IR', 'Iran (Islamic Republic of)'),
  (103, 'IQ', 'Iraq'),
  (104, 'IE', 'Ireland'),
  (105, 'IL', 'Israel'),
  (106, 'IT', 'Italy'),
  (107, 'CI', 'Ivory Coast'),
  (108, 'JE', 'Jersey'),
  (109, 'JM', 'Jamaica'),
  (110, 'JP', 'Japan'),
  (111, 'JO', 'Jordan'),
  (112, 'KZ', 'Kazakhstan'),
  (113, 'KE', 'Kenya'),
  (114, 'KI', 'Kiribati'),
  (115, 'KP', 'Korea, Democratic People\'s Republic of'),
  (116, 'KR', 'Korea, Republic of'),
  (117, 'XK', 'Kosovo'),
  (118, 'KW', 'Kuwait'),
  (119, 'KG', 'Kyrgyzstan'),
  (120, 'LA', 'Lao People\'s Democratic Republic'),
  (121, 'LV', 'Latvia'),
  (122, 'LB', 'Lebanon'),
  (123, 'LS', 'Lesotho'),
  (124, 'LR', 'Liberia'),
  (125, 'LY', 'Libyan Arab Jamahiriya'),
  (126, 'LI', 'Liechtenstein'),
  (127, 'LT', 'Lithuania'),
  (128, 'LU', 'Luxembourg'),
  (129, 'MO', 'Macau'),
  (130, 'MK', 'Macedonia'),
  (131, 'MG', 'Madagascar'),
  (132, 'MW', 'Malawi'),
  (133, 'MY', 'Malaysia'),
  (134, 'MV', 'Maldives'),
  (135, 'ML', 'Mali'),
  (136, 'MT', 'Malta'),
  (137, 'MH', 'Marshall Islands'),
  (138, 'MQ', 'Martinique'),
  (139, 'MR', 'Mauritania'),
  (140, 'MU', 'Mauritius'),
  (141, 'TY', 'Mayotte'),
  (142, 'MX', 'Mexico'),
  (143, 'FM', 'Micronesia, Federated States of'),
  (144, 'MD', 'Moldova, Republic of'),
  (145, 'MC', 'Monaco'),
  (146, 'MN', 'Mongolia'),
  (147, 'ME', 'Montenegro'),
  (148, 'MS', 'Montserrat'),
  (149, 'MA', 'Morocco'),
  (150, 'MZ', 'Mozambique'),
  (151, 'MM', 'Myanmar'),
  (152, 'NA', 'Namibia'),
  (153, 'NR', 'Nauru'),
  (154, 'NP', 'Nepal'),
  (155, 'NL', 'Netherlands'),
  (156, 'AN', 'Netherlands Antilles'),
  (157, 'NC', 'New Caledonia'),
  (158, 'NZ', 'New Zealand'),
  (159, 'NI', 'Nicaragua'),
  (160, 'NE', 'Niger'),
  (161, 'NG', 'Nigeria'),
  (162, 'NU', 'Niue'),
  (163, 'NF', 'Norfolk Island'),
  (164, 'MP', 'Northern Mariana Islands'),
  (165, 'NO', 'Norway'),
  (166, 'OM', 'Oman'),
  (167, 'PK', 'Pakistan'),
  (168, 'PW', 'Palau'),
  (169, 'PS', 'Palestine'),
  (170, 'PA', 'Panama'),
  (171, 'PG', 'Papua New Guinea'),
  (172, 'PY', 'Paraguay'),
  (173, 'PE', 'Peru'),
  (174, 'PH', 'Philippines'),
  (175, 'PN', 'Pitcairn'),
  (176, 'PL', 'Poland'),
  (177, 'PT', 'Portugal'),
  (178, 'PR', 'Puerto Rico'),
  (179, 'QA', 'Qatar'),
  (180, 'RE', 'Reunion'),
  (181, 'RO', 'Romania'),
  (182, 'RU', 'Russian Federation'),
  (183, 'RW', 'Rwanda'),
  (184, 'KN', 'Saint Kitts and Nevis'),
  (185, 'LC', 'Saint Lucia'),
  (186, 'VC', 'Saint Vincent and the Grenadines'),
  (187, 'WS', 'Samoa'),
  (188, 'SM', 'San Marino'),
  (189, 'ST', 'Sao Tome and Principe'),
  (190, 'SA', 'Saudi Arabia'),
  (191, 'SN', 'Senegal'),
  (192, 'RS', 'Serbia'),
  (193, 'SC', 'Seychelles'),
  (194, 'SL', 'Sierra Leone'),
  (195, 'SG', 'Singapore'),
  (196, 'SK', 'Slovakia'),
  (197, 'SI', 'Slovenia'),
  (198, 'SB', 'Solomon Islands'),
  (199, 'SO', 'Somalia'),
  (200, 'ZA', 'South Africa'),
  (201, 'GS', 'South Georgia South Sandwich Islands'),
  (202, 'ES', 'Spain'),
  (203, 'LK', 'Sri Lanka'),
  (204, 'SH', 'St. Helena'),
  (205, 'PM', 'St. Pierre and Miquelon'),
  (206, 'SD', 'Sudan'),
  (207, 'SR', 'Suriname'),
  (208, 'SJ', 'Svalbard and Jan Mayen Islands'),
  (209, 'SZ', 'Swaziland'),
  (210, 'SE', 'Sweden'),
  (211, 'CH', 'Switzerland'),
  (212, 'SY', 'Syrian Arab Republic'),
  (213, 'TW', 'Taiwan'),
  (214, 'TJ', 'Tajikistan'),
  (215, 'TZ', 'Tanzania, United Republic of'),
  (216, 'TH', 'Thailand'),
  (217, 'TG', 'Togo'),
  (218, 'TK', 'Tokelau'),
  (219, 'TO', 'Tonga'),
  (220, 'TT', 'Trinidad and Tobago'),
  (221, 'TN', 'Tunisia'),
  (222, 'TR', 'Turkey'),
  (223, 'TM', 'Turkmenistan'),
  (224, 'TC', 'Turks and Caicos Islands'),
  (225, 'TV', 'Tuvalu'),
  (226, 'UG', 'Uganda'),
  (227, 'UA', 'Ukraine'),
  (228, 'AE', 'United Arab Emirates'),
  (229, 'GB', 'United Kingdom'),
  (230, 'US', 'United States'),
  (231, 'UM', 'United States minor outlying islands'),
  (232, 'UY', 'Uruguay'),
  (233, 'UZ', 'Uzbekistan'),
  (234, 'VU', 'Vanuatu'),
  (235, 'VA', 'Vatican City State'),
  (236, 'VE', 'Venezuela'),
  (237, 'VN', 'Vietnam'),
  (238, 'VG', 'Virgin Islands (British)'),
  (239, 'VI', 'Virgin Islands (U.S.)'),
  (240, 'WF', 'Wallis and Futuna Islands'),
  (241, 'EH', 'Western Sahara'),
  (242, 'YE', 'Yemen'),
  (243, 'ZR', 'Zaire'),
  (244, 'ZM', 'Zambia'),
  (245, 'ZW', 'Zimbabwe');
  
  -- --------------------------------------------------------
  
  --
  -- Estructura de tabla para la tabla `donations`
  --
  
  CREATE TABLE `donations` (
    `id` int(10) UNSIGNED NOT NULL,
    `date` datetime NOT NULL,
    `amount` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
    `user_id` int(10) UNSIGNED NOT NULL,
    `created_at` timestamp NULL DEFAULT NULL,
    `updated_at` timestamp NULL DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  
  --
  -- Volcado de datos para la tabla `donations`
  --
  
  INSERT INTO `donations` (`id`, `date`, `amount`, `user_id`, `created_at`, `updated_at`) VALUES
  (1, '2017-01-18 00:00:00', '20', 1, '2017-01-18 05:00:00', '2017-01-18 05:00:00'),
  (2, '2017-01-16 00:00:00', '50', 1, '2017-01-16 05:00:00', '2017-01-16 05:00:00'),
  (3, '2017-02-15 00:00:00', '100', 1, NULL, NULL),
  (4, '2017-03-20 00:00:00', '90', 1, NULL, NULL);
  
  -- --------------------------------------------------------
  
  --
  -- Estructura de tabla para la tabla `groups`
  --
  
  CREATE TABLE `groups` (
    `id` int(10) UNSIGNED NOT NULL,
    `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
    `beering_id` int(10) UNSIGNED NOT NULL,
    `about` text COLLATE utf8_unicode_ci NOT NULL,
    `record` text COLLATE utf8_unicode_ci NOT NULL,
    `created_at` timestamp NULL DEFAULT NULL,
    `updated_at` timestamp NULL DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  
  --
  -- Volcado de datos para la tabla `groups`
  --
  
  INSERT INTO `groups` (`id`, `name`, `beering_id`, `about`, `record`, `created_at`, `updated_at`) VALUES
  (2, 'Grupo 1', 2, '<p>Acerca del grupo 1</p>', '<p>Historial&nbsp;del grupo 1</p>', '2017-01-17 08:44:04', '2017-01-17 08:44:04'),
  (3, 'Grupo 2', 2, '<p>Acerca del&nbsp;Grupo 2</p>', '<p>Historial&nbsp;del&nbsp;Grupo 2</p>', '2017-01-17 08:46:22', '2017-01-17 08:46:22');
  
  -- --------------------------------------------------------
  
  --
  -- Estructura de tabla para la tabla `migrations`
  --
  
  CREATE TABLE `migrations` (
    `migration` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
    `batch` int(11) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  
  --
  -- Volcado de datos para la tabla `migrations`
  --
  
  INSERT INTO `migrations` (`migration`, `batch`) VALUES
  ('2016_09_09_100000_create_actions_table', 1),
  ('2016_09_09_200000_create_modules_table', 1),
  ('2016_09_09_300000_create_permissions_table', 1),
  ('2016_09_09_400000_create_roles_table', 1),
  ('2016_09_09_500000_create_permission_role_table', 1),
  ('2016_09_09_600000_create_password_resets_table', 1),
  ('2016_09_09_700000_create_administrators_table', 1),
  ('2016_09_20_223543_create_countries_table', 2),
  ('2016_09_20_223544_create_profiles_table', 2),
  ('2016_09_20_223240_create_beerings_table', 3),
  ('2016_09_20_223413_create_groups_table', 3),
  ('2016_09_20_223552_create_donations_table', 3),
  ('2016_09_20_223545_create_users_table', 4),
  ('2017_01_08_164139_add_fields_to_groups_table', 5),
  ('2017_01_08_173908_add_fields_to_beerings_table', 6);
  
  -- --------------------------------------------------------
  
  --
  -- Estructura de tabla para la tabla `modules`
  --
  
  CREATE TABLE `modules` (
    `id` int(10) UNSIGNED NOT NULL,
    `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
    `icon` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
    `position` int(11) NOT NULL DEFAULT '0',
    `created_at` timestamp NULL DEFAULT NULL,
    `updated_at` timestamp NULL DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  
  --
  -- Volcado de datos para la tabla `modules`
  --
  
  INSERT INTO `modules` (`id`, `name`, `icon`, `position`, `created_at`, `updated_at`) VALUES
  (1, 'administrators', 'user-secret', 99, NULL, NULL),
  (2, 'roles', 'list', 100, NULL, NULL),
  (3, 'users', 'user', 0, NULL, NULL),
  (4, 'groups', 'users', 0, NULL, NULL),
  (5, 'beerings', 'heart', 0, NULL, NULL),
  (6, 'donations', 'money', 0, NULL, NULL);
  
  -- --------------------------------------------------------
  
  --
  -- Estructura de tabla para la tabla `password_resets`
  --
  
  CREATE TABLE `password_resets` (
    `email` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
    `token` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
    `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  
  -- --------------------------------------------------------
  
  --
  -- Estructura de tabla para la tabla `permissions`
  --
  
  CREATE TABLE `permissions` (
    `id` int(10) UNSIGNED NOT NULL,
    `action_id` int(10) UNSIGNED NOT NULL,
    `module_id` int(10) UNSIGNED NOT NULL,
    `created_at` timestamp NULL DEFAULT NULL,
    `updated_at` timestamp NULL DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  
  --
  -- Volcado de datos para la tabla `permissions`
  --
  
  INSERT INTO `permissions` (`id`, `action_id`, `module_id`, `created_at`, `updated_at`) VALUES
  (1, 1, 1, NULL, NULL),
  (2, 2, 1, NULL, NULL),
  (3, 3, 1, NULL, NULL),
  (4, 4, 1, NULL, NULL),
  (5, 5, 1, NULL, NULL),
  (6, 1, 2, NULL, NULL),
  (7, 2, 2, NULL, NULL),
  (8, 3, 2, NULL, NULL),
  (9, 4, 2, NULL, NULL),
  (10, 5, 2, NULL, NULL),
  (11, 1, 3, NULL, NULL),
  (12, 2, 3, NULL, NULL),
  (13, 3, 3, NULL, NULL),
  (14, 4, 3, NULL, NULL),
  (15, 5, 3, NULL, NULL),
  (16, 1, 4, NULL, NULL),
  (17, 2, 4, NULL, NULL),
  (18, 3, 4, NULL, NULL),
  (19, 4, 4, NULL, NULL),
  (20, 5, 4, NULL, NULL),
  (21, 1, 5, NULL, NULL),
  (22, 2, 5, NULL, NULL),
  (23, 3, 5, NULL, NULL),
  (24, 4, 5, NULL, NULL),
  (25, 5, 5, NULL, NULL),
  (26, 1, 6, NULL, NULL),
  (27, 3, 6, NULL, NULL);
  
  -- --------------------------------------------------------
  
  --
  -- Estructura de tabla para la tabla `permission_role`
  --
  
  CREATE TABLE `permission_role` (
    `permission_id` int(10) UNSIGNED NOT NULL,
    `role_id` int(10) UNSIGNED NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  
  --
  -- Volcado de datos para la tabla `permission_role`
  --
  
  INSERT INTO `permission_role` (`permission_id`, `role_id`) VALUES
  (1, 1),
  (2, 1),
  (3, 1),
  (4, 1),
  (5, 1),
  (6, 1),
  (7, 1),
  (8, 1),
  (9, 1),
  (10, 1),
  (11, 1),
  (12, 1),
  (13, 1),
  (14, 1),
  (15, 1),
  (16, 1),
  (17, 1),
  (18, 1),
  (19, 1),
  (20, 1),
  (21, 1),
  (22, 1),
  (23, 1),
  (24, 1),
  (25, 1),
  (26, 1),
  (27, 1);
  
  -- --------------------------------------------------------
  
  --
  -- Estructura de tabla para la tabla `profiles`
  --
  
  CREATE TABLE `profiles` (
    `id` int(10) UNSIGNED NOT NULL,
    `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
    `lastname` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
    `email` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
    `phone` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
    `occupation` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
    `about_you` text COLLATE utf8_unicode_ci NOT NULL,
    `citizenship` int(10) UNSIGNED NOT NULL,
    `country` int(10) UNSIGNED NOT NULL,
    `know_us` text COLLATE utf8_unicode_ci NOT NULL,
    `created_at` timestamp NULL DEFAULT NULL,
    `updated_at` timestamp NULL DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  
  --
  -- Volcado de datos para la tabla `profiles`
  --
  
  INSERT INTO `profiles` (`id`, `name`, `lastname`, `email`, `phone`, `occupation`, `about_you`, `citizenship`, `country`, `know_us`, `created_at`, `updated_at`) VALUES
  (1, 'Fabian', 'Archila', 'arley_1301@hotmail.com', '3153237079', 'Ingeniero de sistemas', 'Yo soy yo.', 1, 1, 'Por medio de la página web', '2017-01-18 09:01:45', '2017-01-18 09:01:45'),
  (2, 'Juan Manuel', 'Perez Sanchez', 'juan.perez@micorreo.com', '3164647746', 'Policia', 'Acerca de mi.', 236, 47, 'Como los conocí.', '2017-02-20 04:20:07', '2017-02-20 04:38:03'),
  (5, 'Fabian', 'Archila', 'arleyarchilaherreno@gmail.com', '3283774664', 'Entrenador personal', 'Algo acerca de mi.', 1, 1, 'Así los conocí.', '2017-02-20 06:33:50', '2017-02-20 06:33:50');
  
  -- --------------------------------------------------------
  
  --
  -- Estructura de tabla para la tabla `roles`
  --
  
  CREATE TABLE `roles` (
    `id` int(10) UNSIGNED NOT NULL,
    `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
    `created_at` timestamp NULL DEFAULT NULL,
    `updated_at` timestamp NULL DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  
  --
  -- Volcado de datos para la tabla `roles`
  --
  
  INSERT INTO `roles` (`id`, `name`, `created_at`, `updated_at`) VALUES
  (1, 'admin', NULL, NULL);
  
  -- --------------------------------------------------------
  
  --
  -- Estructura de tabla para la tabla `users`
  --
  
  CREATE TABLE `users` (
    `id` int(10) UNSIGNED NOT NULL,
    `email` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
    `password` varchar(60) COLLATE utf8_unicode_ci NOT NULL,
    `group_id` int(10) UNSIGNED NOT NULL,
    `profile_id` int(10) UNSIGNED NOT NULL,
    `remember_token` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
    `created_at` timestamp NULL DEFAULT NULL,
    `updated_at` timestamp NULL DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  
  --
  -- Volcado de datos para la tabla `users`
  --
  
  INSERT INTO `users` (`id`, `email`, `password`, `group_id`, `profile_id`, `remember_token`, `created_at`, `updated_at`) VALUES
  (1, 'arley_1301@hotmail.com', '$2y$10$xQ2uvjcODJCsDNW1CFjxZ.VfUAyNn2/jHQA2nuyr4lXXYUs5rFFcG', 3, 1, 'NHvEK9rgzhgi5qhK7hhSv2NhWQ1RhjLcpdF1MA2b4DYw6R6rGtqlp9sxQsS7', '2017-01-18 09:01:45', '2017-02-20 04:18:34'),
  (2, 'juan.perez@micorreo.com', '$2y$10$7bMgI4/Bvnuhwz37EVKd7Ol9tOwE04mdo7bNNda/ORvGCa9tzSPA2', 2, 2, 'E7JVy3TozjY4fxXw2DJmVexwQWpUFngHe67QeD6yg2tym6mYZ9hgoi95mPIL', '2017-02-20 04:20:07', '2017-02-20 06:26:57'),
  (5, 'arleyarchilaherreno@gmail.com', '$2y$10$BPPE7hN4d5gmI/eSeTvcbO.555Ei1vhPC6uODfT0Ge/tb6ddz4Cga', 2, 5, NULL, '2017-02-20 06:33:51', '2017-02-20 06:33:51');
  
  --
  -- Índices para tablas volcadas
  --
  
  --
  -- Indices de la tabla `actions`
  --
  ALTER TABLE `actions`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indices de la tabla `administrators`
  --
  ALTER TABLE `administrators`
    ADD PRIMARY KEY (`id`),
    ADD UNIQUE KEY `administrators_email_unique` (`email`),
    ADD KEY `administrators_role_id_foreign` (`role_id`);
  
  --
  -- Indices de la tabla `beerings`
  --
  ALTER TABLE `beerings`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indices de la tabla `countries`
  --
  ALTER TABLE `countries`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indices de la tabla `donations`
  --
  ALTER TABLE `donations`
    ADD PRIMARY KEY (`id`),
    ADD KEY `donations_user_id_foreign` (`user_id`);
  
  --
  -- Indices de la tabla `groups`
  --
  ALTER TABLE `groups`
    ADD PRIMARY KEY (`id`),
    ADD KEY `groups_beering_id_foreign` (`beering_id`);
  
  --
  -- Indices de la tabla `modules`
  --
  ALTER TABLE `modules`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indices de la tabla `password_resets`
  --
  ALTER TABLE `password_resets`
    ADD KEY `password_resets_email_index` (`email`),
    ADD KEY `password_resets_token_index` (`token`);
  
  --
  -- Indices de la tabla `permissions`
  --
  ALTER TABLE `permissions`
    ADD PRIMARY KEY (`id`),
    ADD UNIQUE KEY `permissions_action_id_module_id_unique` (`action_id`,`module_id`),
    ADD KEY `permissions_module_id_foreign` (`module_id`);
  
  --
  -- Indices de la tabla `permission_role`
  --
  ALTER TABLE `permission_role`
    ADD PRIMARY KEY (`permission_id`,`role_id`),
    ADD UNIQUE KEY `permission_role_permission_id_role_id_unique` (`permission_id`,`role_id`),
    ADD KEY `permission_role_role_id_foreign` (`role_id`);
  
  --
  -- Indices de la tabla `profiles`
  --
  ALTER TABLE `profiles`
    ADD PRIMARY KEY (`id`),
    ADD KEY `profiles_citizenship_foreign` (`citizenship`),
    ADD KEY `profiles_country_foreign` (`country`);
  
  --
  -- Indices de la tabla `roles`
  --
  ALTER TABLE `roles`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indices de la tabla `users`
  --
  ALTER TABLE `users`
    ADD PRIMARY KEY (`id`),
    ADD UNIQUE KEY `users_email_unique` (`email`),
    ADD KEY `users_group_id_foreign` (`group_id`),
    ADD KEY `users_profile_id_foreign` (`profile_id`);
  
  --
  -- AUTO_INCREMENT de las tablas volcadas
  --
  
  --
  -- AUTO_INCREMENT de la tabla `actions`
  --
  ALTER TABLE `actions`
    MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
  --
  -- AUTO_INCREMENT de la tabla `administrators`
  --
  ALTER TABLE `administrators`
    MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
  --
  -- AUTO_INCREMENT de la tabla `beerings`
  --
  ALTER TABLE `beerings`
    MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
  --
  -- AUTO_INCREMENT de la tabla `countries`
  --
  ALTER TABLE `countries`
    MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=246;
  --
  -- AUTO_INCREMENT de la tabla `donations`
  --
  ALTER TABLE `donations`
    MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
  --
  -- AUTO_INCREMENT de la tabla `groups`
  --
  ALTER TABLE `groups`
    MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
  --
  -- AUTO_INCREMENT de la tabla `modules`
  --
  ALTER TABLE `modules`
    MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
  --
  -- AUTO_INCREMENT de la tabla `permissions`
  --
  ALTER TABLE `permissions`
    MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=28;
  --
  -- AUTO_INCREMENT de la tabla `profiles`
  --
  ALTER TABLE `profiles`
    MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
  --
  -- AUTO_INCREMENT de la tabla `roles`
  --
  ALTER TABLE `roles`
    MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
  --
  -- AUTO_INCREMENT de la tabla `users`
  --
  ALTER TABLE `users`
    MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
  --
  -- Restricciones para tablas volcadas
  --
  
  --
  -- Filtros para la tabla `administrators`
  --
  ALTER TABLE `administrators`
    ADD CONSTRAINT `administrators_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`);
  
  --
  -- Filtros para la tabla `donations`
  --
  ALTER TABLE `donations`
    ADD CONSTRAINT `donations_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);
  
  --
  -- Filtros para la tabla `groups`
  --
  ALTER TABLE `groups`
    ADD CONSTRAINT `groups_beering_id_foreign` FOREIGN KEY (`beering_id`) REFERENCES `beerings` (`id`);
  
  --
  -- Filtros para la tabla `permissions`
  --
  ALTER TABLE `permissions`
    ADD CONSTRAINT `permissions_action_id_foreign` FOREIGN KEY (`action_id`) REFERENCES `actions` (`id`),
    ADD CONSTRAINT `permissions_module_id_foreign` FOREIGN KEY (`module_id`) REFERENCES `modules` (`id`);
  
  --
  -- Filtros para la tabla `permission_role`
  --
  ALTER TABLE `permission_role`
    ADD CONSTRAINT `permission_role_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`),
    ADD CONSTRAINT `permission_role_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`);
  
  --
  -- Filtros para la tabla `profiles`
  --
  ALTER TABLE `profiles`
    ADD CONSTRAINT `profiles_citizenship_foreign` FOREIGN KEY (`citizenship`) REFERENCES `countries` (`id`),
    ADD CONSTRAINT `profiles_country_foreign` FOREIGN KEY (`country`) REFERENCES `countries` (`id`);
  
  --
  -- Filtros para la tabla `users`
  --
  ALTER TABLE `users`
    ADD CONSTRAINT `users_group_id_foreign` FOREIGN KEY (`group_id`) REFERENCES `groups` (`id`),
    ADD CONSTRAINT `users_profile_id_foreign` FOREIGN KEY (`profile_id`) REFERENCES `profiles` (`id`);
  
  /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
  /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
  /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
  