Ghost/ghost/admin/app/models/webhook.js

19 lines
549 B
JavaScript
Raw Normal View History

import Model, {attr, belongsTo} from '@ember-data/model';
import ValidationEngine from 'ghost-admin/mixins/validation-engine';
export default Model.extend(ValidationEngine, {
validationType: 'webhook',
name: attr('string'),
event: attr('string'),
targetUrl: attr('string'),
secret: attr('string'),
lastTriggeredAtUTC: attr('moment-utc'),
createdAtUTC: attr('moment-utc'),
createdBy: attr('number'),
updatedAtUTC: attr('moment-utc'),
updatedBy: attr('number'),
integration: belongsTo('integration')
});