UNPKG

sails-application-generator

Version:
31 lines (26 loc) 593 B
/** * Contact.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 */ 'use strict'; module.exports = { testInstance: function testInstance() { return { name: 'Contact Name', group: [{ name: 'Group Name' }] }; }, attributes: { name: { type: 'string', defaultsTo: 'Contact Name' }, group: { model: 'Group' } } };