You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
215 B

package tables
import (
"gorm.io/gorm"
)
type Role struct {
gorm.Model
Name string `gorm:"uniqueIndex;" json:"name"`
Key string `gorm:"uniqueIndex;" json:"key"`
Users []User `gorm:"many2many:role_user"`
}