-- MySQL dump 10.13 Distrib 8.0.36, for Win64 (x86_64) -- -- Host: cfif31.ru Database: ISPr25-23_StarostinaYN_42PODGOOVKA -- ------------------------------------------------------ -- Server version 8.0.43-0ubuntu0.24.04.1 /*!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 utf8 */; /*!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 `categorproduct` -- DROP TABLE IF EXISTS `categorproduct`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `categorproduct` ( `idcategorproduct` int NOT NULL, `name` varchar(45) NOT NULL, PRIMARY KEY (`idcategorproduct`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `categorproduct` -- LOCK TABLES `categorproduct` WRITE; /*!40000 ALTER TABLE `categorproduct` DISABLE KEYS */; /*!40000 ALTER TABLE `categorproduct` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `manufacturer` -- DROP TABLE IF EXISTS `manufacturer`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `manufacturer` ( `idmanufacturer` int NOT NULL AUTO_INCREMENT, `name` varchar(45) NOT NULL, PRIMARY KEY (`idmanufacturer`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `manufacturer` -- LOCK TABLES `manufacturer` WRITE; /*!40000 ALTER TABLE `manufacturer` DISABLE KEYS */; /*!40000 ALTER TABLE `manufacturer` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `nameproduct` -- DROP TABLE IF EXISTS `nameproduct`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `nameproduct` ( `idnameproduct` int NOT NULL AUTO_INCREMENT, `name` varchar(45) NOT NULL, PRIMARY KEY (`idnameproduct`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `nameproduct` -- LOCK TABLES `nameproduct` WRITE; /*!40000 ALTER TABLE `nameproduct` DISABLE KEYS */; /*!40000 ALTER TABLE `nameproduct` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `order` -- DROP TABLE IF EXISTS `order`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `order` ( `idorder` int NOT NULL AUTO_INCREMENT, `orderdate` date NOT NULL, `deliverydate` date NOT NULL, `pick-uppoint_id` varchar(45) NOT NULL, `user-id` varchar(45) NOT NULL, `receiptcode` varchar(45) NOT NULL, `orderstatus_id` varchar(45) NOT NULL, PRIMARY KEY (`idorder`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `order` -- LOCK TABLES `order` WRITE; /*!40000 ALTER TABLE `order` DISABLE KEYS */; /*!40000 ALTER TABLE `order` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `pick-uppoinr` -- DROP TABLE IF EXISTS `pick-uppoinr`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `pick-uppoinr` ( `idpick-uppoinr` int NOT NULL AUTO_INCREMENT, `addres` varchar(60) NOT NULL, PRIMARY KEY (`idpick-uppoinr`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `pick-uppoinr` -- LOCK TABLES `pick-uppoinr` WRITE; /*!40000 ALTER TABLE `pick-uppoinr` DISABLE KEYS */; /*!40000 ALTER TABLE `pick-uppoinr` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `product` -- DROP TABLE IF EXISTS `product`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `product` ( `idproduct` int NOT NULL AUTO_INCREMENT, `article` varchar(45) NOT NULL, `name_id` int NOT NULL, `unitofmeasurement` varchar(45) NOT NULL, `price` decimal(10,2) NOT NULL, `supplier_id` int NOT NULL, `manufacturer_id` int NOT NULL, `category_id` int NOT NULL, `discount` int NOT NULL, `quantityinstock` int NOT NULL, `description` text NOT NULL, `photo` blob NOT NULL, PRIMARY KEY (`idproduct`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `product` -- LOCK TABLES `product` WRITE; /*!40000 ALTER TABLE `product` DISABLE KEYS */; /*!40000 ALTER TABLE `product` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `role` -- DROP TABLE IF EXISTS `role`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `role` ( `idrole` int NOT NULL AUTO_INCREMENT, `name` varchar(45) NOT NULL, PRIMARY KEY (`idrole`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `role` -- LOCK TABLES `role` WRITE; /*!40000 ALTER TABLE `role` DISABLE KEYS */; /*!40000 ALTER TABLE `role` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `supplier` -- DROP TABLE IF EXISTS `supplier`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `supplier` ( `idsupplier` int NOT NULL AUTO_INCREMENT, `name` varchar(45) NOT NULL, PRIMARY KEY (`idsupplier`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `supplier` -- LOCK TABLES `supplier` WRITE; /*!40000 ALTER TABLE `supplier` DISABLE KEYS */; /*!40000 ALTER TABLE `supplier` 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` ( `iduser` int NOT NULL AUTO_INCREMENT, `lastname` varchar(45) NOT NULL, `firstname` varchar(45) NOT NULL, `patronomic` varchar(45) NOT NULL, `role_id` int NOT NULL, `login` varchar(45) NOT NULL, `password` varchar(45) NOT NULL, PRIMARY KEY (`iduser`), KEY `fk_user_role_idx` (`role_id`), CONSTRAINT `fk_user_role` FOREIGN KEY (`role_id`) REFERENCES `role` (`idrole`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `user` -- LOCK TABLES `user` WRITE; /*!40000 ALTER TABLE `user` DISABLE KEYS */; /*!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-11-14 11:42:11