Roughing in measurements
This commit is contained in:
parent
ced3f7d2d2
commit
4f96f4dc07
13 changed files with 109 additions and 2 deletions
15
app/models/measurement.js
Normal file
15
app/models/measurement.js
Normal file
|
@ -0,0 +1,15 @@
|
|||
import DS from 'ember-data';
|
||||
|
||||
export default DS.Model.extend({
|
||||
strain: DS.belongsTo('strain'),
|
||||
characteristic: DS.attr('string'),
|
||||
textMeasurementType: DS.attr('string'),
|
||||
txtValue: DS.attr('string'),
|
||||
numValue: DS.attr('number'),
|
||||
confidenceInterval: DS.attr('number'),
|
||||
unitType: DS.attr('string'),
|
||||
notes: DS.attr('string'),
|
||||
testMethod: DS.attr('string'),
|
||||
createdAt: DS.attr('date'),
|
||||
updatedAt: DS.attr('date')
|
||||
});
|
|
@ -1,6 +1,7 @@
|
|||
import DS from 'ember-data';
|
||||
|
||||
export default DS.Model.extend({
|
||||
measurements: DS.hasMany('measurements', { async: true }),
|
||||
strainName: DS.attr('string'),
|
||||
strainType: DS.attr('string'),
|
||||
etymology: DS.attr('string'),
|
||||
|
|
Reference in a new issue