2023-07-18 14:33:58 +03:00
|
|
|
package model
|
2023-06-27 16:12:26 +03:00
|
|
|
|
|
|
|
import uuid "github.com/satori/go.uuid"
|
|
|
|
|
2023-07-19 12:05:56 +03:00
|
|
|
// UserRole Связь пользователя и роли
|
2023-06-27 16:12:26 +03:00
|
|
|
type UserRole struct {
|
|
|
|
Base
|
|
|
|
UserID uuid.UUID `gorm:"column:id_user"`
|
|
|
|
User User
|
|
|
|
RoleID uuid.UUID `gorm:"column:id_role"`
|
|
|
|
Role Role
|
|
|
|
}
|