water-orm
Version:
A monolith version of Standalone waterline ORM
30 lines (23 loc) • 557 B
JavaScript
/**
* Dependencies
*/
var path = require('path');
var Waterline = require(path.join(process.cwd(),'lib/waterline.js'));
module.exports = Waterline.Collection.extend({
tableName: 'paymentbelongsPKTable',
identity: 'paymentbelongscustom',
connection: 'associations',
autoPK: false,
attributes: {
invoice: {
type: 'integer',
primaryKey: true
},
amount: 'integer',
type: 'string',
customer: {
model: 'Customerbelongscustom',
columnName: 'customer_belongs'
}
}
});