UNPKG

jambda

Version:

Easy serverless rest api deploy! Jambda makes it easy to deploy database connected rest api's by providing the least amount of configuration.

21 lines (20 loc) 455 B
/** * Define User Model * @param {Object} schema * @return {Object} **/ module.exports = function(schema) { return schema.define( 'source', { active: { type: schema.Boolean, default: false }, name: { type: schema.String }, username: { type: schema.String }, password: { type: schema.String }, host: { type: schema.String }, port: { type: schema.Number }, created: { type: schema.Date, default: Date.now() } }, {} ) }