-
Notifications
You must be signed in to change notification settings - Fork 1
/
muskil-asan.sql
233 lines (197 loc) · 9.7 KB
/
muskil-asan.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.2.7
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Oct 21, 2014 at 10:49 PM
-- Server version: 5.6.16
-- PHP Version: 5.5.11
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: `muskil-asan`
--
-- --------------------------------------------------------
--
-- Table structure for table `answers`
--
CREATE TABLE IF NOT EXISTS `answers` (
`answer_id` int(10) unsigned NOT NULL,
`user_id` int(11) NOT NULL,
`question_id` int(11) NOT NULL,
`answer` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=26 ;
--
-- Dumping data for table `answers`
--
INSERT INTO `answers` (`answer_id`, `user_id`, `question_id`, `answer`, `created_at`, `updated_at`) VALUES
(1, 1, 5, 'Hasan is now on comilla, where are you?', '2014-10-02 09:18:41', '2014-10-02 09:18:41'),
(2, 1, 6, 'Kisui to paros na, ki poros ?', '2014-10-02 09:20:45', '2014-10-02 09:20:45'),
(3, 1, 6, 'Hasan is now on comilla, where are you?', '2014-10-02 09:47:58', '2014-10-02 09:47:58'),
(4, 1, 6, 'Pagol er subject, Pagol Chagol.', '2014-10-02 10:01:31', '2014-10-02 10:01:31'),
(5, 1, 4, 'Are you beautiful ?', '2014-10-02 10:04:02', '2014-10-02 10:04:02'),
(6, 1, 4, 'You are so beautiful.', '2014-10-02 10:05:56', '2014-10-02 10:05:56'),
(7, 1, 5, 'Kobe ascho ?', '2014-10-02 10:06:45', '2014-10-02 10:06:45'),
(8, 3, 6, 'Pagol Ho gaya naki ?', '2014-10-02 10:25:00', '2014-10-02 10:25:00'),
(9, 3, 2, 'Vai bepar ta clear na, Clear korben ki ?', '2014-10-02 10:38:39', '2014-10-02 10:38:39'),
(10, 1, 7, 'FIrst Prototype''s are complete.', '2014-10-03 02:30:54', '2014-10-03 02:30:54'),
(11, 3, 7, 'Kiser Project vaia ?', '2014-10-04 10:08:10', '2014-10-04 10:08:10'),
(12, 3, 7, 'Kisui to bujlam na...', '2014-10-04 10:09:25', '2014-10-04 10:09:25'),
(13, 3, 6, 'Ami pagol naki ?', '2014-10-04 10:10:26', '2014-10-04 10:10:26'),
(14, 3, 5, 'Comillay ki ?', '2014-10-04 10:11:59', '2014-10-04 10:11:59'),
(15, 3, 6, 'ami pora sun akori, tui koros na.', '2014-10-04 10:14:40', '2014-10-04 10:14:40'),
(16, 3, 5, 'Comilla ay ar ke ke ke ace ?', '2014-10-04 10:15:49', '2014-10-04 10:15:49'),
(17, 3, 4, 'He e he he he , kare bolli ?', '2014-10-04 10:17:34', '2014-10-04 10:17:34'),
(18, 3, 4, 'ki ta kos ai gula, cic iciiiicic', '2014-10-04 10:18:02', '2014-10-04 10:18:02'),
(19, 3, 8, 'Is Every thing is right ?', '2014-10-04 10:20:07', '2014-10-04 10:20:07'),
(20, 1, 8, 'Tell us about your status.', '2014-10-04 11:53:54', '2014-10-04 11:53:54'),
(21, 1, 8, 'Are this project ok?', '2014-10-04 11:54:22', '2014-10-04 11:54:22'),
(22, 1, 7, 'Voting are complete?', '2014-10-04 11:55:23', '2014-10-04 11:55:23'),
(23, 1, 7, 'Needed time to complete this project ?', '2014-10-04 11:55:52', '2014-10-04 11:55:52'),
(24, 1, 3, 'Bujen nai apu ', '2014-10-04 11:56:17', '2014-10-04 11:56:17'),
(25, 1, 18, 'This is a Generated Text.', '2014-10-14 12:01:29', '2014-10-14 12:01:29');
-- --------------------------------------------------------
--
-- Table structure for table `migrations`
--
CREATE TABLE IF NOT EXISTS `migrations` (
`migration` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`batch` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `migrations`
--
INSERT INTO `migrations` (`migration`, `batch`) VALUES
('2014_09_26_061524_create_table_users', 1),
('2014_09_27_190534_create_questions_table', 1),
('2014_10_02_063734_create_answers_table', 2),
('2014_10_04_141217_create_votes_table', 3);
-- --------------------------------------------------------
--
-- Table structure for table `questions`
--
CREATE TABLE IF NOT EXISTS `questions` (
`id` int(10) unsigned NOT NULL,
`user_id` int(11) NOT NULL,
`questiontitle` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`question` varchar(655) COLLATE utf8_unicode_ci NOT NULL,
`solved` tinyint(1) NOT NULL,
`numsofview` int(11) NOT NULL DEFAULT '1',
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=23 ;
--
-- Dumping data for table `questions`
--
INSERT INTO `questions` (`id`, `user_id`, `questiontitle`, `question`, `solved`, `numsofview`, `created_at`, `updated_at`) VALUES
(2, 1, 'What is muskil asan?', 'What does it do ?', 0, 13, '2014-09-28 04:12:49', '2014-10-21 13:35:09'),
(3, 1, 'vaijan,What is muskil asan?', 'Vai, Muskil asan Site ta ki kore , er kam ki ?', 0, 16, '2014-09-29 08:03:49', '2014-10-04 12:05:12'),
(4, 1, 'Hi Beautiful?', 'This is a lorem text .', 0, 14, '2014-09-29 14:23:57', '2014-10-21 14:46:28'),
(5, 2, 'Where is hasan?', 'This question asked by Hasan.', 0, 24, '2014-09-29 15:30:56', '2014-10-21 13:33:22'),
(6, 3, 'What is Psychology ?', 'Psychology is the scientific process of.......(Edit Later) . Pore ki edit korbo? kisui to pari na. :D:D::D::D:::D:', 0, 32, '2014-10-01 13:29:50', '2014-10-09 08:52:28'),
(7, 1, 'Status of your Project?', 'What''s the condition of your project ??', 0, 57, '2014-10-03 02:18:51', '2014-10-21 14:43:45'),
(8, 3, 'This is new Test Question?', 'This test question is used to check every things for all is Right or wrong ?', 0, 28, '2014-10-04 10:19:31', '2014-10-13 13:06:48'),
(20, 1, 'What is Lorem Ipsum?', '', 0, 16, '2014-10-21 13:44:03', '2014-10-21 14:41:09'),
(22, 1, 'What is Lorem Ipsum?', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry''s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.', 0, 5, '2014-10-21 14:44:11', '2014-10-21 14:46:32');
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE IF NOT EXISTS `users` (
`user_id` int(10) unsigned NOT NULL,
`username` text COLLATE utf8_unicode_ci NOT NULL,
`fullname` text COLLATE utf8_unicode_ci NOT NULL,
`email` text COLLATE utf8_unicode_ci NOT NULL,
`password` text COLLATE utf8_unicode_ci NOT NULL,
`password_temp` text COLLATE utf8_unicode_ci NOT NULL,
`code` text COLLATE utf8_unicode_ci NOT NULL,
`active` int(11) NOT NULL,
`remember_token` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
`points` int(11) NOT NULL DEFAULT '1',
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=7 ;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`user_id`, `username`, `fullname`, `email`, `password`, `password_temp`, `code`, `active`, `remember_token`, `points`, `created_at`, `updated_at`) VALUES
(1, 'pasha', 'Hasan Hafiz Pasha', '[email protected]', '$2y$10$4khoBFTzkwgOKoQr635mEe9DoWGSIUJf8Tt7wJh8bjtBPEqKcT846', '', '', 1, '9rTswpGpe18paOcVjTzcxMmpBpWufsClpBvbPlYJvzy2gBQkaJpw9iqFbarz', 20, '2014-09-27 11:00:33', '2014-10-14 12:01:29'),
(2, 'Hasan', 'Sezam Mahmud', '[email protected]', '$2y$10$annCG.zVHIei8izolOxkwuoCL/zMTq7EHSUliDAnWg746Cqo2Buny', '', '', 1, 'HVGiSstGaolcKFBGQuxVFaQdm62xzAELVR6XtMz2CRXyedQFi1ordskMoNoX', 1, '2014-09-29 15:29:19', '2014-10-21 13:33:35'),
(3, 'dibaRaat', 'Jarin Tasnim Diba', '[email protected]', '$2y$10$RepMaUvCC6S2JhkQIFVj5.Asg2s2gG6jb7dA2fgdvD5Qodxv.ZaDe', '', '', 1, 'ApIble7dMRDQusb2rd9ZjLl9YGIwHOBqLXDYUp9CvtrhtYcAIxnEKiP2PCgD', 19, '2014-10-01 13:26:19', '2014-10-05 12:26:12');
-- --------------------------------------------------------
--
-- Table structure for table `votes`
--
CREATE TABLE IF NOT EXISTS `votes` (
`user_id` int(11) NOT NULL,
`question_id` int(11) NOT NULL,
`vote` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `votes`
--
INSERT INTO `votes` (`user_id`, `question_id`, `vote`) VALUES
(1, 2, 1),
(1, 3, 1),
(1, 5, 1),
(1, 6, 1),
(1, 7, 1),
(1, 8, 0),
(1, 9, 0),
(1, 18, 1),
(1, 20, 1),
(2, 7, 1),
(3, 2, 1),
(3, 4, 1),
(3, 6, 0),
(3, 7, 1);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `answers`
--
ALTER TABLE `answers`
ADD PRIMARY KEY (`answer_id`);
--
-- Indexes for table `questions`
--
ALTER TABLE `questions`
ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `id` (`id`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`user_id`);
--
-- Indexes for table `votes`
--
ALTER TABLE `votes`
ADD PRIMARY KEY (`user_id`,`question_id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `answers`
--
ALTER TABLE `answers`
MODIFY `answer_id` int(10) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=26;
--
-- AUTO_INCREMENT for table `questions`
--
ALTER TABLE `questions`
MODIFY `id` int(10) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=23;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `user_id` int(10) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=7;
/*!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 */;