A model represents a set of structured data, called records. For a complete walkthrough of available options when setting up a model definition, see Model Settings , Attributes , and Associations. Once a Sails app is running, its models may be accessed from within controller actions, helpers, tests, and just about anywhere else you normally write backend code. This allows your code's call model methods to communicate with your database or even with multiple databases. Every model in Sails has a set of methods exposed on it to allow you to interact with the database in a normalized fashion.
... Read More