snall.sql 617 B

123456789101112131415161718192021
  1. -- show create table books
  2. DROP TABLE IF EXISTS `books`;
  3. CREATE TABLE `books` (
  4. `id` int(11) NOT NULL AUTO_INCREMENT,
  5. `isbn` varchar(20) NOT NULL,
  6. `openid` varchar(100) NOT NULL,
  7. `title` varchar(100) NOT NULL,
  8. `image` varchar(100) NOT NULL,
  9. `alt` varchar(100) NOT NULL,
  10. `publisher` varchar(100) NOT NULL,
  11. `summary` varchar(1000) NOT NULL,
  12. `price` varchar(100) DEFAULT NULL,
  13. `rate` float DEFAULT NULL,
  14. `tags` varchar(100) DEFAULT NULL,
  15. `author` varchar(100) DEFAULT NULL,
  16. `count` int(11) NOT NULL DEFAULT '0',
  17. PRIMARY KEY (`id`)
  18. ) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=utf8;