dctjxt.sql 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  1. # Host: localhost (Version 5.5.15)
  2. # Date: 2020-05-23 23:04:30
  3. # Generator: MySQL-Front 6.0 (Build 2.20)
  4. #
  5. # Structure for table "admin"
  6. #
  7. create database dctjxt;
  8. use dctjxt;
  9. DROP TABLE IF EXISTS `admin`;
  10. CREATE TABLE `admin` (
  11. `userId` int(11) NOT NULL AUTO_INCREMENT,
  12. `userName` varchar(450) DEFAULT NULL,
  13. `userPw` varchar(450) DEFAULT NULL,
  14. PRIMARY KEY (`userId`)
  15. ) ENGINE=MyISAM AUTO_INCREMENT=7 DEFAULT CHARSET=utf8;
  16. #
  17. # Data for table "admin"
  18. #
  19. /*!40000 ALTER TABLE `admin` DISABLE KEYS */;
  20. INSERT INTO `admin` VALUES (1,'admin','123456'),(6,'gly','123456');
  21. /*!40000 ALTER TABLE `admin` ENABLE KEYS */;
  22. #
  23. # Structure for table "catelog"
  24. #
  25. DROP TABLE IF EXISTS `catelog`;
  26. CREATE TABLE `catelog` (
  27. `catelogid` int(11) NOT NULL AUTO_INCREMENT,
  28. `catelogname` varchar(50) DEFAULT NULL,
  29. `catelogmiaoshu` varchar(200) DEFAULT NULL,
  30. PRIMARY KEY (`catelogid`)
  31. ) ENGINE=MyISAM AUTO_INCREMENT=15 DEFAULT CHARSET=utf8;
  32. #
  33. # Data for table "catelog"
  34. #
  35. /*!40000 ALTER TABLE `catelog` DISABLE KEYS */;
  36. INSERT INTO `catelog` VALUES (1,'火锅','火锅'),(2,'川菜','川菜'),(3,'烤肉','烤肉'),(4,'粥类','粥类');
  37. /*!40000 ALTER TABLE `catelog` ENABLE KEYS */;
  38. #
  39. # Structure for table "gonggao"
  40. #
  41. DROP TABLE IF EXISTS `gonggao`;
  42. CREATE TABLE `gonggao` (
  43. `id` int(11) NOT NULL AUTO_INCREMENT,
  44. `title` varchar(200) DEFAULT '',
  45. `content` longtext,
  46. `shijian` varchar(50) DEFAULT NULL,
  47. PRIMARY KEY (`id`)
  48. ) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
  49. #
  50. # Data for table "gonggao"
  51. #
  52. /*!40000 ALTER TABLE `gonggao` DISABLE KEYS */;
  53. INSERT INTO `gonggao` VALUES (1,'端午节活动通知','最好吃的火锅','2020-05-23 16:59:47');
  54. /*!40000 ALTER TABLE `gonggao` ENABLE KEYS */;
  55. #
  56. # Structure for table "goods"
  57. #
  58. DROP TABLE IF EXISTS `goods`;
  59. CREATE TABLE `goods` (
  60. `goodsId` int(11) NOT NULL AUTO_INCREMENT,
  61. `goodsName` varchar(1000) DEFAULT '',
  62. `goodsMiaoshu` text,
  63. `goodsPic` varchar(255) DEFAULT '',
  64. `goodsShichangjia` int(11) DEFAULT NULL,
  65. `goodsCatelogId` int(11) DEFAULT NULL,
  66. `goodsDel` varchar(20) DEFAULT '',
  67. `kucun` int(11) DEFAULT '0',
  68. `zt` int(11) DEFAULT '0',
  69. `zan` int(11) DEFAULT '0',
  70. `tj` int(11) DEFAULT '0',
  71. PRIMARY KEY (`goodsId`)
  72. ) ENGINE=InnoDB AUTO_INCREMENT=25 DEFAULT CHARSET=utf8;
  73. #
  74. # Data for table "goods"
  75. #
  76. INSERT INTO `goods` VALUES (1,'牛油麻辣','<p>非常香的牛油麻辣</p>','/upload/1586767306576.jpg',25,1,'1',999,0,0,1),(2,'番茄底料','<p>番茄底料</p>','/upload/1586767369952.jpg',18,1,'1',997,0,0,0),(3,'秘制芝麻酱','<p>秘制芝麻酱</p>','/upload/1586767411876.jpg',5,1,'1',999,0,0,0),(4,'蒜泥油碟','<p>蒜泥油碟</p>','/upload/1586767446441.jpg',3,1,'1',1000,0,0,0),(5,'极品鲜毛肚','<p>极品鲜毛肚 300G</p>','/upload/1586767489834.JPG',28,1,'1',997,0,0,1),(6,'羊肉卷','<p>羊肉卷 400g</p>','/upload/1586767525985.JPG',28,1,'1',1000,0,0,0),(7,'竹笋','<p>新鲜竹笋</p>','/upload/1586767570633.JPG',10,1,'1',999,0,0,0),(8,'豆腐','<p>新鲜豆腐</p>','/upload/1586767608579.jpg',5,1,'1',1000,0,0,0),(25,'麻婆豆腐','<p>麻婆豆腐</p>','/upload/1590245025593.jpg',35,2,'1',999,0,1,1),(26,'回锅肉','<p>回锅肉</p>','/upload/1590245062523.jpg',28,2,'1',999,0,1,1),(27,'毛血旺','<p>毛血旺</p>','/upload/1590245105333.jpg',68,2,'1',1000,0,0,0),(28,'小炒肉','<p>小炒肉</p>','/upload/1590245135709.jpg',21,2,'1',1000,0,0,0),(29,'烤猪五花','<p>烤猪五花</p>','/upload/1590245182907.jpg',32,3,'1',1000,0,0,1),(30,'烤牛舌','<p>烤牛舌</p>','/upload/1590245227655.jpg',57,3,'1',1000,0,0,0),(31,'皮蛋廋肉粥','<p>皮蛋廋肉粥</p>','/upload/1590245274032.jpg',5,4,'1',1000,0,0,0),(32,'红枣山药粥','<p>红枣山药粥</p>','/upload/1590245310469.jpg',5,4,'1',1000,0,0,1);
  77. #
  78. # Structure for table "liuyan"
  79. #
  80. DROP TABLE IF EXISTS `liuyan`;
  81. CREATE TABLE `liuyan` (
  82. `id` int(11) NOT NULL AUTO_INCREMENT,
  83. `uid` varchar(100) DEFAULT NULL,
  84. `lynr` varchar(255) DEFAULT NULL,
  85. `lysj` varchar(20) DEFAULT NULL,
  86. `lyhf` varchar(255) DEFAULT NULL,
  87. PRIMARY KEY (`id`)
  88. ) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8;
  89. #
  90. # Data for table "liuyan"
  91. #
  92. INSERT INTO `liuyan` VALUES (1,'25','不错的菜,我很喜欢','2020-05-23 23:03:02','谢谢你的支持');
  93. #
  94. # Structure for table "orderitem"
  95. #
  96. DROP TABLE IF EXISTS `orderitem`;
  97. CREATE TABLE `orderitem` (
  98. `orderItemId` int(11) NOT NULL AUTO_INCREMENT,
  99. `orderId` int(11) DEFAULT NULL,
  100. `goodsId` int(11) DEFAULT NULL,
  101. `goodsQuantity` int(11) DEFAULT NULL,
  102. PRIMARY KEY (`orderItemId`)
  103. ) ENGINE=MyISAM AUTO_INCREMENT=45 DEFAULT CHARSET=utf8;
  104. #
  105. # Data for table "orderitem"
  106. #
  107. /*!40000 ALTER TABLE `orderitem` DISABLE KEYS */;
  108. INSERT INTO `orderitem` VALUES (1,1,25,1),(2,1,26,1);
  109. /*!40000 ALTER TABLE `orderitem` ENABLE KEYS */;
  110. #
  111. # Structure for table "pinglun"
  112. #
  113. DROP TABLE IF EXISTS `pinglun`;
  114. CREATE TABLE `pinglun` (
  115. `id` int(11) NOT NULL AUTO_INCREMENT,
  116. `contents` varchar(500) DEFAULT '',
  117. `fbsj` varchar(50) DEFAULT NULL,
  118. `uname` varchar(255) DEFAULT NULL,
  119. `uhead` varchar(255) DEFAULT NULL,
  120. `zid` int(11) DEFAULT NULL,
  121. `huifu` varchar(255) DEFAULT NULL,
  122. PRIMARY KEY (`id`)
  123. ) ENGINE=InnoDB AUTO_INCREMENT=25 DEFAULT CHARSET=utf8;
  124. #
  125. # Data for table "pinglun"
  126. #
  127. INSERT INTO `pinglun` VALUES (1,'很好吃的豆腐','2020-05-23 23:01:53','李强',NULL,25,' 谢谢你的支持');
  128. #
  129. # Structure for table "torder"
  130. #
  131. DROP TABLE IF EXISTS `torder`;
  132. CREATE TABLE `torder` (
  133. `orderId` int(11) NOT NULL AUTO_INCREMENT,
  134. `orderBianhao` varchar(450) DEFAULT NULL,
  135. `orderDate` varchar(450) DEFAULT NULL,
  136. `orderZhuangtai` varchar(450) DEFAULT NULL,
  137. `orderJine` int(11) DEFAULT NULL,
  138. `orderSonghuodizhi` varchar(450) DEFAULT NULL,
  139. `orderFukuangfangshi` varchar(450) DEFAULT NULL,
  140. `orderUserId` varchar(100) DEFAULT NULL,
  141. `sjfk` int(11) DEFAULT NULL,
  142. `name` varchar(50) DEFAULT NULL,
  143. `tel` varchar(100) DEFAULT NULL,
  144. `remark` varchar(255) DEFAULT NULL,
  145. `zuowei` varchar(50) DEFAULT NULL,
  146. `state` varchar(20) DEFAULT NULL,
  147. PRIMARY KEY (`orderId`)
  148. ) ENGINE=MyISAM AUTO_INCREMENT=24 DEFAULT CHARSET=utf8;
  149. #
  150. # Data for table "torder"
  151. #
  152. /*!40000 ALTER TABLE `torder` DISABLE KEYS */;
  153. INSERT INTO `torder` VALUES (1,'20200523230111','2020-05-23 23:01:11','已完成',63,NULL,NULL,'25',63,'李强','15577777777','',NULL,NULL);
  154. /*!40000 ALTER TABLE `torder` ENABLE KEYS */;
  155. #
  156. # Structure for table "userinfo"
  157. #
  158. DROP TABLE IF EXISTS `userinfo`;
  159. CREATE TABLE `userinfo` (
  160. `id` int(11) NOT NULL AUTO_INCREMENT,
  161. `name` varchar(50) DEFAULT NULL,
  162. `tel` varchar(50) DEFAULT NULL,
  163. `upwd` varchar(255) DEFAULT NULL,
  164. `utype` varchar(200) DEFAULT NULL,
  165. PRIMARY KEY (`id`)
  166. ) ENGINE=MyISAM AUTO_INCREMENT=23 DEFAULT CHARSET=utf8 CHECKSUM=1 DELAY_KEY_WRITE=1 ROW_FORMAT=DYNAMIC;
  167. #
  168. # Data for table "userinfo"
  169. #
  170. /*!40000 ALTER TABLE `userinfo` DISABLE KEYS */;
  171. INSERT INTO `userinfo` VALUES (25,'李强','15577777777','123456','3,4');
  172. /*!40000 ALTER TABLE `userinfo` ENABLE KEYS */;
  173. #
  174. # Structure for table "zaninfo"
  175. #
  176. DROP TABLE IF EXISTS `zaninfo`;
  177. CREATE TABLE `zaninfo` (
  178. `id` int(11) NOT NULL AUTO_INCREMENT,
  179. `tcid` int(11) DEFAULT NULL,
  180. `uid` int(11) DEFAULT NULL,
  181. PRIMARY KEY (`id`)
  182. ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8;
  183. #
  184. # Data for table "zaninfo"
  185. #
  186. INSERT INTO `zaninfo` VALUES (2,25,25),(3,26,25);