-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwork.sql
41 lines (35 loc) · 1.11 KB
/
work.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
/*
Navicat MySQL Data Transfer
Source Server : localhost
Source Server Version : 50557
Source Host : localhost:3306
Source Database : work
Target Server Type : MYSQL
Target Server Version : 50557
File Encoding : 65001
Date: 2017-09-19 01:32:30
*/
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for products
-- ----------------------------
DROP TABLE IF EXISTS `products`;
CREATE TABLE `products` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`title` varchar(100) DEFAULT NULL,
`price` decimal(10,2) unsigned DEFAULT NULL,
`user_id` int(10) unsigned DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for users
-- ----------------------------
DROP TABLE IF EXISTS `users`;
CREATE TABLE `users` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`login` varchar(20) DEFAULT NULL,
`password` varchar(60) DEFAULT NULL,
`auth_key` varchar(32) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `login` (`login`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;