TryGhost/Ghost

View on GitHub
ghost/admin/app/models/api-key.js

Summary

Maintainability
A
1 hr
Test Coverage
import Model, {attr, belongsTo} from '@ember-data/model';

export default Model.extend({
    type: attr('string'),
    secret: attr('string'),
    lastSeenAtUTC: attr('moment-utc'),
    createdAtUTC: attr('moment-utc'),
    createdBy: attr('number'),
    updatedAtUTC: attr('moment-utc'),
    updatedBy: attr('number'),

    integration: belongsTo('integration')
});