Your default project-wide model settings. Can also be overridden on a per-model basis by providing a top-level property with the same name in that model definition. For more details, see the conceptual docs on Model Settings. These options are conventionally specified in the config/models.js configuration file.
||The basic pieces of information to store about a model. See Attributes.|
||see Model Settings||How & whether Sails will attempt to automatically rebuild the tables/collections/etc. in your schema|
||The default database connection any given model will use without a configured override|
||Toggle the automatic definition of a primary key in your model|
||Toggle the automatic definition of a property createdAt in your model|
||Toggle the automatic definition of a property updatedAt in your model|
||identity||Used to specify database table name for the model|
||Toggle the automatic creation of Dynamic Finders|
Is something missing?
If you notice something we've missed or could be improved on, please follow this link and submit a pull request to the sails-docs repo. Once we merge it, the changes will be reflected on the website the next time it is deployed.
- Blueprint API
- Command Line Interface
- Response (`res`)
- Waterline (ORM)
- Resourceful PubSub
- Socket Client
We wrote a book!
Get early access to the book
with promotion code: mcneildoc