{ "dialect": "postgres", "id": "f031de7a-cc2b-4725-9667-e059eb7fb46c", "prevIds": [ "00000000-0000-0000-0000-000000000000" ], "version": "8", "ddl": [ { "values": [ "reasoning", "text", "tool-call", "file" ], "name": "part_type", "entityType": "enums", "schema": "public" }, { "values": [ "user", "assistant" ], "name": "role", "entityType": "enums", "schema": "public" }, { "values": [ "pending", "completed", "failed", "cancelled" ], "name": "status", "entityType": "enums", "schema": "public" }, { "isRlsEnabled": false, "name": "accounts", "entityType": "tables", "schema": "public" }, { "isRlsEnabled": false, "name": "agents", "entityType": "tables", "schema": "public" }, { "isRlsEnabled": false, "name": "attachments", "entityType": "tables", "schema": "public" }, { "isRlsEnabled": false, "name": "embeddings", "entityType": "tables", "schema": "public" }, { "isRlsEnabled": false, "name": "files", "entityType": "tables", "schema": "public" }, { "isRlsEnabled": false, "name": "generations", "entityType": "tables", "schema": "public" }, { "isRlsEnabled": false, "name": "message_parts", "entityType": "tables", "schema": "public" }, { "isRlsEnabled": false, "name": "messages", "entityType": "tables", "schema": "public" }, { "isRlsEnabled": false, "name": "models", "entityType": "tables", "schema": "public" }, { "isRlsEnabled": false, "name": "providers", "entityType": "tables", "schema": "public" }, { "isRlsEnabled": false, "name": "sessions", "entityType": "tables", "schema": "public" }, { "isRlsEnabled": false, "name": "settings", "entityType": "tables", "schema": "public" }, { "isRlsEnabled": false, "name": "tool_calls", "entityType": "tables", "schema": "public" }, { "isRlsEnabled": false, "name": "topics", "entityType": "tables", "schema": "public" }, { "isRlsEnabled": false, "name": "users", "entityType": "tables", "schema": "public" }, { "isRlsEnabled": false, "name": "verifications", "entityType": "tables", "schema": "public" }, { "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "id", "entityType": "columns", "schema": "public", "table": "users" }, { "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "id", "entityType": "columns", "schema": "public", "table": "settings" }, { "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "id", "entityType": "columns", "schema": "public", "table": "models" }, { "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "id", "entityType": "columns", "schema": "public", "table": "verifications" }, { "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "id", "entityType": "columns", "schema": "public", "table": "generations" }, { "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "id", "entityType": "columns", "schema": "public", "table": "topics" }, { "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "id", "entityType": "columns", "schema": "public", "table": "attachments" }, { "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "id", "entityType": "columns", "schema": "public", "table": "tool_calls" }, { "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "id", "entityType": "columns", "schema": "public", "table": "accounts" }, { "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "id", "entityType": "columns", "schema": "public", "table": "message_parts" }, { "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "id", "entityType": "columns", "schema": "public", "table": "providers" }, { "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "id", "entityType": "columns", "schema": "public", "table": "embeddings" }, { "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "id", "entityType": "columns", "schema": "public", "table": "agents" }, { "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "id", "entityType": "columns", "schema": "public", "table": "sessions" }, { "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "id", "entityType": "columns", "schema": "public", "table": "messages" }, { "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "id", "entityType": "columns", "schema": "public", "table": "files" }, { "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "user_id", "entityType": "columns", "schema": "public", "table": "topics" }, { "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "user_id", "entityType": "columns", "schema": "public", "table": "files" }, { "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "user_id", "entityType": "columns", "schema": "public", "table": "providers" }, { "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "account_id", "entityType": "columns", "schema": "public", "table": "accounts" }, { "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "user_id", "entityType": "columns", "schema": "public", "table": "message_parts" }, { "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "user_id", "entityType": "columns", "schema": "public", "table": "generations" }, { "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "identifier", "entityType": "columns", "schema": "public", "table": "verifications" }, { "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "name", "entityType": "columns", "schema": "public", "table": "users" }, { "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "user_id", "entityType": "columns", "schema": "public", "table": "models" }, { "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "user_id", "entityType": "columns", "schema": "public", "table": "agents" }, { "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "user_id", "entityType": "columns", "schema": "public", "table": "tool_calls" }, { "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "user_id", "entityType": "columns", "schema": "public", "table": "settings" }, { "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "user_id", "entityType": "columns", "schema": "public", "table": "attachments" }, { "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "user_id", "entityType": "columns", "schema": "public", "table": "messages" }, { "type": "timestamp", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "expires_at", "entityType": "columns", "schema": "public", "table": "sessions" }, { "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "file_id", "entityType": "columns", "schema": "public", "table": "embeddings" }, { "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "token", "entityType": "columns", "schema": "public", "table": "sessions" }, { "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "type", "entityType": "columns", "schema": "public", "table": "providers" }, { "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "value", "entityType": "columns", "schema": "public", "table": "verifications" }, { "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "name", "entityType": "columns", "schema": "public", "table": "agents" }, { "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "provider_id", "entityType": "columns", "schema": "public", "table": "accounts" }, { "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "topic_id", "entityType": "columns", "schema": "public", "table": "attachments" }, { "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "email", "entityType": "columns", "schema": "public", "table": "users" }, { "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "content", "entityType": "columns", "schema": "public", "table": "embeddings" }, { "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "name", "entityType": "columns", "schema": "public", "table": "files" }, { "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "topic_id", "entityType": "columns", "schema": "public", "table": "generations" }, { "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "topic_id", "entityType": "columns", "schema": "public", "table": "message_parts" }, { "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "agent_id", "entityType": "columns", "schema": "public", "table": "topics" }, { "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "topic_id", "entityType": "columns", "schema": "public", "table": "messages" }, { "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "tool_name", "entityType": "columns", "schema": "public", "table": "tool_calls" }, { "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "external_id", "entityType": "columns", "schema": "public", "table": "models" }, { "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, "default": "'{}'", "generated": null, "identity": null, "name": "system_assistants", "entityType": "columns", "schema": "public", "table": "settings" }, { "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "message_id", "entityType": "columns", "schema": "public", "table": "message_parts" }, { "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "mime_type", "entityType": "columns", "schema": "public", "table": "files" }, { "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "name", "entityType": "columns", "schema": "public", "table": "topics" }, { "type": "timestamp", "typeSchema": null, "notNull": true, "dimensions": 0, "default": "now()", "generated": null, "identity": null, "name": "created_at", "entityType": "columns", "schema": "public", "table": "sessions" }, { "type": "vector(1536)", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "embedding", "entityType": "columns", "schema": "public", "table": "embeddings" }, { "type": "text", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "parent_message_id", "entityType": "columns", "schema": "public", "table": "messages" }, { "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "message_id", "entityType": "columns", "schema": "public", "table": "attachments" }, { "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, "default": "false", "generated": null, "identity": null, "name": "email_verified", "entityType": "columns", "schema": "public", "table": "users" }, { "type": "status", "typeSchema": "public", "notNull": true, "dimensions": 0, "default": "'pending'", "generated": null, "identity": null, "name": "status", "entityType": "columns", "schema": "public", "table": "tool_calls" }, { "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "name", "entityType": "columns", "schema": "public", "table": "providers" }, { "type": "text", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "system_prompt", "entityType": "columns", "schema": "public", "table": "agents" }, { "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "provider_id", "entityType": "columns", "schema": "public", "table": "models" }, { "type": "timestamp", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "expires_at", "entityType": "columns", "schema": "public", "table": "verifications" }, { "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "model_id", "entityType": "columns", "schema": "public", "table": "generations" }, { "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "user_id", "entityType": "columns", "schema": "public", "table": "accounts" }, { "type": "jsonb", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "appearance", "entityType": "columns", "schema": "public", "table": "settings" }, { "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "url", "entityType": "columns", "schema": "public", "table": "files" }, { "type": "text", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "tool_call_id", "entityType": "columns", "schema": "public", "table": "message_parts" }, { "type": "boolean", "typeSchema": null, "notNull": false, "dimensions": 0, "default": "false", "generated": null, "identity": null, "name": "renaming", "entityType": "columns", "schema": "public", "table": "topics" }, { "type": "text", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "image_url", "entityType": "columns", "schema": "public", "table": "agents" }, { "type": "text", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "access_token", "entityType": "columns", "schema": "public", "table": "accounts" }, { "type": "jsonb", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "metadata", "entityType": "columns", "schema": "public", "table": "embeddings" }, { "type": "text", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "image", "entityType": "columns", "schema": "public", "table": "users" }, { "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "file_id", "entityType": "columns", "schema": "public", "table": "attachments" }, { "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, "default": "true", "generated": null, "identity": null, "name": "enabled", "entityType": "columns", "schema": "public", "table": "providers" }, { "type": "timestamp", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "updated_at", "entityType": "columns", "schema": "public", "table": "sessions" }, { "type": "text", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "generation_id", "entityType": "columns", "schema": "public", "table": "messages" }, { "type": "status", "typeSchema": "public", "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "status", "entityType": "columns", "schema": "public", "table": "generations" }, { "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "name", "entityType": "columns", "schema": "public", "table": "models" }, { "type": "jsonb", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "input", "entityType": "columns", "schema": "public", "table": "tool_calls" }, { "type": "timestamp", "typeSchema": null, "notNull": true, "dimensions": 0, "default": "now()", "generated": null, "identity": null, "name": "created_at", "entityType": "columns", "schema": "public", "table": "verifications" }, { "type": "timestamp", "typeSchema": null, "notNull": true, "dimensions": 0, "default": "now()", "generated": null, "identity": null, "name": "updated_at", "entityType": "columns", "schema": "public", "table": "verifications" }, { "type": "text", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "refresh_token", "entityType": "columns", "schema": "public", "table": "accounts" }, { "type": "text", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "default_model_id", "entityType": "columns", "schema": "public", "table": "agents" }, { "type": "timestamp", "typeSchema": null, "notNull": true, "dimensions": 0, "default": "now()", "generated": null, "identity": null, "name": "created_at", "entityType": "columns", "schema": "public", "table": "files" }, { "type": "jsonb", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "tokens", "entityType": "columns", "schema": "public", "table": "generations" }, { "type": "part_type", "typeSchema": "public", "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "type", "entityType": "columns", "schema": "public", "table": "message_parts" }, { "type": "role", "typeSchema": "public", "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "role", "entityType": "columns", "schema": "public", "table": "messages" }, { "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, "default": "'{}'", "generated": null, "identity": null, "name": "cost", "entityType": "columns", "schema": "public", "table": "models" }, { "type": "jsonb", "typeSchema": null, "notNull": true, "dimensions": 0, "default": "'{}'", "generated": null, "identity": null, "name": "config", "entityType": "columns", "schema": "public", "table": "providers" }, { "type": "text", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "ip_address", "entityType": "columns", "schema": "public", "table": "sessions" }, { "type": "jsonb", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "output", "entityType": "columns", "schema": "public", "table": "tool_calls" }, { "type": "timestamp", "typeSchema": null, "notNull": true, "dimensions": 0, "default": "now()", "generated": null, "identity": null, "name": "created_at", "entityType": "columns", "schema": "public", "table": "topics" }, { "type": "timestamp", "typeSchema": null, "notNull": true, "dimensions": 0, "default": "now()", "generated": null, "identity": null, "name": "created_at", "entityType": "columns", "schema": "public", "table": "users" }, { "type": "text", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "user_agent", "entityType": "columns", "schema": "public", "table": "sessions" }, { "type": "text", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "content", "entityType": "columns", "schema": "public", "table": "messages" }, { "type": "timestamp", "typeSchema": null, "notNull": true, "dimensions": 0, "default": "now()", "generated": null, "identity": null, "name": "created_at", "entityType": "columns", "schema": "public", "table": "agents" }, { "type": "jsonb", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "error", "entityType": "columns", "schema": "public", "table": "tool_calls" }, { "type": "timestamp", "typeSchema": null, "notNull": true, "dimensions": 0, "default": "now()", "generated": null, "identity": null, "name": "updated_at", "entityType": "columns", "schema": "public", "table": "users" }, { "type": "text", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "error", "entityType": "columns", "schema": "public", "table": "generations" }, { "type": "timestamp", "typeSchema": null, "notNull": true, "dimensions": 0, "default": "now()", "generated": null, "identity": null, "name": "created_at", "entityType": "columns", "schema": "public", "table": "providers" }, { "type": "text", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "content", "entityType": "columns", "schema": "public", "table": "message_parts" }, { "type": "text", "typeSchema": null, "notNull": true, "dimensions": 1, "default": "'{}'", "generated": null, "identity": null, "name": "input_modalities", "entityType": "columns", "schema": "public", "table": "models" }, { "type": "text", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "id_token", "entityType": "columns", "schema": "public", "table": "accounts" }, { "type": "timestamp", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "access_token_expires_at", "entityType": "columns", "schema": "public", "table": "accounts" }, { "type": "timestamp", "typeSchema": null, "notNull": true, "dimensions": 0, "default": "now()", "generated": null, "identity": null, "name": "updated_at", "entityType": "columns", "schema": "public", "table": "providers" }, { "type": "text", "typeSchema": null, "notNull": true, "dimensions": 1, "default": "'{}'", "generated": null, "identity": null, "name": "output_modalities", "entityType": "columns", "schema": "public", "table": "models" }, { "type": "integer", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "focused_index", "entityType": "columns", "schema": "public", "table": "messages" }, { "type": "timestamp", "typeSchema": null, "notNull": true, "dimensions": 0, "default": "now()", "generated": null, "identity": null, "name": "created_at", "entityType": "columns", "schema": "public", "table": "tool_calls" }, { "type": "text", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "user_id", "entityType": "columns", "schema": "public", "table": "sessions" }, { "type": "jsonb", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "provider_options", "entityType": "columns", "schema": "public", "table": "message_parts" }, { "type": "text", "typeSchema": null, "notNull": true, "dimensions": 1, "default": "'{}'", "generated": null, "identity": null, "name": "capabilities", "entityType": "columns", "schema": "public", "table": "models" }, { "type": "timestamp", "typeSchema": null, "notNull": true, "dimensions": 0, "default": "now()", "generated": null, "identity": null, "name": "created_at", "entityType": "columns", "schema": "public", "table": "attachments" }, { "type": "timestamp", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "refresh_token_expires_at", "entityType": "columns", "schema": "public", "table": "accounts" }, { "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, "default": "false", "generated": null, "identity": null, "name": "finished", "entityType": "columns", "schema": "public", "table": "message_parts" }, { "type": "boolean", "typeSchema": null, "notNull": false, "dimensions": 0, "default": "false", "generated": null, "identity": null, "name": "deleted", "entityType": "columns", "schema": "public", "table": "messages" }, { "type": "text", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "scope", "entityType": "columns", "schema": "public", "table": "accounts" }, { "type": "integer", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "context_window", "entityType": "columns", "schema": "public", "table": "models" }, { "type": "timestamp", "typeSchema": null, "notNull": true, "dimensions": 0, "default": "now()", "generated": null, "identity": null, "name": "updated_at", "entityType": "columns", "schema": "public", "table": "messages" }, { "type": "timestamp", "typeSchema": null, "notNull": true, "dimensions": 0, "default": "now()", "generated": null, "identity": null, "name": "created_at", "entityType": "columns", "schema": "public", "table": "message_parts" }, { "type": "timestamp", "typeSchema": null, "notNull": true, "dimensions": 0, "default": "now()", "generated": null, "identity": null, "name": "last_updated_at", "entityType": "columns", "schema": "public", "table": "message_parts" }, { "type": "timestamp", "typeSchema": null, "notNull": true, "dimensions": 0, "default": "now()", "generated": null, "identity": null, "name": "created_at", "entityType": "columns", "schema": "public", "table": "messages" }, { "type": "text", "typeSchema": null, "notNull": false, "dimensions": 1, "default": null, "generated": null, "identity": null, "name": "supported_parameters", "entityType": "columns", "schema": "public", "table": "models" }, { "type": "text", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "password", "entityType": "columns", "schema": "public", "table": "accounts" }, { "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, "default": "false", "generated": null, "identity": null, "name": "is_custom", "entityType": "columns", "schema": "public", "table": "models" }, { "type": "timestamp", "typeSchema": null, "notNull": true, "dimensions": 0, "default": "now()", "generated": null, "identity": null, "name": "created_at", "entityType": "columns", "schema": "public", "table": "accounts" }, { "type": "timestamp", "typeSchema": null, "notNull": true, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "updated_at", "entityType": "columns", "schema": "public", "table": "accounts" }, { "type": "boolean", "typeSchema": null, "notNull": true, "dimensions": 0, "default": "true", "generated": null, "identity": null, "name": "enabled", "entityType": "columns", "schema": "public", "table": "models" }, { "type": "timestamp", "typeSchema": null, "notNull": false, "dimensions": 0, "default": null, "generated": null, "identity": null, "name": "released_at", "entityType": "columns", "schema": "public", "table": "models" }, { "nameExplicit": true, "columns": [ { "asc": true, "nullsFirst": false, "opclass": null, "isExpression": false, "value": "user_id" } ], "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, "name": "accounts_userId_idx", "entityType": "indexes", "schema": "public", "table": "accounts" }, { "nameExplicit": true, "columns": [ { "asc": true, "nullsFirst": false, "opclass": null, "isExpression": false, "value": "user_id" } ], "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, "name": "agents_userId_idx", "entityType": "indexes", "schema": "public", "table": "agents" }, { "nameExplicit": true, "columns": [ { "asc": true, "nullsFirst": false, "opclass": null, "isExpression": false, "value": "message_id" } ], "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, "name": "attachments_messageId_idx", "entityType": "indexes", "schema": "public", "table": "attachments" }, { "nameExplicit": true, "columns": [ { "asc": true, "nullsFirst": false, "opclass": null, "isExpression": false, "value": "topic_id" } ], "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, "name": "attachments_topicId_idx", "entityType": "indexes", "schema": "public", "table": "attachments" }, { "nameExplicit": true, "columns": [ { "asc": true, "nullsFirst": false, "opclass": null, "isExpression": false, "value": "user_id" } ], "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, "name": "attachments_userId_idx", "entityType": "indexes", "schema": "public", "table": "attachments" }, { "nameExplicit": true, "columns": [ { "asc": true, "nullsFirst": false, "opclass": null, "isExpression": false, "value": "file_id" } ], "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, "name": "embeddings_fileId_idx", "entityType": "indexes", "schema": "public", "table": "embeddings" }, { "nameExplicit": true, "columns": [ { "asc": true, "nullsFirst": false, "opclass": null, "isExpression": false, "value": "user_id" } ], "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, "name": "files_userId_idx", "entityType": "indexes", "schema": "public", "table": "files" }, { "nameExplicit": true, "columns": [ { "asc": true, "nullsFirst": false, "opclass": null, "isExpression": false, "value": "topic_id" } ], "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, "name": "generations_topicId_idx", "entityType": "indexes", "schema": "public", "table": "generations" }, { "nameExplicit": true, "columns": [ { "asc": true, "nullsFirst": false, "opclass": null, "isExpression": false, "value": "user_id" } ], "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, "name": "generations_userId_idx", "entityType": "indexes", "schema": "public", "table": "generations" }, { "nameExplicit": true, "columns": [ { "asc": true, "nullsFirst": false, "opclass": null, "isExpression": false, "value": "message_id" } ], "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, "name": "message_parts_messageId_idx", "entityType": "indexes", "schema": "public", "table": "message_parts" }, { "nameExplicit": true, "columns": [ { "asc": true, "nullsFirst": false, "opclass": null, "isExpression": false, "value": "topic_id" } ], "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, "name": "message_parts_topicId_idx", "entityType": "indexes", "schema": "public", "table": "message_parts" }, { "nameExplicit": true, "columns": [ { "asc": true, "nullsFirst": false, "opclass": null, "isExpression": false, "value": "user_id" } ], "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, "name": "message_parts_userId_idx", "entityType": "indexes", "schema": "public", "table": "message_parts" }, { "nameExplicit": true, "columns": [ { "asc": true, "nullsFirst": false, "opclass": null, "isExpression": false, "value": "parent_message_id" } ], "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, "name": "messages_parentMessageId_idx", "entityType": "indexes", "schema": "public", "table": "messages" }, { "nameExplicit": true, "columns": [ { "asc": true, "nullsFirst": false, "opclass": null, "isExpression": false, "value": "topic_id" } ], "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, "name": "messages_topicId_idx", "entityType": "indexes", "schema": "public", "table": "messages" }, { "nameExplicit": true, "columns": [ { "asc": true, "nullsFirst": false, "opclass": null, "isExpression": false, "value": "user_id" } ], "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, "name": "messages_userId_idx", "entityType": "indexes", "schema": "public", "table": "messages" }, { "nameExplicit": true, "columns": [ { "asc": true, "nullsFirst": false, "opclass": null, "isExpression": false, "value": "provider_id" } ], "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, "name": "models_providerId_idx", "entityType": "indexes", "schema": "public", "table": "models" }, { "nameExplicit": true, "columns": [ { "asc": true, "nullsFirst": false, "opclass": null, "isExpression": false, "value": "user_id" } ], "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, "name": "models_userId_idx", "entityType": "indexes", "schema": "public", "table": "models" }, { "nameExplicit": true, "columns": [ { "asc": true, "nullsFirst": false, "opclass": null, "isExpression": false, "value": "user_id" } ], "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, "name": "providers_userId_idx", "entityType": "indexes", "schema": "public", "table": "providers" }, { "nameExplicit": true, "columns": [ { "asc": true, "nullsFirst": false, "opclass": null, "isExpression": false, "value": "user_id" } ], "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, "name": "sessions_userId_idx", "entityType": "indexes", "schema": "public", "table": "sessions" }, { "nameExplicit": true, "columns": [ { "asc": true, "nullsFirst": false, "opclass": null, "isExpression": false, "value": "user_id" } ], "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, "name": "settings_userId_idx", "entityType": "indexes", "schema": "public", "table": "settings" }, { "nameExplicit": true, "columns": [ { "asc": true, "nullsFirst": false, "opclass": null, "isExpression": false, "value": "user_id" } ], "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, "name": "tool_calls_userId_idx", "entityType": "indexes", "schema": "public", "table": "tool_calls" }, { "nameExplicit": true, "columns": [ { "asc": true, "nullsFirst": false, "opclass": null, "isExpression": false, "value": "agent_id" } ], "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, "name": "topics_agentId_idx", "entityType": "indexes", "schema": "public", "table": "topics" }, { "nameExplicit": true, "columns": [ { "asc": true, "nullsFirst": false, "opclass": null, "isExpression": false, "value": "user_id" } ], "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, "name": "topics_userId_idx", "entityType": "indexes", "schema": "public", "table": "topics" }, { "nameExplicit": true, "columns": [ { "asc": true, "nullsFirst": false, "opclass": null, "isExpression": false, "value": "identifier" } ], "isUnique": false, "where": null, "with": "", "method": "btree", "concurrently": false, "name": "verifications_identifier_idx", "entityType": "indexes", "schema": "public", "table": "verifications" }, { "nameExplicit": true, "columns": [ "user_id" ], "schemaTo": "public", "tableTo": "users", "columnsTo": [ "id" ], "onUpdate": "NO ACTION", "onDelete": "CASCADE", "name": "accounts_user_id_users_id_fkey", "entityType": "fks", "schema": "public", "table": "accounts" }, { "nameExplicit": true, "columns": [ "default_model_id" ], "schemaTo": "public", "tableTo": "models", "columnsTo": [ "id" ], "onUpdate": "NO ACTION", "onDelete": "SET NULL", "name": "agents_default_model_id_models_id_fkey", "entityType": "fks", "schema": "public", "table": "agents" }, { "nameExplicit": true, "columns": [ "file_id" ], "schemaTo": "public", "tableTo": "files", "columnsTo": [ "id" ], "onUpdate": "NO ACTION", "onDelete": "CASCADE", "name": "attachments_file_id_files_id_fkey", "entityType": "fks", "schema": "public", "table": "attachments" }, { "nameExplicit": true, "columns": [ "message_id" ], "schemaTo": "public", "tableTo": "messages", "columnsTo": [ "id" ], "onUpdate": "NO ACTION", "onDelete": "CASCADE", "name": "attachments_message_id_messages_id_fkey", "entityType": "fks", "schema": "public", "table": "attachments" }, { "nameExplicit": true, "columns": [ "topic_id" ], "schemaTo": "public", "tableTo": "topics", "columnsTo": [ "id" ], "onUpdate": "NO ACTION", "onDelete": "NO ACTION", "name": "attachments_topic_id_topics_id_fkey", "entityType": "fks", "schema": "public", "table": "attachments" }, { "nameExplicit": true, "columns": [ "file_id" ], "schemaTo": "public", "tableTo": "files", "columnsTo": [ "id" ], "onUpdate": "NO ACTION", "onDelete": "CASCADE", "name": "embeddings_file_id_files_id_fkey", "entityType": "fks", "schema": "public", "table": "embeddings" }, { "nameExplicit": true, "columns": [ "topic_id" ], "schemaTo": "public", "tableTo": "topics", "columnsTo": [ "id" ], "onUpdate": "NO ACTION", "onDelete": "CASCADE", "name": "generations_topic_id_topics_id_fkey", "entityType": "fks", "schema": "public", "table": "generations" }, { "nameExplicit": true, "columns": [ "message_id" ], "schemaTo": "public", "tableTo": "messages", "columnsTo": [ "id" ], "onUpdate": "NO ACTION", "onDelete": "CASCADE", "name": "message_parts_message_id_messages_id_fkey", "entityType": "fks", "schema": "public", "table": "message_parts" }, { "nameExplicit": true, "columns": [ "tool_call_id" ], "schemaTo": "public", "tableTo": "tool_calls", "columnsTo": [ "id" ], "onUpdate": "NO ACTION", "onDelete": "CASCADE", "name": "message_parts_tool_call_id_tool_calls_id_fkey", "entityType": "fks", "schema": "public", "table": "message_parts" }, { "nameExplicit": true, "columns": [ "topic_id" ], "schemaTo": "public", "tableTo": "topics", "columnsTo": [ "id" ], "onUpdate": "NO ACTION", "onDelete": "CASCADE", "name": "message_parts_topic_id_topics_id_fkey", "entityType": "fks", "schema": "public", "table": "message_parts" }, { "nameExplicit": true, "columns": [ "generation_id" ], "schemaTo": "public", "tableTo": "generations", "columnsTo": [ "id" ], "onUpdate": "NO ACTION", "onDelete": "CASCADE", "name": "messages_generation_id_generations_id_fkey", "entityType": "fks", "schema": "public", "table": "messages" }, { "nameExplicit": true, "columns": [ "topic_id" ], "schemaTo": "public", "tableTo": "topics", "columnsTo": [ "id" ], "onUpdate": "NO ACTION", "onDelete": "CASCADE", "name": "messages_topic_id_topics_id_fkey", "entityType": "fks", "schema": "public", "table": "messages" }, { "nameExplicit": true, "columns": [ "provider_id" ], "schemaTo": "public", "tableTo": "providers", "columnsTo": [ "id" ], "onUpdate": "NO ACTION", "onDelete": "CASCADE", "name": "models_provider_id_providers_id_fkey", "entityType": "fks", "schema": "public", "table": "models" }, { "nameExplicit": true, "columns": [ "user_id" ], "schemaTo": "public", "tableTo": "users", "columnsTo": [ "id" ], "onUpdate": "NO ACTION", "onDelete": "CASCADE", "name": "sessions_user_id_users_id_fkey", "entityType": "fks", "schema": "public", "table": "sessions" }, { "nameExplicit": true, "columns": [ "agent_id" ], "schemaTo": "public", "tableTo": "agents", "columnsTo": [ "id" ], "onUpdate": "NO ACTION", "onDelete": "CASCADE", "name": "topics_agent_id_agents_id_fkey", "entityType": "fks", "schema": "public", "table": "topics" }, { "columns": [ "id" ], "nameExplicit": true, "name": "accounts_pkey", "entityType": "pks", "schema": "public", "table": "accounts" }, { "columns": [ "id" ], "nameExplicit": true, "name": "agents_pkey", "entityType": "pks", "schema": "public", "table": "agents" }, { "columns": [ "id" ], "nameExplicit": true, "name": "attachments_pkey", "entityType": "pks", "schema": "public", "table": "attachments" }, { "columns": [ "id" ], "nameExplicit": true, "name": "embeddings_pkey", "entityType": "pks", "schema": "public", "table": "embeddings" }, { "columns": [ "id" ], "nameExplicit": true, "name": "files_pkey", "entityType": "pks", "schema": "public", "table": "files" }, { "columns": [ "id" ], "nameExplicit": true, "name": "generations_pkey", "entityType": "pks", "schema": "public", "table": "generations" }, { "columns": [ "id" ], "nameExplicit": true, "name": "message_parts_pkey", "entityType": "pks", "schema": "public", "table": "message_parts" }, { "columns": [ "id" ], "nameExplicit": true, "name": "messages_pkey", "entityType": "pks", "schema": "public", "table": "messages" }, { "columns": [ "id" ], "nameExplicit": true, "name": "models_pkey", "entityType": "pks", "schema": "public", "table": "models" }, { "columns": [ "id" ], "nameExplicit": true, "name": "providers_pkey", "entityType": "pks", "schema": "public", "table": "providers" }, { "columns": [ "id" ], "nameExplicit": true, "name": "sessions_pkey", "entityType": "pks", "schema": "public", "table": "sessions" }, { "columns": [ "id" ], "nameExplicit": true, "name": "settings_pkey", "entityType": "pks", "schema": "public", "table": "settings" }, { "columns": [ "id" ], "nameExplicit": true, "name": "tool_calls_pkey", "entityType": "pks", "schema": "public", "table": "tool_calls" }, { "columns": [ "id" ], "nameExplicit": true, "name": "topics_pkey", "entityType": "pks", "schema": "public", "table": "topics" }, { "columns": [ "id" ], "nameExplicit": true, "name": "users_pkey", "entityType": "pks", "schema": "public", "table": "users" }, { "columns": [ "id" ], "nameExplicit": true, "name": "verifications_pkey", "entityType": "pks", "schema": "public", "table": "verifications" }, { "nameExplicit": true, "columns": [ "token" ], "nullsNotDistinct": false, "name": "sessions_token_key", "entityType": "uniques", "schema": "public", "table": "sessions" }, { "nameExplicit": true, "columns": [ "email" ], "nullsNotDistinct": false, "name": "users_email_key", "entityType": "uniques", "schema": "public", "table": "users" } ], "renames": [] }