Commit d7c9f8aa authored by Ivano Carluccio's avatar Ivano Carluccio
Browse files

add sql dump

parent 0d255966
-- MySQL dump 10.13 Distrib 5.6.14, for debian6.0 (i686)
--
-- Host: localhost Database: radon
-- ------------------------------------------------------
-- Server version 5.6.14-log
/*!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 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 `Patm`
--
DROP TABLE IF EXISTS `patm`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `patm` (
`stacode` varchar(5) NOT NULL,
`network` varchar(2) NOT NULL DEFAULT 'IV',
`loco` varchar(2) NOT NULL DEFAULT '00',
`time_acq` datetime(3) NOT NULL DEFAULT '2038-01-18 23:45:56.000',
`value` decimal(5,1) NOT NULL,
`mu` int(11) NOT NULL,
PRIMARY KEY (`stacode`,`loco`,`time_acq`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `Rain`
--
DROP TABLE IF EXISTS `rain`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `rain` (
`stacode` varchar(5) NOT NULL,
`network` varchar(2) NOT NULL DEFAULT 'IV',
`loco` varchar(2) NOT NULL DEFAULT '00',
`time_acq` datetime(3) NOT NULL DEFAULT '2038-01-18 23:45:56.000',
`value` decimal(5,1) NOT NULL,
`mu` int(11) NOT NULL,
PRIMARY KEY (`stacode`,`loco`,`time_acq`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `CO2_0`
--
DROP TABLE IF EXISTS `co2_0`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `co2_0` (
`stacode` varchar(5) NOT NULL,
`network` varchar(2) NOT NULL DEFAULT 'IV',
`loco` varchar(2) NOT NULL DEFAULT '00',
`time_acq` datetime(3) NOT NULL DEFAULT '2038-01-18 00:00:00.000',
`ID_instr` tinyint(2) NOT NULL,
`CO20` int(11) NOT NULL,
`sigma` decimal(8,5) DEFAULT NULL,
`mu` int(11) NOT NULL,
PRIMARY KEY (`stacode`,`loco`,`time_acq`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `CO2_3`
--
DROP TABLE IF EXISTS `co2_3`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `co2_3` (
`stacode` varchar(5) NOT NULL,
`network` varchar(2) NOT NULL DEFAULT 'IV',
`loco` varchar(2) NOT NULL DEFAULT '00',
`time_acq` datetime(3) NOT NULL DEFAULT '2038-01-18 00:00:00.000',
`ID_instr` tinyint(2) NOT NULL,
`CO23` int(11) NOT NULL,
`sigma` decimal(8,5) DEFAULT NULL,
`mu` int(11) NOT NULL,
PRIMARY KEY (`stacode`,`loco`,`time_acq`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `Text`
--
DROP TABLE IF EXISTS `text`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `text` (
`stacode` varchar(5) NOT NULL,
`network` varchar(2) NOT NULL DEFAULT 'IV',
`loco` varchar(2) NOT NULL DEFAULT '00',
`time_acq` datetime(3) NOT NULL DEFAULT '2038-01-18 23:45:56.000',
`value` decimal(5,2) NOT NULL,
`mu` int(11) NOT NULL,
PRIMARY KEY (`stacode`,`loco`,`time_acq`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `Tint`
--
DROP TABLE IF EXISTS `tint`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `tint` (
`stacode` varchar(5) NOT NULL,
`network` varchar(2) NOT NULL DEFAULT 'IV',
`loco` varchar(2) NOT NULL DEFAULT '00',
`time_acq` datetime(3) NOT NULL DEFAULT '2038-01-18 23:45:56.000',
`value` decimal(5,2) NOT NULL,
`mu` int(11) NOT NULL,
PRIMARY KEY (`stacode`,`loco`,`time_acq`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `installation`
--
DROP TABLE IF EXISTS `installation`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `installation` (
`type` varchar(40) NOT NULL,
`type_install` tinyint(2) NOT NULL,
PRIMARY KEY (`type_install`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `meas_instrument`
--
DROP TABLE IF EXISTS `meas_instrument`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `meas_instrument` (
`id_instr` tinyint(2) NOT NULL,
`type` varchar(40) NOT NULL,
`background` float NOT NULL,
`efficiency` float NOT NULL,
`samp_rate` smallint(6) NOT NULL,
`calib_err` float NOT NULL,
PRIMARY KEY (`id_instr`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `measure_units`
--
DROP TABLE IF EXISTS `measure_units`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `measure_units` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`units` varchar(30) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `stations`
--
DROP TABLE IF EXISTS `stations`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `stations` (
`stacode` varchar(5) NOT NULL,
`network` varchar(2) NOT NULL DEFAULT 'IV',
`loco` varchar(2) NOT NULL DEFAULT '00',
`birth` date NOT NULL DEFAULT '1980-11-23',
`death` date NOT NULL DEFAULT '2038-01-18',
`lat` decimal(8,5) NOT NULL,
`lon` decimal(8,5) NOT NULL,
`alt` smallint(6) NOT NULL,
`place` varchar(40) NOT NULL,
`sens_CO2` varchar(40) NOT NULL,
`sens_Tint` varchar(40) NOT NULL,
`sens_Text` varchar(40) NOT NULL,
`sens_Press` varchar(40) NOT NULL,
`sens_Rain` varchar(40) NOT NULL,
`sens_Wind` varchar(40) DEFAULT NULL,
`type_install` tinyint(2) NOT NULL,
`history` text,
PRIMARY KEY (`stacode`,`network`,`loco`,`birth`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!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 2016-06-14 12:29:26
/*!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 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 `sens_p_atm`
--
DROP TABLE IF EXISTS `sens_p_atm`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `sens_p_atm` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'Unique incremental id',
`time_acq` datetime NOT NULL DEFAULT '2038-01-18 23:45:56.000',
`value` decimal(5,1) NOT NULL,
`mu` int(11) NOT NULL,
`name` varchar(50) NOT NULL,
`modified` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Last Review',
`fk_station` bigint(20) NOT NULL COMMENT 'Link to station',
PRIMARY KEY (`id`),
CONSTRAINT `sens_p_atm_ibfk_1` FOREIGN KEY (`fk_station`) REFERENCES `station` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `Rain`
--
DROP TABLE IF EXISTS `sens_rain`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `sens_rain` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'Unique incremental id',
`time_acq` datetime NOT NULL DEFAULT '2038-01-18 23:45:56.000',
`value` decimal(5,1) NOT NULL,
`mu` int(11) NOT NULL,
`name` varchar(50) NOT NULL,
`modified` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Last Review',
`fk_station` bigint(20) NOT NULL COMMENT 'Link to station',
PRIMARY KEY (`id`),
KEY `fk_station` (`fk_station`),
CONSTRAINT `sens_rain_ibfk_1` FOREIGN KEY (`fk_station`) REFERENCES `station` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `geochemical1`
--
DROP TABLE IF EXISTS `geochemical1`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `geochemical1` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'Unique incremental id',
`time_acq` datetime(3) NOT NULL DEFAULT '2038-01-18 00:00:00.000',
`ID_instr` tinyint(2) NOT NULL,
`CO20` int(11) NOT NULL,
`sigma` decimal(8,5) DEFAULT NULL,
`mu` int(11) NOT NULL,
`fk_station` bigint(20) NOT NULL COMMENT 'Link to station',
`fk_sens_geochemical_params` bigint(20) NOT NULL COMMENT 'Link to sens_geochemical_params',
PRIMARY KEY (`id`),
KEY `fk_station` (`fk_station`),
CONSTRAINT `sens_geochemical1_ibfk_1` FOREIGN KEY (`fk_station`) REFERENCES `station` (`id`),
CONSTRAINT `sens_geochemical1_ibfk_2` FOREIGN KEY (`fk_sens_geochemical_params`) REFERENCES `sens_geochemical_params` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `geochemical2`
--
DROP TABLE IF EXISTS `geochemical2`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `geochemical2` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'Unique incremental id',
`time_acq` datetime(3) NOT NULL DEFAULT '2038-01-18 00:00:00.000',
`ID_instr` tinyint(2) NOT NULL,
`CO23` int(11) NOT NULL,
`sigma` decimal(8,5) DEFAULT NULL,
`mu` int(11) NOT NULL,
`fk_station` bigint(20) NOT NULL COMMENT 'Link to station',
`fk_sens_geochemical_params` bigint(20) NOT NULL COMMENT 'Link to sens_geochemical_params',
PRIMARY KEY (`id`),
KEY `fk_station` (`fk_station`),
CONSTRAINT `sens_geochemical2_ibfk_1` FOREIGN KEY (`fk_station`) REFERENCES `station` (`id`),
CONSTRAINT `sens_geochemical2_ibfk_2` FOREIGN KEY (`fk_sens_geochemical_params`) REFERENCES `sens_geochemical_params` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `Text`
--
DROP TABLE IF EXISTS `sens_t_ext`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `sens_t_ext` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'Unique incremental id',
`time_acq` datetime NOT NULL DEFAULT '2038-01-18 23:45:56.000',
`value` decimal(5,2) NOT NULL,
`mu` int(11) NOT NULL,
`name` varchar(50) NOT NULL,
`modified` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Last Review',
`fk_station` bigint(20) NOT NULL COMMENT 'Link to station',
PRIMARY KEY (`id`),
CONSTRAINT `sens_t_ext_ibfk_1` FOREIGN KEY (`fk_station`) REFERENCES `station` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `Tint`
--
DROP TABLE IF EXISTS `sens_t_int`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `sens_t_int` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'Unique incremental id',
`time_acq` datetime NOT NULL DEFAULT '2038-01-18 23:45:56.000',
`value` decimal(5,2) NOT NULL,
`mu` int(11) NOT NULL,
`name` varchar(50) NOT NULL,
`modified` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Last Review',
`fk_station` bigint(20) NOT NULL COMMENT 'Link to station',
PRIMARY KEY (`id`),
CONSTRAINT `sens_t_int_ibfk_1` FOREIGN KEY (`fk_station`) REFERENCES `station` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `installation`
--
DROP TABLE IF EXISTS `installation`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `installation` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'Unique incremental id',
`value` varchar(50) NOT NULL,
`modified` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Last Review',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `meas_instrument`
--
DROP TABLE IF EXISTS `sens_geochemical_params`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `sens_geochemical_params` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'Unique incremental id',
`type` varchar(40) NOT NULL,
`background` float NOT NULL,
`efficiency` float NOT NULL,
`samp_rate` smallint(6) NOT NULL,
`calib_err` float NOT NULL,
`modified` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Last Review',
PRIMARY KEY (`id`),
UNIQUE KEY `type` (`type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `measure_units`
--
DROP TABLE IF EXISTS `measure_units`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `measure_units` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`units` varchar(30) NOT NULL,
`modified` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Last Review',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `stations`
--
DROP TABLE IF EXISTS `stations`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `station` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'Unique incremental id',
`net` varchar(2) NOT NULL DEFAULT 'IV',
`sta` varchar(5) NOT NULL,
`loc` char(2) NOT NULL DEFAULT '--' COMMENT 'To discriminate 2 identical sensor in a station',
`start_time` datetime NOT NULL COMMENT 'Starting time: Every change create a new channel',
`end_time` datetime NOT NULL DEFAULT '2999-12-31 23:59:00' COMMENT 'Ending time of the channel',
`lat` double NOT NULL COMMENT 'Exact location of the sensor: latitude',
`lon` double NOT NULL COMMENT 'Exact location of the sensor: longitude',
`elevation` double NOT NULL COMMENT 'Exact location of the sensor: elevation',
`place` varchar(40) NOT NULL,
`history` text,
`modified` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Last Review',
`fk_installation_type` bigint(20) NOT NULL COMMENT 'Link to station',
PRIMARY KEY (`id`),
KEY `fk_installation_type` (`fk_installation_type`),
CONSTRAINT `station_ibfk_1` FOREIGN KEY (`fk_installation_type`) REFERENCES `installation_type` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!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 */;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment