Repository navigation
Expand file tree
/
Copy pathdatabase.sql
More file actions
162 lines (131 loc) · 4.64 KB
/
Copy pathdatabase.sql
File metadata and controls
162 lines (131 loc) · 4.64 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
162
-- phpMyAdmin SQL Dump
-- version 5.2.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Apr 24, 2023 at 09:14 AM
-- Server version: 10.4.27-MariaDB
-- PHP Version: 8.0.25
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
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: `bmv_res`
--
-- --------------------------------------------------------
--
-- Table structure for table `cart`
--
CREATE TABLE `cart` (
`user_id` int(11) NOT NULL,
`item_id` int(11) NOT NULL,
`item_name` varchar(256) NOT NULL,
`Quantity` int(11) NOT NULL,
`item_cost` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
-- --------------------------------------------------------
--
-- Table structure for table `comments`
--
CREATE TABLE `comments` (
`sl` int(11) NOT NULL,
`name` text NOT NULL,
`comment` text NOT NULL,
`comented_at` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
--
-- Dumping data for table `comments`
--
INSERT INTO `comments` (`sl`, `name`, `comment`, `comented_at`) VALUES
(2, 'bindhu varma', ' Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eligendi corporis assumenda esse dignissimos quibusdam libero, fuga rem quis pariatur error quae neque expedita? Dolorum iusto, quae amet aperiam ratione id.\n', '2023-04-19 05:27:11'),
(3, 'bindhu varma', 'test Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eligendi corporis assumenda esse dignissimos quibusdam libero, fuga rem quis pariatur error quae neque expedita? Dolorum iusto, quae amet aperiam ratione id.\n', '2023-04-19 05:29:18'),
(4, 'bindhu varma', ' Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eligendi corporis assumenda esse dignissimos quibusdam libero, fuga rem quis pariatur error quae neque expedita? Dolorum iusto, quae amet aperiam ratione id.\n', '2023-04-19 05:29:31');
-- --------------------------------------------------------
--
-- Table structure for table `items`
--
CREATE TABLE `items` (
`item_id` int(11) NOT NULL,
`item_name` varchar(256) NOT NULL,
`item_cost` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
--
-- Dumping data for table `items`
--
INSERT INTO `items` (`item_id`, `item_name`, `item_cost`) VALUES
(1, 'Chicken Dum Biriyani', 220),
(2, 'Special Chicken Biriyani', 240),
(3, 'Chicken Wings Biriyani', 230),
(4, 'Chicken Kebab Biriyani', 250),
(5, 'Chicken Keema Biriyani', 250),
(6, 'Mutton Dum Biriyani', 300),
(7, 'Special Mutton Biriyani', 340),
(8, 'Special Fish Biriyani', 260),
(9, 'Chicken Dum Biriyani+Chicken Fry', 440),
(10, 'Special Chicken Biriyani+Chicken Lollipop', 480),
(11, 'Chicken Wings Biriyani+Curd Rice', 330),
(12, 'Chicken Kebab Biriyani+Mushroom Fry', 360),
(13, '3 Butter Kulcha+Paneer Masala', 300);
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`user_id` int(11) NOT NULL,
`firstname` varchar(256) NOT NULL,
`lastname` varchar(256) NOT NULL,
`username` varchar(256) NOT NULL,
`password` varchar(256) NOT NULL,
`mobile` int(11) NOT NULL,
`address` varchar(500) NOT NULL,
`role` varchar(20) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`user_id`, `firstname`, `lastname`, `username`, `password`, `mobile`, `address`, `role`) VALUES
(0, 'admin', 'user', 'admin', 'admin@2023', 0, 'images/user.jpg', 'admin');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `comments`
--
ALTER TABLE `comments`
ADD PRIMARY KEY (`sl`);
--
-- Indexes for table `items`
--
ALTER TABLE `items`
ADD PRIMARY KEY (`item_id`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`user_id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `comments`
--
ALTER TABLE `comments`
MODIFY `sl` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `items`
--
ALTER TABLE `items`
MODIFY `item_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `user_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1;
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 */;