import { integer, real, sqliteTable, text } from "drizzle-orm/sqlite-core"; export const hermesGatewayHealth = sqliteTable("hermes_gateway_health", { id: integer("id").primaryKey({ autoIncrement: true }), ts: integer("ts").notNull(), alive: integer("alive").notNull(), mainPid: integer("main_pid").notNull(), rssBytes: integer("rss_bytes").notNull(), cpuPercent: real("cpu_percent").notNull(), uptimeSec: integer("uptime_sec").notNull(), activeSessions: integer("active_sessions").notNull(), childProcessCount: integer("child_process_count").notNull(), httpOk: integer("http_ok").notNull(), httpStatusCode: integer("http_status_code").notNull(), httpLatencyMs: integer("http_latency_ms").notNull(), httpError: text("http_error").notNull(), });