Ghost/core/server/models/offer-redemption.js
Fabien O'Carroll e2b243040e Added OfferRedemption model
refs https://github.com/TryGhost/Team/issues/1132

A model is needed for reading and writing Offer Redemptions to the
database.
2021-10-15 16:56:04 +02:00

11 lines
238 B
JavaScript

const ghostBookshelf = require('./base');
const OfferRedemption = ghostBookshelf.Model.extend({
tableName: 'offer_redemptions'
});
module.exports = {
OfferRedemption: ghostBookshelf.model('OfferRedemption', OfferRedemption)
};