2015-10-07 15:09:26 +02:00
|
|
|
import DS from 'ember-data';
|
|
|
|
|
|
|
|
export default DS.Model.extend({
|
|
|
|
name: DS.attr('string'),
|
|
|
|
type: DS.attr('string'),
|
2015-10-12 17:36:34 +02:00
|
|
|
values: DS.attr(),
|
2015-10-07 15:09:26 +02:00
|
|
|
timestamp: DS.attr('date'),
|
2015-10-12 12:25:14 +02:00
|
|
|
visible: DS.attr('boolean', { defaultValue: false }),
|
2015-10-14 14:09:43 +02:00
|
|
|
source: DS.attr('string'),
|
2015-10-14 15:50:59 +02:00
|
|
|
minValue: DS.attr('number'),
|
|
|
|
maxValue: DS.attr('number'),
|
2015-10-23 07:20:10 -04:00
|
|
|
currentValue: DS.attr('number'),
|
2015-10-08 16:04:06 +02:00
|
|
|
entity: DS.belongsTo('entity'),
|
|
|
|
category: DS.belongsTo('category')
|
2015-10-07 15:09:26 +02:00
|
|
|
});
|