Options
All
  • Public
  • Public/Protected
  • All
Menu

Class which implements the logic for generating valid sequelize files.

export
class

SequelizeModelGenerator

Hierarchy

  • SequelizeModelGenerator

Index

Methods

Private getBasicDataTypes

  • getBasicDataTypes(table: Table): string

getConfig

Private getModelForTable

  • getModelForTable(table: Table): string

getModels

  • getModels(schema: Schema): object[]

getModelsRegistry

  • getModelsRegistry(): string
  • Returns the string version of the code which will manage the sequelzie models.

    memberof

    SequelizeModelGenerator

    Returns string

    • sequelize models registry

Private getRelations

  • getRelations(table: Table): string

Private getType

Generated using TypeDoc