-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsmart_student.sql
More file actions
161 lines (132 loc) · 3.9 KB
/
smart_student.sql
File metadata and controls
161 lines (132 loc) · 3.9 KB
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
-- phpMyAdmin SQL Dump
-- version 4.7.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Sep 06, 2017 at 08:06 AM
-- Server version: 10.1.25-MariaDB
-- PHP Version: 7.1.7
--
-- Database: `smart_student`
--
-- --------------------------------------------------------
--
-- Table structure for table `event`
--
CREATE TABLE `event` (
`id` int(30) NOT NULL,
`event` varchar(30) NOT NULL,
`about` varchar(255) NOT NULL,
`time` varchar(100) NOT NULL
);
--
-- Dumping data for table `event`
--
INSERT INTO `event` (`id`, `event`, `about`, `time`) VALUES
(1, 'EDGE', 'Techno India Technical Fest', '08-APR-2017 10:00 AM'),
(2, 'Anakhronos', 'Cultural Event of our College', '01-JUN-2017 10:30 AM'),
(3, 'Gekonix', 'Technical Event for gamers and coders.', '01-JUN-2017 2:00 PM');
-- --------------------------------------------------------
--
-- Table structure for table `forum`
--
CREATE TABLE `forum` (
`id` int(30) NOT NULL,
`query` varchar(1000) NOT NULL,
`answer` varchar(1000) NOT NULL
);
--
-- Dumping data for table `forum`
--
INSERT INTO `forum` (`id`, `query`, `answer`) VALUES
(1, 'When will be our Grand Viva ?', '23rd May 2017'),
(2, 'When will be our semester?', 'Semester will start on or after 6th June'),
(3, 'When will we get our Marksheet ?', 'After 9th June 2017'),
(4, 'When will be our Farewell ?', '20th May Saturday at 10 o\'clock sharp.');
-- --------------------------------------------------------
--
-- Table structure for table `notification`
--
CREATE TABLE `notification` (
`id` int(30) NOT NULL,
`subject` varchar(30) NOT NULL,
`about` varchar(1000) NOT NULL,
`time` varchar(30) NOT NULL
);
--
-- Dumping data for table `notification`
--
INSERT INTO `notification` (`id`, `subject`, `about`, `time`) VALUES
(1, 'DBMS', 'First Internal', '05-APR-2017 02:30:00 PM'),
(2, 'JAVA', 'First Internal', '13-APR-2017 02:00 PM'),
(3, 'Major Project', 'Today is Major Project Submission', '30-May-2017 10:00 AM'),
(4, 'Grand Viva', 'This week your final semester grand viva will held', '30-May-2017 10:45 AM');
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` int(11) NOT NULL,
`unique_id` varchar(23) NOT NULL,
`name` varchar(50) NOT NULL,
`email` varchar(100) NOT NULL,
`encrypted_password` varchar(80) NOT NULL,
`salt` varchar(10) NOT NULL,
`created_at` datetime DEFAULT NULL,
`updated_at` datetime DEFAULT NULL
);
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`id`, `unique_id`, `name`, `email`, `encrypted_password`, `salt`, `created_at`, `updated_at`) VALUES
(1, '58f221a7d05491.74837330', 'Nilotpal Saha', 'nil@saha.com', 'u0duFFfa7F06YNQUr7Mvn8jLPm4yYTEwZWIxYjJh', '2a10eb1b2a', '2017-04-15 19:05:35', NULL),
(2, '5959de74ec6c60.17924080', 'demo test', 'demo@test.com', 'oVQcHm0s9pVxyM823zO4eKq0DNozOGIyZGNhMGNk', '38b2dca0cd', '2017-07-03 11:34:36', NULL);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `event`
--
ALTER TABLE `event`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `forum`
--
ALTER TABLE `forum`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `notification`
--
ALTER TABLE `notification`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `unique_id` (`unique_id`),
ADD UNIQUE KEY `email` (`email`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `event`
--
ALTER TABLE `event`
MODIFY `id` int(30) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `forum`
--
ALTER TABLE `forum`
MODIFY `id` int(30) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `notification`
--
ALTER TABLE `notification`
MODIFY `id` int(30) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
COMMIT;