ccdb-web/app/models/collection-species.js

12 lines
310 B
JavaScript

import DS from 'ember-data';
const { Model, attr, belongsTo } = DS;
export default Model.extend({
sex: belongsTo('sex'),
count: attr('number'),
countEstimated: attr('boolean', { defaultValue: false }),
collection: belongsTo('collection'),
species: belongsTo('species'),
});