<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kazukifu</author_name>
  <author_url>https://blog.hatena.ne.jp/kazukifu/</author_url>
  <blog_title>Kazuki's Blog</blog_title>
  <blog_url>https://kazukifu.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>はじめに 前回の記事 🕓【Docker × Grafana × MariaDB】タイムゾーンずれの原因を整理し、UTCに統一する方針を立てました では、時系列データの取り扱いにおけるタイムゾーンの問題を整理し、すべてのデータをUTCで統一する方針を立てました。 今回はその続編として、SwitchBotデバイスから取得したデータをMariaDBに格納するための新規テーブル設計についてまとめます。 主に、数値データ型（DOUBLE / DECIMAL / INT）の選定方針と、実際に作成したテーブル定義を紹介します。 1. 数値型の比較と選定方針 SwitchBotから取得するデータには、気温・湿…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkazukifu.hatenablog.com%2Fentry%2F2025%2F11%2F12%2F211413&quot; title=&quot;🗃️ 【SwitchBot】収集データ格納用テーブルの新規作成の検討 - Kazuki&amp;#39;s Blog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-11-12 21:14:13</published>
  <title>🗃️ 【SwitchBot】収集データ格納用テーブルの新規作成の検討</title>
  <type>rich</type>
  <url>https://kazukifu.hatenablog.com/entry/2025/11/12/211413</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
