0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00
ghost/core/server/models/member-subscribe-event.js

21 lines
689 B
JavaScript
Raw Normal View History

const ghostBookshelf = require('./base');
const MemberSubscribeEvent = ghostBookshelf.Model.extend({tableName: 'members_subscribe_events'}, {
async edit() {
throw new errors.IncorrectUsageError('Cannot edit MemberSubscribeEvent');
},
async destroy() {
throw new errors.IncorrectUsageError('Cannot destroy MemberSubscribeEvent');
}
});
const MemberSubscribeEvents = ghostBookshelf.Collection.extend({
model: MemberSubscribeEvent
});
module.exports = {
MemberSubscribeEvent: ghostBookshelf.model('MemberSubscribeEvent', MemberSubscribeEvent),
MemberSubscribeEvents: ghostBookshelf.collection('MemberSubscribeEvents', MemberSubscribeEvents)
};