2013-04-10 17:55:13 +00:00
|
|
|
# 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"
|
2013-04-10 17:55:13 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "done",
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "order",
|
|
|
|
"type": "number"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
### Dependencies
|
|
|
|
|
2013-04-18 00:43:00 +00:00
|
|
|
#### data source
|
2013-04-10 17:55:13 +00:00
|
|
|
|
2013-04-18 00:43:00 +00:00
|
|
|
A [data-source](../data-source) for persisting data.
|