-- Add migration script here
CREATE TABLE IF NOT EXISTS physical_hosts (
    version_id TEXT PRIMARY KEY NOT NULL,
    id TEXT NOT NULL,
    data JSON NOT NULL
);
CREATE INDEX IF NOT EXISTS idx_host_id_time
ON physical_hosts (id, version_id DESC);
