/
ave6990
/
microclimat
Обзор
Документация
Войти
/
ave6990
/
microclimat
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
dump.sql
137 строк
4 KB
ave6990
On branch dev
15 янв 2026, 09:37
15 янв 2026, 09:37
8ab3db7
Код
Авторство
О чём код?
/*M!999999\- enable the sandbox mode */ -- MariaDB dump 10.19-11.7.2-MariaDB, for Win64 (AMD64) -- -- Host: localhost Database: microclimat -- ------------------------------------------------------ -- Server version 12.1.2-MariaDB-ubu2404 /*!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' */; /*M!100616 SET @OLD_NOTE_VERBOSITY=@@NOTE_VERBOSITY, NOTE_VERBOSITY=0 */; -- -- Table structure for table `building` -- DROP TABLE IF EXISTS `building`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `building` ( `building_id` int(11) NOT NULL, `address` varchar(1000) DEFAULT NULL, PRIMARY KEY (`building_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `building` -- LOCK TABLES `building` WRITE; /*!40000 ALTER TABLE `building` DISABLE KEYS */; /*!40000 ALTER TABLE `building` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `condition` -- DROP TABLE IF EXISTS `condition`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `condition` ( `id` int(11) NOT NULL AUTO_INCREMENT, `date` datetime NOT NULL, `space_id` int(11) NOT NULL DEFAULT 1, `temperature` float DEFAULT NULL, `humidity` float DEFAULT NULL, `pressure` float DEFAULT NULL, `voltage` float DEFAULT NULL, `frequency` varchar(100) DEFAULT NULL, PRIMARY KEY (`id`), KEY `conditions_space_FK` (`space_id`), CONSTRAINT `conditions_space_FK` FOREIGN KEY (`space_id`) REFERENCES `space` (`space_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `condition` -- LOCK TABLES `condition` WRITE; /*!40000 ALTER TABLE `condition` DISABLE KEYS */; /*!40000 ALTER TABLE `condition` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `other` -- DROP TABLE IF EXISTS `other`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `other` ( `id` int(11) NOT NULL AUTO_INCREMENT, `condition_id` int(11) NOT NULL, `text` varchar(1000) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='Прочие условия микроклимата'; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `other` -- LOCK TABLES `other` WRITE; /*!40000 ALTER TABLE `other` DISABLE KEYS */; /*!40000 ALTER TABLE `other` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `space` -- DROP TABLE IF EXISTS `space`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `space` ( `space_id` int(11) NOT NULL AUTO_INCREMENT, `number` varchar(100) DEFAULT NULL, `building_id` int(11) DEFAULT NULL, `name` varchar(100) DEFAULT NULL, PRIMARY KEY (`space_id`), KEY `space_building_FK` (`building_id`), CONSTRAINT `space_building_FK` FOREIGN KEY (`building_id`) REFERENCES `building` (`building_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `space` -- LOCK TABLES `space` WRITE; /*!40000 ALTER TABLE `space` DISABLE KEYS */; /*!40000 ALTER TABLE `space` ENABLE KEYS */; UNLOCK TABLES; -- -- Dumping routines for database 'microclimat' -- /*!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 */; /*M!100616 SET NOTE_VERBOSITY=@OLD_NOTE_VERBOSITY */; -- Dump completed on 2026-01-15 11:32:55