open-nomad/ui/app/models/reschedule-event.js
2018-05-04 19:36:54 -07:00

17 lines
560 B
JavaScript

import Fragment from 'ember-data-model-fragments/fragment';
import attr from 'ember-data/attr';
import { fragmentOwner } from 'ember-data-model-fragments/attributes';
import shortUUIDProperty from '../utils/properties/short-uuid';
export default Fragment.extend({
allocation: fragmentOwner(),
previousAllocationId: attr('string'),
previousNodeId: attr('string'),
time: attr('date'),
delay: attr('string'),
previousAllocationShortId: shortUUIDProperty('previousAllocationId'),
previousNodeShortId: shortUUIDProperty('previousNodeShortId'),
});