Files
bibliomane/internal/model/userbook.go

22 lines
339 B
Go

package model
import (
"time"
"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
Read bool
WantRead bool
Review string
StartReadDate *time.Time
EndReadDate *time.Time
}