xml-pipeline/bloxserver/api/models/__init__.py
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

25 lines
485 B
Python

"""Database and Pydantic models."""
from bloxserver.api.models.database import Base, get_db, init_db
from bloxserver.api.models.tables import (
EdgeMappingRecord,
ExecutionRecord,
FlowRecord,
TriggerRecord,
UserApiKeyRecord,
UserRecord,
UsageRecord,
)
__all__ = [
"Base",
"get_db",
"init_db",
"UserRecord",
"FlowRecord",
"TriggerRecord",
"ExecutionRecord",
"UserApiKeyRecord",
"UsageRecord",
"EdgeMappingRecord",
]