This repository has been archived by the owner on Apr 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
iad_project_other.sql
134 lines (108 loc) · 3.63 KB
/
iad_project_other.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
-- phpMyAdmin SQL Dump
-- version 4.8.3
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Apr 18, 2019 at 06:05 AM
-- Server version: 10.1.37-MariaDB
-- PHP Version: 7.2.12
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: `iad_project`
--
-- --------------------------------------------------------
--
-- Table structure for table `orders`
--
CREATE TABLE `orders` (
`orderID` int(5) NOT NULL,
`orderDetail` varchar(255) NOT NULL,
`paid` varchar(25) NOT NULL,
`receiverName` varchar(255) NOT NULL,
`phoneNumber` int(20) NOT NULL,
`address` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `orders`
--
INSERT INTO `orders` (`orderID`, `orderDetail`, `paid`, `receiverName`, `phoneNumber`, `address`) VALUES
(1, 'Produce ID: 2 quantity: 1,Produce ID: 1 quantity: 1,Produce ID: 3 quantity: 1,', '$92.97', 'Alan Tan Jia Shun', 6235, '10 Ubi Crescent #04-88 Lobby E Ubi Techpark, 408564, Singapore'),
(2, 'Produce ID: 2 quantity: 10,Produce ID: 3 quantity: 3,', '$315.89', 'Alan Tan', 11131113, 'testing');
-- --------------------------------------------------------
--
-- Table structure for table `product`
--
CREATE TABLE `product` (
`id` int(3) NOT NULL,
`product_name` varchar(255) NOT NULL,
`price` decimal(5,2) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `product`
--
INSERT INTO `product` (`id`, `product_name`, `price`) VALUES
(1, 'Hershey\'s Milk Chocolate (10 bar)', '19.99'),
(2, 'Hershey\'s Skor Candy Bar (10 bar)', '26.99'),
(3, 'Hershey\'s Krackel Chocolate Bar (10 bar)', '45.99');
-- --------------------------------------------------------
--
-- Table structure for table `user`
--
CREATE TABLE `user` (
`Username` varchar(25) NOT NULL,
`Name` varchar(255) NOT NULL,
`Password` varchar(100) NOT NULL,
`Email` varchar(255) NOT NULL,
`Gender` char(1) NOT NULL,
`Phone` int(20) NOT NULL,
`Role` varchar(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `user`
--
INSERT INTO `user` (`Username`, `Name`, `Password`, `Email`, `Gender`, `Phone`, `Role`) VALUES
('a234567890123456789012345', 'very very very very very very very very long long name 2', '900150983cd24fb0d6963f7d28e17f72', '[email protected]', 'M', 12345678, 'N'),
('admin', 'admin', '21232f297a57a5a743894a0e4a801fc3', '[email protected]', 'M', 99999999, 'A'),
('alan', 'alan', '02558a70324e7c4f269c69825450cec8', '[email protected]', 'M', 12341222, 'N'),
('test', 'test', '098f6bcd4621d373cade4e832627b4f6', '[email protected]', 'M', 99999999, 'N');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `orders`
--
ALTER TABLE `orders`
ADD PRIMARY KEY (`orderID`),
ADD UNIQUE KEY `orderID` (`orderID`);
--
-- Indexes for table `product`
--
ALTER TABLE `product`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `id` (`id`);
--
-- Indexes for table `user`
--
ALTER TABLE `user`
ADD PRIMARY KEY (`Username`),
ADD UNIQUE KEY `Username` (`Username`),
ADD UNIQUE KEY `Email` (`Email`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `orders`
--
ALTER TABLE `orders`
MODIFY `orderID` int(5) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
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 */;