{"size": 536, "ext": "js", "max_stars_repo_path": "app/models/activity.js", "max_stars_repo_name": "aymerick/kowa-client", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "app/models/activity.js", "max_issues_repo_name": "aymerick/kowa-client", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "app/models/activity.js", "max_forks_repo_name": "aymerick/kowa-client", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 31.5294117647, "max_line_length": 82, "alphanum_fraction": 0.6305970149}
import DS from 'ember-data';

var Activity = DS.Model.extend({
  createdAt: DS.attr('date', { defaultValue: function() { return new Date(); } }),
  updatedAt: DS.attr('date', { defaultValue: function() { return new Date(); } }),

  title: DS.attr('string', { defaultValue: "" }),
  summary: DS.attr('string', { defaultValue: "" }),
  body: DS.attr('string', { defaultValue: "" }),

  cover: DS.belongsTo('image', { inverse: 'coverActivities', async: true }),

  site: DS.belongsTo('site', { async: true })
});

export default Activity;
