0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

Added OfferRedemption model

refs https://github.com/TryGhost/Team/issues/1132

A model is needed for reading and writing Offer Redemptions to the
database.
This commit is contained in:
Fabien O'Carroll 2021-10-15 11:03:31 +02:00
parent d44666fe11
commit e2b243040e
2 changed files with 11 additions and 0 deletions

View file

@ -30,6 +30,7 @@ const models = [
'mobiledoc-revision',
'member',
'offer',
'offer-redemption',
'product',
'benefit',
'stripe-product',

View file

@ -0,0 +1,10 @@
const ghostBookshelf = require('./base');
const OfferRedemption = ghostBookshelf.Model.extend({
tableName: 'offer_redemptions'
});
module.exports = {
OfferRedemption: ghostBookshelf.model('OfferRedemption', OfferRedemption)
};