Skip to main content

app.knowledge_pages

Business Definition Reference

For details on Notion integration syncing, page metadata properties, and AI context grounding, refer to the Knowledge Base Business Definition.

The app.knowledge_pages table stores Notion-compatible block lists representing domain definitions, guidelines, and context pages to ground AI analyses.


Schema Field Definition

Field NameTypeDescription
idUUID (Primary Key)Unique identifier generated via uuid.uuid4.
propertiesJSON (Default: {})Key-value properties representing fields (Notion page schemas).
titleVARCHAR(255) (Required)The title or name of the knowledge page.
iconJSON (Optional)Emoji or icon attributes (e.g. {"type": "emoji", "emoji": "📓"}).
coverJSON (Optional)Cover image properties (e.g. external image URLs).
contentJSON (Optional)Notion-style list of nested block objects containing text/elements.
sourceVARCHAR(50) (Default: manual)Page origin identifier: manual, notion.
source_idVARCHAR(255) (Optional)External identifier reference (e.g., a remote Notion Page ID).
ownerUUID (Foreign Key)References the app.user_groups.id owning this page.
created_byUUID (Foreign Key)References the app.users.id who created the page.
updated_byUUID (Foreign Key)References the app.users.id who modified the page.
reviewed_byUUID (Foreign Key)References the app.users.id who verified page context.
owner_typeVARCHAR(50) (Default: user)Polymorphic owner type (user or group).
owner_idVARCHAR(255) (Optional)Polymorphic ID link.
ownership_typeVARCHAR(50) (Default: individual)Scope categorizations: individual, team.
parent_idUUID (Foreign Key)References the parent knowledge page, enabling page hierarchies.
created_atTIMESTAMPPage creation timestamp.
updated_atTIMESTAMPLast updated timestamp.

Notion Integration Compatibility

The content field stores block lists formatted as JSON elements (e.g., paragraphs, lists, callouts, headers). This structure replicates Notion's page structures, allowing Ravioli to sync pages bi-directionally via Notion's API without losing formatting layout.