mirror of
https://github.com/flarum/core.git
synced 2025-05-06 15:35:38 +02:00
16 lines
419 B
JavaScript
16 lines
419 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')
|
|
});
|