Commit graph

2 commits

Author SHA1 Message Date
Donna
1e2073a81c Add edge_mappings table for AI-assisted field mapping
New table stores:
- Edge identification (from_node → to_node)
- Analysis results (confidence, level, method)
- Proposed mapping (AI-generated)
- User mapping (overrides)
- Confirmation status

Indexes:
- By flow_id for listing
- Unique on (flow_id, from_node, to_node) for upsert

This supports the edge analysis API for visual wiring in the canvas.

Co-authored-by: Dan
2026-01-26 07:23:03 +00:00
Donna
a6f44b1fc9 Set up Alembic database migrations
- Initialize Alembic in bloxserver/
- Configure for async SQLAlchemy (converts async URLs to sync for migrations)
- Generate initial migration with all existing tables:
  - users (Clerk sync, Stripe billing)
  - flows (workflow definitions)
  - triggers (webhook, schedule, manual, event)
  - executions (run history)
  - user_api_keys (BYOK encrypted storage)
  - usage_records (billing metrics)
  - stripe_events (webhook idempotency)

Usage:
  cd bloxserver
  alembic upgrade head    # Apply migrations
  alembic revision --autogenerate -m 'description'  # New migration

Co-authored-by: Dan
2026-01-26 07:21:56 +00:00