UNPKG

water-orm

Version:

A monolith version of Standalone waterline ORM

30 lines (23 loc) 553 B
/** * Dependencies */ var path = require('path'); var Waterline = require(path.join(process.cwd(),'lib/waterline.js')); module.exports = Waterline.Collection.extend({ tableName: 'customerbelongsTable', identity: 'customerbelongs', connection: 'associations', attributes: { name: 'string', title: 'string', payments: { collection: 'Paymentbelongs', via: 'customer' }, toJSON: function() { var obj = this.toObject(); delete obj.name; return obj; } } });