import Model from 'ember-data/model';
import attr from 'ember-data/attr';
import { belongsTo, hasMany } from 'ember-data/relationships';

export default Model.extend({
  rank: attr('number'),
  fetchedAt: attr('date'),

  channel: belongsTo('channel', {async: false}),
  streams: hasMany('stream', {async: false})
});
