TryGhost/Ghost

View on GitHub
ghost/admin/app/models/mention.js

Summary

Maintainability
A
0 mins
Test Coverage
import Model, {attr} from '@ember-data/model';

export default Model.extend({
    source: attr('string'),
    target: attr('string'),
    timestamp: attr('date'),
    resource: attr(),
    sourceTitle: attr('string'),
    sourceSiteTitle: attr('string'),
    sourceAuthor: attr('string'),
    sourceExcerpt: attr('string'),
    sourceFavicon: attr('string'),
    sourceFeaturedImage: attr('string'),
    payload: attr(),
    mentions: attr() // @todo this is a temporary field until we have the api / db model structure figured out
});