Rough in strains.

This commit is contained in:
Matthew Dillon 2015-01-26 09:50:34 -09:00
parent 008d093520
commit 1a59456ae9
7 changed files with 91 additions and 1 deletions

View file

@ -1,9 +1,9 @@
import DS from 'ember-data';
export default DS.Model.extend({
genusId: DS.attr(),
speciesName: DS.attr(),
genus: DS.belongsTo('genus', {async: true}),
strains: DS.hasMany('strain', {async: true}),
createdAt: DS.attr('date'),
updatedAt: DS.attr('date'),
deletedAt: DS.attr('date')

14
app/models/strain.js Normal file
View file

@ -0,0 +1,14 @@
import DS from 'ember-data';
export default DS.Model.extend({
strainName: DS.attr(),
strainType: DS.attr(),
etymology: DS.attr(),
accessionBanks: DS.attr(),
genbankEmblDdb: DS.attr(),
isolatedFrom: DS.attr(),
species: DS.belongsTo('species', {async: true}),
createdAt: DS.attr('date'),
updatedAt: DS.attr('date'),
deletedAt: DS.attr('date')
});