-
Notifications
You must be signed in to change notification settings - Fork 0
/
laravel_demo.sql
73 lines (59 loc) · 2.01 KB
/
laravel_demo.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
-- phpMyAdmin SQL Dump
-- version 4.7.0
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: 2017-05-30 08:39:16
-- 服务器版本: 5.6.26
-- PHP Version: 5.6.12
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: `laravel_demo`
--
CREATE DATABASE IF NOT EXISTS `laravel_demo` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
USE `laravel_demo`;
-- --------------------------------------------------------
--
-- 表的结构 `students`
--
CREATE TABLE `students` (
`id` int(11) UNSIGNED NOT NULL,
`name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`phone` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
`birthday` date NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- 转存表中的数据 `students`
--
INSERT INTO `students` (`id`, `name`, `phone`, `birthday`, `created_at`, `updated_at`) VALUES
(1, '小王', '12323232323', '2003-03-01', '2017-05-30 06:07:10', '2017-05-30 06:07:10'),
(2, '老王', '11111111111', '1984-07-04', '2017-05-30 05:36:45', '2017-05-30 06:26:25'),
(6, '<script>alert(\'xss\');</script>', '', '2000-01-01', '2017-05-30 06:08:36', '2017-05-30 06:08:36');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `students`
--
ALTER TABLE `students`
ADD PRIMARY KEY (`id`);
--
-- 在导出的表使用AUTO_INCREMENT
--
--
-- 使用表AUTO_INCREMENT `students`
--
ALTER TABLE `students`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;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 */;