mirror of
https://github.com/flarum/framework.git
synced 2024-12-04 16:23:37 +08:00
16 lines
420 B
JavaScript
16 lines
420 B
JavaScript
import Model from '../Model';
|
|
|
|
export default class Notification extends Model {}
|
|
|
|
Object.assign(Notification.prototype, {
|
|
contentType: Model.attribute('contentType'),
|
|
content: Model.attribute('content'),
|
|
createdAt: Model.attribute('createdAt', Model.transformDate),
|
|
|
|
isRead: Model.attribute('isRead'),
|
|
|
|
user: Model.hasOne('user'),
|
|
fromUser: Model.hasOne('fromUser'),
|
|
subject: Model.hasOne('subject'),
|
|
});
|