waterline-postgresql
Version:
PostgreSQL Adapter for Sails and Waterline
43 lines (35 loc) • 768 B
JavaScript
const Waterline = require('waterline')
module.exports = {
NormalModel: Waterline.Collection.extend({
identity: 'normalmodel',
connection: 'edgetests',
dynamicFinders: false,
associationFinders: false,
attributes: {
name: 'string'
}
}),
NoisyModel: Waterline.Collection.extend({
identity: 'noisymodel',
connection: 'edgetests',
dynamicFinders: false,
associationFinders: false,
// noise
description: 'hello',
noise: {
foo: 'bar'
},
attributes: {
id: {
type: 'integer',
primaryKey: true,
autoIncrement: true
},
name: 'string',
identity: 'string',
attributes: 'json',
//noise: 'json',
description: 'string'
}
})
}