2020-10-15 20:03:18 +03:00
|
|
|
import Model, {attr} from '@ember-data/model';
|
|
|
|
import ValidationEngine from 'ghost-admin/mixins/validation-engine';
|
|
|
|
|
|
|
|
export default Model.extend(ValidationEngine, {
|
|
|
|
validationType: 'snippet',
|
|
|
|
|
2020-10-16 12:15:07 +03:00
|
|
|
name: attr('string'),
|
2020-10-15 20:03:18 +03:00
|
|
|
mobiledoc: attr('json-string'),
|
2023-04-17 16:39:04 +03:00
|
|
|
lexical: attr('json-string'),
|
2020-10-15 20:03:18 +03:00
|
|
|
createdAtUTC: attr('moment-utc'),
|
|
|
|
updatedAtUTC: attr('moment-utc')
|
|
|
|
});
|