BloxServer API (FastAPI + SQLAlchemy async): - Database models: users, flows, triggers, executions, usage tracking - Clerk JWT auth with dev mode bypass for local testing - SQLite support for local dev, PostgreSQL for production - CRUD routes for flows, triggers, executions - Public webhook endpoint with token auth - Health/readiness endpoints - Pydantic schemas with camelCase aliases for frontend - Docker + docker-compose setup Architecture documentation: - Librarian architecture with RLM-powered query engine - Stripe billing integration (usage-based, trials, webhooks) - LLM abstraction layer (rate limiting, semantic cache, failover) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
23 lines
437 B
Python
23 lines
437 B
Python
"""Database and Pydantic models."""
|
|
|
|
from bloxserver.api.models.database import Base, get_db, init_db
|
|
from bloxserver.api.models.tables import (
|
|
ExecutionRecord,
|
|
FlowRecord,
|
|
TriggerRecord,
|
|
UserApiKeyRecord,
|
|
UserRecord,
|
|
UsageRecord,
|
|
)
|
|
|
|
__all__ = [
|
|
"Base",
|
|
"get_db",
|
|
"init_db",
|
|
"UserRecord",
|
|
"FlowRecord",
|
|
"TriggerRecord",
|
|
"ExecutionRecord",
|
|
"UserApiKeyRecord",
|
|
"UsageRecord",
|
|
]
|