11 lines
215 B
JavaScript
11 lines
215 B
JavaScript
import DS from 'ember-data';
|
|
|
|
const { Model, attr, hasMany } = DS;
|
|
|
|
export default Model.extend({
|
|
name: attr('string'),
|
|
code: attr('string'),
|
|
sortOrder: attr('number'),
|
|
|
|
site: hasMany('site'),
|
|
});
|