import Model from 'ember-data/model'; import ValidationEngine from 'ghost-admin/mixins/validation-engine'; import attr from 'ember-data/attr'; import {belongsTo} from 'ember-data/relationships'; 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') });