-- phpMyAdmin SQL Dump
-- version 4.9.2deb2
-- https://www.phpmyadmin.net/
--
-- Generation Time: Jan 05, 2020 at 09:46 PM
-- Server version: 5.6.45-86.1-log
-- PHP Version: 7.2.24-1+0~20191026.31+debian9~1.gbpbbacde

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";


/*!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 */;

--
-- Table structure for table `SensorData`
--

CREATE TABLE `SensorData` (
  `id` int(6) UNSIGNED NOT NULL,
  `location` varchar(20) COLLATE latin1_german2_ci NOT NULL COMMENT 'Sensor Location (Room)',
  `temperature` decimal(5,2) DEFAULT NULL COMMENT 'Celsius',
  `humidity` decimal(4,1) DEFAULT NULL COMMENT '%relHum',
  `pressure` decimal(5,1) DEFAULT NULL COMMENT 'hPa',
  `reading_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_german2_ci;

--
-- Dumping data for table `SensorData`
--

INSERT INTO `SensorData` (`id`, `location`, `temperature`, `humidity`, `pressure`, `reading_time`) VALUES
(100001, 'sensor1Dummy', '22.89', '55.5', '991.7', '2019-09-17 04:15:09'),
(100002, 'sensor1Dummy', '22.90', '55.5', '991.7', '2019-09-17 04:16:11'),
(100003, 'sensor1Dummy', '22.89', '55.5', '991.7', '2019-09-17 04:17:13'),
(100004, 'sensor2Dummy', '22.88', '55.4', '991.6', '2019-09-17 04:18:15'),
(100005, 'sensor2Dummy', '22.86', '55.4', '991.7', '2019-09-17 04:19:17');

--
-- Indexes for dumped tables
--

--
-- Indexes for table `SensorData`
--
ALTER TABLE `SensorData`
  ADD PRIMARY KEY (`id`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `SensorData`
--
ALTER TABLE `SensorData`
  MODIFY `id` int(6) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1381254;
COMMIT;

/*!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 */;
