Files
n8n/docs/generated/postgres-schema/public.knowledge_vector_store.md
1e13fc10eb feat(core): Add the knowledge collection tables (no-changelog) (#44313)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: n8n-cat-bot[bot] <283985454+n8n-cat-bot[bot]@users.noreply.github.com>
2026-11-19 20:29:55 +00:00

5.8 KiB
Generated

public.knowledge_vector_store

Columns

Name Type Default Nullable Children Parents Comment
config json false Provider settings, such as an index name, a namespace or a table name
createdAt timestamp(3) with time zone CURRENT_TIMESTAMP(3) false
createdById uuid true public.user Author. NULL after the author is deleted
credentialId varchar(36) true public.credentials_entity Credential of the store. NULL after the credential is deleted: the store is then unavailable
description varchar(512) false Tells the agent when to search this store
embeddingCredentialId varchar(36) true public.credentials_entity Credential of the embedding model. NULL after the credential is deleted: the store is then unavailable
embeddingModel varchar(255) false Embedding model in 'provider/model-name' format
id varchar(16) false Application-generated n8n nano ID
knowledgeCollectionId varchar(16) false public.knowledge_collection Collection that holds this vector store connection
name varchar(64) false Part of the search tool name, so it is unique in its collection
provider varchar(16) false Vector store provider, e.g. 'pinecone', 'supabase', 'qdrant' or 'postgres'
updatedAt timestamp(3) with time zone CURRENT_TIMESTAMP(3) false

Constraints

Name Type Definition
FK_03f85fb38aac511330edcaaaec4 FOREIGN KEY FOREIGN KEY ("knowledgeCollectionId") REFERENCES knowledge_collection(id) ON DELETE CASCADE
FK_44cd963b5d5ded5431244b62762 FOREIGN KEY FOREIGN KEY ("createdById") REFERENCES "user"(id) ON DELETE SET NULL
FK_6ad2a7c060c7cebf550e45a3d71 FOREIGN KEY FOREIGN KEY ("embeddingCredentialId") REFERENCES credentials_entity(id) ON DELETE SET NULL
FK_caa9fe147a78ec1c820891937c2 FOREIGN KEY FOREIGN KEY ("credentialId") REFERENCES credentials_entity(id) ON DELETE SET NULL
PK_f00d730c4b9cdbe76ad96137308 PRIMARY KEY PRIMARY KEY (id)
knowledge_vector_store_config_not_null n NOT NULL config
knowledge_vector_store_createdAt_not_null n NOT NULL "createdAt"
knowledge_vector_store_description_not_null n NOT NULL description
knowledge_vector_store_embeddingModel_not_null n NOT NULL "embeddingModel"
knowledge_vector_store_id_not_null n NOT NULL id
knowledge_vector_store_knowledgeCollectionId_not_null n NOT NULL "knowledgeCollectionId"
knowledge_vector_store_name_not_null n NOT NULL name
knowledge_vector_store_provider_not_null n NOT NULL provider
knowledge_vector_store_updatedAt_not_null n NOT NULL "updatedAt"

Indexes

Name Definition
IDX_29c253bcd6bb55be022ddffebf CREATE UNIQUE INDEX "IDX_29c253bcd6bb55be022ddffebf" ON public.knowledge_vector_store USING btree ("knowledgeCollectionId", name)
IDX_6ad2a7c060c7cebf550e45a3d7 CREATE INDEX "IDX_6ad2a7c060c7cebf550e45a3d7" ON public.knowledge_vector_store USING btree ("embeddingCredentialId")
IDX_caa9fe147a78ec1c820891937c CREATE INDEX "IDX_caa9fe147a78ec1c820891937c" ON public.knowledge_vector_store USING btree ("credentialId")
PK_f00d730c4b9cdbe76ad96137308 CREATE UNIQUE INDEX "PK_f00d730c4b9cdbe76ad96137308" ON public.knowledge_vector_store USING btree (id)

Relations

erDiagram

"public.knowledge_vector_store" }o--o| "public.user" : "FOREIGN KEY (#quot;createdById#quot;) REFERENCES #quot;user#quot;(id) ON DELETE SET NULL"
"public.knowledge_vector_store" }o--o| "public.credentials_entity" : "FOREIGN KEY (#quot;credentialId#quot;) REFERENCES credentials_entity(id) ON DELETE SET NULL"
"public.knowledge_vector_store" }o--o| "public.credentials_entity" : "FOREIGN KEY (#quot;embeddingCredentialId#quot;) REFERENCES credentials_entity(id) ON DELETE SET NULL"
"public.knowledge_vector_store" }o--|| "public.knowledge_collection" : "FOREIGN KEY (#quot;knowledgeCollectionId#quot;) REFERENCES knowledge_collection(id) ON DELETE CASCADE"

"public.knowledge_vector_store" {
  json config
  timestamp_3__with_time_zone createdAt
  uuid createdById FK
  varchar_36_ credentialId FK
  varchar_512_ description
  varchar_36_ embeddingCredentialId FK
  varchar_255_ embeddingModel
  varchar_16_ id
  varchar_16_ knowledgeCollectionId FK
  varchar_64_ name
  varchar_16_ provider
  timestamp_3__with_time_zone updatedAt
}
"public.user" {
  timestamp_3__with_time_zone createdAt
  boolean disabled
  varchar_255_ email
  varchar_32_ firstName
  uuid id
  varchar_16_ kind
  date lastActiveAt
  varchar_32_ lastName
  boolean mfaEnabled
  text mfaRecoveryCodes
  text mfaSecret
  varchar_255_ password
  json personalizationAnswers
  varchar_128_ roleSlug FK
  json settings
  timestamp_3__with_time_zone updatedAt
}
"public.credentials_entity" {
  timestamp_3__with_time_zone createdAt
  text data
  text description
  varchar_36_ id
  boolean isGlobal
  boolean isManaged
  boolean isResolvable
  varchar_128_ name
  timestamp_3__with_time_zone pendingAuthorizationExpiresAt
  boolean resolvableAllowFallback
  varchar_16_ resolverId FK
  varchar_128_ type
  timestamp_3__with_time_zone updatedAt
  varchar_16_ usageScope
}
"public.knowledge_collection" {
  varchar_36_ agentId FK
  timestamp_3__with_time_zone createdAt
  uuid createdById FK
  varchar_512_ description
  varchar_16_ id
  boolean isGlobal
  varchar_16_ kind
  varchar_128_ name
  varchar_36_ projectId FK
  varchar_24_ slug
  timestamp_3__with_time_zone updatedAt
}

Generated by tbls