CREATE TABLE "agents_memory_entry_cursors" (
"agentId" varchar(36) NOT NULL,
"observationScopeId" varchar(255) NOT NULL,
"lastIndexedObservationId" varchar(36) NOT NULL,
"lastIndexedObservationCreatedAt" datetime(3) NOT NULL,
"createdAt" datetime(3) NOT NULL DEFAULT (STRFTIME('%Y-%m-%d %H:%M:%f', 'NOW')),
"updatedAt" datetime(3) NOT NULL DEFAULT (STRFTIME('%Y-%m-%d %H:%M:%f', 'NOW')),
CONSTRAINT "FK_746780fd115e5e4352457a3c617" FOREIGN KEY ("agentId") REFERENCES "agents" ("id") ON DELETE CASCADE,
CONSTRAINT "FK_069e791e428391a5569e7a96b20" FOREIGN KEY ("observationScopeId") REFERENCES "agents_threads" ("id") ON DELETE CASCADE,
PRIMARY KEY ("agentId", "observationScopeId")
)