add new uuid for workspace and create uuid folder

This commit is contained in:
Adrian Zürcher
2026-02-17 07:30:10 +01:00
parent 7d604189af
commit 38a7660d41
3 changed files with 26 additions and 5 deletions

View File

@@ -1,8 +1,11 @@
package models
import "github.com/google/uuid"
type Workspace struct {
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;" `
Id uint `gorm:"primaryKey" json:"id"`
Name string `gorm:"column:name" json:"name"`
Description string `gorm:"type:json" json:"description"`
Uuid uuid.UUID `gorm:"type:text" json:"uuid"`
Users []*User `gorm:"many2many:users_workspaces;" `
}