import DS from "ember-data";

var attr = DS.attr;

var Problem = DS.Model.extend({
  title: attr(),
  description: attr(),

  contest: DS.belongsTo('contest')
});

export default Problem;

import DS from "ember-data";

var attr = DS.attr;

var Problem = DS.Model.extend({
  createdAt   : attr();
  updatedAt   : attr();
  author      : attr(),
  title       : attr(),
  description : attr(),
  inputs      : attr(),
  outputs     : attr(),

  contest: DS.belongsTo('contest')
});

export default Problem;

Add some extra fields to Problem model :smile:
Add some extra fields to Problem model :smile:

Fields added are:
author, createdAt, updatedAt, inputs and outputs
