Added characteristic
This commit is contained in:
parent
d2951e600f
commit
e106f15041
3 changed files with 16 additions and 8 deletions
11
app/models/characteristic.js
Normal file
11
app/models/characteristic.js
Normal file
|
@ -0,0 +1,11 @@
|
|||
import DS from 'ember-data';
|
||||
import Ember from 'ember';
|
||||
|
||||
export default DS.Model.extend({
|
||||
characteristicName: DS.attr(),
|
||||
characteristicTypeId: DS.attr(),
|
||||
measurements: DS.hasMany('measurement', {async: true}),
|
||||
createdAt: DS.attr('date'),
|
||||
updatedAt: DS.attr('date'),
|
||||
deletedAt: DS.attr('date')
|
||||
});
|
|
@ -10,6 +10,7 @@ export default DS.Model.extend({
|
|||
notes: DS.attr(),
|
||||
testMethodId: DS.attr(),
|
||||
strain: DS.belongsTo('strain', {async: true}),
|
||||
characteristic: DS.belongsTo('characteristic', {async: true}),
|
||||
createdAt: DS.attr('date'),
|
||||
updatedAt: DS.attr('date')
|
||||
});
|
||||
|
|
Reference in a new issue