1 -- MySQL dump 10.13 Distrib 5.5.38, for debian-linux-gnu (x86_64)
3 -- Host: localhost Database: meteo
4 -- ------------------------------------------------------
5 -- Server version 5.5.38-0ubuntu0.14.04.1
7 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
8 /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
9 /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
10 /*!40101 SET NAMES utf8 */;
11 /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
12 /*!40103 SET TIME_ZONE='+00:00' */;
13 /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
14 /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
15 /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
16 /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
19 -- Table structure for table `st_parameters`
22 DROP TABLE IF EXISTS `st_parameters`;
23 /*!40101 SET @saved_cs_client = @@character_set_client */;
24 /*!40101 SET character_set_client = utf8 */;
25 CREATE TABLE `st_parameters` (
26 `id` int(11) NOT NULL AUTO_INCREMENT,
27 `st_id` int(11) NOT NULL,
28 `st_name` varchar(32) CHARACTER SET utf8 NOT NULL,
29 `st_unit` int(11) NOT NULL,
30 `st_description` varchar(255) CHARACTER SET utf8 DEFAULT NULL,
31 `st_dot_color` varchar(45) DEFAULT 'red',
32 `st_fill_color_top` varchar(45) DEFAULT 'red',
33 `st_fill_color_bottom` varchar(45) DEFAULT 'blue',
34 `st_line_color` varchar(45) DEFAULT 'navy',
36 UNIQUE KEY `unique` (`st_id`,`st_name`),
37 KEY `fk_st_parameters_st_idx` (`st_id`),
38 KEY `fk_st_parameters_units_idx` (`st_unit`),
39 CONSTRAINT `fk_st_parameters_st` FOREIGN KEY (`st_id`) REFERENCES `sensor_types` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
40 CONSTRAINT `fk_st_parameters_units` FOREIGN KEY (`st_unit`) REFERENCES `units` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
41 ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=latin1;
42 /*!40101 SET character_set_client = @saved_cs_client */;
45 -- Dumping data for table `st_parameters`
48 LOCK TABLES `st_parameters` WRITE;
49 /*!40000 ALTER TABLE `st_parameters` DISABLE KEYS */;
50 INSERT INTO `st_parameters` VALUES (-1,1,'TEMPERATURE',1,'Температура','red','red','navy','red'),(1,3,'TEMPERATURE',1,'Температура','red','red','navy','darkred'),(2,1,'HUMIDITY',2,'Влажность','skyblue','skyblue','blue','royalblue'),(3,2,'TEMPERATURE',1,'Температура','red','red','navy','darkred'),(4,2,'HUMIDITY',2,'Влажность','skyblue','skyblue','blue','royalblue'),(5,3,'PRESSURE',3,'Атмосферное давление','green','green','gold','gold');
51 /*!40000 ALTER TABLE `st_parameters` ENABLE KEYS */;
53 /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
55 /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
56 /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
57 /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
58 /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
59 /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
60 /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
61 /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
63 -- Dump completed on 2014-09-25 14:48:08