13 lines
257 B
Cheetah
13 lines
257 B
Cheetah
package model
|
|
|
|
import uuid "github.com/satori/go.uuid"
|
|
|
|
// UserRole Связь пользователя и роли
|
|
type UserRole struct {
|
|
Base
|
|
UserID uuid.UUID `gorm:"column:id_user"`
|
|
User User
|
|
RoleID uuid.UUID `gorm:"column:id_role"`
|
|
Role Role
|
|
}
|