Add is archived property to lists and namespaces

Signed-off-by: kolaente <k@knt.li>
This commit is contained in:
kolaente 2020-03-08 20:58:35 +01:00
parent 7de26a462f
commit addb9aab0c
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
2 changed files with 6 additions and 0 deletions

View File

@ -43,6 +43,9 @@ type List struct {
// Deprecated: you should use the dedicated task list endpoint because it has support for pagination and filtering
Tasks []*Task `xorm:"-" json:"-"`
// Whether or not a list is archived.
IsArchived bool `xorm:"not null default false" json:"is_archived"`
// A timestamp when this list was created. You cannot change this value.
Created timeutil.TimeStamp `xorm:"created not null" json:"created"`
// A timestamp when this list was last updated. You cannot change this value.

View File

@ -35,6 +35,9 @@ type Namespace struct {
Description string `xorm:"longtext null" json:"description"`
OwnerID int64 `xorm:"int(11) not null INDEX" json:"-"`
// Whether or not a namespace is archived.
IsArchived bool `xorm:"not null default false" json:"is_archived"`
// The user who owns this namespace
Owner *user.User `xorm:"-" json:"owner" valid:"-"`