add workspaces to user

This commit is contained in:
Adrian Zürcher
2026-02-16 19:29:41 +01:00
parent 81959425a1
commit 3eb40bc02f
5 changed files with 49 additions and 44 deletions

View File

@@ -1,7 +1,8 @@
package models
type Workspace struct {
Id uint `gorm:"primaryKey" json:"id"`
Name string `gorm:"column:name" json:"name"`
Description string `gorm:"type:json" json:"description"`
Id uint `gorm:"primaryKey" json:"id"`
Name string `gorm:"column:name" json:"name"`
Description string `gorm:"type:json" json:"description"`
Users []*User `gorm:"many2many:users_workspaces;" `
}