Ghost/ghost/admin/app/models/post-revision.js
Fabien "egg" O'Carroll 5feedadc80 Wired up feature image alt and caption to DB and Admin
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.
2023-04-21 15:26:43 +01:00

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;
}