loopback/node_modules/model/README.md

37 lines
576 B
Markdown
Raw Normal View History

# model
## About
Provides a schema protected api to a data [store](../store).
### Options
#### namespace
A table, collection, url, or other namespace.
#### properties
An array of properties describing the model's schema.
"properties": [
{
"name": "title",
2013-04-18 00:43:00 +00:00
"type": "string"
},
{
"name": "done",
"type": "boolean"
},
{
"name": "order",
"type": "number"
}
]
}
### Dependencies
2013-04-18 00:43:00 +00:00
#### data source
2013-04-18 00:43:00 +00:00
A [data-source](../data-source) for persisting data.