2019-10-28 22:45:37 +01:00
|
|
|
import AbstractModel from './abstractModel'
|
2020-02-08 14:16:06 +01:00
|
|
|
import UserModel from './user'
|
2019-10-28 22:45:37 +01:00
|
|
|
|
|
|
|
export default class TaskRelationModel extends AbstractModel {
|
|
|
|
constructor(data) {
|
|
|
|
super(data)
|
|
|
|
this.created_by = new UserModel(this.created_by)
|
2020-02-08 14:16:06 +01:00
|
|
|
this.created = new Date(this.created)
|
2019-10-28 22:45:37 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
defaults() {
|
|
|
|
return {
|
|
|
|
id: 0,
|
|
|
|
other_task_id: 0,
|
|
|
|
task_id: 0,
|
|
|
|
relation_kind: '',
|
|
|
|
|
|
|
|
created_by: UserModel,
|
2020-02-08 14:16:06 +01:00
|
|
|
created: null,
|
2019-10-28 22:45:37 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|