{ "version": "6", "dialect": "sqlite", "id": "e7e03ee2-f976-4f4b-a8a9-d261bf6420d2", "prevId": "9e4f9891-2ca0-4bb2-8390-49a35935e7dc", "tables": { "bubble_flow_executions": { "name": "bubble_flow_executions", "columns": { "id": { "name": "id", "type": "integer", "primaryKey": true, "notNull": true, "autoincrement": true }, "bubble_flow_id": { "name": "bubble_flow_id", "type": "integer", "primaryKey": false, "notNull": true, "autoincrement": false }, "payload": { "name": "payload", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false }, "result": { "name": "result", "type": "text", "primaryKey": false, "notNull": false, "autoincrement": false }, "status": { "name": "status", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false }, "error": { "name": "error", "type": "text", "primaryKey": false, "notNull": false, "autoincrement": false }, "started_at": { "name": "started_at", "type": "integer", "primaryKey": false, "notNull": true, "autoincrement": false }, "completed_at": { "name": "completed_at", "type": "integer", "primaryKey": false, "notNull": false, "autoincrement": false } }, "indexes": {}, "foreignKeys": { "bubble_flow_executions_bubble_flow_id_bubble_flows_id_fk": { "name": "bubble_flow_executions_bubble_flow_id_bubble_flows_id_fk", "tableFrom": "bubble_flow_executions", "tableTo": "bubble_flows", "columnsFrom": ["bubble_flow_id"], "columnsTo": ["id"], "onDelete": "cascade", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "checkConstraints": {} }, "bubble_flows": { "name": "bubble_flows", "columns": { "id": { "name": "id", "type": "integer", "primaryKey": true, "notNull": true, "autoincrement": true }, "user_id": { "name": "user_id", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false }, "name": { "name": "name", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false }, "description": { "name": "description", "type": "text", "primaryKey": false, "notNull": false, "autoincrement": false }, "code": { "name": "code", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false }, "original_code": { "name": "original_code", "type": "text", "primaryKey": false, "notNull": false, "autoincrement": false }, "bubble_parameters": { "name": "bubble_parameters", "type": "text", "primaryKey": false, "notNull": false, "autoincrement": false }, "event_type": { "name": "event_type", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false }, "webhook_execution_count": { "name": "webhook_execution_count", "type": "integer", "primaryKey": false, "notNull": true, "autoincrement": false, "default": 0 }, "webhook_failure_count": { "name": "webhook_failure_count", "type": "integer", "primaryKey": false, "notNull": true, "autoincrement": false, "default": 0 }, "created_at": { "name": "created_at", "type": "integer", "primaryKey": false, "notNull": true, "autoincrement": false }, "updated_at": { "name": "updated_at", "type": "integer", "primaryKey": false, "notNull": true, "autoincrement": false } }, "indexes": {}, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "checkConstraints": {} }, "user_credentials": { "name": "user_credentials", "columns": { "id": { "name": "id", "type": "integer", "primaryKey": true, "notNull": true, "autoincrement": true }, "user_id": { "name": "user_id", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false }, "credential_type": { "name": "credential_type", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false }, "encrypted_value": { "name": "encrypted_value", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false }, "name": { "name": "name", "type": "text", "primaryKey": false, "notNull": false, "autoincrement": false }, "metadata": { "name": "metadata", "type": "text", "primaryKey": false, "notNull": false, "autoincrement": false }, "created_at": { "name": "created_at", "type": "integer", "primaryKey": false, "notNull": true, "autoincrement": false }, "updated_at": { "name": "updated_at", "type": "integer", "primaryKey": false, "notNull": true, "autoincrement": false } }, "indexes": {}, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "checkConstraints": {} }, "users": { "name": "users", "columns": { "user_id": { "name": "user_id", "type": "integer", "primaryKey": true, "notNull": true, "autoincrement": true }, "clerk_id": { "name": "clerk_id", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false }, "first_name": { "name": "first_name", "type": "text", "primaryKey": false, "notNull": false, "autoincrement": false }, "last_name": { "name": "last_name", "type": "text", "primaryKey": false, "notNull": false, "autoincrement": false }, "email": { "name": "email", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false }, "monthly_usage_count": { "name": "monthly_usage_count", "type": "integer", "primaryKey": false, "notNull": true, "autoincrement": false, "default": 0 }, "created_at": { "name": "created_at", "type": "integer", "primaryKey": false, "notNull": true, "autoincrement": false }, "updated_at": { "name": "updated_at", "type": "integer", "primaryKey": false, "notNull": true, "autoincrement": false } }, "indexes": { "users_clerk_id_unique": { "name": "users_clerk_id_unique", "columns": ["clerk_id"], "isUnique": true }, "users_email_unique": { "name": "users_email_unique", "columns": ["email"], "isUnique": true } }, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "checkConstraints": {} }, "webhooks": { "name": "webhooks", "columns": { "id": { "name": "id", "type": "integer", "primaryKey": true, "notNull": true, "autoincrement": true }, "user_id": { "name": "user_id", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false }, "path": { "name": "path", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false }, "bubble_flow_id": { "name": "bubble_flow_id", "type": "integer", "primaryKey": false, "notNull": true, "autoincrement": false }, "is_active": { "name": "is_active", "type": "integer", "primaryKey": false, "notNull": true, "autoincrement": false, "default": false }, "created_at": { "name": "created_at", "type": "integer", "primaryKey": false, "notNull": true, "autoincrement": false }, "updated_at": { "name": "updated_at", "type": "integer", "primaryKey": false, "notNull": true, "autoincrement": false } }, "indexes": { "webhooks_user_id_path_unique": { "name": "webhooks_user_id_path_unique", "columns": ["user_id", "path"], "isUnique": true } }, "foreignKeys": { "webhooks_bubble_flow_id_bubble_flows_id_fk": { "name": "webhooks_bubble_flow_id_bubble_flows_id_fk", "tableFrom": "webhooks", "tableTo": "bubble_flows", "columnsFrom": ["bubble_flow_id"], "columnsTo": ["id"], "onDelete": "cascade", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "checkConstraints": {} } }, "views": {}, "enums": {}, "_meta": { "schemas": {}, "tables": {}, "columns": {} }, "internal": { "indexes": {} } }