2016-11-14 16:16:51 +03:00
|
|
|
/* eslint-disable camelcase */
|
2020-01-16 20:01:12 +03:00
|
|
|
import Model, {attr} from '@ember-data/model';
|
2017-08-22 10:53:26 +03:00
|
|
|
import {computed} from '@ember/object';
|
2015-08-19 14:55:40 +03:00
|
|
|
|
2015-10-28 14:36:45 +03:00
|
|
|
export default Model.extend({
|
|
|
|
name: attr('string'),
|
|
|
|
description: attr('string'),
|
2016-06-14 11:11:59 +03:00
|
|
|
createdAtUTC: attr('moment-utc'),
|
|
|
|
updatedAtUTC: attr('moment-utc'),
|
2018-01-11 12:29:42 +03:00
|
|
|
createdBy: attr('number'),
|
|
|
|
updatedBy: attr('number'),
|
2015-10-28 14:36:45 +03:00
|
|
|
|
|
|
|
lowerCaseName: computed('name', function () {
|
2019-03-04 19:17:13 +03:00
|
|
|
return (this.name || '').toLocaleLowerCase();
|
2014-07-21 01:48:24 +04:00
|
|
|
})
|
|
|
|
});
|