water-orm
Version:
A monolith version of Standalone waterline ORM
29 lines (23 loc) • 479 B
JavaScript
/**
* Dependencies
*/
var path = require('path');
var Waterline = require(path.join(process.cwd(),'lib/waterline.js'));
module.exports = Waterline.Collection.extend({
identity: 'thing',
tableName: 'thingTable',
connection: 'semantic',
attributes: {
name: {
type: 'string',
required: true
},
age: {
type: 'integer',
required: true,
min: 5,
max: 20
},
description: 'string'
}
});