mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 22:02:11 +03:00
186a8ae70c
refs https://github.com/TryGhost/Ghost/issues/7494 - remove `uuid` attrs from all models except Post - remove uuids from mirage factories and fixtures - add a workaround for tags where the selectize-based tags input on the PSM relies on a unique identifier for each tag which doesn't get sent back to the server when saving (fixes the broken tags input caused by uuid removal in https://github.com/TryGhost/Ghost/pull/7495)
23 lines
686 B
JavaScript
23 lines
686 B
JavaScript
import Model from 'ember-data/model';
|
|
import attr from 'ember-data/attr';
|
|
import {belongsTo} from 'ember-data/relationships';
|
|
import ValidationEngine from 'ghost-admin/mixins/validation-engine';
|
|
|
|
export default Model.extend(ValidationEngine, {
|
|
validationType: 'subscriber',
|
|
|
|
name: attr('string'),
|
|
email: attr('string'),
|
|
status: attr('string'),
|
|
subscribedUrl: attr('string'),
|
|
subscribedReferrer: attr('string'),
|
|
unsubscribedUrl: attr('string'),
|
|
unsubscribedAtUTC: attr('moment-utc'),
|
|
createdAtUTC: attr('moment-utc'),
|
|
updatedAtUTC: attr('moment-utc'),
|
|
createdBy: attr('number'),
|
|
updatedBy: attr('number'),
|
|
|
|
post: belongsTo('post')
|
|
});
|