2020-01-16 20:01:12 +03:00
|
|
|
import Model, {attr, belongsTo} from '@ember-data/model';
|
2018-10-18 02:18:29 +03:00
|
|
|
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')
|
|
|
|
});
|