mirror of
https://github.com/flarum/framework.git
synced 2024-12-04 00:03:37 +08:00
15 lines
446 B
JavaScript
15 lines
446 B
JavaScript
import Model from 'flarum/model';
|
|
|
|
class Activity extends Model {}
|
|
|
|
Activity.prototype.id = Model.prop('id');
|
|
Activity.prototype.contentType = Model.prop('contentType');
|
|
Activity.prototype.content = Model.prop('content');
|
|
Activity.prototype.time = Model.prop('time', Model.date);
|
|
|
|
Activity.prototype.user = Model.one('user');
|
|
Activity.prototype.sender = Model.one('sender');
|
|
Activity.prototype.post = Model.one('post');
|
|
|
|
export default Activity;
|