Monday, October 26, 2020

Sails Model Settings

In Sails, the top-level properties of model definitions are called model settings. This includes everything from attribute definitions, to the database settings the model will use, as well as a few other options.


To modify the default model settings shared by all of the models in your app, edit config/models.js.


a lot of things we can set using this model settings including the createdAt, updatedAt values.


references:

https://sailsjs.com/documentation/concepts/models-and-orm/model-settings

No comments:

Post a Comment