This repository has been archived on 2025-03-30. You can view files and clone it, but cannot push or open issues or pull requests.
hymenobacterdotinfo/app/models/species.js
Matthew Dillon dfe2c9cd74 Lint
2015-11-16 09:37:31 -07:00

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'),
});