From 8930b0cc7723c212313d53515737e27668066714 Mon Sep 17 00:00:00 2001 From: kolaente Date: Fri, 4 Sep 2020 10:03:06 +0200 Subject: [PATCH] Add limit field to buckets --- pkg/models/kanban.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/models/kanban.go b/pkg/models/kanban.go index 6dac185ff..c07fe769a 100644 --- a/pkg/models/kanban.go +++ b/pkg/models/kanban.go @@ -35,6 +35,9 @@ type Bucket struct { // All tasks which belong to this bucket. Tasks []*Task `xorm:"-" json:"tasks"` + // How many tasks can be at the same time on this board max + Limit int64 `xorm:"default 0" json:"limit"` + // A timestamp when this bucket was created. You cannot change this value. Created time.Time `xorm:"created not null" json:"created"` // A timestamp when this bucket was last updated. You cannot change this value.