This repository has been archived on 2024-02-08. You can view files and clone it, but cannot push or open issues or pull requests.
frontend/src/models/taskComment.js
Dominik Pschenitschni 200851259a
Some checks failed
continuous-integration/drone/pr Build is failing
feat: remove defaults function
2022-01-06 15:38:02 +01:00

19 lines
387 B
JavaScript

import AbstractModel from './abstractModel'
import UserModel from './user'
export default class TaskCommentModel extends AbstractModel {
id = 0
taskId = 0
comment = ''
author = UserModel
created = null
update = null
constructor(data) {
super(data)
this.author = new UserModel(this.author)
this.created = new Date(this.created)
this.updated = new Date(this.updated)
}
}