Expose namespace id when querying lists

This commit is contained in:
kolaente 2020-06-27 22:59:58 +02:00
parent 780a654f65
commit 2820d92ab3
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -41,7 +41,7 @@ type List struct {
HexColor string `xorm:"varchar(6) null" json:"hex_color" valid:"runelength(0|6)" maxLength:"6"` HexColor string `xorm:"varchar(6) null" json:"hex_color" valid:"runelength(0|6)" maxLength:"6"`
OwnerID int64 `xorm:"int(11) INDEX not null" json:"-"` OwnerID int64 `xorm:"int(11) INDEX not null" json:"-"`
NamespaceID int64 `xorm:"int(11) INDEX not null" json:"-" param:"namespace"` NamespaceID int64 `xorm:"int(11) INDEX not null" json:"namespace_id" param:"namespace"`
// The user who created this list. // The user who created this list.
Owner *user.User `xorm:"-" json:"owner" valid:"-"` Owner *user.User `xorm:"-" json:"owner" valid:"-"`