mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-21 01:41:46 +03:00
24 lines
764 B
JavaScript
24 lines
764 B
JavaScript
const errors = require('@tryghost/errors');
|
|
const ghostBookshelf = require('./base');
|
|
|
|
const MemberEmailChangeEvent = ghostBookshelf.Model.extend({
|
|
tableName: 'members_email_change_events'
|
|
}, {
|
|
async edit() {
|
|
throw new errors.IncorrectUsageError('Cannot edit MemberEmailChangeEvent');
|
|
},
|
|
|
|
async destroy() {
|
|
throw new errors.IncorrectUsageError('Cannot destroy MemberEmailChangeEvent');
|
|
}
|
|
});
|
|
|
|
const MemberEmailChangeEvents = ghostBookshelf.Collection.extend({
|
|
model: MemberEmailChangeEvent
|
|
});
|
|
|
|
module.exports = {
|
|
MemberEmailChangeEvent: ghostBookshelf.model('MemberEmailChangeEvent', MemberEmailChangeEvent),
|
|
MemberEmailChangeEvents: ghostBookshelf.collection('MemberEmailChangeEvents', MemberEmailChangeEvents)
|
|
};
|