mirror of
https://github.com/flarum/framework.git
synced 2024-11-25 09:41:49 +08:00
12 lines
340 B
JavaScript
12 lines
340 B
JavaScript
import Model from 'flarum/Model';
|
|
import mixin from 'flarum/utils/mixin';
|
|
|
|
export default class Activity extends mixin(Model, {
|
|
contentType: Model.attribute('contentType'),
|
|
content: Model.attribute('content'),
|
|
time: Model.attribute('time', Model.transformDate),
|
|
|
|
user: Model.hasOne('user'),
|
|
subject: Model.hasOne('subject')
|
|
}) {}
|