-- phpMyAdmin SQL Dump -- version 4.0.10.10 -- http://www.phpmyadmin.net -- -- Хост: 127.0.0.1:3306 -- Время создания: Май 09 2016 г., 17:12 -- Версия сервера: 5.5.45 -- Версия PHP: 5.5.28 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 utf8 */; -- -- База данных: `tlaravel` -- -- -------------------------------------------------------- -- -- Структура таблицы `articles` -- CREATE TABLE IF NOT EXISTS `articles` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(100) COLLATE utf8_unicode_ci NOT NULL, `text` text COLLATE utf8_unicode_ci NOT NULL, `img` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `alias` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'alias', `deleted_at` timestamp NULL DEFAULT NULL, `user_id` int(10) unsigned NOT NULL DEFAULT '1', PRIMARY KEY (`id`), KEY `articles_user_id_foreign` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=39 ; -- -- Дамп данных таблицы `articles` -- INSERT INTO `articles` (`id`, `name`, `text`, `img`, `created_at`, `updated_at`, `alias`, `deleted_at`, `user_id`) VALUES (4, '0', 'Hello world', 'pic4.jpg', '2016-03-16 16:28:58', '2016-03-16 16:28:58', 'alias', NULL, 1), (24, 'NEW TEXT', 'New Text 2', '', NULL, '2016-05-09 14:09:14', 'alias', NULL, 1), (25, 'Blog post', '

Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Morbi leo risus, porta ac consectetur ac, vestibulum at eros.

', 'pic1.jpg', NULL, NULL, 'alias', NULL, 2), (31, 'Hello world', '', '', '2016-03-23 16:55:47', '2016-03-23 16:55:47', 'alias', NULL, 1), (32, 'New Article', 'Some text', '', '2016-05-09 13:54:01', '2016-05-09 13:54:01', 'alias', NULL, 1), (33, 'New Article', 'Some text', '', '2016-05-09 13:54:12', '2016-05-09 13:54:12', 'alias', NULL, 1), (34, 'New Article', 'Some text', '', '2016-05-09 13:54:42', '2016-05-09 13:54:42', 'alias', NULL, 1), (35, 'New Article1', 'Some text1', '', '2016-05-09 13:56:07', '2016-05-09 13:56:07', 'alias', NULL, 1), (36, 'New Article1', 'Some text1', '', '2016-05-09 13:59:12', '2016-05-09 13:59:12', 'alias', NULL, 1), (37, 'New Article2', 'Some text2', '', '2016-05-09 13:59:12', '2016-05-09 13:59:12', 'alias', NULL, 1), (38, 'New Article3', 'Some text3', '', '2016-05-09 13:59:12', '2016-05-09 13:59:12', 'alias', NULL, 1); -- -------------------------------------------------------- -- -- Структура таблицы `countries` -- CREATE TABLE IF NOT EXISTS `countries` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `user_id` int(10) unsigned NOT NULL DEFAULT '1', `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), KEY `countries_user_id_foreign` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=2 ; -- -- Дамп данных таблицы `countries` -- INSERT INTO `countries` (`id`, `name`, `user_id`, `created_at`, `updated_at`) VALUES (1, 'Ukraine', 1, NULL, NULL); -- -------------------------------------------------------- -- -- Структура таблицы `migrations` -- CREATE TABLE IF NOT EXISTS `migrations` ( `migration` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `batch` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Дамп данных таблицы `migrations` -- INSERT INTO `migrations` (`migration`, `batch`) VALUES ('2014_10_12_000000_create_users_table', 1), ('2014_10_12_100000_create_password_resets_table', 1), ('2016_03_14_180749_create_articles_table', 1), ('2016_03_14_184343_change_articles_table', 1), ('2016_03_14_190126_change_articles_table2', 2), ('2016_03_17_150714_create_table_pages', 3), ('2016_03_23_191847_change_article_table_soft', 4), ('2016_03_19_204458_create_countrys_table', 5), ('2016_03_19_185508_add_articles_user_table', 6), ('2016_03_20_155443_create_roles_table', 7), ('2016_03_20_155518_create_role_user_table', 7); -- -------------------------------------------------------- -- -- Структура таблицы `pages` -- CREATE TABLE IF NOT EXISTS `pages` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `text` text COLLATE utf8_unicode_ci NOT NULL, `alias` text COLLATE utf8_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=2 ; -- -- Дамп данных таблицы `pages` -- INSERT INTO `pages` (`id`, `name`, `text`, `alias`, `created_at`, `updated_at`) VALUES (1, 'About our company', '

January 1, 2014 by Mark

\n\n

This blog post shows a few different types of content that''s supported and styled with Bootstrap. Basic typography, images, and code are all supported.

\n
\n

Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Sed posuere consectetur est at lobortis. Cras mattis consectetur purus sit amet fermentum.

\n
\n

Curabitur blandit tempus porttitor. Nullam quis risus eget urna mollis ornare vel eu leo. Nullam id dolor id nibh ultricies vehicula ut id elit.

\n
\n

Etiam porta sem malesuada magna mollis euismod. Cras mattis consectetur purus sit amet fermentum. Aenean lacinia bibendum nulla sed consectetur.

\n

Heading

\n

Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Morbi leo risus, porta ac consectetur ac, vestibulum at eros.

\n

Sub-heading

\n

Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.

\n
Example code block
\n

Aenean lacinia bibendum nulla sed consectetur. Etiam porta sem malesuada magna mollis euismod. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa.

\n

Sub-heading

\n

Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Aenean lacinia bibendum nulla sed consectetur. Etiam porta sem malesuada magna mollis euismod. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.

\n \n

Donec ullamcorper nulla non metus auctor fringilla. Nulla vitae elit libero, a pharetra augue.

\n
    \n
  1. Vestibulum id ligula porta felis euismod semper.
  2. \n
  3. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.
  4. \n
  5. Maecenas sed diam eget risus varius blandit sit amet non magna.
  6. \n
\n

Cras mattis consectetur purus sit amet fermentum. Sed posuere consectetur est at lobortis.

', 'about', NULL, NULL); -- -------------------------------------------------------- -- -- Структура таблицы `password_resets` -- CREATE TABLE IF NOT EXISTS `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, KEY `password_resets_email_index` (`email`), KEY `password_resets_token_index` (`token`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -------------------------------------------------------- -- -- Структура таблицы `roles` -- CREATE TABLE IF NOT EXISTS `roles` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=4 ; -- -- Дамп данных таблицы `roles` -- INSERT INTO `roles` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'Admin', NULL, NULL), (2, 'Moderator', NULL, NULL), (3, 'quest', '2016-05-09 14:02:24', '2016-05-09 14:02:24'); -- -------------------------------------------------------- -- -- Структура таблицы `role_user` -- CREATE TABLE IF NOT EXISTS `role_user` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `user_id` int(10) unsigned NOT NULL DEFAULT '1', `role_id` int(10) unsigned NOT NULL DEFAULT '1', `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), KEY `role_user_user_id_foreign` (`user_id`), KEY `role_user_role_id_foreign` (`role_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=4 ; -- -- Дамп данных таблицы `role_user` -- INSERT INTO `role_user` (`id`, `user_id`, `role_id`, `created_at`, `updated_at`) VALUES (1, 1, 1, NULL, NULL), (2, 1, 2, NULL, NULL), (3, 1, 3, NULL, NULL); -- -------------------------------------------------------- -- -- Структура таблицы `users` -- CREATE TABLE IF NOT EXISTS `users` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `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, `remember_token` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `users_email_unique` (`email`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=3 ; -- -- Дамп данных таблицы `users` -- INSERT INTO `users` (`id`, `name`, `email`, `password`, `remember_token`, `created_at`, `updated_at`) VALUES (1, 'Viktor', 'admin@mail.ru', 'admin', NULL, NULL, NULL), (2, 'User2', 'user2@mail.ru', 'user', NULL, NULL, NULL); -- -- Ограничения внешнего ключа сохраненных таблиц -- -- -- Ограничения внешнего ключа таблицы `articles` -- ALTER TABLE `articles` ADD CONSTRAINT `articles_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`); -- -- Ограничения внешнего ключа таблицы `countries` -- ALTER TABLE `countries` ADD CONSTRAINT `countries_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`); -- -- Ограничения внешнего ключа таблицы `role_user` -- ALTER TABLE `role_user` ADD CONSTRAINT `role_user_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`), ADD CONSTRAINT `role_user_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`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 */;