waterline-adapter-tests
Version:
Integration tests for waterline adapters
25 lines (18 loc) • 404 B
JavaScript
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
}
}
});