Module moonwalk.api.model

API model.

Extends the proto object.

Functions

finalize () Finalize a model definition.
insert_into (table, models) Finalize a model definition and insert it into a table.

Fields

properties_required Whether model properties are required by default.


Functions

finalize ()
Finalize a model definition.
insert_into (table, models)
Finalize a model definition and insert it into a table.

Parameters:

  • table
  • models

Fields

properties_required
Whether model properties are required by default.

When this is true, it can be overriden by adding optional = true to model property definitions. When it's false, it can be overriden by adding required = true.

Defaults to true.

generated by LDoc 1.4.0