framework/ember/app/models/activity.js

12 lines
240 B
JavaScript
Raw Normal View History

2015-03-17 14:36:12 +08:00
import DS from 'ember-data';
export default DS.Model.extend({
contentType: DS.attr('string'),
content: DS.attr(),
2015-03-17 14:36:12 +08:00
time: DS.attr('date'),
user: DS.belongsTo('user'),
sender: DS.belongsTo('user'),
post: DS.belongsTo('post')
});