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

export default Model.extend({
  /* Attributes Start */
  broadcasterDisplayName: attr('string'),
  broadcasterLogin: attr('string'),
  broadcasterChannelURL: attr('string'),
  broadcasterID: attr('string'),

  curatorDisplayName: attr('string'),
  curatorLogin: attr('string'),
  curatorChannelURL: attr('string'),
  curatorID: attr('string'),

  createdAt: attr('string'),
  game: attr('string'),
  title: attr('string'),
  url: attr('string'),
  embedURL: attr('string'),
  views: attr('number'),
  /* Attributes End */

  /* Relationships Start */
  thumbnail: belongsTo('sized-image', {async: false})
  /* Relationships End */
});
