-
Notifications
You must be signed in to change notification settings - Fork 0
/
laravel.sql
191 lines (157 loc) · 7.59 KB
/
laravel.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
-- phpMyAdmin SQL Dump
-- version 4.1.14
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Mar 05, 2017 at 03:28 PM
-- Server version: 5.6.17
-- PHP Version: 5.6.30
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 */;
--
-- Database: `laravel`
--
-- --------------------------------------------------------
--
-- Table structure for table `customers`
--
CREATE TABLE IF NOT EXISTS `customers` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`customer_name` char(50) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=21 ;
--
-- Dumping data for table `customers`
--
INSERT INTO `customers` (`id`, `customer_name`, `created_at`, `updated_at`) VALUES
(1, 'Raina Senger IV', '2017-03-04 12:29:00', '2017-03-04 12:29:00'),
(2, 'Prof. Jack Bartell IV', '2017-03-04 12:29:00', '2017-03-04 12:29:00'),
(3, 'Jane Hauck', '2017-03-04 12:29:00', '2017-03-04 12:29:00'),
(4, 'Isom Stroman', '2017-03-04 12:29:00', '2017-03-04 12:29:00'),
(5, 'Theresa King', '2017-03-04 12:29:00', '2017-03-04 12:29:00'),
(6, 'Vivianne Watsica', '2017-03-04 12:39:54', '2017-03-04 12:39:54'),
(7, 'Jaqueline O''Reilly', '2017-03-04 12:39:54', '2017-03-04 12:39:54'),
(8, 'Kelly Heathcote Sr.', '2017-03-04 12:39:55', '2017-03-04 12:39:55'),
(9, 'Prof. Krystina Larson', '2017-03-04 12:39:55', '2017-03-04 12:39:55'),
(10, 'Corrine Herzog', '2017-03-04 12:39:55', '2017-03-04 12:39:55'),
(11, 'Werner Wolff', '2017-03-04 13:33:45', '2017-03-04 13:33:45'),
(12, 'Hermina Auer DVM', '2017-03-04 13:33:45', '2017-03-04 13:33:45'),
(13, 'Mallory Veum', '2017-03-04 13:33:45', '2017-03-04 13:33:45'),
(14, 'Kaleigh Thompson', '2017-03-04 13:33:45', '2017-03-04 13:33:45'),
(15, 'Prof. Jerrell Stokes DDS', '2017-03-04 13:33:45', '2017-03-04 13:33:45'),
(16, 'Napoleon Huel', '2017-03-04 13:33:45', '2017-03-04 13:33:45'),
(17, 'Velva Lueilwitz DVM', '2017-03-04 13:33:45', '2017-03-04 13:33:45'),
(18, 'Ashly Borer', '2017-03-04 13:33:45', '2017-03-04 13:33:45'),
(19, 'Emerson Langworth', '2017-03-04 13:33:45', '2017-03-04 13:33:45'),
(20, 'Mina Waters', '2017-03-04 13:33:45', '2017-03-04 13:33:45');
-- --------------------------------------------------------
--
-- Table structure for table `migrations`
--
CREATE TABLE IF NOT EXISTS `migrations` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`batch` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=12 ;
--
-- 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_02_19_123149_create_posts_table', 1),
(4, '2017_02_20_071645_create_user_post_likes_table', 1),
(5, '2017_03_04_144807_create_customers_table', 2),
(6, '2017_03_04_144916_create_order_statuses_table', 2),
(7, '2017_03_04_145011_create_products_table', 2),
(11, '2017_03_04_145238_create_orders_table', 3);
-- --------------------------------------------------------
--
-- Table structure for table `orders`
--
CREATE TABLE IF NOT EXISTS `orders` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`product_id` int(10) unsigned NOT NULL,
`customer_id` int(10) unsigned NOT NULL,
`status_id` mediumint(8) unsigned NOT NULL,
`order_quantity` tinyint(3) unsigned NOT NULL DEFAULT '0',
`inward_date` datetime DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `orders_product_id_foreign` (`product_id`),
KEY `orders_customer_id_foreign` (`customer_id`),
KEY `orders_status_id_foreign` (`status_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=21 ;
--
-- Dumping data for table `orders`
--
INSERT INTO `orders` (`id`, `product_id`, `customer_id`, `status_id`, `order_quantity`, `inward_date`, `created_at`, `updated_at`) VALUES
(1, 7, 8, 5, 4, '2017-03-05 11:53:37', '2017-03-04 12:41:40', '2017-03-05 06:23:37'),
(2, 10, 6, 3, 4, '2017-03-05 11:53:37', '2017-03-04 12:41:40', '2017-03-05 06:23:37'),
(3, 10, 1, 2, 3, '2017-03-05 11:53:37', '2017-03-04 12:41:40', '2017-03-05 06:23:37'),
(4, 3, 1, 1, 4, '2017-03-05 11:53:37', '2017-03-04 12:41:40', '2017-03-05 06:23:37'),
(5, 4, 3, 5, 3, '2017-03-05 11:53:37', '2017-03-04 12:41:40', '2017-03-05 06:23:37'),
(6, 4, 7, 4, 4, '2017-03-05 11:48:23', '2017-03-04 13:33:22', '2017-03-05 06:18:23'),
(7, 9, 9, 1, 4, '2017-03-05 11:51:30', '2017-03-04 13:33:22', '2017-03-05 06:21:30'),
(8, 7, 8, 5, 3, '2017-03-05 11:51:17', '2017-03-04 13:33:22', '2017-03-05 06:21:17'),
(9, 5, 2, 3, 2, '2017-03-05 11:51:30', '2017-03-04 13:33:22', '2017-03-05 06:21:30'),
(10, 2, 1, 4, 2, '2017-03-05 11:48:23', '2017-03-04 13:33:22', '2017-03-05 06:18:23'),
(11, 17, 14, 4, 8, NULL, '2017-03-04 13:34:56', '2017-03-05 06:04:13'),
(12, 1, 2, 6, 5, NULL, '2017-03-04 13:34:56', '2017-03-05 06:04:13'),
(13, 6, 10, 5, 9, NULL, '2017-03-04 13:34:56', '2017-03-05 06:04:13'),
(14, 13, 11, 1, 2, NULL, '2017-03-04 13:34:56', '2017-03-05 06:04:13'),
(15, 11, 5, 6, 4, NULL, '2017-03-04 13:34:56', '2017-03-05 06:04:13'),
(16, 18, 5, 1, 6, '2017-03-05 11:46:01', '2017-03-04 13:34:56', '2017-03-05 06:16:01'),
(17, 5, 12, 5, 9, '2017-03-05 11:46:01', '2017-03-04 13:34:56', '2017-03-05 06:16:01'),
(18, 10, 19, 4, 5, '2017-03-05 11:46:01', '2017-03-04 13:34:56', '2017-03-05 06:16:01'),
(19, 4, 8, 6, 3, '2017-03-05 11:46:01', '2017-03-04 13:34:56', '2017-03-05 06:16:01'),
(20, 5, 10, 3, 5, '2017-03-05 11:46:01', '2017-03-04 13:34:56', '2017-03-05 06:16:01');
-- --------------------------------------------------------
--
-- Table structure for table `order_statuses`
--
CREATE TABLE IF NOT EXISTS `order_statuses` (
`id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`name` char(50) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=7 ;
--
-- Dumping data for table `order_statuses`
--
-- --------------------------------------------------------
--
-- Table structure for table `password_resets`
--
CREATE TABLE IF NOT EXISTS `password_resets` (
`email` char(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`token` char(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
KEY `password_resets_email_index` (`email`),
KEY `password_resets_token_index` (`token`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `posts`
--
CREATE TABLE IF NOT EXISTS `posts` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`post_content` text COLLATE utf8mb4_unicode_ci NOT NULL,
`user_id` int(10) unsigned NOT NULL,
`likes_count` int(10) unsigned NOT NULL DEFAULT '0',
`comments_count` int(10) unsigned NOT NULL DEFAULT '0',
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `posts_user_id_foreign` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------