19 lines
585 B
JavaScript
19 lines
585 B
JavaScript
import DS from 'ember-data';
|
|
import config from '../config/environment';
|
|
|
|
const { Model, attr, hasMany } = DS;
|
|
|
|
export default Model.extend({
|
|
speciesName : attr('string'),
|
|
typeSpecies : attr('boolean'),
|
|
etymology : attr('string'),
|
|
genusName : attr('string', { defaultValue: config.APP.genus }),
|
|
strains : hasMany('strain', { async: false }),
|
|
totalStrains: attr('number'),
|
|
createdAt : attr('date'),
|
|
updatedAt : attr('date'),
|
|
createdBy : attr('number'),
|
|
updatedBy : attr('number'),
|
|
sortOrder : attr('number'),
|
|
canEdit : attr('boolean'),
|
|
});
|