Dominik Pschenitschni
200851259a
Some checks failed
continuous-integration/drone/pr Build is failing
27 lines
534 B
JavaScript
27 lines
534 B
JavaScript
import AbstractModel from './abstractModel'
|
|
import UserModel from './user'
|
|
import TaskModel from './task'
|
|
|
|
export default class BucketModel extends AbstractModel {
|
|
id = 0
|
|
title = ''
|
|
listId = 0
|
|
limit = 0
|
|
tasks = []
|
|
isDoneBucket = false
|
|
position = 0
|
|
|
|
createdBy = null
|
|
created = null
|
|
updated = null
|
|
|
|
constructor(bucket) {
|
|
super(bucket)
|
|
|
|
this.tasks = this.tasks.map(t => new TaskModel(t))
|
|
|
|
this.createdBy = new UserModel(this.createdBy)
|
|
this.created = new Date(this.created)
|
|
this.updated = new Date(this.updated)
|
|
}
|
|
} |