-- MySQL dump 10.13  Distrib 8.0.36, for macos14 (x86_64)
--
-- Host: 127.0.0.1    Database: regiondo_papershift
-- ------------------------------------------------------
-- Server version	9.0.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 `EinzelneSchicht`
--

DROP TABLE IF EXISTS `EinzelneSchicht`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `EinzelneSchicht` (
  `id` int NOT NULL AUTO_INCREMENT,
  `id_schicht_regiondo` int NOT NULL,
  `hash_id_regiondo` varchar(255) NOT NULL,
  `id_schicht_papershift` int DEFAULT NULL,
  `hash_id_papershift` varchar(255) DEFAULT NULL,
  `date_start` datetime NOT NULL,
  `date_end` datetime NOT NULL,
  `matching_standort_id` int NOT NULL,
  `ausfuehrung_zeit` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `hash_id_regiondo_UNIQUE` (`hash_id_regiondo`),
  UNIQUE KEY `hash_id_papershift_UNIQUE` (`hash_id_papershift`),
  KEY `matching_standort_id` (`matching_standort_id`),
  CONSTRAINT `einzelneschicht_ibfk_1` FOREIGN KEY (`matching_standort_id`) REFERENCES `MatchingStandorte` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `EinzelneSchicht`
--

LOCK TABLES `EinzelneSchicht` WRITE;
/*!40000 ALTER TABLE `EinzelneSchicht` DISABLE KEYS */;
/*!40000 ALTER TABLE `EinzelneSchicht` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `Gesamtschicht`
--

DROP TABLE IF EXISTS `Gesamtschicht`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Gesamtschicht` (
  `id` int NOT NULL AUTO_INCREMENT,
  `gesamte_hash_regiondo` varchar(255) DEFAULT NULL,
  `gesamte_hash_papershift` varchar(255) NOT NULL,
  `date_start` datetime NOT NULL,
  `date_end` datetime NOT NULL,
  `matching_standort_id` int NOT NULL,
  `ausfuehrung_zeit` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  UNIQUE KEY `gesamte_hash_papershift_UNIQUE` (`gesamte_hash_papershift`),
  KEY `matching_standort_id` (`matching_standort_id`),
  CONSTRAINT `gesamtschicht_ibfk_1` FOREIGN KEY (`matching_standort_id`) REFERENCES `MatchingStandorte` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `Gesamtschicht`
--

LOCK TABLES `Gesamtschicht` WRITE;
/*!40000 ALTER TABLE `Gesamtschicht` DISABLE KEYS */;
/*!40000 ALTER TABLE `Gesamtschicht` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `Log`
--

DROP TABLE IF EXISTS `Log`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Log` (
  `id` int NOT NULL AUTO_INCREMENT,
  `matching_standort_id` int NOT NULL,
  `operation` varchar(50) NOT NULL,
  `tabelle` varchar(50) NOT NULL,
  `beschreibung` text,
  `timestamp` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `matching_standort_id` (`matching_standort_id`),
  CONSTRAINT `logtabelle_ibfk_1` FOREIGN KEY (`matching_standort_id`) REFERENCES `MatchingStandorte` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `Log`
--

LOCK TABLES `Log` WRITE;
/*!40000 ALTER TABLE `Log` DISABLE KEYS */;
/*!40000 ALTER TABLE `Log` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `MatchingStandorte`
--

DROP TABLE IF EXISTS `MatchingStandorte`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `MatchingStandorte` (
  `id` int NOT NULL AUTO_INCREMENT,
  `id_standort_papershift` int NOT NULL,
  `id_standort_regiondo` int NOT NULL,
  `ausfuehrung_zeit` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `MatchingStandorte`
--

LOCK TABLES `MatchingStandorte` WRITE;
/*!40000 ALTER TABLE `MatchingStandorte` DISABLE KEYS */;
/*!40000 ALTER TABLE `MatchingStandorte` 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-10 14:55:29
