2018-08-17 18:22:26 +00:00
|
|
|
import Model from 'ember-data/model';
|
|
|
|
import attr from 'ember-data/attr';
|
|
|
|
import { fragmentArray } from 'ember-data-model-fragments/attributes';
|
2019-04-16 19:11:43 +00:00
|
|
|
import { hasMany } from 'ember-data/relationships';
|
2018-08-17 18:22:26 +00:00
|
|
|
|
|
|
|
export default Model.extend({
|
|
|
|
diff: attr(),
|
|
|
|
failedTGAllocs: fragmentArray('placement-failure', { defaultValue: () => [] }),
|
2019-04-16 19:11:43 +00:00
|
|
|
preemptions: hasMany('allocation'),
|
2018-08-17 18:22:26 +00:00
|
|
|
});
|