text: CREATE DATABASE  IF NOT EXISTS `zoe` /*!40100 DEFAULT CHARACTER SET latin1 */;
  USE `zoe`;
  -- MySQL dump 10.13  Distrib 5.5.40, for debian-linux-gnu (x86_64)
  --
  -- Host: firefly    Database: zoe
  -- ------------------------------------------------------
  -- Server version	5.5.37-0ubuntu0.13.10.1
  
  /*!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 `source`
  --
  
  DROP TABLE IF EXISTS `source`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `source` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `name` varchar(45) NOT NULL,
    `description` varchar(45) DEFAULT NULL,
    `created_on` datetime DEFAULT NULL,
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Dumping data for table `source`
  --
  
  LOCK TABLES `source` WRITE;
  /*!40000 ALTER TABLE `source` DISABLE KEYS */;
  INSERT INTO `source` VALUES (1,'deck-arduino','Deck Arduino','2015-01-05 22:29:21');
  /*!40000 ALTER TABLE `source` ENABLE KEYS */;
  UNLOCK TABLES;
  
  --
  -- Table structure for table `reading`
  --
  
  DROP TABLE IF EXISTS `reading`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `reading` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `value` decimal(65,30) NOT NULL,
    `uom_id` int(11) NOT NULL,
    `created_on` datetime NOT NULL,
    `source_id` int(11) NOT NULL,
    `sensor_id` int(11) NOT NULL,
    PRIMARY KEY (`id`),
    KEY `fk_reading_1_idx` (`sensor_id`),
    KEY `fk_reading_2_idx` (`source_id`),
    KEY `fk_reading_3_idx` (`uom_id`),
    CONSTRAINT `fk_reading_1` FOREIGN KEY (`sensor_id`) REFERENCES `sensor` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
    CONSTRAINT `fk_reading_2` FOREIGN KEY (`source_id`) REFERENCES `source` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
    CONSTRAINT `fk_reading_3` FOREIGN KEY (`uom_id`) REFERENCES `uom` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
  ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Dumping data for table `reading`
  --
  
  LOCK TABLES `reading` WRITE;
  /*!40000 ALTER TABLE `reading` DISABLE KEYS */;
  INSERT INTO `reading` VALUES (1,12.300000000000000000000000000000,1,'2015-01-05 22:32:01',1,1),(2,12.100000000000000000000000000000,1,'2015-01-05 22:35:05',1,1),(3,12.100000000000000000000000000000,1,'2015-01-05 22:39:51',1,1);
  /*!40000 ALTER TABLE `reading` ENABLE KEYS */;
  UNLOCK TABLES;
  
  --
  -- Table structure for table `sensor`
  --
  
  DROP TABLE IF EXISTS `sensor`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `sensor` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `name` varchar(45) NOT NULL,
    `description` varchar(45) DEFAULT NULL,
    `created_on` datetime DEFAULT NULL,
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Dumping data for table `sensor`
  --
  
  LOCK TABLES `sensor` WRITE;
  /*!40000 ALTER TABLE `sensor` DISABLE KEYS */;
  INSERT INTO `sensor` VALUES (1,'test-sensor','blah!','2015-01-05 22:28:02');
  /*!40000 ALTER TABLE `sensor` ENABLE KEYS */;
  UNLOCK TABLES;
  
  --
  -- Table structure for table `uom`
  --
  
  DROP TABLE IF EXISTS `uom`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `uom` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `name` varchar(45) NOT NULL,
    `description` varchar(45) DEFAULT NULL,
    `created_on` datetime DEFAULT NULL,
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Dumping data for table `uom`
  --
  
  LOCK TABLES `uom` WRITE;
  /*!40000 ALTER TABLE `uom` DISABLE KEYS */;
  INSERT INTO `uom` VALUES (1,'m/s','Meters per Second','2015-01-05 22:29:59');
  /*!40000 ALTER TABLE `uom` 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 2015-01-05 22:44:21