2020-01-16 20:01:12 +03:00
|
|
|
import Model, {attr} from '@ember-data/model';
|
2019-11-28 14:30:21 +03:00
|
|
|
import ValidationEngine from 'ghost-admin/mixins/validation-engine';
|
2019-01-22 20:18:44 +03:00
|
|
|
|
2019-11-28 14:30:21 +03:00
|
|
|
export default Model.extend(ValidationEngine, {
|
|
|
|
validationType: 'member',
|
|
|
|
|
2019-01-22 20:18:44 +03:00
|
|
|
name: attr('string'),
|
|
|
|
email: attr('string'),
|
2019-10-10 14:59:35 +03:00
|
|
|
note: attr('string'),
|
2019-11-28 14:30:21 +03:00
|
|
|
createdAtUTC: attr('moment-utc'),
|
2019-11-05 14:00:07 +03:00
|
|
|
stripe: attr('member-subscription'),
|
2019-11-28 14:30:21 +03:00
|
|
|
subscribed: attr('boolean', {defaultValue: true})
|
2019-01-22 20:18:44 +03:00
|
|
|
});
|