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
25 lines
485 B
Python
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",
|
|
]
|