SQL

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")
)

+ Add column

Columns

Column Data type Allow null Primary key Actions
agentId varchar(36) Rename | Drop
observationScopeId varchar(255) Rename | Drop
lastIndexedObservationId varchar(36) Rename | Drop
lastIndexedObservationCreatedAt datetime(3) Rename | Drop
createdAt datetime(3) Rename | Drop
updatedAt datetime(3) Rename | Drop

Foreign Keys

Column Destination
observationScopeId agents_threads.id
agentId agents.id

+ Add index

Indexes

Name Columns Unique SQL Drop?
IDX_069e791e428391a5569e7a96b2 observationScopeId SQL
CREATE INDEX "IDX_069e791e428391a5569e7a96b2"
ON "agents_memory_entry_cursors" ("observationScopeId")
Drop
sqlite_autoindex_agents_memory_entry_cursors_1
  • agentId
  • observationScopeId
SQL
-- no sql found --
Drop