zmd50 5 years ago
parent 7796458e94
commit 96aa0680c7

@ -18,7 +18,7 @@ SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for book_list
-- ----------------------------
DROP TABLE IF EXISTS `book_list`;
DROP TABLE IF EXISTS `book`;
CREATE TABLE `book_list` (
`bookname` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`kind` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,

@ -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;

@ -18,9 +18,9 @@ SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for user_cart
-- ----------------------------
DROP TABLE IF EXISTS `user_cart`;
DROP TABLE IF EXISTS `cart`;
CREATE TABLE `user_cart` (
`username` varchar(11) COLLATE utf8_unicode_ci NOT NULL,
`username` varchar(40) COLLATE utf8_unicode_ci NOT NULL,
`bookname` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`price` float(10,2) NOT NULL,
`count` int(11) NOT NULL

@ -19,7 +19,7 @@ SET FOREIGN_KEY_CHECKS=0;
-- Table structure for user_list
-- ----------------------------
DROP TABLE IF EXISTS `user_list`;
CREATE TABLE `user_list` (
CREATE TABLE `user` (
`username` varchar(40) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`password` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`userstatus` int(11) NOT NULL,

Loading…
Cancel
Save