text: -- phpMyAdmin SQL Dump
  -- version 4.7.7
  -- https://www.phpmyadmin.net/
  --
  -- Host: 127.0.0.1
  -- Generation Time: 2018 m. Geg 29 d. 06:22
  -- Server version: 10.1.30-MariaDB
  -- PHP Version: 7.1.14
  
  SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
  SET AUTOCOMMIT = 0;
  START TRANSACTION;
  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: `work`
  --
  
  -- --------------------------------------------------------
  
  --
  -- Sukurta duomenų struktūra lentelei `companies`
  --
  
  CREATE TABLE `companies` (
    `id` int(10) UNSIGNED NOT NULL,
    `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `email` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `logo` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `website` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `created_at` timestamp NULL DEFAULT NULL,
    `updated_at` timestamp NULL DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  --
  -- Sukurta duomenų kopija lentelei `companies`
  --
  
  INSERT INTO `companies` (`id`, `name`, `email`, `logo`, `website`, `created_at`, `updated_at`) VALUES
  (1, 'komapnija1', NULL, NULL, NULL, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
  (2, 'kompanija2', NULL, NULL, NULL, '0000-00-00 00:00:00', '0000-00-00 00:00:00');
  
  -- --------------------------------------------------------
  
  --
  -- Sukurta duomenų struktūra lentelei `employees`
  --
  
  CREATE TABLE `employees` (
    `id` int(10) UNSIGNED NOT NULL,
    `first_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `last_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `email` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `phone` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `company_id` int(10) UNSIGNED NOT NULL,
    `created_at` timestamp NULL DEFAULT NULL,
    `updated_at` timestamp NULL DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  --
  -- Sukurta duomenų kopija lentelei `employees`
  --
  
  INSERT INTO `employees` (`id`, `first_name`, `last_name`, `email`, `phone`, `company_id`, `created_at`, `updated_at`) VALUES
  (2, 'vardas2', 'dfdsfdsf', 'arnas18@gmail.com', '+370876548456', 2, NULL, '2018-05-29 01:20:19'),
  (3, 'vardas3', '', NULL, NULL, 1, NULL, NULL),
  (4, 'vienas', 'du', 'dasdas@sfsd.com', '+370876548454', 1, '2018-05-29 00:41:43', '2018-05-29 00:41:43'),
  (5, 'antras', 'tracias', 'sad@sds.cos', '+370876548455', 2, '2018-05-29 00:42:25', '2018-05-29 00:42:25'),
  (6, 'dublis', 'sda', 'fafss@safsa.ccc', '+370876548456', 1, '2018-05-29 00:44:44', '2018-05-29 00:44:44'),
  (7, 'vienas', 'dfsdf', 'jomafifi@yahoo.com', '+370876548459', 1, '2018-05-29 00:46:02', '2018-05-29 00:46:02');
  
  -- --------------------------------------------------------
  
  --
  -- Sukurta duomenų struktūra lentelei `migrations`
  --
  
  CREATE TABLE `migrations` (
    `id` int(10) UNSIGNED NOT NULL,
    `migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
    `batch` int(11) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  --
  -- Sukurta duomenų kopija lentelei `migrations`
  --
  
  INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
  (21, '2014_10_12_000000_create_users_table', 1),
  (22, '2014_10_12_100000_create_password_resets_table', 1),
  (23, '2018_05_28_231409_create_companies_table', 1),
  (24, '2018_05_28_231447_create_employees_table', 1),
  (25, '2018_05_28_233638_update_employees_table', 1);
  
  -- --------------------------------------------------------
  
  --
  -- Sukurta duomenų struktūra lentelei `password_resets`
  --
  
  CREATE TABLE `password_resets` (
    `email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `token` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `created_at` timestamp NULL DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  -- --------------------------------------------------------
  
  --
  -- Sukurta duomenų struktūra lentelei `users`
  --
  
  CREATE TABLE `users` (
    `id` int(10) UNSIGNED NOT NULL,
    `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `admin` enum('0','1') COLLATE utf8mb4_unicode_ci NOT NULL,
    `password` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
    `remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
    `created_at` timestamp NULL DEFAULT NULL,
    `updated_at` timestamp NULL DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  
  --
  -- Sukurta duomenų kopija lentelei `users`
  --
  
  INSERT INTO `users` (`id`, `name`, `email`, `admin`, `password`, `remember_token`, `created_at`, `updated_at`) VALUES
  (1, 'admin', 'admin@admin.com', '1', '$2y$10$LO9FSzBlXoiMzRm04hd.2u/eyvoMvara0QdPRFDasiMUloimo4d9a', 'jYzweOClNND5054K8T6yN2f20KeqMvrRNKZm14COgvr1UK0RFm72gaUcl96Q', '2018-05-28 21:00:00', '2018-05-28 21:00:00');
  
  --
  -- Indexes for dumped tables
  --
  
  --
  -- Indexes for table `companies`
  --
  ALTER TABLE `companies`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `employees`
  --
  ALTER TABLE `employees`
    ADD PRIMARY KEY (`id`),
    ADD KEY `employees_company_id_foreign` (`company_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`);
  
  --
  -- 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 `companies`
  --
  ALTER TABLE `companies`
    MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
  
  --
  -- AUTO_INCREMENT for table `employees`
  --
  ALTER TABLE `employees`
    MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
  
  --
  -- AUTO_INCREMENT for table `migrations`
  --
  ALTER TABLE `migrations`
    MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=26;
  
  --
  -- AUTO_INCREMENT for table `users`
  --
  ALTER TABLE `users`
    MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
  
  --
  -- Apribojimai eksportuotom lentelėm
  --
  
  --
  -- Apribojimai lentelei `employees`
  --
  ALTER TABLE `employees`
    ADD CONSTRAINT `employees_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`);
  COMMIT;
  
  /*!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 */;
  