📚

KB Catalog Explorer

v2.0

310 tables9 domains7 formats132 schema filesSingle source of truth

Single Source of Truth

Knowledge Base Catalog

Comprehensive schema generation system powering all of AltSportsLeagues.ai
From betting systems to league analytics

📊
307
Total Tables
🗂️
9
Domains
⚙️
7
Formats
📏
6.2k
Lines of Code

9 Business Domains

💰

betting systems

Tables: 41
LOC: 1,542
🏆

sports

Tables: 124
LOC: 2,809
🏢

leagues

Tables: 34
LOC: 629
🌐

saas

Tables: 34
LOC: 512
📈

prediction markets

Tables: 17
LOC: 411
🎰

sportsbooks

Tables: 43
✉️

email assistant

Tables: 6
LOC: 170
👥

employees

Tables: 6
LOC: 86
📰

content markets

Tables: 2
LOC: 29

⚙️ Automated Generation Pipeline

Source
Drizzle TS
Generate
Python
Build
7 Formats
Sync
Data Layer
Import
Apps
Master Command:
python -m kb_catalog.scripts.update_data

📦 7 Output Formats

🔷
Drizzle
169
TypeScript ORM
.ts
🐍
Pydantic
290
Python Models
.py
📘
TypeScript
50
Interfaces
.ts
🗃️
SQL
9
PostgreSQL DDL
.sql
🔗
GraphQL
1
SDL Types
.graphql
📋
JSON Schema
300
Validation
.json
Zod
150
TS Validation
.ts

💻 Quick Integration

TypeScript/Node.js
import { leagues } from '@libs/data_layer';

const ufc = await db
  .select()
  .from(leagues)
  .where(eq(leagues.sport, 'MMA'));
Python/FastAPI
from data_layer.pydantic import Leagues

@app.post("/leagues")
async def create(l: Leagues):
    return l.model_dump()

✨ Key Features

Single Source of Truth

One schema definition generates all formats automatically

Auto-Generated

Python generator creates 7 formats from Drizzle schemas

Type-Safe

Full TypeScript and Pydantic validation everywhere

Multi-Platform

Works in Node.js, Python, GraphQL, and SQL databases

Always in Sync

Update once, propagate to all apps automatically

Monorepo Ready

Distributed via @libs/data_layer package

Ready to Explore?

Dive into 310 tables, search across 132 schema files, or browse by domain