ENH: Collection environment measurement (#65)
This commit is contained in:
parent
56f8796eaf
commit
39f4789a61
10 changed files with 103 additions and 4 deletions
12
app/models/collection-measurement.js
Normal file
12
app/models/collection-measurement.js
Normal file
|
@ -0,0 +1,12 @@
|
|||
import DS from 'ember-data';
|
||||
|
||||
const { Model, attr, belongsTo } = DS;
|
||||
|
||||
export default Model.extend({
|
||||
dateMeasured: attr('string'),
|
||||
timeMeasured: attr('string'),
|
||||
waterTempC: attr('number'),
|
||||
airTempC: attr('number'),
|
||||
|
||||
collection: belongsTo('collection'),
|
||||
});
|
|
@ -21,6 +21,7 @@ export default Model.extend({
|
|||
|
||||
collectionSpecies: hasMany('collection-species'),
|
||||
datasheets: hasMany('datasheet-attachment'),
|
||||
envMeasurements: hasMany('collection-measurement'),
|
||||
|
||||
// computed
|
||||
species: computed.mapBy('collectionSpecies', 'species'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue