17 lines
582 B
JavaScript
17 lines
582 B
JavaScript
import DS from 'ember-data';
|
|
import config from '../config/environment';
|
|
|
|
export default DS.Model.extend({
|
|
speciesName : DS.attr('string'),
|
|
typeSpecies : DS.attr('boolean'),
|
|
etymology : DS.attr('string'),
|
|
genusName : DS.attr('string', { defaultValue: config.APP.genus }),
|
|
strains : DS.hasMany('strain', { async: true }),
|
|
totalStrains: DS.attr('number'),
|
|
createdAt : DS.attr('date'),
|
|
updatedAt : DS.attr('date'),
|
|
deletedAt : DS.attr('date'),
|
|
createdBy : DS.attr('number'),
|
|
updatedBy : DS.attr('number'),
|
|
deletedBy : DS.attr('number'),
|
|
});
|