✨ Account groups
This commit is contained in:
19
pkg/internal/models/account_groups.go
Normal file
19
pkg/internal/models/account_groups.go
Normal file
@ -0,0 +1,19 @@
|
||||
package models
|
||||
|
||||
import "gorm.io/datatypes"
|
||||
|
||||
type AccountGroup struct {
|
||||
BaseModel
|
||||
|
||||
Name string `json:"name"`
|
||||
PermNodes datatypes.JSONMap `json:"perm_nodes"`
|
||||
}
|
||||
|
||||
type AccountGroupMember struct {
|
||||
BaseModel
|
||||
|
||||
Account Account `json:"account"`
|
||||
Group AccountGroup `json:"group"`
|
||||
AccountID uint `json:"account_id"`
|
||||
GroupID uint `json:"group_id"`
|
||||
}
|
Reference in New Issue
Block a user