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

16 lines
583 B
JavaScript
Raw Normal View History

import Model, {attr} from '@ember-data/model';
// @todo this is a temporary model until we have the api / db model structure figured out
export default Model.extend({
source: attr('string'),
target: attr('string'),
timestamp: attr('date'),
resourceId: attr('string', {allowNull: true}),
sourceTitle: attr('string'),
sourcExcerpt: 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
});