ccdb-web/app/models/site.js
2017-11-10 11:18:33 -07:00

13 lines
320 B
JavaScript

import DS from 'ember-data';
const { Model, attr, hasMany, belongsTo } = DS;
export default Model.extend({
name: attr('string'),
code: attr('string'),
description: attr('string'),
sortOrder: attr('number'),
region: belongsTo('region'),
studyLocation: hasMany('study-location'),
});