UNPKG

waterline-adapter-tests

Version:
25 lines (18 loc) 404 B
var Waterline = require('waterline'); module.exports = Waterline.Collection.extend({ identity: 'compositePrimaryKey', tableName: 'compositePrimaryKeyTable', connection: 'compositePrimaryKeyConnection', autoPK: false, attributes: { name: 'string', pkOne: { type: 'number', primaryKey: true }, pkTwo: { type: 'string', primaryKey: true } } });