mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-13 00:33:06 +03:00
feat: add user groups
This commit is contained in:
8
backend/internal/model/user_group.go
Normal file
8
backend/internal/model/user_group.go
Normal file
@@ -0,0 +1,8 @@
|
||||
package model
|
||||
|
||||
type UserGroup struct {
|
||||
Base
|
||||
FriendlyName string
|
||||
Name string `gorm:"unique"`
|
||||
Users []User `gorm:"many2many:user_groups_users;"`
|
||||
}
|
||||
Reference in New Issue
Block a user