-- MySQL dump 10.13 Distrib 8.0.40, for Win64 (x86_64) -- -- Host: localhost Database: work -- ------------------------------------------------------ -- Server version 8.0.40 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!50503 SET NAMES utf8mb4 */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; -- -- Table structure for table `cart` -- DROP TABLE IF EXISTS `cart`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `cart` ( `id` int NOT NULL AUTO_INCREMENT, `user_id` int DEFAULT NULL, `product_id` int DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=42 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `cart` -- LOCK TABLES `cart` WRITE; /*!40000 ALTER TABLE `cart` DISABLE KEYS */; INSERT INTO `cart` VALUES (33,1575,6),(34,1575,7),(36,1575,1),(37,1575,1),(38,1577,6),(39,1577,3),(40,1577,1),(41,1577,16); /*!40000 ALTER TABLE `cart` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `computer` -- DROP TABLE IF EXISTS `computer`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `computer` ( `id` int NOT NULL AUTO_INCREMENT, `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `price` decimal(10,2) NOT NULL, `stock` int NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=25 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `computer` -- LOCK TABLES `computer` WRITE; /*!40000 ALTER TABLE `computer` DISABLE KEYS */; INSERT INTO `computer` VALUES (1,'电脑的',5999.00,10),(3,'耳机',199.00,50),(4,'é¼ ',99.00,30),(6,'鼠标',99.00,30),(7,'é¼ ',99.00,30),(11,'33',3.00,35),(12,'8',8.00,8),(13,'11',11.00,11),(14,'8测试',8.00,8),(15,'测试',1.00,1),(16,'木子',1.00,1),(17,'木子',2.00,2),(18,'木子',2.00,2),(19,'木子',2.00,2),(20,'木子',1.00,1),(21,'木子',2.00,2),(22,'测试',1.00,1),(23,'木子',3.00,3),(24,'车',5.00,5); /*!40000 ALTER TABLE `computer` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `orders` -- DROP TABLE IF EXISTS `orders`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `orders` ( `id` int NOT NULL AUTO_INCREMENT, `user_id` int DEFAULT NULL, `order_date` datetime DEFAULT NULL, `total_price` decimal(10,2) DEFAULT NULL, `address` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `remark` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, `status` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=501 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `orders` -- LOCK TABLES `orders` WRITE; /*!40000 ALTER TABLE `orders` DISABLE KEYS */; INSERT INTO `orders` VALUES (488,16,'2024-12-21 17:18:33',6198.00,'1','商品ID:1\r\n商品名称:笔记本电脑\r\n商品价格:5999.0\r\n商品ID:3\r\n商品名称:耳机\r\n商品价格:199.0\r\n','已发货'),(489,1575,'2024-12-21 17:53:42',3.00,'132','商品ID:11\r\n商品名称:33\r\n商品价格:3.0\r\n','已发货'),(490,1575,'2024-12-21 20:32:34',5999.00,'qwqw','商品ID:1\r\n商品名称:笔记本电脑\r\n商品价格:5999.0\r\n','已发货'),(491,1575,'2024-12-21 20:40:56',3206.00,'efer','商品ID:3\r\n商品名称:耳机\r\n商品价格:199.0\r\n商品ID:2\r\n商品名称:手机\r\n商品价格:2999.0\r\n商品ID:12\r\n商品名称:8\r\n商品价格:8.0\r\n','已发货'),(492,1577,'2024-12-22 00:54:26',4.00,'123','商品ID:23\r\n商品名称:木子\r\n商品价格:3.0\r\n商品ID:22\r\n商品名称:测试\r\n商品价格:1.0\r\n','已发货'),(493,1575,'2024-12-22 20:49:00',3198.00,'热热','商品ID:3\r\n商品名称:耳机\r\n商品价格:199.0\r\n商品ID:2\r\n商品名称:手机12\r\n商品价格:2999.0\r\n','已发货'),(494,1575,'2024-12-22 22:23:53',198.00,'tyy','商品ID:6\r\n商品名称:鼠标\r\n商品价格:99.0\r\n商品ID:7\r\n商品名称:é¼ \r\n商品价格:99.0\r\n','已发货'),(495,1575,'2024-12-22 22:24:21',198.00,'tyy','商品ID:6\r\n商品名称:鼠标\r\n商品价格:99.0\r\n商品ID:7\r\n商品名称:é¼ \r\n商品价格:99.0\r\n','已发货'),(496,1575,'2024-12-22 22:24:49',198.00,'1','商品ID:6\r\n商品名称:鼠标\r\n商品价格:99.0\r\n商品ID:7\r\n商品名称:é¼ \r\n商品价格:99.0\r\n','待发货'),(497,1575,'2024-12-22 22:26:58',198.00,'1','商品ID:6\r\n商品名称:鼠标\r\n商品价格:99.0\r\n商品ID:7\r\n商品名称:é¼ \r\n商品价格:99.0\r\n','待发货'),(498,1575,'2024-12-22 22:27:43',198.00,'123','商品ID:6\r\n商品名称:鼠标\r\n商品价格:99.0\r\n商品ID:7\r\n商品名称:é¼ \r\n商品价格:99.0\r\n','已发货'),(499,1575,'2024-12-22 22:28:29',198.00,'5','商品ID:6\r\n商品名称:鼠标\r\n商品价格:99.0\r\n商品ID:7\r\n商品名称:é¼ \r\n商品价格:99.0\r\n','待发货'),(500,1577,'2025-01-14 15:13:34',6297.00,'12321','商品ID:6\r\n商品名称:鼠标\r\n商品价格:99.0\r\n商品ID:3\r\n商品名称:耳机\r\n商品价格:199.0\r\n商品ID:1\r\n商品名称:电脑的\r\n商品价格:5999.0\r\n','待发货'); /*!40000 ALTER TABLE `orders` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `user` -- DROP TABLE IF EXISTS `user`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `user` ( `id` int(11) unsigned zerofill NOT NULL AUTO_INCREMENT, `username` varchar(45) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, `phone` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL, `password` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL, `role` varchar(100) DEFAULT NULL, PRIMARY KEY (`id`) USING BTREE, UNIQUE KEY `user_unique` (`username`) ) ENGINE=InnoDB AUTO_INCREMENT=1593 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `user` -- LOCK TABLES `user` WRITE; /*!40000 ALTER TABLE `user` DISABLE KEYS */; INSERT INTO `user` VALUES (00000001577,'6','6','6','user'),(00000001579,'123','123','123','user'),(00000001581,'a','q','a','admin'),(00000001582,'0','0','0','user'),(00000001583,'8','8','8','user'),(00000001584,'9','9','9','user'),(00000001589,'7','7','7','user'),(00000001590,'66','766','66','user'),(00000001592,'5','5','5','user'); /*!40000 ALTER TABLE `user` ENABLE KEYS */; UNLOCK TABLES; /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; -- Dump completed on 2025-01-14 16:29:36