This file was created when you ran sails generate api User
. It contains the structure for the model called 'User'.
In this file you will specify what attributes each model instance (record) should have. You can also add custom model instance methods, as well as override the global settings for things like policies
and connections
.
One of the best parts about Sails is it uses Waterline. This means you can start developing your data models long before you commit to a particular database.