package model import "gorm.io/gorm" // describes the relationship between a user and a book. type UserBook struct { gorm.Model UserID uint BookID uint Book Book Rating int }