-- phpMyAdmin SQL Dump
-- version 5.2.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Oct 15, 2022 at 10:01 PM
-- Server version: 10.4.24-MariaDB
-- PHP Version: 7.4.29

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
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 */;

--
-- Database: `iot_backend`
--

-- --------------------------------------------------------

--
-- Table structure for table `temperature_records`
--

CREATE TABLE `temperature_records` (
  `id` int(11) NOT NULL,
  `device` varchar(255) NOT NULL,
  `temperature` decimal(10,2) NOT NULL,
  `created_at` datetime NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `temperature_records`
--

INSERT INTO `temperature_records` (`id`, `device`, `temperature`, `created_at`) VALUES
(1, 'device-001', '36.00', '2022-10-15 19:51:30'),
(2, 'device-002', '36.00', '2022-10-15 19:51:35'),
(3, 'device-003', '23.00', '2022-10-15 19:51:45'),
(4, 'device-004', '89.90', '2022-10-15 20:21:44'),
(5, 'device-005', '78.00', '2022-10-15 20:22:41'),
(6, 'device-006', '99.00', '2022-10-15 21:55:18');

--
-- Indexes for dumped tables
--

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

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `temperature_records`
--
ALTER TABLE `temperature_records`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
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 */;
