CREATE TABLE "agent_heartbeats" (
	"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
	"agent" text NOT NULL,
	"hostname" text,
	"version" text,
	"first_seen_at" timestamp DEFAULT now() NOT NULL,
	"last_seen_at" timestamp DEFAULT now() NOT NULL,
	"details" jsonb,
	CONSTRAINT "agent_heartbeats_agent_unique" UNIQUE("agent")
);
--> statement-breakpoint
ALTER TABLE "series" ALTER COLUMN "is_currently_relevant" SET DATA TYPE boolean USING "is_currently_relevant"::boolean;--> statement-breakpoint
ALTER TABLE "storage_tiers" ADD COLUMN "agent_name" text;