/*!999999\- enable the sandbox mode */ -- MariaDB dump 10.19 Distrib 10.11.8-MariaDB, for Linux (x86_64) -- -- Host: localhost Database: inventur -- ------------------------------------------------------ -- Server version 10.11.8-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 */; -- -- Current Database: `inventur` -- CREATE DATABASE /*!32312 IF NOT EXISTS*/ `inventur` /*!40100 DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci */; USE `inventur`; -- -- Table structure for table `__diesel_schema_migrations` -- DROP TABLE IF EXISTS `__diesel_schema_migrations`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `__diesel_schema_migrations` ( `version` varchar(50) NOT NULL, `run_on` timestamp NOT NULL DEFAULT current_timestamp(), PRIMARY KEY (`version`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `__diesel_schema_migrations` -- LOCK TABLES `__diesel_schema_migrations` WRITE; /*!40000 ALTER TABLE `__diesel_schema_migrations` DISABLE KEYS */; INSERT INTO `__diesel_schema_migrations` VALUES ('20240819150533','2024-08-19 19:57:15'), ('20240819183025','2024-08-21 18:28:28'), ('20240821180845','2024-08-21 18:43:01'), ('20240821185127','2024-08-21 19:07:06'), ('20240822171815','2024-08-22 18:07:34'), ('20240822203903','2024-08-22 21:18:07'), ('20240822205948','2024-08-27 12:00:00'), ('20240827120510','2024-08-27 12:18:10'); /*!40000 ALTER TABLE `__diesel_schema_migrations` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `jrcells` -- DROP TABLE IF EXISTS `jrcells`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `jrcells` ( `id` int(11) NOT NULL AUTO_INCREMENT, `cell_value` varchar(2048) NOT NULL, `jrentry_id` int(11) NOT NULL, `jrcolumn_id` int(11) NOT NULL, PRIMARY KEY (`id`), KEY `jrentry_id` (`jrentry_id`), KEY `jrcolumn_id` (`jrcolumn_id`), CONSTRAINT `jrcells_ibfk_1` FOREIGN KEY (`jrentry_id`) REFERENCES `jrentries` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `jrcells_ibfk_2` FOREIGN KEY (`jrcolumn_id`) REFERENCES `jrcolumns` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB AUTO_INCREMENT=4604 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `jrcells` -- LOCK TABLES `jrcells` WRITE; /*!40000 ALTER TABLE `jrcells` DISABLE KEYS */; /*!40000 ALTER TABLE `jrcells` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `jrcolumns` -- DROP TABLE IF EXISTS `jrcolumns`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `jrcolumns` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL, `jrtable_id` int(11) NOT NULL, `id_in_table` int(11) NOT NULL, `column_type` int(11) NOT NULL DEFAULT 0, PRIMARY KEY (`id`), KEY `jrtable` (`jrtable_id`), CONSTRAINT `jrtable` FOREIGN KEY (`jrtable_id`) REFERENCES `jrtables` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB AUTO_INCREMENT=64 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `jrcolumns` -- LOCK TABLES `jrcolumns` WRITE; /*!40000 ALTER TABLE `jrcolumns` DISABLE KEYS */; /*!40000 ALTER TABLE `jrcolumns` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `jrentries` -- DROP TABLE IF EXISTS `jrentries`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `jrentries` ( `id` int(11) NOT NULL AUTO_INCREMENT, `row_pos` int(11) NOT NULL, `jrtable_id` int(11) NOT NULL, PRIMARY KEY (`id`), KEY `jrtable_id` (`jrtable_id`), CONSTRAINT `jrentries_ibfk_1` FOREIGN KEY (`jrtable_id`) REFERENCES `jrtables` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB AUTO_INCREMENT=1602 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `jrentries` -- LOCK TABLES `jrentries` WRITE; /*!40000 ALTER TABLE `jrentries` DISABLE KEYS */; /*!40000 ALTER TABLE `jrentries` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `jrtables` -- DROP TABLE IF EXISTS `jrtables`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `jrtables` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL, `owner_id` int(11) NOT NULL, PRIMARY KEY (`id`), KEY `fk_owner_id` (`owner_id`), CONSTRAINT `fk_owner_id` FOREIGN KEY (`owner_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB AUTO_INCREMENT=29 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `jrtables` -- LOCK TABLES `jrtables` WRITE; /*!40000 ALTER TABLE `jrtables` DISABLE KEYS */; /*!40000 ALTER TABLE `jrtables` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `users` -- DROP TABLE IF EXISTS `users`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `users` ( `id` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(255) NOT NULL, `email` varchar(512) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `users` -- LOCK TABLES `users` WRITE; /*!40000 ALTER TABLE `users` DISABLE KEYS */; /*!40000 ALTER TABLE `users` 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-08-27 22:05:31