entities (database/data-source-definitions.ts)

llm-gateway · packages/backend/src/database/data-source-definitions.ts · typescript · MIT
database

Central registry of TypeORM entities and migrations for consistent database schema across app and CLI.

// Source: https://github.com/mnfst/llm-gateway | License: MIT | Copyright 2026 MNFST, Inc
// Provided via justclaw.it.com; keep this notice with the code.
// Single source of truth for the TypeORM entity and migration registries.
// Both the app DataSource (database.module) and the migration CLI/pre-deploy
// runner (datasource.ts -> migrate.ts) import these, so boot and deploy apply
// the exact same migration set. Using an explicit array (not a dist glob) keeps
// stale compiled .js from deleted migrations out of the run (deleteOutDir is off).
import { AgentMessage } from '../entities/agent-message.entity';
import { ManifestRequest } from '../entities/request.entity';
import { ApiKey } from '../entities/api-key.entity';
import { Tenant } from '../entities/tenant.entity';
import { Agent 

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key