# Model Overview

ExpressWeb currently supports the following Object Relational Mappers(ORM):

  • Objection
  • Mongoose

This is configured in the Config/database configuration file.

  /*
  |--------------------------------------------------------------------------
  | Database ORM
  |--------------------------------------------------------------------------
  |
  | ExpressWeb currently supports the following Object Relational Mappers(ORM)
  | Objection for sql databases and  Mongoose for mongo DB. You need to select
  | one depending on the type of database you are working on.
  |
  */
  ORM: env(orm.Objection),

For Mongoose

  /*
  |--------------------------------------------------------------------------
  | Database ORM
  |--------------------------------------------------------------------------
  |
  | ExpressWeb currently supports the following Object Relational Mappers(ORM)
  | Objection for sql databases and  Mongoose for mongo DB. You need to select
  | one depending on the type of database you are working on.
  |
  */
 ORM: env(orm.Mongoose),

A proper model is generated based on the ORM you choose to use.