2020-02-25 21:11:36 +01:00
|
|
|
import AbstractModel from './abstractModel'
|
|
|
|
import UserModel from './user'
|
|
|
|
|
|
|
|
export default class TaskCommentModel extends AbstractModel {
|
|
|
|
constructor(data) {
|
|
|
|
super(data)
|
|
|
|
this.author = new UserModel(this.author)
|
|
|
|
this.created = new Date(this.created)
|
|
|
|
this.updated = new Date(this.updated)
|
|
|
|
}
|
|
|
|
|
|
|
|
defaults() {
|
|
|
|
return {
|
|
|
|
id: 0,
|
2020-04-12 23:54:46 +02:00
|
|
|
taskId: 0,
|
2020-02-25 21:11:36 +01:00
|
|
|
comment: '',
|
|
|
|
author: UserModel,
|
|
|
|
created: null,
|
|
|
|
update: null,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|