Product.js 231 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 require('./Category'); module.exports = bookshelf.model('Product', { tableName: 'products', hasTimestamps: ['createdAt', 'updatedAt', 'deletedAt'], category: function() { return this.belongsTo('Category', 'categoryId'); } });