Clean up models
This commit is contained in:
parent
37d7ca0029
commit
137ba20bd9
3 changed files with 6 additions and 5 deletions
|
@ -3,8 +3,8 @@ import DS from 'ember-data';
|
||||||
export default DS.Model.extend({
|
export default DS.Model.extend({
|
||||||
characteristicName : DS.attr('string'),
|
characteristicName : DS.attr('string'),
|
||||||
characteristicTypeName: DS.attr('string'),
|
characteristicTypeName: DS.attr('string'),
|
||||||
strains : DS.hasMany('strain', { async: true }),
|
strains : DS.hasMany('strain', { async: false }),
|
||||||
measurements : DS.hasMany('measurements', { async: true }),
|
measurements : DS.hasMany('measurements', { async: false }),
|
||||||
createdAt : DS.attr('date'),
|
createdAt : DS.attr('date'),
|
||||||
updatedAt : DS.attr('date'),
|
updatedAt : DS.attr('date'),
|
||||||
deletedAt : DS.attr('date'),
|
deletedAt : DS.attr('date'),
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
import DS from 'ember-data';
|
import DS from 'ember-data';
|
||||||
|
|
||||||
export default DS.Model.extend({
|
export default DS.Model.extend({
|
||||||
strain : DS.belongsTo('strain', { async: true }),
|
strain : DS.belongsTo('strain', { async: false }),
|
||||||
characteristic : DS.belongsTo('characteristic', { async: true }),
|
characteristic : DS.belongsTo('characteristic', { async: false }),
|
||||||
textMeasurementType: DS.attr('string'),
|
textMeasurementType: DS.attr('string'),
|
||||||
txtValue : DS.attr('string'),
|
txtValue : DS.attr('string'),
|
||||||
numValue : DS.attr('number'),
|
numValue : DS.attr('number'),
|
||||||
|
|
|
@ -2,7 +2,8 @@ import DS from 'ember-data';
|
||||||
import Ember from 'ember';
|
import Ember from 'ember';
|
||||||
|
|
||||||
export default DS.Model.extend({
|
export default DS.Model.extend({
|
||||||
measurements : DS.hasMany('measurements', { async: true }),
|
measurements : DS.hasMany('measurements', { async: false }),
|
||||||
|
characteristics : DS.hasMany('characteristics', { async: false }),
|
||||||
species : DS.belongsTo('species', { async: false }),
|
species : DS.belongsTo('species', { async: false }),
|
||||||
strainName : DS.attr('string'),
|
strainName : DS.attr('string'),
|
||||||
typeStrain : DS.attr('boolean'),
|
typeStrain : DS.attr('boolean'),
|
||||||
|
|
Reference in a new issue