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.
 
 
 
 
 
 

12 lines
241 B

package model
import (
"gofaster/internal/shared/model"
)
// UserRole 用户角色关联表
type UserRole struct {
model.BaseModel
UserID uint `gorm:"not null;index" json:"user_id"`
RoleID uint `gorm:"not null;index" json:"role_id"`
}