2018-06-20 13:20:31 +09:30
|
|
|
import Model from '../Model';
|
2015-04-25 22:28:39 +09:30
|
|
|
|
2015-10-13 16:57:18 +10:30
|
|
|
export default class Notification extends Model {}
|
|
|
|
|
|
|
|
Object.assign(Notification.prototype, {
|
2015-07-15 14:00:11 +09:30
|
|
|
contentType: Model.attribute('contentType'),
|
|
|
|
content: Model.attribute('content'),
|
2018-08-24 21:47:57 +09:30
|
|
|
createdAt: Model.attribute('createdAt', Model.transformDate),
|
2015-04-25 22:28:39 +09:30
|
|
|
|
2015-07-15 14:00:11 +09:30
|
|
|
isRead: Model.attribute('isRead'),
|
2015-04-25 22:28:39 +09:30
|
|
|
|
2015-07-15 14:00:11 +09:30
|
|
|
user: Model.hasOne('user'),
|
2018-08-24 21:46:28 +09:30
|
|
|
fromUser: Model.hasOne('fromUser'),
|
2020-04-17 11:57:55 +02:00
|
|
|
subject: Model.hasOne('subject'),
|
2015-10-13 16:57:18 +10:30
|
|
|
});
|