mirror of
https://github.com/flarum/core.git
synced 2025-08-05 16:07:34 +02:00
Add user activity system
This commit is contained in:
11
ember/app/models/activity.js
Normal file
11
ember/app/models/activity.js
Normal file
@@ -0,0 +1,11 @@
|
||||
import DS from 'ember-data';
|
||||
|
||||
export default DS.Model.extend({
|
||||
type: DS.attr('string'),
|
||||
content: DS.attr('string'),
|
||||
time: DS.attr('date'),
|
||||
|
||||
user: DS.belongsTo('user'),
|
||||
sender: DS.belongsTo('user'),
|
||||
post: DS.belongsTo('post')
|
||||
});
|
Reference in New Issue
Block a user