-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdatabase.sql
More file actions
23 lines (20 loc) · 938 Bytes
/
database.sql
File metadata and controls
23 lines (20 loc) · 938 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
CREATE TABLE IF NOT EXISTS `order` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`name` varchar(255) COLLATE utf8_persian_ci NOT NULL,
`email` varchar(90) COLLATE utf8_persian_ci NOT NULL,
`tel` varchar(20) COLLATE utf8_persian_ci NOT NULL,
`comment` varchar(255) COLLATE utf8_persian_ci NOT NULL,
`amount` int(7) NOT NULL,
`status` enum('n','y') COLLATE utf8_persian_ci NOT NULL DEFAULT 'n',
`ref` varchar(255) COLLATE utf8_persian_ci NOT NULL,
`date` int(10) NOT NULL,
PRIMARY KEY (`id`),
KEY `date` (`date`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_persian_ci AUTO_INCREMENT=1000 ;
CREATE TABLE IF NOT EXISTS `product` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`name` varchar(255) COLLATE utf8_persian_ci NOT NULL,
`desc` varchar(255) COLLATE utf8_persian_ci NOT NULL,
`amount` int(7) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_persian_ci AUTO_INCREMENT=1000 ;