-- Migration: 0001_init
-- Creates the snapshots table for linux-system-health sense.

CREATE TABLE IF NOT EXISTS snapshots (
  ts              INTEGER PRIMARY KEY,
  cpu_load_1m     REAL    NOT NULL,
  cpu_load_5m     REAL    NOT NULL,
  cpu_load_15m    REAL    NOT NULL,
  mem_total_mb    INTEGER NOT NULL,
  mem_used_mb     INTEGER NOT NULL,
  mem_used_pct    REAL    NOT NULL,
  disk_total_gb   REAL    NOT NULL,
  disk_used_gb    REAL    NOT NULL,
  disk_used_pct   REAL    NOT NULL,
  uptime_sec      INTEGER NOT NULL
);
