pivot

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 30, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserPermissions

type UserPermissions struct {
	UserID       uint `gorm:"primary_key" json:"user_id"`
	PermissionID uint `gorm:"primary_key" json:"permission_id"`
}

UserPermissions represents the database model of user permissions relationships

func (UserPermissions) TableName

func (UserPermissions) TableName() string

TableName sets the table name

type UserRoles

type UserRoles struct {
	UserID uint `gorm:"primary_key" json:"user_id"`
	RoleID uint `gorm:"primary_key" json:"role_id"`
}

UserRoles represents the database model of user roles relationships

func (UserRoles) TableName

func (UserRoles) TableName() string

TableName sets the table name

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL