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:
parent
d44666fe11
commit
e2b243040e
2 changed files with 11 additions and 0 deletions
|
@ -30,6 +30,7 @@ const models = [
|
|||
'mobiledoc-revision',
|
||||
'member',
|
||||
'offer',
|
||||
'offer-redemption',
|
||||
'product',
|
||||
'benefit',
|
||||
'stripe-product',
|
||||
|
|
10
core/server/models/offer-redemption.js
Normal file
10
core/server/models/offer-redemption.js
Normal file
|
@ -0,0 +1,10 @@
|
|||
const ghostBookshelf = require('./base');
|
||||
|
||||
const OfferRedemption = ghostBookshelf.Model.extend({
|
||||
tableName: 'offer_redemptions'
|
||||
});
|
||||
|
||||
module.exports = {
|
||||
OfferRedemption: ghostBookshelf.model('OfferRedemption', OfferRedemption)
|
||||
};
|
||||
|
Loading…
Reference in a new issue