UNPKG

camintoz

Version:

Cloning ORM for database: postgres

28 lines (24 loc) 606 B
/** * User schema * * Created by create caminte-cli script * App based on CaminteJS * CaminteJS homepage http://www.camintejs.com **/ /** * Define User Model * @param {Object} schema * @return {Object} **/ module.exports = function(schema){ var User = schema.define('users', { active : { type : schema.Number }, name : { type : schema.String }, email : { type : schema.String }, password : { type : schema.String }, note : { type : schema.Text }, created : { type : schema.Date } },{ }); return User; };