mirror of
https://github.com/TryGhost/Ghost-Admin.git
synced 2023-12-14 02:33:04 +01:00
24 lines
726 B
JavaScript
24 lines
726 B
JavaScript
import DS from 'ember-data';
|
|
import ValidationEngine from 'ghost/mixins/validation-engine';
|
|
import NProgressSaveMixin from 'ghost/mixins/nprogress-save';
|
|
|
|
var Tag = DS.Model.extend(NProgressSaveMixin, ValidationEngine, {
|
|
validationType: 'tag',
|
|
|
|
uuid: DS.attr('string'),
|
|
name: DS.attr('string'),
|
|
slug: DS.attr('string'),
|
|
description: DS.attr('string'),
|
|
parent: DS.attr(),
|
|
meta_title: DS.attr('string'),
|
|
meta_description: DS.attr('string'),
|
|
image: DS.attr('string'),
|
|
hidden: DS.attr('boolean'),
|
|
created_at: DS.attr('moment-date'),
|
|
updated_at: DS.attr('moment-date'),
|
|
created_by: DS.attr(),
|
|
updated_by: DS.attr(),
|
|
post_count: DS.attr('number')
|
|
});
|
|
|
|
export default Tag;
|