@ragrabbit/mcp

by madarco
Verified
{ "id": "b274269f-0a98-4069-9128-48b8b7ea51c4", "prevId": "88c69650-0680-487a-9ff5-e000650c19ab", "version": "7", "dialect": "postgresql", "tables": { "public.account": { "name": "account", "schema": "", "columns": { "userId": { "name": "userId", "type": "text", "primaryKey": false, "notNull": true }, "type": { "name": "type", "type": "text", "primaryKey": false, "notNull": true }, "provider": { "name": "provider", "type": "text", "primaryKey": false, "notNull": true }, "providerAccountId": { "name": "providerAccountId", "type": "text", "primaryKey": false, "notNull": true }, "refresh_token": { "name": "refresh_token", "type": "text", "primaryKey": false, "notNull": false }, "access_token": { "name": "access_token", "type": "text", "primaryKey": false, "notNull": false }, "expires_at": { "name": "expires_at", "type": "integer", "primaryKey": false, "notNull": false }, "token_type": { "name": "token_type", "type": "text", "primaryKey": false, "notNull": false }, "scope": { "name": "scope", "type": "text", "primaryKey": false, "notNull": false }, "id_token": { "name": "id_token", "type": "text", "primaryKey": false, "notNull": false }, "session_state": { "name": "session_state", "type": "text", "primaryKey": false, "notNull": false } }, "indexes": {}, "foreignKeys": { "account_userId_user_id_fk": { "name": "account_userId_user_id_fk", "tableFrom": "account", "tableTo": "user", "columnsFrom": [ "userId" ], "columnsTo": [ "id" ], "onDelete": "cascade", "onUpdate": "no action" } }, "compositePrimaryKeys": { "account_provider_providerAccountId_pk": { "name": "account_provider_providerAccountId_pk", "columns": [ "provider", "providerAccountId" ] } }, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.authenticator": { "name": "authenticator", "schema": "", "columns": { "credentialID": { "name": "credentialID", "type": "text", "primaryKey": false, "notNull": true }, "userId": { "name": "userId", "type": "text", "primaryKey": false, "notNull": true }, "providerAccountId": { "name": "providerAccountId", "type": "text", "primaryKey": false, "notNull": true }, "credentialPublicKey": { "name": "credentialPublicKey", "type": "text", "primaryKey": false, "notNull": true }, "counter": { "name": "counter", "type": "integer", "primaryKey": false, "notNull": true }, "credentialDeviceType": { "name": "credentialDeviceType", "type": "text", "primaryKey": false, "notNull": true }, "credentialBackedUp": { "name": "credentialBackedUp", "type": "boolean", "primaryKey": false, "notNull": true }, "transports": { "name": "transports", "type": "text", "primaryKey": false, "notNull": false } }, "indexes": {}, "foreignKeys": { "authenticator_userId_user_id_fk": { "name": "authenticator_userId_user_id_fk", "tableFrom": "authenticator", "tableTo": "user", "columnsFrom": [ "userId" ], "columnsTo": [ "id" ], "onDelete": "cascade", "onUpdate": "no action" } }, "compositePrimaryKeys": { "authenticator_pk": { "name": "authenticator_pk", "columns": [ "userId", "credentialID" ] } }, "uniqueConstraints": { "authenticator_credentialID_unique": { "name": "authenticator_credentialID_unique", "nullsNotDistinct": false, "columns": [ "credentialID" ] } }, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.organization": { "name": "organization", "schema": "", "columns": { "id": { "name": "id", "type": "serial", "primaryKey": true, "notNull": true }, "name": { "name": "name", "type": "text", "primaryKey": false, "notNull": true }, "createdAt": { "name": "createdAt", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" }, "updatedAt": { "name": "updatedAt", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": {}, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.session": { "name": "session", "schema": "", "columns": { "sessionToken": { "name": "sessionToken", "type": "text", "primaryKey": true, "notNull": true }, "userId": { "name": "userId", "type": "text", "primaryKey": false, "notNull": true }, "expires": { "name": "expires", "type": "timestamp", "primaryKey": false, "notNull": true } }, "indexes": {}, "foreignKeys": { "session_userId_user_id_fk": { "name": "session_userId_user_id_fk", "tableFrom": "session", "tableTo": "user", "columnsFrom": [ "userId" ], "columnsTo": [ "id" ], "onDelete": "cascade", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.user": { "name": "user", "schema": "", "columns": { "id": { "name": "id", "type": "text", "primaryKey": true, "notNull": true }, "name": { "name": "name", "type": "text", "primaryKey": false, "notNull": false }, "email": { "name": "email", "type": "text", "primaryKey": false, "notNull": false }, "emailVerified": { "name": "emailVerified", "type": "timestamp", "primaryKey": false, "notNull": false }, "image": { "name": "image", "type": "text", "primaryKey": false, "notNull": false }, "organizationId": { "name": "organizationId", "type": "integer", "primaryKey": false, "notNull": false, "default": 1 } }, "indexes": {}, "foreignKeys": { "user_organizationId_organization_id_fk": { "name": "user_organizationId_organization_id_fk", "tableFrom": "user", "tableTo": "organization", "columnsFrom": [ "organizationId" ], "columnsTo": [ "id" ], "onDelete": "no action", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": { "user_email_unique": { "name": "user_email_unique", "nullsNotDistinct": false, "columns": [ "email" ] } }, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.verificationToken": { "name": "verificationToken", "schema": "", "columns": { "identifier": { "name": "identifier", "type": "text", "primaryKey": false, "notNull": true }, "token": { "name": "token", "type": "text", "primaryKey": false, "notNull": true }, "expires": { "name": "expires", "type": "timestamp", "primaryKey": false, "notNull": true } }, "indexes": {}, "foreignKeys": {}, "compositePrimaryKeys": { "verificationToken_identifier_token_pk": { "name": "verificationToken_identifier_token_pk", "columns": [ "identifier", "token" ] } }, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.indexed_content": { "name": "indexed_content", "schema": "", "columns": { "id": { "name": "id", "type": "serial", "primaryKey": true, "notNull": true }, "index_id": { "name": "index_id", "type": "integer", "primaryKey": false, "notNull": true }, "content": { "name": "content", "type": "text", "primaryKey": false, "notNull": true }, "created_at": { "name": "created_at", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" }, "updated_at": { "name": "updated_at", "type": "timestamp", "primaryKey": false, "notNull": false } }, "indexes": {}, "foreignKeys": { "indexed_content_index_id_indexed_id_fk": { "name": "indexed_content_index_id_indexed_id_fk", "tableFrom": "indexed_content", "tableTo": "indexed", "columnsFrom": [ "index_id" ], "columnsTo": [ "id" ], "onDelete": "cascade", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": { "indexed_content_indexId_unique": { "name": "indexed_content_indexId_unique", "nullsNotDistinct": false, "columns": [ "index_id" ] } }, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.indexed": { "name": "indexed", "schema": "", "columns": { "id": { "name": "id", "type": "serial", "primaryKey": true, "notNull": true }, "organization_id": { "name": "organization_id", "type": "integer", "primaryKey": false, "notNull": true }, "url": { "name": "url", "type": "varchar", "primaryKey": false, "notNull": true }, "normalized_url": { "name": "normalized_url", "type": "varchar", "primaryKey": false, "notNull": true }, "canonical_url": { "name": "canonical_url", "type": "varchar", "primaryKey": false, "notNull": false }, "title": { "name": "title", "type": "varchar", "primaryKey": false, "notNull": false }, "description": { "name": "description", "type": "text", "primaryKey": false, "notNull": false }, "scrape_options": { "name": "scrape_options", "type": "jsonb", "primaryKey": false, "notNull": false, "default": "'{}'::jsonb" }, "do_crawl": { "name": "do_crawl", "type": "boolean", "primaryKey": false, "notNull": true, "default": false }, "is_sitemap": { "name": "is_sitemap", "type": "boolean", "primaryKey": false, "notNull": true, "default": false }, "found_from_index_id": { "name": "found_from_index_id", "type": "integer", "primaryKey": false, "notNull": false }, "depth": { "name": "depth", "type": "integer", "primaryKey": false, "notNull": true, "default": 0 }, "status": { "name": "status", "type": "index_status", "typeSchema": "public", "primaryKey": false, "notNull": true, "default": "'PENDING'" }, "error": { "name": "error", "type": "text", "primaryKey": false, "notNull": false }, "hash": { "name": "hash", "type": "varchar", "primaryKey": false, "notNull": false }, "skip": { "name": "skip", "type": "boolean", "primaryKey": false, "notNull": true, "default": false }, "skip_reason": { "name": "skip_reason", "type": "text", "primaryKey": false, "notNull": false }, "reindex_at": { "name": "reindex_at", "type": "timestamp", "primaryKey": false, "notNull": false }, "indexed_at": { "name": "indexed_at", "type": "timestamp", "primaryKey": false, "notNull": false }, "created_at": { "name": "created_at", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" }, "updated_at": { "name": "updated_at", "type": "timestamp", "primaryKey": false, "notNull": false } }, "indexes": { "indexed_organization_id_found_from_index_id_index": { "name": "indexed_organization_id_found_from_index_id_index", "columns": [ { "expression": "organization_id", "isExpression": false, "asc": true, "nulls": "last" }, { "expression": "found_from_index_id", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": false, "concurrently": false, "method": "btree", "with": {} }, "indexed_organization_id_status_index": { "name": "indexed_organization_id_status_index", "columns": [ { "expression": "organization_id", "isExpression": false, "asc": true, "nulls": "last" }, { "expression": "status", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": false, "concurrently": false, "method": "btree", "with": {} } }, "foreignKeys": { "indexed_found_from_index_id_indexed_id_fk": { "name": "indexed_found_from_index_id_indexed_id_fk", "tableFrom": "indexed", "tableTo": "indexed", "columnsFrom": [ "found_from_index_id" ], "columnsTo": [ "id" ], "onDelete": "cascade", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": { "indexed_organizationId_normalizedUrl_unique": { "name": "indexed_organizationId_normalizedUrl_unique", "nullsNotDistinct": false, "columns": [ "organization_id", "normalized_url" ] }, "indexed_organizationId_hash_unique": { "name": "indexed_organizationId_hash_unique", "nullsNotDistinct": false, "columns": [ "organization_id", "hash" ] } }, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.indexed_content_embeddings": { "name": "indexed_content_embeddings", "schema": "", "columns": { "id": { "name": "id", "type": "uuid", "primaryKey": true, "notNull": true, "default": "gen_random_uuid()" }, "external_id": { "name": "external_id", "type": "varchar", "primaryKey": false, "notNull": false }, "collection": { "name": "collection", "type": "varchar", "primaryKey": false, "notNull": false }, "document": { "name": "document", "type": "text", "primaryKey": false, "notNull": false }, "metadata": { "name": "metadata", "type": "jsonb", "primaryKey": false, "notNull": false, "default": "'{}'::jsonb" }, "content_id": { "name": "content_id", "type": "integer", "primaryKey": false, "notNull": false, "generated": { "as": "(metadata ->> 'contentId')::int", "type": "stored" } }, "embeddings": { "name": "embeddings", "type": "vector(1536)", "primaryKey": false, "notNull": false } }, "indexes": { "idx_llamaindex_embedding_collection": { "name": "idx_llamaindex_embedding_collection", "columns": [ { "expression": "collection", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": false, "concurrently": false, "method": "btree", "with": {} }, "idx_llamaindex_embedding_metadata_page_id": { "name": "idx_llamaindex_embedding_metadata_page_id", "columns": [ { "expression": "(\"metadata\" ->> '{contentId}')", "asc": true, "isExpression": true, "nulls": "last" } ], "isUnique": false, "concurrently": false, "method": "btree", "with": {} }, "idx_llamaindex_embedding_organization_id": { "name": "idx_llamaindex_embedding_organization_id", "columns": [ { "expression": "(\"metadata\" ->> '{organizationId}')", "asc": true, "isExpression": true, "nulls": "last" } ], "isUnique": false, "concurrently": false, "method": "btree", "with": {} } }, "foreignKeys": { "indexed_content_embeddings_content_id_indexed_id_fk": { "name": "indexed_content_embeddings_content_id_indexed_id_fk", "tableFrom": "indexed_content_embeddings", "tableTo": "indexed", "columnsFrom": [ "content_id" ], "columnsTo": [ "id" ], "onDelete": "cascade", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.widget_config": { "name": "widget_config", "schema": "", "columns": { "id": { "name": "id", "type": "serial", "primaryKey": true, "notNull": true }, "organization_id": { "name": "organization_id", "type": "integer", "primaryKey": false, "notNull": true }, "suggested_queries": { "name": "suggested_queries", "type": "jsonb", "primaryKey": false, "notNull": false, "default": "'[]'::jsonb" }, "welcome_message": { "name": "welcome_message", "type": "text", "primaryKey": false, "notNull": false }, "logo_url": { "name": "logo_url", "type": "varchar", "primaryKey": false, "notNull": false } }, "indexes": {}, "foreignKeys": { "widget_config_organization_id_organization_id_fk": { "name": "widget_config_organization_id_organization_id_fk", "tableFrom": "widget_config", "tableTo": "organization", "columnsFrom": [ "organization_id" ], "columnsTo": [ "id" ], "onDelete": "cascade", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": { "widget_config_organizationId_unique": { "name": "widget_config_organizationId_unique", "nullsNotDistinct": false, "columns": [ "organization_id" ] } }, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.chats": { "name": "chats", "schema": "", "columns": { "id": { "name": "id", "type": "uuid", "primaryKey": true, "notNull": true, "default": "gen_random_uuid()" }, "chat_id": { "name": "chat_id", "type": "varchar", "primaryKey": false, "notNull": true }, "user_id": { "name": "user_id", "type": "varchar", "primaryKey": false, "notNull": true }, "organization_id": { "name": "organization_id", "type": "integer", "primaryKey": false, "notNull": true }, "title": { "name": "title", "type": "text", "primaryKey": false, "notNull": false }, "ip": { "name": "ip", "type": "text", "primaryKey": false, "notNull": false }, "created_at": { "name": "created_at", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" }, "updated_at": { "name": "updated_at", "type": "timestamp", "primaryKey": false, "notNull": false } }, "indexes": { "chat_user_id": { "name": "chat_user_id", "columns": [ { "expression": "user_id", "isExpression": false, "asc": true, "nulls": "last" }, { "expression": "chat_id", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": true, "concurrently": false, "method": "btree", "with": {} } }, "foreignKeys": { "chats_organization_id_organization_id_fk": { "name": "chats_organization_id_organization_id_fk", "tableFrom": "chats", "tableTo": "organization", "columnsFrom": [ "organization_id" ], "columnsTo": [ "id" ], "onDelete": "cascade", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.messages": { "name": "messages", "schema": "", "columns": { "id": { "name": "id", "type": "uuid", "primaryKey": true, "notNull": true, "default": "gen_random_uuid()" }, "chat_id": { "name": "chat_id", "type": "uuid", "primaryKey": false, "notNull": true }, "role": { "name": "role", "type": "message_role", "typeSchema": "public", "primaryKey": false, "notNull": true }, "content": { "name": "content", "type": "text", "primaryKey": false, "notNull": true }, "reasoning": { "name": "reasoning", "type": "text", "primaryKey": false, "notNull": false }, "data": { "name": "data", "type": "jsonb", "primaryKey": false, "notNull": false }, "annotations": { "name": "annotations", "type": "jsonb", "primaryKey": false, "notNull": false }, "tool_invocations": { "name": "tool_invocations", "type": "jsonb", "primaryKey": false, "notNull": false }, "experimental_attachments": { "name": "experimental_attachments", "type": "jsonb", "primaryKey": false, "notNull": false }, "created_at": { "name": "created_at", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" }, "updated_at": { "name": "updated_at", "type": "timestamp", "primaryKey": false, "notNull": false } }, "indexes": {}, "foreignKeys": { "messages_chat_id_chats_id_fk": { "name": "messages_chat_id_chats_id_fk", "tableFrom": "messages", "tableTo": "chats", "columnsFrom": [ "chat_id" ], "columnsTo": [ "id" ], "onDelete": "cascade", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false } }, "enums": { "public.index_status": { "name": "index_status", "schema": "public", "values": [ "PENDING", "PROCESSING", "SCRAPED", "DONE", "SKIPPED", "ERROR" ] }, "public.message_role": { "name": "message_role", "schema": "public", "values": [ "system", "user", "assistant", "data" ] } }, "schemas": {}, "sequences": {}, "roles": {}, "policies": {}, "views": {}, "_meta": { "columns": {}, "schemas": {}, "tables": {} } }