This repository has been archived on 2025-01-14. You can view files and clone it, but cannot push or open issues/pull-requests.
computer-web/computer_db.sql

136 lines
14 KiB
MySQL
Raw Normal View History

2025-01-14 16:29:44 +08:00
<EFBFBD><EFBFBD>-- 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,'5u<11><>v',5999.00,10),(3,'3<>:g',199.00,50),(4,'<00><00><00>',99.00,30),(6,' <20>h',99.00,30),(7,'<00><00><00>',99.00,30),(11,'33',3.00,35),(12,'8',8.00,8),(13,'11',11.00,11),(14,'8<00><00><00><00><00><00>',8.00,8),(15,'<00><00><00><00><00><00>',1.00,1),(16,'<00><00><00><00><00><00>',1.00,1),(17,'<00><00><00><00><00><00>',2.00,2),(18,'<00><00><00><00><00><00>',2.00,2),(19,'<00><00><00><00><00><00>',2.00,2),(20,'<00><00><00><00><00><00>',1.00,1),(21,'<00><00><00><00><00><00>',2.00,2),(22,'KmՋ',1.00,1),(23,'(gP[',3.00,3),(24,'f<>',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','FU<46>TID<1A>1\r\nFU<46>T T<EFBFBD>y<1A>{<7B><>,g5u<11>\r\nFU<46>T<EFBFBD>N<h<1A>5999.0\r\nFU<46>TID<1A>3\r\nFU<46>T T<EFBFBD>y<1A>3<EFBFBD>:g\r\nFU<46>T<EFBFBD>N<h<1A>199.0\r\n','<00>]<5D>S'<EFBFBD>'),(489,1575,'2024-12-21 17:53:42',3.00,'132','FU<EFBFBD>TID<EFBFBD>11\r\nFU<EFBFBD>T T<EFBFBD>y<EFBFBD>33\r\nFU<EFBFBD>T<EFBFBD>N<h<EFBFBD>3.0\r\n','<EFBFBD>]<EFBFBD>S'<EFBFBD>'),(490,1575,'2024-12-21 20:32:34',5999.00,'qwqw','FU<46>TID<1A>1\r\nFU<46>T T<EFBFBD>y<1A>{<7B><>,g5u<11>\r\nFU<46>T<EFBFBD>N<h<1A>5999.0\r\n','<00>]<5D>S'<EFBFBD>'),(491,1575,'2024-12-21 20:40:56',3206.00,'efer','FU<EFBFBD>TID<EFBFBD>3\r\nFU<EFBFBD>T T<EFBFBD>y<EFBFBD>3<EFBFBD>:g\r\nFU<EFBFBD>T<EFBFBD>N<h<EFBFBD>199.0\r\nFU<EFBFBD>TID<EFBFBD>2\r\nFU<EFBFBD>T T<EFBFBD>y<EFBFBD>Kb:g\r\nFU<EFBFBD>T<EFBFBD>N<h<EFBFBD>2999.0\r\nFU<EFBFBD>TID<EFBFBD>12\r\nFU<EFBFBD>T T<EFBFBD>y<EFBFBD>8\r\nFU<EFBFBD>T<EFBFBD>N<h<EFBFBD>8.0\r\n','<EFBFBD>]<EFBFBD>S'<EFBFBD>'),(492,1577,'2024-12-22 00:54:26',4.00,'123','FU<46>TID<1A>23\r\nFU<46>T T<EFBFBD>y<1A>(gP[\r\nFU<46>T<EFBFBD>N<h<1A>3.0\r\nFU<46>TID<1A>22\r\nFU<46>T T<EFBFBD>y<1A>KmՋ\r\nFU<46>T<EFBFBD>N<h<1A>1.0\r\n','<00>]<5D>S'<EFBFBD>'),(493,1575,'2024-12-22 20:49:00',3198.00,'<EFBFBD>p<EFBFBD>p','FU<EFBFBD>TID<EFBFBD>3\r\nFU<EFBFBD>T T<EFBFBD>y<EFBFBD>3<EFBFBD>:g\r\nFU<EFBFBD>T<EFBFBD>N<h<EFBFBD>199.0\r\nFU<EFBFBD>TID<EFBFBD>2\r\nFU<EFBFBD>T T<EFBFBD>y<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>12\r\nFU<EFBFBD>T<EFBFBD>N<h<EFBFBD>2999.0\r\n','<EFBFBD>]<EFBFBD>S'<EFBFBD>'),(494,1575,'2024-12-22 22:23:53',198.00,'tyy','FU<46>TID<1A>6\r\nFU<46>T T<EFBFBD>y<1A> <20>h\r\nFU<46>T<EFBFBD>N<h<1A>99.0\r\nFU<46>TID<1A>7\r\nFU<46>T T<EFBFBD>y<1A><><00><00>\r\nFU<46>T<EFBFBD>N<h<1A>99.0\r\n','<00>]<5D>S'<EFBFBD>'),(495,1575,'2024-12-22 22:24:21',198.00,'tyy','FU<EFBFBD>TID<EFBFBD>6\r\nFU<EFBFBD>T T<EFBFBD>y<EFBFBD> <EFBFBD>h\r\nFU<EFBFBD>T<EFBFBD>N<h<EFBFBD>99.0\r\nFU<EFBFBD>TID<EFBFBD>7\r\nFU<EFBFBD>T T<EFBFBD>y<EFBFBD><EFBFBD><EFBFBD><EFBFBD>\r\nFU<EFBFBD>T<EFBFBD>N<h<EFBFBD>99.0\r\n','<EFBFBD>]<EFBFBD>S'<EFBFBD>'),(496,1575,'2024-12-22 22:24:49',198.00,'1','FU<46>TID<1A>6\r\nFU<46>T T<EFBFBD>y<1A> <20>h\r\nFU<46>T<EFBFBD>N<h<1A>99.0\r\nFU<46>TID<1A>7\r\nFU<46>T T<EFBFBD>y<1A><><00><00>\r\nFU<46>T<EFBFBD>N<h<1A>99.0\r\n','<00>_<EFBFBD>S'<EFBFBD>'),(497,1575,'2024-12-22 22:26:58',198.00,'1','FU<EFBFBD>TID<EFBFBD>6\r\nFU<EFBFBD>T T<EFBFBD>y<EFBFBD> <EFBFBD>h\r\nFU<EFBFBD>T<EFBFBD>N<h<EFBFBD>99.0\r\nFU<EFBFBD>TID<EFBFBD>7\r\nFU<EFBFBD>T T<EFBFBD>y<EFBFBD><EFBFBD><EFBFBD><EFBFBD>\r\nFU<EFBFBD>T<EFBFBD>N<h<EFBFBD>99.0\r\n','<EFBFBD>_<EFBFBD>S'<EFBFBD>'),(498,1575,'2024-12-22 22:27:43',198.00,'123','FU<46>TID<1A>6\r\nFU<46>T T<EFBFBD>y<1A> <20>h\r\nFU<46>T<EFBFBD>N<h<1A>99.0\r\nFU<46>TID<1A>7\r\nFU<46>T T<EFBFBD>y<1A><><00><00>\r\nFU<46>T<EFBFBD>N<h<1A>99.0\r\n','<00>]<5D>S'<EFBFBD>'),(499,1575,'2024-12-22 22:28:29',198.00,'5','FU<EFBFBD>TID<EFBFBD>6\r\nFU<EFBFBD>T T<EFBFBD>y<EFBFBD> <EFBFBD>h\r\nFU<EFBFBD>T<EFBFBD>N<h<EFBFBD>99.0\r\nFU<EFBFBD>TID<EFBFBD>7\r\nFU<EFBFBD>T T<EFBFBD>y<EFBFBD><EFBFBD><EFBFBD><EFBFBD>\r\nFU<EFBFBD>T<EFBFBD>N<h<EFBFBD>99.0\r\n','<EFBFBD>_<EFBFBD>S'<EFBFBD>'),(500,1577,'2025-01-14 15:13:34',6297.00,'12321','FU<46>TID<1A>6\r\nFU<46>T T<EFBFBD>y<1A> <20>h\r\nFU<46>T<EFBFBD>N<h<1A>99.0\r\nFU<46>TID<1A>3\r\nFU<46>T T<EFBFBD>y<1A>3<EFBFBD>:g\r\nFU<46>T<EFBFBD>N<h<1A>199.0\r\nFU<46>TID<1A>1\r\nFU<46>T T<EFBFBD>y<1A>5u<11><>v\r\nFU<46>T<EFBFBD>N<h<1A>5999.0\r\n','<00>_<EFBFBD>S'<EFBFBD>');
/*!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