|
|
|
@ -18,14 +18,13 @@ SET FOREIGN_KEY_CHECKS=0;
|
|
|
|
|
-- ----------------------------
|
|
|
|
|
-- Table structure for order_details
|
|
|
|
|
-- ----------------------------
|
|
|
|
|
DROP TABLE IF EXISTS `order_details`;
|
|
|
|
|
DROP TABLE IF EXISTS `order`;
|
|
|
|
|
CREATE TABLE `order_details` (
|
|
|
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
|
|
`userId` int(11) NOT NULL,
|
|
|
|
|
`orderNum` int(11) NOT NULL,
|
|
|
|
|
`ISBN` varchar(20) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
|
|
|
|
|
`bookname` varchar(100) NOT NULL,
|
|
|
|
|
`count` int(11) NOT NULL,
|
|
|
|
|
`price` float(10,2) NOT NULL,
|
|
|
|
|
`username` int(40) NOT NULL,
|
|
|
|
|
PRIMARY KEY (`id`)
|
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
|
|
|
|
|
|
|
|
|