310 tables•9 domains•7 formats•132 schema files•Single source of truth
Comprehensive schema generation system powering all of AltSportsLeagues.ai
From betting systems to league analytics
python -m kb_catalog.scripts.update_data.ts.py.ts.sql.graphql.json.tsimport { leagues } from '@libs/data_layer';
const ufc = await db
.select()
.from(leagues)
.where(eq(leagues.sport, 'MMA'));from data_layer.pydantic import Leagues
@app.post("/leagues")
async def create(l: Leagues):
return l.model_dump()One schema definition generates all formats automatically
Python generator creates 7 formats from Drizzle schemas
Full TypeScript and Pydantic validation everywhere
Works in Node.js, Python, GraphQL, and SQL databases
Update once, propagate to all apps automatically
Distributed via @libs/data_layer package
Dive into 310 tables, search across 132 schema files, or browse by domain