-
Notifications
You must be signed in to change notification settings - Fork 0
/
online_notice.sql
186 lines (151 loc) · 5.05 KB
/
online_notice.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
-- phpMyAdmin SQL Dump
-- version 4.9.7deb1
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Jul 06, 2021 at 06:02 PM
-- Server version: 8.0.25-0ubuntu0.21.04.1
-- PHP Version: 7.4.16
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: `online_notice`
--
-- --------------------------------------------------------
--
-- Table structure for table `admin`
--
CREATE TABLE `admin` (
`admin_id` int NOT NULL,
`user` varchar(50) NOT NULL,
`pass` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `admin`
--
INSERT INTO `admin` (`admin_id`, `user`, `pass`) VALUES
(1, 'admin@gmail.com', 'admin');
-- --------------------------------------------------------
--
-- Table structure for table `contact`
--
CREATE TABLE `contact` (
`c_id` int NOT NULL,
`name` text NOT NULL,
`email` text NOT NULL,
`number` text NOT NULL,
`message` text NOT NULL,
`date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
--
-- Dumping data for table `contact`
--
INSERT INTO `contact` (`c_id`, `name`, `email`, `number`, `message`, `date`) VALUES
(1, 'Bhargav', 'akhani', '9054032999', 'Hello 123', '2020-10-20 22:00:18'),
(2, 'Kishan', 'akhani.bharga@gmail.com', '9054132999', 'Hello 123123', '2020-10-20 22:14:29'),
(3, 'Bhargav', '123@gmail.com', '9054132999', 'ABC ABC', '2020-11-15 12:26:01'),
(4, 'Bhargav', 'aa@gmail.com', '9054032999', 'Tryy', '2020-12-10 15:52:16'),
(5, 'Bhargav', 'ab@gmail.com', '9040132999', 'Tryyyy', '2020-12-10 16:06:53');
-- --------------------------------------------------------
--
-- Table structure for table `notice`
--
CREATE TABLE `notice` (
`notice_id` int NOT NULL,
`user` varchar(50) NOT NULL,
`subject` varchar(100) NOT NULL,
`Description` text NOT NULL,
`Date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `notice`
--
INSERT INTO `notice` (`notice_id`, `user`, `subject`, `Description`, `Date`) VALUES
(1, 'Bhargav', '1212', '12121', '2020-10-17 09:05:11'),
(9, 'akhani.bharga@gmail.com', '123', '123', '2020-10-17 09:06:25'),
(10, 'akhani.bharga@gmail.com', '1111111', '1212121212', '2020-10-17 14:59:23'),
(11, 'akhani.bharga@gmail.com', '12121212121', '12121212121212', '2020-10-17 22:32:12'),
(12, 'try@gmail.com', 'try', 'try1', '2020-12-10 11:16:13'),
(13, 'akhani.bharga@gmail.com', 'try', 'Try123', '2020-12-10 16:10:17'),
(14, 'akhani.bharga@gmail.com', '123', '123213123', '2020-12-11 15:14:45'),
(15, 'akhani.bharga@gmail.com', 'Try123123123', 'Bhargav Akhani', '2020-12-18 22:59:05'),
(16, 'akhani.bharga@gmail.com', 'Bh', 'ad', '2021-06-28 11:09:18');
-- --------------------------------------------------------
--
-- Table structure for table `user`
--
CREATE TABLE `user` (
`id` int NOT NULL,
`name` char(40) NOT NULL,
`email` varchar(40) NOT NULL,
`pass` varchar(40) NOT NULL,
`mobile` bigint NOT NULL,
`gender` varchar(40) NOT NULL,
`hobbies` varchar(40) NOT NULL,
`image` varchar(50) NOT NULL,
`dob` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `user`
--
INSERT INTO `user` (`id`, `name`, `email`, `pass`, `mobile`, `gender`, `hobbies`, `image`, `dob`) VALUES
(1257, 'abc', 'abc@gmail.com', '202cb962ac59075b964b07152d234b70', 123, 'm', 'reading', 'Screenshot from 2020-10-20 15-09-53.png', '1964-10-15 00:00:00'),
(1258, 'Bhargav', 'akhani.bharga@gmail.com', '202cb962ac59075b964b07152d234b70', 123, 'm', 'reading,singin', 'Screenshot from 2020-10-19 21-40-16.png', '1962-11-17 00:00:00');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `admin`
--
ALTER TABLE `admin`
ADD PRIMARY KEY (`admin_id`);
--
-- Indexes for table `contact`
--
ALTER TABLE `contact`
ADD PRIMARY KEY (`c_id`);
--
-- Indexes for table `notice`
--
ALTER TABLE `notice`
ADD PRIMARY KEY (`notice_id`);
--
-- Indexes for table `user`
--
ALTER TABLE `user`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `email` (`email`);
ALTER TABLE `user` ADD FULLTEXT KEY `name` (`name`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `admin`
--
ALTER TABLE `admin`
MODIFY `admin_id` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `contact`
--
ALTER TABLE `contact`
MODIFY `c_id` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `notice`
--
ALTER TABLE `notice`
MODIFY `notice_id` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17;
--
-- AUTO_INCREMENT for table `user`
--
ALTER TABLE `user`
MODIFY `id` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1260;
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 */;