-- Migration: 0001_init
-- Creates the worker_process_metrics table for worker-process-metrics sense.

CREATE TABLE IF NOT EXISTS worker_process_metrics (
  ts             INTEGER PRIMARY KEY,
  pid            INTEGER NOT NULL,
  uptime_sec     REAL    NOT NULL,
  heap_used_mb   REAL    NOT NULL,
  rss_mb         REAL    NOT NULL,
  external_mb    REAL    NOT NULL
);
