# Model Overview

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

  • TypeORM
  • Objection
  • Mongoose

This is configured in the Config/Database configuration file.

  /*
  |--------------------------------------------------------------------------
  | Database ORM
  |--------------------------------------------------------------------------
  |
  | ExpressWeb currently supports the following Object Relational Mappers(ORM)
  | Objection and TypeORM 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 TypeORM

  /*
  |--------------------------------------------------------------------------
  | Database ORM
  |--------------------------------------------------------------------------
  |
  | ExpressWeb currently supports the following Object Relational Mappers(ORM)
  | Objection and TypeORM  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.TypeORM),

For Mongoose

  /*
  |--------------------------------------------------------------------------
  | Database ORM
  |--------------------------------------------------------------------------
  |
  | ExpressWeb currently supports the following Object Relational Mappers(ORM)
  | Objection and TypeORM  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.