-- MySQL dump 10.13  Distrib 8.0.36, for Win64 (x86_64)
--
-- Host: 192.168.201.207    Database: pozorisp_Exam_KonkinMA
-- ------------------------------------------------------
-- Server version	5.7.44

/*!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 `Material_suplier`
--

DROP TABLE IF EXISTS `Material_suplier`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Material_suplier` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `idMaterial` int(11) NOT NULL,
  `idSuplier` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `fk__idx` (`idMaterial`),
  KEY `fk__idx1` (`idSuplier`),
  CONSTRAINT `fk_MaterialNameId` FOREIGN KEY (`idMaterial`) REFERENCES `Name_material` (`idName_material`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_SuplierNameId` FOREIGN KEY (`idSuplier`) REFERENCES `Suplier_Name` (`idSuplier_Name`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `Material_suplier`
--

LOCK TABLES `Material_suplier` WRITE;
/*!40000 ALTER TABLE `Material_suplier` DISABLE KEYS */;
INSERT INTO `Material_suplier` VALUES (1,1,1),(2,2,2),(3,3,3),(4,4,4),(5,5,5),(6,6,6),(7,7,7),(8,8,8),(9,9,9),(10,10,10),(11,11,11),(12,12,12),(13,13,13),(14,14,14),(15,15,15),(16,16,16),(17,17,17),(18,18,18),(19,19,19),(20,20,20);
/*!40000 ALTER TABLE `Material_suplier` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `Material_type`
--

DROP TABLE IF EXISTS `Material_type`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Material_type` (
  `idMaterial_type` int(11) NOT NULL,
  `Type_material` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL,
  `Material_percent` decimal(10,0) NOT NULL,
  PRIMARY KEY (`idMaterial_type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `Material_type`
--

LOCK TABLES `Material_type` WRITE;
/*!40000 ALTER TABLE `Material_type` DISABLE KEYS */;
INSERT INTO `Material_type` VALUES (1,'Пластичные материалы',12),(2,'Добавка',2),(3,'Электролит',15),(4,'Глазурь',3),(5,'Пигмент',25);
/*!40000 ALTER TABLE `Material_type` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `Materials`
--

DROP TABLE IF EXISTS `Materials`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Materials` (
  `idMaterials` int(11) NOT NULL AUTO_INCREMENT,
  `idNameMaterial` int(11) NOT NULL,
  `idTypeMaterial` int(11) NOT NULL,
  `materials_ed_price` decimal(10,2) NOT NULL,
  `Col_manufacturer` decimal(10,2) NOT NULL,
  `Col_min` decimal(10,2) NOT NULL,
  `Col_pack` decimal(10,2) NOT NULL,
  `idUnit` int(11) NOT NULL,
  PRIMARY KEY (`idMaterials`),
  KEY `fk_MAterialName_idx` (`idNameMaterial`),
  KEY `fk_MaterialType_idx` (`idTypeMaterial`),
  KEY `Fk_Unit_idx` (`idUnit`),
  CONSTRAINT `Fk_Unit` FOREIGN KEY (`idUnit`) REFERENCES `Unit` (`idUnit`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_MAterialName` FOREIGN KEY (`idNameMaterial`) REFERENCES `Name_material` (`idName_material`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_MaterialType` FOREIGN KEY (`idTypeMaterial`) REFERENCES `Material_type` (`idMaterial_type`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `Materials`
--

LOCK TABLES `Materials` WRITE;
/*!40000 ALTER TABLE `Materials` DISABLE KEYS */;
INSERT INTO `Materials` VALUES (1,1,1,15.29,1570.00,5500.00,30.00,1),(2,3,2,200.90,1030.00,3500.00,25.00,1),(3,2,1,375.96,2147.00,3500.00,25.00,1),(4,1,1,17.66,3000.00,3000.00,30.00,1),(5,5,2,13.99,150.00,1000.00,50.00,2),(6,7,2,375.96,3000.00,1500.00,500.00,1),(7,5,2,21.95,3000.00,2500.00,20.00,1),(8,2,2,15.99,2300.00,1960.00,20.00,1),(9,3,3,54.55,1200.00,1500.00,25.00,1),(10,4,3,76.59,500.00,1500.00,15.00,1),(11,6,4,375.96,1500.00,2500.00,10.00,1),(12,5,4,15.99,750.00,1500.00,100.00,1),(13,4,3,200.90,1496.00,2500.00,5.00,2),(14,2,3,84.39,511.00,1750.00,25.00,1),(15,7,2,200.90,3000.00,1600.00,50.00,1),(16,4,2,15.99,2556.00,1600.00,25.00,1),(17,3,1,303.64,340.00,1500.00,25.00,1),(18,1,1,125.99,165.00,1300.00,25.00,1),(19,2,3,15.99,450.00,1100.00,25.00,1),(20,4,3,700.99,356.00,1200.00,25.00,1);
/*!40000 ALTER TABLE `Materials` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `Name_material`
--

DROP TABLE IF EXISTS `Name_material`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Name_material` (
  `idName_material` int(11) NOT NULL AUTO_INCREMENT,
  `Name_materialcol` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL,
  PRIMARY KEY (`idName_material`)
) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `Name_material`
--

LOCK TABLES `Name_material` WRITE;
/*!40000 ALTER TABLE `Name_material` DISABLE KEYS */;
INSERT INTO `Name_material` VALUES (1,'Краска-раствор'),(2,'Каолин'),(3,'Стекло'),(4,'Перлит'),(5,'Глина'),(6,'Кварцевый песок'),(7,'Дегидратированная глина'),(8,'Полевой шпат'),(9,'Порошок цветной'),(10,'Жильный кварц'),(11,'Гидрослюда'),(12,'Монтмориллонит'),(13,'Кварц'),(14,'Барий углекислый'),(15,'Жидкое стекло'),(16,'Углещелочной реагент'),(17,'Техническая сода'),(18,'Пирофосфат натрия'),(19,'Бура техническая'),(20,'Шамот');
/*!40000 ALTER TABLE `Name_material` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `Product_Tupe`
--

DROP TABLE IF EXISTS `Product_Tupe`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Product_Tupe` (
  `idProduct_Tupe` int(11) NOT NULL,
  `tupe_product` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL,
  `kof_tupe_product` decimal(10,2) NOT NULL,
  PRIMARY KEY (`idProduct_Tupe`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `Product_Tupe`
--

LOCK TABLES `Product_Tupe` WRITE;
/*!40000 ALTER TABLE `Product_Tupe` DISABLE KEYS */;
INSERT INTO `Product_Tupe` VALUES (1,'Тип продукции 1',1.20),(2,'Тип продукции 2',8.59),(3,'Тип продукции 3',3.45),(4,'Тип продукции 4',5.60);
/*!40000 ALTER TABLE `Product_Tupe` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `Suplier`
--

DROP TABLE IF EXISTS `Suplier`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Suplier` (
  `idSuplier` int(11) NOT NULL,
  `idSuplier_name` int(11) NOT NULL,
  `idType` int(11) NOT NULL,
  `inn` decimal(10,0) NOT NULL,
  `rate` int(11) NOT NULL,
  `Start_date` datetime NOT NULL,
  PRIMARY KEY (`idSuplier`),
  KEY `Fk_SuplierName_idx` (`idSuplier_name`),
  KEY `Fk_TypeSuplier_idx` (`idType`),
  CONSTRAINT `Fk_SuplierName` FOREIGN KEY (`idSuplier_name`) REFERENCES `Suplier_Name` (`idSuplier_Name`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `Fk_TypeSuplier` FOREIGN KEY (`idType`) REFERENCES `Type_Suplier` (`idType_Suplier`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `Suplier`
--

LOCK TABLES `Suplier` WRITE;
/*!40000 ALTER TABLE `Suplier` DISABLE KEYS */;
INSERT INTO `Suplier` VALUES (1,1,1,9432455179,8,'2020-12-20 15:00:00'),(2,2,1,7803888520,7,'2013-09-20 17:00:00'),(3,3,2,8430391035,7,'2023-12-20 16:00:00'),(4,2,2,4318170454,8,'2027-05-20 19:00:00'),(5,1,2,7687851800,7,'2016-06-20 15:00:00'),(6,4,3,6119144874,9,'2027-12-20 21:00:00'),(7,6,4,1122170258,3,'2010-04-20 22:00:00'),(8,3,3,8355114917,5,'2013-03-20 22:00:00'),(9,5,4,3532367439,8,'2011-11-20 23:00:00'),(10,6,4,2362431140,3,'2023-11-20 18:00:00'),(11,4,3,4159215346,2,'2007-07-20 12:00:00'),(12,3,1,9032455179,4,'2023-07-20 21:00:00'),(13,1,4,3776671267,9,'2023-05-20 16:00:00'),(14,4,4,7447864518,8,'2025-06-20 15:00:00'),(15,6,3,9037040523,6,'2009-03-20 17:00:00'),(16,3,3,6221520857,4,'2007-05-20 15:00:00'),(17,5,1,2262431140,3,'2022-12-20 20:00:00'),(18,1,2,4155215346,7,'2022-05-20 15:00:00'),(19,2,1,3961234561,5,'2025-11-20 10:00:00'),(20,6,1,9600275878,7,'2020-12-20 16:00:00');
/*!40000 ALTER TABLE `Suplier` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `Suplier_Name`
--

DROP TABLE IF EXISTS `Suplier_Name`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Suplier_Name` (
  `idSuplier_Name` int(11) NOT NULL,
  `Suplier_Namecol` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL,
  PRIMARY KEY (`idSuplier_Name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `Suplier_Name`
--

LOCK TABLES `Suplier_Name` WRITE;
/*!40000 ALTER TABLE `Suplier_Name` DISABLE KEYS */;
INSERT INTO `Suplier_Name` VALUES (1,'Арсенал'),(2,'Железногорская руда'),(3,'ВоронежРудоКомбинат'),(4,'БрянскСтройресурс'),(5,'ГорТехРазработка'),(6,'Белая гора'),(7,'КамчаткаСтройМинералы'),(8,'Горная компания'),(9,'КурскРесурс'),(10,'МосКарьер'),(11,'Минерал Ресурс'),(12,'Карелия добыча'),(13,'Смоленский добывающий комбинат'),(14,'Сапфир'),(15,'Нижегородская разработка'),(16,'Московский ХимЗавод'),(17,'ХимБытСервис'),(18,'Речная долина'),(19,'Стройкомплект'),(20,'Тульский обрабатывающий завод');
/*!40000 ALTER TABLE `Suplier_Name` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `Type_Suplier`
--

DROP TABLE IF EXISTS `Type_Suplier`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Type_Suplier` (
  `idType_Suplier` int(11) NOT NULL,
  `name` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL,
  PRIMARY KEY (`idType_Suplier`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `Type_Suplier`
--

LOCK TABLES `Type_Suplier` WRITE;
/*!40000 ALTER TABLE `Type_Suplier` DISABLE KEYS */;
INSERT INTO `Type_Suplier` VALUES (1,'ЗАО'),(2,'ООО'),(3,'ПАО'),(4,'ОАО');
/*!40000 ALTER TABLE `Type_Suplier` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `Unit`
--

DROP TABLE IF EXISTS `Unit`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Unit` (
  `idUnit` int(11) NOT NULL,
  `name` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL,
  PRIMARY KEY (`idUnit`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `Unit`
--

LOCK TABLES `Unit` WRITE;
/*!40000 ALTER TABLE `Unit` DISABLE KEYS */;
INSERT INTO `Unit` VALUES (1,'кг'),(2,'л');
/*!40000 ALTER TABLE `Unit` 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 2026-05-15 11:10:30
