Skip to main content

API Overview

Root exports

  • Model and helper exports from package root
  • BaseModel, 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.