API Overview
Root exports
Modeland helper exports from package rootBaseModel,SqlModel,MongoModel,CoreModel, factory, schema, cache, and registration APIs- Factory and helper utilities for runtime/bootstrap scenarios
Key entrypoints
import { registerModels, type ModelInstance, column } from "@alpha.consultings/eloquent-orm.js";import { SqlModel, MongoModel, type ModelInstance } from "@alpha.consultings/eloquent-orm.js/Model";import { BaseModel, SqlModel, MorphRegistry } from "@alpha.consultings/eloquent-orm.js"
Migration helpers
- Migrations are primarily driven through CLI entrypoints.
- Runtime integration is available from the generated app bootstrap layer.