UNPKG

waterline-adapter-tests

Version:
29 lines (22 loc) 465 B
/** * Dependencies */ var Waterline = require('waterline'); module.exports = Waterline.Collection.extend({ identity: 'customerbelongs', tableName: 'customerbelongsTable', connection: 'associations2', attributes: { name: 'string', title: 'string', payments: { collection: 'Paymentbelongs', via: 'customer' }, toJSON: function() { var obj = this.toObject(); delete obj.name; return obj; } } });