-- MySQL dump 10.13 Distrib 8.0.34, for Win64 (x86_64) -- -- Host: localhost Database: rasch_content -- ------------------------------------------------------ -- Server version 8.0.35 /*!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 `content_blocks` -- DROP TABLE IF EXISTS `content_blocks`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `content_blocks` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `tab` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL, `type` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'text', `content` mediumtext COLLATE utf8mb4_unicode_ci NOT NULL, `created_by` int unsigned DEFAULT NULL, `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`), KEY `idx_content_blocks_tab` (`tab`), KEY `idx_content_blocks_created_by` (`created_by`), CONSTRAINT `fk_content_blocks_created_by` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON DELETE SET NULL ON UPDATE CASCADE, CONSTRAINT `chk_content_blocks_tab` CHECK ((`tab` in (_utf8mb4'info',_utf8mb4'union',_utf8mb4'events',_utf8mb4'help',_utf8mb4'housing'))), CONSTRAINT `chk_content_blocks_type` CHECK ((`type` = _utf8mb4'text')) ) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `content_blocks` -- LOCK TABLES `content_blocks` WRITE; /*!40000 ALTER TABLE `content_blocks` DISABLE KEYS */; INSERT INTO `content_blocks` VALUES (1,'union','text','

В химволокно в феврале ничего не произошло

',2,'2026-08-08 16:12:08','2026-08-09 22:37:01'),(2,'union','text','

feeeee

',4,'2026-08-09 22:37:16','2026-08-09 22:37:16'),(3,'info','text','

Новый блок

',4,'2026-08-10 22:50:02','2026-08-10 22:50:02'),(4,'housing','text','Тест',1,'2026-08-10 22:56:45','2026-08-10 22:56:45'),(5,'help','text','

Новый блок

',4,'2026-08-10 22:56:51','2026-08-10 22:56:51'),(6,'help','text','

аеееееее

',4,'2026-08-10 22:57:07','2026-08-10 22:57:07'),(7,'help','text','

ввввввввввв

',4,'2026-08-10 23:01:22','2026-08-10 23:01:22'),(8,'housing','text','

Новый блок

',4,'2026-08-10 23:02:34','2026-08-10 23:02:34'); /*!40000 ALTER TABLE `content_blocks` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `notifications` -- DROP TABLE IF EXISTS `notifications`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `notifications` ( `id` int NOT NULL AUTO_INCREMENT, `title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `message` text COLLATE utf8mb4_unicode_ci NOT NULL, `target_type` enum('user','department','all') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'all', `target_value` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_by` int DEFAULT NULL, `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `expires_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), KEY `idx_target` (`target_type`,`target_value`), KEY `idx_expires` (`expires_at`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `notifications` -- LOCK TABLES `notifications` WRITE; /*!40000 ALTER TABLE `notifications` DISABLE KEYS */; /*!40000 ALTER TABLE `notifications` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `sessions` -- DROP TABLE IF EXISTS `sessions`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `sessions` ( `session_id` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL, `expires` int unsigned NOT NULL, `data` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin, PRIMARY KEY (`session_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `sessions` -- LOCK TABLES `sessions` WRITE; /*!40000 ALTER TABLE `sessions` DISABLE KEYS */; INSERT INTO `sessions` VALUES ('4FShoJC-rgRBjUQGgoW-NrDrKu5VJalR',1786421251,'{\"cookie\":{\"originalMaxAge\":36000000,\"expires\":\"2026-08-11T03:43:42.835Z\",\"secure\":false,\"httpOnly\":true,\"path\":\"/\"},\"isModerator\":true,\"userId\":4,\"username\":\"vova\"}'),('4FTTnHpJrwyCD5F09U0MbWTMekziA875',1786427576,'{\"cookie\":{\"originalMaxAge\":36000000,\"expires\":\"2026-08-11T03:44:38.797Z\",\"secure\":false,\"httpOnly\":true,\"path\":\"/\"},\"isModerator\":true,\"userId\":4,\"username\":\"vova\"}'),('6ZvJ_s3WsFFJbpYFyoM9sX_6zi7LMsvX',1786429718,'{\"cookie\":{\"originalMaxAge\":36000000,\"expires\":\"2026-08-11T05:54:26.778Z\",\"secure\":false,\"httpOnly\":true,\"path\":\"/\"},\"isModerator\":true,\"userId\":4,\"username\":\"vova\"}'); /*!40000 ALTER TABLE `sessions` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `union_sections` -- DROP TABLE IF EXISTS `union_sections`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `union_sections` ( `id` int NOT NULL AUTO_INCREMENT, `section` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL, `content` text COLLATE utf8mb4_unicode_ci, `updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`), UNIQUE KEY `section` (`section`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `union_sections` -- LOCK TABLES `union_sections` WRITE; /*!40000 ALTER TABLE `union_sections` DISABLE KEYS */; /*!40000 ALTER TABLE `union_sections` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `users` -- DROP TABLE IF EXISTS `users`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `users` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `username` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL, `password_hash` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`), UNIQUE KEY `uq_users_username` (`username`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `users` -- LOCK TABLES `users` WRITE; /*!40000 ALTER TABLE `users` DISABLE KEYS */; INSERT INTO `users` VALUES (1,'moderator','$2b$10$7EqJtq98hPqEX7fNZaFWoOhi5SzuYrGTgEdf762vPz0J8wD0GmKMS','2026-08-08 13:05:31'),(2,'artur','$2b$10$Zt8ayFMWrf7AD43o4A8My.GEAhoWHDvVgyyUnhXE0IJ11lK2dBUmq','2026-08-08 13:10:55'),(4,'vova','$2b$10$6d/GD/k/OumrsNzTyw4n0.tAOlOPwJQ1BlqqSXqlOIgakFN/DJKGO','2026-08-09 17:25:17'); /*!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 2026-08-14 18:25:26