Ghost/core/server/models/offer.js

14 lines
272 B
JavaScript
Raw Normal View History

const ghostBookshelf = require('./base');
const Offer = ghostBookshelf.Model.extend({
tableName: 'offers',
product() {
return this.belongsTo('Product', 'product_id', 'id');
}
});
module.exports = {
Offer: ghostBookshelf.model('Offer', Offer)
};