sql Laravel SQL项目代码

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sql Laravel SQL项目代码相关的知识,希望对你有一定的参考价值。


-- phpMyAdmin SQL Dump
-- version 4.7.0
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Aug 22, 2017 at 05:18 AM
-- Server version: 10.1.25-MariaDB
-- PHP Version: 7.1.7

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: `laraproject`
--

-- --------------------------------------------------------

--
-- Table structure for table `migrations`
--

CREATE TABLE `migrations` (
  `id` int(10) UNSIGNED NOT NULL,
  `migration` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `batch` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `migrations`
--

INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
(1, '2014_10_12_000000_create_users_table', 1),
(2, '2014_10_12_100000_create_password_resets_table', 1),
(3, '2017_08_19_154835_create_projects_table', 1),
(4, '2017_08_19_154845_create_tasks_table', 1);

-- --------------------------------------------------------

--
-- Table structure for table `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;

-- --------------------------------------------------------

--
-- Table structure for table `projects`
--

CREATE TABLE `projects` (
  `id` int(10) UNSIGNED NOT NULL,
  `project_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `projects`
--

INSERT INTO `projects` (`id`, `project_name`, `created_at`, `updated_at`) VALUES
(1, 'Laravel Todos', NULL, NULL),
(2, 'Google maps addition', NULL, NULL);

-- --------------------------------------------------------

--
-- Table structure for table `tasks`
--

CREATE TABLE `tasks` (
  `id` int(10) UNSIGNED NOT NULL,
  `project_id` int(11) NOT NULL DEFAULT '0',
  `task` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `priority` int(11) NOT NULL DEFAULT '0',
  `completed` tinyint(1) NOT NULL DEFAULT '0',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `tasks`
--

INSERT INTO `tasks` (`id`, `project_id`, `task`, `priority`, `completed`, `created_at`, `updated_at`) VALUES
(1, 1, 'Remove malware from server', 0, 1, NULL, '2017-08-20 00:20:02'),
(2, 1, 'Send list of domains', 1, 0, NULL, '2017-08-20 00:55:46'),
(3, 2, 'Add new google map marker', 0, 1, '2017-08-20 00:23:16', '2017-08-20 00:23:16'),
(6, 1, 'Generate 100 user rows with Faker', 1, 0, '2017-08-20 19:32:55', '2017-08-20 04:41:42');

-- --------------------------------------------------------

--
-- Table structure for table `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,
  `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;

--
-- Dumping data for table `users`
--

INSERT INTO `users` (`id`, `name`, `email`, `password`, `remember_token`, `created_at`, `updated_at`) VALUES
(1, 'Juan Cadima', 'jcadima85@gmail.com', '$2y$10$REOObA9.aihVgQjSzBf1kuB7vfvCiuxHZRf9MCUNADgBSGcJry9x6', 'AhF4pugCxcnkf0o8mWmKGeVbfKYnQaIj7R3IUklzbqGGfY0T1FQYgnvpj6eU', '2017-08-20 05:51:09', '2017-08-20 05:51:09'),
(2, 'Aramis K', 'aramisk@gmail.com', '$2y$10$bfj/gZvT/pzG4AqCqDgtJuuc5PtDaLOCHKWxNkrX9wC/A3xPRol1W', 'ZX3x2bibVluLN3klQ1A162eLCIkz3fvGQj7xJf7Q82QUXN243doYFWT4pe6d', '2017-08-20 06:36:53', '2017-08-20 06:36:53'),
(3, 'Toto Omoto', 'toto@gmail.com', '$2y$10$jwKx/tBt70yySdGynu4cvOmyBJJEQswJab2yGXYCVsUTTcFtkAaBu', 'KKPh4paWJ7v38GGF4reEz4qIYHj937UDcMpmRbQCUT0gNybLUOHntvIshIKa', '2017-08-20 06:38:40', '2017-08-20 06:38:40'),
(4, 'Toto 2', 'toto2@gmail.com', '$2y$10$CSQN8hi7ZHD76P0wBQZQhen2O2o/aIvqC.Drsc7zBTYLd3PthRlPe', 'UihgVyd2zahzIxQMCIJg6NzhTB61SuSDqX1V6Tfd7YJcC3jViYusa2xYiNQo', '2017-08-20 06:48:57', '2017-08-20 06:48:57'),
(5, 'toto3', 'toto3@gmail.com', '$2y$10$uixCd1dhFrVdDTskIuXT6.Bh4PFxlcKKnvADvY76hGRRlrEXtexjK', NULL, '2017-08-20 06:52:26', '2017-08-20 06:52:26');

--
-- Indexes for dumped tables
--

--
-- 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 `projects`
--
ALTER TABLE `projects`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `tasks`
--
ALTER TABLE `tasks`
  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 `migrations`
--
ALTER TABLE `migrations`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `projects`
--
ALTER TABLE `projects`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `tasks`
--
ALTER TABLE `tasks`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;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 */;

以上是关于sql Laravel SQL项目代码的主要内容,如果未能解决你的问题,请参考以下文章

我应该在哪里放置包含我在laravel项目层级文件夹中的数据库播种器中使用的记录的.sql文件

Laravel | 导入SQL

PHP Laravel迁移SQL问题[重复]

将 SQL 转换为 Laravel 5.1

SQL 查询获取最常访问的地方 Laravel

连接表时 Laravel 4 SQL 错误