-
<inner> name :string
-
Could be anything, but OneHat's convention is to use
the model name pluralized and camel-cased (e.g. 'Users')
Type:
- Source:
-
Schema/Schema.js
-
<inner> model :object
-
Config for Model
Type:
- Source:
-
Schema/Schema.js
-
<inner> idProperty :string
-
name of id Property (e.g. 'users__id')
Type:
- Source:
-
Schema/Schema.js
-
<inner> displayProperty :string
-
name of display Property (e.g. 'users__username')
Type:
- Source:
-
Schema/Schema.js
-
<inner> propertyDefinitions :array
-
Array of Property definition objects
Type:
- Source:
-
Schema/Schema.js
-
<inner> sorters :Array.<object>
-
Array of sorter definitions.
Each definition is an object with two keys:
- *name* - Name of Property to sort by.
- *direction* - 'ASC'|'DESC'
Type:
- Source:
-
Schema/Schema.js
-
<inner> associations :object
-
List of associated Models
Type:
- Source:
-
Schema/Schema.js
-
<inner> hasOne :array
-
Array of names of associated Models
Type:
- Source:
-
Schema/Schema.js
-
<inner> hasMany :array
-
Array of names of associated Models
Type:
- Source:
-
Schema/Schema.js
-
<inner> belongsTo :array
-
Array of names of associated Models
Type:
- Source:
-
Schema/Schema.js
-
<inner> belongsToMany :array
-
Array of names of associated Models
Type:
- Source:
-
Schema/Schema.js
-
<inner> repository :object|string
-
Config for Repository
Type:
- Source:
-
Schema/Schema.js
-
destroy
-
Destroy this object.
- Removes child objects
- Source:
-
Schema/Schema.js