water-orm
Version:
A monolith version of Standalone waterline ORM
30 lines (23 loc) • 546 B
JavaScript
/**
* Dependencies
*/
var path = require('path');
var Waterline = require(path.join(process.cwd(),'lib/waterline.js'));
module.exports = Waterline.Collection.extend({
tableName: 'customerbelongsPKTable',
identity: 'customerbelongscustom',
connection: 'associations',
autoPK: false,
attributes: {
username: {
type: 'string',
primaryKey: true
},
name: 'string',
title: 'string',
payments: {
collection: 'Paymentbelongscustom',
via: 'customer'
}
}
});