2015-10-28 14:36:45 +03:00
|
|
|
/* jscs:disable requireCamelCaseOrUpperCaseIdentifiers */
|
2016-06-30 13:21:47 +03:00
|
|
|
import computed from 'ember-computed';
|
2016-01-12 22:23:01 +03:00
|
|
|
import Model from 'ember-data/model';
|
|
|
|
import attr from 'ember-data/attr';
|
2015-08-19 14:55:40 +03:00
|
|
|
|
2015-10-28 14:36:45 +03:00
|
|
|
export default Model.extend({
|
|
|
|
uuid: attr('string'),
|
|
|
|
name: attr('string'),
|
|
|
|
description: attr('string'),
|
2016-06-14 11:11:59 +03:00
|
|
|
createdAtUTC: attr('moment-utc'),
|
|
|
|
updatedAtUTC: attr('moment-utc'),
|
2016-01-23 21:12:22 +03:00
|
|
|
createdBy: attr(),
|
|
|
|
updatedBy: attr(),
|
2015-10-28 14:36:45 +03:00
|
|
|
|
|
|
|
lowerCaseName: computed('name', function () {
|
2014-07-21 01:48:24 +04:00
|
|
|
return this.get('name').toLocaleLowerCase();
|
|
|
|
})
|
|
|
|
});
|