Files
access-handler/models/role.go
Adrian Zürcher 090cf0c1cc add api handler
2025-10-24 16:09:01 +02:00

12 lines
280 B
Go

package models
type Role struct {
Id uint `gorm:"primaryKey" json:"id"`
Role string `gorm:"column:role" json:"role"`
Permissions Permissions `gorm:"type:json" json:"permissions"`
}
func (r *Role) IsValid() bool {
return r.Role != ""
}