-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathminor2.sql
184 lines (149 loc) · 5.65 KB
/
minor2.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
-- phpMyAdmin SQL Dump
-- version 4.8.5
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Dec 13, 2019 at 04:35 AM
-- Server version: 10.1.40-MariaDB
-- PHP Version: 7.3.5
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: `minor2`
--
-- --------------------------------------------------------
--
-- Table structure for table `chats`
--
CREATE TABLE `chats` (
`chat_id` int(200) NOT NULL,
`chat_body` varchar(200) NOT NULL,
`chat_time` date NOT NULL,
`chat_sender_id` int(100) NOT NULL,
`chat_receiver_id` int(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `chats`
--
INSERT INTO `chats` (`chat_id`, `chat_body`, `chat_time`, `chat_sender_id`, `chat_receiver_id`) VALUES
(1, 'hello user', '2019-12-10', 7, 6),
(2, 'my name is hitesh', '2019-12-11', 7, 6),
(3, 'hey!', '2019-12-12', 6, 7),
(4, 'how are you', '2019-12-12', 6, 0),
(5, ' iam fine', '2019-12-12', 7, 0),
(6, 'see you', '2019-12-12', 7, 0);
-- --------------------------------------------------------
--
-- Table structure for table `products`
--
CREATE TABLE `products` (
`product_id` int(200) NOT NULL,
`product_name` varchar(200) NOT NULL,
`product_mode` varchar(50) NOT NULL,
`product_image` varchar(200) NOT NULL,
`product_description` text NOT NULL,
`product_time` varchar(30) NOT NULL,
`product_owner_id` int(200) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `products`
--
INSERT INTO `products` (`product_id`, `product_name`, `product_mode`, `product_image`, `product_description`, `product_time`, `product_owner_id`) VALUES
(4, 'Marker Pen', 'Sale', 'product4.jfif', 'This is black marker Pen. \r\niw bought this pen recently and now i dont want it .\r\nI want to exchange this marker pen in exchange of a yellow high lighter.\r\nif anyone has a yellow highligher pen then please contact me .\r\nThank You', '23-09-19', 3),
(5, 'Paper Pins', 'Donate', 'product2.jpg', 'This is a packet full of Paper Pins.\r\nThis box contains almost 100 pieces of paper pins.\r\nI want to donate this box .IF anyone wants this box, then please contact me ASAP.', '23-09-19', 3),
(6, 'R.D Sharma (Mathematics)', 'Exchange', 'product3.jfif', 'This is R.D sharma 5th edition mathematics book for class 10th students . i want to exchange this book in exchange of a adventureous novel.', '02-10-19', 3),
(7, 'paper clip', 'Exchange', 'product1.jpg', 'this is a paper clip to hold paper in a table .\r\ni want to exchange this paper clip with a marker pen.\r\n ', '15-11-19', 7);
-- --------------------------------------------------------
--
-- Table structure for table `reviews`
--
CREATE TABLE `reviews` (
`review_id` int(200) NOT NULL,
`review_body` text NOT NULL,
`review_date` text NOT NULL,
`review_owner_id` int(200) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `reviews`
--
INSERT INTO `reviews` (`review_id`, `review_body`, `review_date`, `review_owner_id`) VALUES
(3, 'I like this platform coz it helps me to fulfill my needs that i encounter during my academic years.Thank You for providing this platform. ', '25-09-19', 5),
(8, 'Thank you for providing this platform . ', '25-09-19', 3);
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`user_id` int(100) NOT NULL,
`user_name` varchar(100) NOT NULL,
`user_email` varchar(100) NOT NULL,
`user_password` varchar(100) NOT NULL,
`user_phone` decimal(10,0) NOT NULL,
`user_institute` varchar(200) NOT NULL,
`user_place` varchar(200) NOT NULL,
`user_gender` varchar(10) NOT NULL,
`user_profile_picture` varchar(200) NOT NULL DEFAULT 'user.png'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`user_id`, `user_name`, `user_email`, `user_password`, `user_phone`, `user_institute`, `user_place`, `user_gender`, `user_profile_picture`) VALUES
(6, 'user', '[email protected]', 'user', '1234567890', 'UIT', 'usernagar', 'male', 'user.png'),
(7, 'hitesh pant', '[email protected]', 'password', '8989430080', 'H.C.E.T.', 'Jabalpur', 'male', 'IMG_20170702_142643.jpg'),
(8, 'rashi', '[email protected]', 'rashi', '4541313213', '', '', 'female', 'user.png');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `chats`
--
ALTER TABLE `chats`
ADD PRIMARY KEY (`chat_id`);
--
-- Indexes for table `products`
--
ALTER TABLE `products`
ADD PRIMARY KEY (`product_id`);
--
-- Indexes for table `reviews`
--
ALTER TABLE `reviews`
ADD PRIMARY KEY (`review_id`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`user_id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `chats`
--
ALTER TABLE `chats`
MODIFY `chat_id` int(200) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `products`
--
ALTER TABLE `products`
MODIFY `product_id` int(200) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
--
-- AUTO_INCREMENT for table `reviews`
--
ALTER TABLE `reviews`
MODIFY `review_id` int(200) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `user_id` int(100) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
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 */;