text: /**
   * User.js
   *
   * @description :: TODO: You might write a short summary of how this model works and what it represents here.
   * @docs        :: http://sailsjs.org/#!documentation/models
   */
  
  module.exports = {
      attributes  : {
          name: {
              type: Sequelize.STRING
          },
          age : {
              type: Sequelize.INTEGER
          }
      },
      associations: function () {
          User.hasMany(Image, { as: 'images', foreignKey: 'userId' });
      },
      defaultScope: function () {
          return {
              include: [
                  { model: Image, as: 'images' }
              ]
          };
      },
      options     : {
          freezeTableName : false,
          tableName       : 'user',
          schema          : 'sails',
          classMethods    : {},
          instanceMethods : {},
          hooks           : {}
      }
  };
  