Skip to content

Instantly share code, notes, and snippets.

@raank
Created October 29, 2016 23:04
Show Gist options
  • Save raank/ebf8e6332eb663344acc4ad8484c2000 to your computer and use it in GitHub Desktop.
Save raank/ebf8e6332eb663344acc4ad8484c2000 to your computer and use it in GitHub Desktop.
-- phpMyAdmin SQL Dump
-- version 4.5.4.1deb2ubuntu2
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: 29-Out-2016 às 21:01
-- Versão do servidor: 5.7.16-0ubuntu0.16.04.1
-- PHP Version: 7.0.12-1+deb.sury.org~xenial+1
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 */;
--
-- Database: `tcc_news`
--
-- --------------------------------------------------------
-- --------------------------------------------------------
--
-- Estrutura da tabela `categories`
--
CREATE TABLE `categories` (
`id` int(10) UNSIGNED NOT NULL,
`name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`description` 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;
--
-- Extraindo dados da tabela `categories`
--
INSERT INTO `categories` (`id`, `name`, `description`, `created_at`, `updated_at`) VALUES
(1, 'Pizza', 'Events of pizza', '2016-10-26 15:49:05', '2016-10-26 15:49:05'),
(2, 'Cerveja', 'Events of Beer', '2016-10-26 15:49:05', '2016-10-26 15:49:05');
-- --------------------------------------------------------
--
-- Estrutura da tabela `events`
--
CREATE TABLE `events` (
`id` int(10) UNSIGNED NOT NULL,
`user_id` int(11) NOT NULL,
`categories` text COLLATE utf8_unicode_ci NOT NULL,
`name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`status` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`value` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`description` text COLLATE utf8_unicode_ci,
`address` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`cep` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`bairro` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`city` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`state` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`classification` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`period` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`init_at` datetime NOT NULL,
`end_at` datetime NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Extraindo dados da tabela `events`
--
INSERT INTO `events` (`id`, `user_id`, `categories`, `name`, `status`, `value`, `description`, `address`, `cep`, `bairro`, `city`, `state`, `classification`, `period`, `init_at`, `end_at`, `created_at`, `updated_at`) VALUES
(1, 1, '["1","2"]', 'Evento teste', 'open', '40,00', '40,00', 'Rua Henrique Janssen', '89253130', 'Nova Brasília', 'Jaraguá do Sul', 'SC', '1', 'N', '2016-10-26 13:49:05', '2016-10-26 13:49:05', '2016-10-26 15:49:05', '2016-10-28 06:34:43'),
(2, 1, '["1","2"]', 'Evento teste 2', 'open', '20,00', '20,00', 'Rua Bento Serafim Anacleto', '89254690', 'Chico de Paulo', 'Jaraguá do Sul', 'SC', '2', 'N', '2016-10-26 13:49:05', '2016-10-26 13:49:05', '2016-10-26 15:49:05', '2016-10-28 17:19:31'),
(3, 1, '["1","2"]', 'Evento teste 3', 'open', '5000', NULL, NULL, '89251600', NULL, NULL, NULL, '3', 'N', '2016-10-26 13:49:05', '2016-10-26 13:49:05', '2016-10-26 15:49:05', '2016-10-26 15:49:05');
-- --------------------------------------------------------
--
-- Estrutura da tabela `events_confirmeds`
--
CREATE TABLE `events_confirmeds` (
`id` int(10) UNSIGNED NOT NULL,
`user_id` int(11) NOT NULL,
`event_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Extraindo dados da tabela `events_confirmeds`
--
INSERT INTO `events_confirmeds` (`id`, `user_id`, `event_id`) VALUES
(1, 1, 1);
-- --------------------------------------------------------
--
-- Estrutura da tabela `files`
--
CREATE TABLE `files` (
`id` int(10) UNSIGNED NOT NULL,
`file_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`file_disk` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`file_path` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`file_ext` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`attach_id` int(11) NOT NULL,
`attach_type` 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;
--
-- Extraindo dados da tabela `files`
--
INSERT INTO `files` (`id`, `file_name`, `file_disk`, `file_path`, `file_ext`, `attach_id`, `attach_type`, `created_at`, `updated_at`) VALUES
(8, '4uweqn.jpg', 'tnhjaheslwcbjh5i.jpg', 'app/uploads/cmvdu/tnhjaheslwcbjh5i.jpg', 'jpg', 23, 'App\\Models\\User', '2016-10-28 02:33:11', '2016-10-28 02:33:11'),
(11, 'photo-1452421822248-d4c2b47f0c81.jpg', 'o5vvowrcfniwsgbp.jpg', 'app/uploads/s1f9l/o5vvowrcfniwsgbp.jpg', 'jpg', 2, 'App\\Models\\Events', '2016-10-28 17:19:31', '2016-10-28 17:19:31'),
(16, 'photo-1472162314594-eca3c3d90df1 (1).jpg', 'txpjjesawdrwac6k.jpg', 'app/uploads/2zdlq/txpjjesawdrwac6k.jpg', 'jpg', 1, 'App\\Models\\Events', '2016-10-28 19:58:39', '2016-10-28 19:58:39'),
(17, 'photo-1452421822248-d4c2b47f0c81.jpg', 'kzzwcbe0xtmkyong.jpg', 'app/uploads/yj0cz/kzzwcbe0xtmkyong.jpg', 'jpg', 1, 'App\\Models\\User', '2016-10-29 01:44:42', '2016-10-29 01:44:42');
-- --------------------------------------------------------
--
-- Estrutura da tabela `migrations`
--
CREATE TABLE `migrations` (
`id` int(10) UNSIGNED NOT NULL,
`migration` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`batch` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Extraindo dados da tabela `migrations`
--
INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
(57, '2014_10_12_000000_create_users_table', 1),
(58, '2014_10_12_100000_create_password_resets_table', 1),
(59, '2016_10_26_115416_create_events_table', 1),
(60, '2016_10_26_120100_create_profile_table', 1),
(61, '2016_10_26_120650_create_avatars_table', 1),
(62, '2016_10_26_123506_create_files_table', 1),
(63, '2016_10_26_130920_create_events_confirmeds_table', 1),
(64, '2016_10_26_132014_create_category_table', 1);
-- --------------------------------------------------------
--
-- Estrutura da tabela `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 NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Estrutura da tabela `profile`
--
CREATE TABLE `profile` (
`id` int(10) UNSIGNED NOT NULL,
`user_id` int(11) NOT NULL,
`fields` longtext 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;
--
-- Extraindo dados da tabela `profile`
--
INSERT INTO `profile` (`id`, `user_id`, `fields`, `created_at`, `updated_at`) VALUES
(1, 1, '{"birth":"","genre":"masc","cpf":"","phone":"","cep":"89254000","address":"Rua Erwino Menegotti","bairro":"Chico de Paulo","city":"Jaragu\\u00e1 do Sul","state":"SC","news":"","categories":["1"]}', '2016-10-27 16:37:38', '2016-10-29 01:38:45'),
(13, 23, '{"razao":"","CNPJ":"","cep":"89254-690","phone":"4799171875"}', '2016-10-28 02:33:11', '2016-10-28 02:33:11');
-- --------------------------------------------------------
--
-- Estrutura da tabela `users`
--
CREATE TABLE `users` (
`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(255) COLLATE utf8_unicode_ci NOT NULL,
`role` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'user',
`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;
--
-- Extraindo dados da tabela `users`
--
INSERT INTO `users` (`id`, `name`, `email`, `password`, `role`, `remember_token`, `created_at`, `updated_at`) VALUES
(1, 'Felipe', '[email protected]', '$2y$10$LZY9itd7Z3E28XwSd7E/8OE1vZbiOs3EPNien1Grl3GhC.9WF7chK', 'admin', 'GUOIhgaSEYlRSiXs3HbjribihB1Uu2KBG9MDG5FhP3cBMC5x6apPNlMO7xt8', '2016-10-26 15:49:05', '2016-10-29 01:44:42'),
(2, 'Aline', '[email protected]', '$2y$10$jDkL7yn27Ct0Kl7PLxMfT.IXb85LaIs236y/6.aH3dY8DD.qNqUI2', 'ad', '4bKN7sizcD', '2016-10-26 15:49:05', '2016-10-26 15:49:05'),
(3, 'Jhon', '[email protected]', '$2y$10$xEjv7EydQUAOGak/mf2EcOnMHu5EbBeuXSGfl9Pe2JxB8lubZ2zpe', 'user', 'wtKDKbUnyy', '2016-10-26 15:49:05', '2016-10-26 15:49:05'),
(23, 'Felipe rank', '[email protected]', '$2y$10$bUmRUyG4eRMrS1TkCBneqeOUKtPzjRw8PhX0RpPzfcCfozsQk5Wqi', 'ad', 'F5Gvsag6ACqpPYZVxCNWJT822xqTmuWspzYzIlmMYKMuLNIP0kU7Ho8LtwBh', '2016-10-28 02:33:10', '2016-10-28 03:41:59');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `avatars`
--
ALTER TABLE `avatars`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `categories`
--
ALTER TABLE `categories`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `events`
--
ALTER TABLE `events`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `events_confirmeds`
--
ALTER TABLE `events_confirmeds`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `files`
--
ALTER TABLE `files`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `migrations`
--
ALTER TABLE `migrations`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `password_resets`
--
ALTER TABLE `password_resets`
ADD KEY `password_resets_email_index` (`email`),
ADD KEY `password_resets_token_index` (`token`);
--
-- Indexes for table `profile`
--
ALTER TABLE `profile`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `users_email_unique` (`email`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `avatars`
--
ALTER TABLE `avatars`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `categories`
--
ALTER TABLE `categories`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `events`
--
ALTER TABLE `events`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `events_confirmeds`
--
ALTER TABLE `events_confirmeds`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `files`
--
ALTER TABLE `files`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=18;
--
-- AUTO_INCREMENT for table `migrations`
--
ALTER TABLE `migrations`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=65;
--
-- AUTO_INCREMENT for table `profile`
--
ALTER TABLE `profile`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=24;
/*!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 */;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment