Rough in measurements.
This commit is contained in:
parent
1a59456ae9
commit
db22b89e6f
6 changed files with 80 additions and 0 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({
|
||||
characteristicId: DS.attr(),
|
||||
textMeasurementTypeId: DS.attr(),
|
||||
txtValue: DS.attr(),
|
||||
numValue: DS.attr(),
|
||||
confidenceInterval: DS.attr(),
|
||||
unitTypeId: DS.attr(),
|
||||
notes: DS.attr(),
|
||||
testMethodId: DS.attr(),
|
||||
strain: DS.belongsTo('strain', {async: true}),
|
||||
createdAt: DS.attr('date'),
|
||||
updatedAt: DS.attr('date')
|
||||
});
|
|
@ -8,6 +8,7 @@ export default DS.Model.extend({
|
|||
genbankEmblDdb: DS.attr(),
|
||||
isolatedFrom: DS.attr(),
|
||||
species: DS.belongsTo('species', {async: true}),
|
||||
measurements: DS.hasMany('measurement', {async: true}),
|
||||
createdAt: DS.attr('date'),
|
||||
updatedAt: DS.attr('date'),
|
||||
deletedAt: DS.attr('date')
|
||||
|
|
Reference in a new issue