-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathsql_dump.sql
62 lines (57 loc) · 1.81 KB
/
sql_dump.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
# Host: localhost (Version: 5.1.38-community)
DROP DATABASE IF EXISTS `stshop`;
CREATE DATABASE `stshop` /*!40100 DEFAULT CHARACTER SET latin1 */;
USE `stshop`;
#
## table: login
## fields: eadd-> email address, pass-> password
#
CREATE TABLE `login` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`username` tinytext NOT NULL,
`password` text NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
#
## table: products
## fields: title-> title, image-> image(image_name eg:5.jpg), price-> price, category-> category
## categories are 'msrt' -> Mens shirts, 'msh' -> Mens Shoes , 'macc' -> Mens Accessories,
## 'wsrt' -> Womens Tops, 'wacc' -> Womens Accessories, 'wsh' -> Womens Footwear
#
CREATE TABLE `prod` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`title` text NOT NULL,
`image` mediumtext NOT NULL,
`price` int(11) NOT NULL,
`category` text NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
#
## table: paypal
## fields: eadd-> email address, pass-> password, add-> address
#
CREATE TABLE `paypal` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`eadd` tinytext NOT NULL,
`pass` text NOT NULL,
`add` text NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
#
## table: credit card
## fields: ccn-> credit card no., csc-> credit secure code, month-> month, year-> year,
## add-> address, cs-> country/state, tele-> telephone
#
CREATE TABLE `cc` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`ccn` int(11) NOT NULL,
`csc` int(11) NOT NULL,
`month` int(11) NOT NULL,
`year` int(11) NOT NULL,
`fname` text NOT NULL,
`lname` text NOT NULL,
`add` text NOT NULL,
`cs` text NOT NULL,
`tele` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;