mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-02 08:13:34 +03:00
5feedadc80
We no longer need a reference to the previous version, instead we can use the latest revision, this makes it easier to compare "off table" data such as the feature image caption stored in posts_meta.
15 lines
419 B
JavaScript
15 lines
419 B
JavaScript
import Model, {attr, belongsTo} from '@ember-data/model';
|
|
|
|
export default class PostRevisionModel extends Model {
|
|
@belongsTo('post') post;
|
|
@attr('string') lexical;
|
|
@attr('string') title;
|
|
@attr('string') featureImage;
|
|
@attr('string') featureImageAlt;
|
|
@attr('string') featureImageCaption;
|
|
@attr('string') reason;
|
|
@attr('moment-utc') createdAt;
|
|
@belongsTo('user') author;
|
|
@attr('string') postStatus;
|
|
}
|