loopback/node_modules/model
Ritchie Martori 9e867f63b3 Add model options 2013-04-19 09:51:06 -07:00
..
example Initial working store, model, connection, and collection 2013-04-10 10:55:13 -07:00
lib Add model options 2013-04-19 09:51:06 -07:00
test Initial working store, model, connection, and collection 2013-04-10 10:55:13 -07:00
.gitignore Initial working store, model, connection, and collection 2013-04-10 10:55:13 -07:00
README.md Refactor various naming conventions. 2013-04-17 17:43:00 -07:00
index.js Initial working store, model, connection, and collection 2013-04-10 10:55:13 -07:00
package.json Initial working store, model, connection, and collection 2013-04-10 10:55:13 -07:00

README.md

model

About

Provides a schema protected api to a data store.

Options

namespace

A table, collection, url, or other namespace.

properties

An array of properties describing the model's schema.

"properties": [
    {
      "name": "title",
      "type": "string"
    },
    {
      "name": "done",
      "type": "boolean"
    },
    {
      "name": "order",
      "type": "number"
    }
  ]
}

Dependencies

data source

A data-source for persisting data.