-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnewmvc.sql
233 lines (193 loc) · 8.17 KB
/
newmvc.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
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
-- phpMyAdmin SQL Dump
-- version 4.8.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: May 10, 2019 at 07:41 AM
-- Server version: 10.1.37-MariaDB
-- PHP Version: 7.3.1
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: `newmvc`
--
-- --------------------------------------------------------
--
-- Table structure for table `contacts`
--
CREATE TABLE `contacts` (
`id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`fname` varchar(150) NOT NULL,
`lname` varchar(150) NOT NULL,
`email` varchar(175) NOT NULL,
`address` varchar(255) NOT NULL,
`address2` varchar(255) NOT NULL,
`city` varchar(255) NOT NULL,
`state` varchar(150) NOT NULL,
`zip` varchar(65) NOT NULL,
`home_phone` varchar(55) NOT NULL,
`cell_phone` varchar(55) NOT NULL,
`work_phone` varchar(55) NOT NULL,
`deleted` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `contacts`
--
INSERT INTO `contacts` (`id`, `user_id`, `fname`, `lname`, `email`, `address`, `address2`, `city`, `state`, `zip`, `home_phone`, `cell_phone`, `work_phone`, `deleted`) VALUES
(1, 1, 'Ruchin', 'Amaratunga', '[email protected]', '6/2, Convent Road , Bolawalana ', '', 'Negombo', 'Western Province', '1709', '031-2221736', '0776644179', '', 0),
(3, 0, 'Antoinette', 'Parham', '[email protected]', '', '', '', '', '', '', '', '', 0),
(5, 0, 'Toni', 'Anote', '[email protected]', '', '', '', '', '', '', '', '', 0);
-- --------------------------------------------------------
--
-- Table structure for table `promoter`
--
CREATE TABLE `promoter` (
`id` int(11) NOT NULL,
`username` varchar(25) NOT NULL,
`promoter_name` varchar(20) NOT NULL,
`email` varchar(50) NOT NULL,
`password` varchar(355) NOT NULL,
`map_location` varchar(150) NOT NULL,
`phone_number` varchar(50) NOT NULL,
`website` varchar(250) NOT NULL,
`fb_link` varchar(255) NOT NULL,
`rating` float NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `promoter`
--
INSERT INTO `promoter` (`id`, `username`, `promoter_name`, `email`, `password`, `map_location`, `phone_number`, `website`, `fb_link`, `rating`) VALUES
(1, 'pizzahut', 'Pizza Hut', '[email protected]', '$2y$10$G/S9BV0Xugv6971HSOhRiekB7by/Prjkpm.RdSeEDj28HlcxFCq42', 'Negombo', '222222333', 'https://www.pizzahut.lk/', 'https://www.facebook.com/pizzahutsrilanka/', 4),
(2, 'foodcity', 'Cargilles Food City', '[email protected]', '$2y$10$NZsqPYyVz0.Ee5vpSs.DRu5DS/nxaPnwSIx9k86Q5MOT.CPwpOgSK', 'Colombo', '0112225345', 'http://www.cargillsceylon.com/OurBusinesses/FoodCity.aspx', 'https://www.facebook.com/cargillsfoodcity/', 4);
-- --------------------------------------------------------
--
-- Table structure for table `promotion`
--
CREATE TABLE `promotion` (
`promo_id` int(11) NOT NULL,
`catagory` varchar(45) NOT NULL,
`title` varchar(200) NOT NULL,
`description` varchar(500) NOT NULL,
`image_path` varchar(300) DEFAULT NULL,
`link` varchar(400) NOT NULL,
`state` varchar(15) NOT NULL,
`start_date` date NOT NULL,
`end_date` date NOT NULL,
`location` varchar(400) DEFAULT NULL,
`pr_username` varchar(45) NOT NULL,
`ad_username` varchar(45) NOT NULL,
`deleted` tinyint(4) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `promotion`
--
INSERT INTO `promotion` (`promo_id`, `catagory`, `title`, `description`, `image_path`, `link`, `state`, `start_date`, `end_date`, `location`, `pr_username`, `ad_username`, `deleted`) VALUES
(1, 'Food', 'Pizzza Hut', 'Pizza Hut is an American restaurant chain and international franchise which was founded in 1958 by Dan and Frank Carney. ', 'img/blog/04-fashion-upgrades-classic-coats.jpg', 'https://www.pizzahut.lk/', 'Approved', '2019-05-03', '2019-05-30', 'Negombo', 'Pizza Hut', 'string1', 0),
(2, 'Food', 'Arthurs place', 'Authurs place is an American restaurant chain and international franchise which was founded in 1958 by Dan and Frank Carney. ', 'img/blog/04-fashion-upgrades-classic-coats.jpg', 'https://www.pizzahut.lk/', 'Approved', '2019-05-05', '2019-05-25', 'Negombo', 'Arthurs pizza', 'string1', 0),
(3, 'Cloths', 'Odel', 'Shop online now at ODEL, the best shopping destination in Sri Lanka for ladies wear, menswear, kids wear, homeware, food and more', 'img/blog/04-fashion-upgrades-classic-coats (1).jpg', 'http://www.odel.lk/', 'Approved', '2019-05-04', '2019-05-20', 'Negombo', 'Odel', 'string1', 0);
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` int(11) NOT NULL,
`username` varchar(150) NOT NULL,
`email` varchar(150) NOT NULL,
`password` varchar(150) NOT NULL,
`fname` varchar(150) NOT NULL,
`lname` varchar(150) NOT NULL,
`acl` text,
`deleted` tinyint(4) DEFAULT '0',
`user_type` varchar(55) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`id`, `username`, `email`, `password`, `fname`, `lname`, `acl`, `deleted`, `user_type`) VALUES
(1, 'ruchinamaratunga', '[email protected]', '$2y$10$Y7YBTBy3Favmk0xhbs5V0.eZaZvALDTSyE5oGDXhjsasyFLnWFWlG', 'Ruchin', 'Amaratunga', '', 0, 'Customer'),
(2, 'kolithafernando', '[email protected]', '$2y$10$Y7YBTBy3Favmk0xhbs5V0.eZaZvALDTSyE5oGDXhjsasyFLnWFWlG', 'Kolith', 'Fernando', '', 0, 'Customer'),
(3, 'ruchin1', '[email protected]', '$2y$10$oDxgXiB07sMZxP7nP6bUC.jzkiuSbBd9b8jT.nWLXFfCdtH17s0PO', 'ru', 'chin', '', 0, 'Customer'),
(5, '', '[email protected]', '$2y$10$93.pOjbCRnRtoNBs7fYNo.u/XxSRURXvVbkjatvxYtFEWDtfdHZiK', 'dsaasdfsfad', 'safdasdf', NULL, NULL, 'Customer'),
(6, 'pathi12', '[email protected]', '$2y$10$HsLiiUlCf5on1M4/irkrreBHoviMjZJ7JcAdM.lT2w4/Nm3QNPNTu', 'hasitha', 'pathirana', NULL, NULL, 'Customer'),
(7, 'admin', '[email protected]', '$2y$10$Fq.birm0NW2jWxcJdfKXQuezwu5IURqC.B8DhgOXEfC8MrFF.oonu', 'ruchin', 'amaratunga', '[\"Admin\"]', 0, 'Admin'),
(9, 'pizzahut', '[email protected]', '$2y$10$G/S9BV0Xugv6971HSOhRiekB7by/Prjkpm.RdSeEDj28HlcxFCq42', '', '', '[\"Promoter\"]', 0, 'Promoter'),
(10, 'foodcity', '[email protected]', '$2y$10$NZsqPYyVz0.Ee5vpSs.DRu5DS/nxaPnwSIx9k86Q5MOT.CPwpOgSK', '', '', '[\"Promoter\"]', 0, 'Promoter');
-- --------------------------------------------------------
--
-- Table structure for table `user_sessions`
--
CREATE TABLE `user_sessions` (
`id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`session` varchar(255) NOT NULL,
`user_agent` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `contacts`
--
ALTER TABLE `contacts`
ADD PRIMARY KEY (`id`),
ADD KEY `deleted` (`deleted`),
ADD KEY `deleted_2` (`deleted`);
--
-- Indexes for table `promoter`
--
ALTER TABLE `promoter`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `promotion`
--
ALTER TABLE `promotion`
ADD PRIMARY KEY (`promo_id`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `user_sessions`
--
ALTER TABLE `user_sessions`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `contacts`
--
ALTER TABLE `contacts`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `promoter`
--
ALTER TABLE `promoter`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `promotion`
--
ALTER TABLE `promotion`
MODIFY `promo_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
--
-- AUTO_INCREMENT for table `user_sessions`
--
ALTER TABLE `user_sessions`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
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 */;