mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-02 08:13:34 +03:00
18 lines
487 B
JavaScript
18 lines
487 B
JavaScript
|
import Model, {attr} from '@ember-data/model';
|
||
|
import ValidationEngine from 'ghost-admin/mixins/validation-engine';
|
||
|
import {inject as service} from '@ember/service';
|
||
|
|
||
|
export default Model.extend(ValidationEngine, {
|
||
|
validationType: 'label',
|
||
|
|
||
|
name: attr('string'),
|
||
|
slug: attr('string'),
|
||
|
createdAtUTC: attr('moment-utc'),
|
||
|
updatedAtUTC: attr('moment-utc'),
|
||
|
createdBy: attr('number'),
|
||
|
updatedBy: attr('number'),
|
||
|
count: attr('raw'),
|
||
|
|
||
|
feature: service()
|
||
|
});
|