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

export default Model.extend({
  descriptionHTML: attr('string'),
  duration: attr('number'),
  itemId: attr('string'),
  itemType: attr('string'),
  owner: belongsTo('user'),
  playlist: belongsTo('video-playlist'),
  thumbnailUrl: attr('string'),
  title: attr('string'),
  video: belongsTo('video', { async: true, inverse: null }),
  views: attr('number'),
  position: attr('number')
});
