package model

type Role struct {
	ID          uint         `gorm:"primaryKey" json:"id"`
	Name        string       `gorm:"size:64" json:"name"`
	Permissions []Permission `gorm:"many2many:b2b_role_permissions;" json:"permissions"`
}

func (Role) TableName() string {
	return "b2b_roles"
}

type CustomerRole string

const (
	RoleUser       CustomerRole = "user"
	RoleAdmin      CustomerRole = "admin"
	RoleSuperAdmin CustomerRole = "super_admin"
)
