UNPKG

camintoz

Version:

Cloning ORM for database: postgres

26 lines (22 loc) 521 B
/** * Post schema * * Created by create caminte-cli script * App based on CaminteJS * CaminteJS homepage http://www.camintejs.com **/ /** * Define Post Model * @param {Object} schema * @return {Object} **/ module.exports = function(schema){ var Post = schema.define('posts', { published : { type : schema.Boolean }, title : { type : schema.String }, content : { type : schema.Text }, created : { type : schema.Date } },{ }); return Post; };