-- MariaDB dump 10.19  Distrib 10.5.23-MariaDB, for Linux (x86_64)
--
-- Host: localhost    Database: user212
-- ------------------------------------------------------
-- Server version	10.5.23-MariaDB

/*!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 */;
/*!40101 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 `doc_name`
--

DROP TABLE IF EXISTS `doc_name`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `doc_name` (
  `doc_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `doc` char(60) DEFAULT NULL,
  PRIMARY KEY (`doc_id`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `doc_name`
--

LOCK TABLES `doc_name` WRITE;
/*!40000 ALTER TABLE `doc_name` DISABLE KEYS */;
INSERT INTO `doc_name` VALUES (1,'Partnership Agreement'),(2,'Quarterly Sales Report'),(3,'Marketing Events Plan'),(4,'Workplace Safety Instructions'),(5,'Company Development Strategy'),(6,'Project Plan for New Product Development'),(7,'Bonus Program Policy'),(8,'Technical Specification for Web Application Development'),(9,'Limited Liability Company Charter'),(10,'Office Space Lease Agreement');
/*!40000 ALTER TABLE `doc_name` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `emp_name`
--

DROP TABLE IF EXISTS `emp_name`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `emp_name` (
  `emp_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `emp` char(60) DEFAULT NULL,
  PRIMARY KEY (`emp_id`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `emp_name`
--

LOCK TABLES `emp_name` WRITE;
/*!40000 ALTER TABLE `emp_name` DISABLE KEYS */;
INSERT INTO `emp_name` VALUES (1,'John Smith'),(2,'Alice Johnson'),(3,'Michael Brown'),(4,'Emily Davis'),(5,'Daniel Martinez'),(6,'Sarah Wilson'),(7,'James Taylor'),(8,'Emma Thomas'),(9,'Christopher Lee'),(10,'Olivia White');
/*!40000 ALTER TABLE `emp_name` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `process_docs`
--

DROP TABLE IF EXISTS `process_docs`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `process_docs` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `document` int(10) unsigned NOT NULL,
  `employee` int(10) unsigned NOT NULL,
  `reception_date` date DEFAULT NULL,
  `return_date` date DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `document` (`document`),
  KEY `employee` (`employee`),
  CONSTRAINT `process_docs_ibfk_1` FOREIGN KEY (`document`) REFERENCES `doc_name` (`doc_id`),
  CONSTRAINT `process_docs_ibfk_2` FOREIGN KEY (`employee`) REFERENCES `emp_name` (`emp_id`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `process_docs`
--

LOCK TABLES `process_docs` WRITE;
/*!40000 ALTER TABLE `process_docs` DISABLE KEYS */;
INSERT INTO `process_docs` VALUES (1,7,4,'2024-02-01','2024-02-10'),(2,2,10,'2024-02-02','2024-02-12'),(3,9,6,'2024-02-03','2024-02-15'),(4,3,1,'2024-02-04','2024-02-18'),(5,8,7,'2024-02-05','2024-02-20'),(6,1,8,'2024-02-06','2024-02-22'),(7,10,3,'2024-02-07','2024-02-24'),(8,5,9,'2024-02-08','2024-02-26'),(9,4,5,'2024-02-09','2024-02-28'),(10,6,2,'2024-02-10','2024-03-01');
/*!40000 ALTER TABLE `process_docs` 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 2024-03-19 17:23:51
