A model represents a table, each model is connected with a table specified as modelName

Hierarchy

  • HarpeeHttp

    Hierarchy

    • HarpeeModel

Constructors

Properties

_schemaConfig: IHarpeeSchemaConfig

Accessors

  • get fields(): string[]
  • Returns an array of the column names specified in

    See

    Returns string[]

Methods

  • This creates the schema, table, and the attributes specified in Schema.fields, if they don't exist. you should get rid of this after running your app atleast once.

    Returns Promise<void>