{ "id": "8dfc51e2-552f-4783-ae23-0dff32099962", "prevId": "00000000-0000-0000-0000-000000000000", "version": "7", "dialect": "postgresql", "tables": { "public.bubble_flow_executions": { "name": "bubble_flow_executions", "schema": "", "columns": { "id": { "name": "id", "type": "serial", "primaryKey": true, "notNull": true }, "bubble_flow_id": { "name": "bubble_flow_id", "type": "integer", "primaryKey": false, "notNull": true }, "payload": { "name": "payload", "type": "jsonb", "primaryKey": false, "notNull": true }, "result": { "name": "result", "type": "jsonb", "primaryKey": false, "notNull": false }, "status": { "name": "status", "type": "text", "primaryKey": false, "notNull": true }, "error": { "name": "error", "type": "text", "primaryKey": false, "notNull": false }, "started_at": { "name": "started_at", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" }, "completed_at": { "name": "completed_at", "type": "timestamp", "primaryKey": false, "notNull": 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": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.bubble_flows": { "name": "bubble_flows", "schema": "", "columns": { "id": { "name": "id", "type": "serial", "primaryKey": true, "notNull": true }, "user_id": { "name": "user_id", "type": "text", "primaryKey": false, "notNull": true }, "name": { "name": "name", "type": "text", "primaryKey": false, "notNull": true }, "description": { "name": "description", "type": "text", "primaryKey": false, "notNull": false }, "code": { "name": "code", "type": "text", "primaryKey": false, "notNull": true }, "original_code": { "name": "original_code", "type": "text", "primaryKey": false, "notNull": false }, "bubble_parameters": { "name": "bubble_parameters", "type": "jsonb", "primaryKey": false, "notNull": false }, "event_type": { "name": "event_type", "type": "text", "primaryKey": false, "notNull": true }, "webhook_execution_count": { "name": "webhook_execution_count", "type": "integer", "primaryKey": false, "notNull": true, "default": 0 }, "webhook_failure_count": { "name": "webhook_failure_count", "type": "integer", "primaryKey": false, "notNull": true, "default": 0 }, "created_at": { "name": "created_at", "type": "timestamp", "primaryKey": false, "notNull": true }, "updated_at": { "name": "updated_at", "type": "timestamp", "primaryKey": false, "notNull": true } }, "indexes": {}, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.user_credentials": { "name": "user_credentials", "schema": "", "columns": { "id": { "name": "id", "type": "serial", "primaryKey": true, "notNull": true }, "user_id": { "name": "user_id", "type": "text", "primaryKey": false, "notNull": true }, "credential_type": { "name": "credential_type", "type": "text", "primaryKey": false, "notNull": true }, "encrypted_value": { "name": "encrypted_value", "type": "text", "primaryKey": false, "notNull": true }, "name": { "name": "name", "type": "text", "primaryKey": false, "notNull": false }, "created_at": { "name": "created_at", "type": "timestamp", "primaryKey": false, "notNull": true }, "updated_at": { "name": "updated_at", "type": "timestamp", "primaryKey": false, "notNull": true } }, "indexes": {}, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.users": { "name": "users", "schema": "", "columns": { "user_id": { "name": "user_id", "type": "serial", "primaryKey": true, "notNull": true }, "clerk_id": { "name": "clerk_id", "type": "text", "primaryKey": false, "notNull": true }, "first_name": { "name": "first_name", "type": "text", "primaryKey": false, "notNull": false }, "last_name": { "name": "last_name", "type": "text", "primaryKey": false, "notNull": false }, "email": { "name": "email", "type": "text", "primaryKey": false, "notNull": true }, "created_at": { "name": "created_at", "type": "timestamp", "primaryKey": false, "notNull": true }, "updated_at": { "name": "updated_at", "type": "timestamp", "primaryKey": false, "notNull": true } }, "indexes": {}, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": { "users_clerk_id_unique": { "name": "users_clerk_id_unique", "nullsNotDistinct": false, "columns": ["clerk_id"] }, "users_email_unique": { "name": "users_email_unique", "nullsNotDistinct": false, "columns": ["email"] } }, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.webhooks": { "name": "webhooks", "schema": "", "columns": { "id": { "name": "id", "type": "serial", "primaryKey": true, "notNull": true }, "user_id": { "name": "user_id", "type": "text", "primaryKey": false, "notNull": true }, "path": { "name": "path", "type": "text", "primaryKey": false, "notNull": true }, "bubble_flow_id": { "name": "bubble_flow_id", "type": "integer", "primaryKey": false, "notNull": true }, "is_active": { "name": "is_active", "type": "boolean", "primaryKey": false, "notNull": true, "default": false }, "created_at": { "name": "created_at", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" }, "updated_at": { "name": "updated_at", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": {}, "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": { "webhooks_user_id_path_unique": { "name": "webhooks_user_id_path_unique", "nullsNotDistinct": false, "columns": ["user_id", "path"] } }, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false } }, "enums": {}, "schemas": {}, "sequences": {}, "roles": {}, "policies": {}, "views": {}, "_meta": { "columns": {}, "schemas": {}, "tables": {} } }