exclude users from json
This commit is contained in:
@@ -7,5 +7,5 @@ type Workspace struct {
|
|||||||
Name string `gorm:"column:name" json:"name"`
|
Name string `gorm:"column:name" json:"name"`
|
||||||
Description string `gorm:"type:json" json:"description"`
|
Description string `gorm:"type:json" json:"description"`
|
||||||
Uuid *uuid.UUID `gorm:"type:text" json:"uuid,omitempty"`
|
Uuid *uuid.UUID `gorm:"type:text" json:"uuid,omitempty"`
|
||||||
Users []*User `gorm:"many2many:users_workspaces;" `
|
Users []*User `gorm:"many2many:users_workspaces;" json:"-"`
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user