Make "want read" button work

This commit is contained in:
2025-11-06 15:53:24 +01:00
parent 6bfd3ae2da
commit a8f83db83f
14 changed files with 268 additions and 100 deletions

View File

@@ -5,9 +5,10 @@ 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
Read bool
UserID uint
BookID uint
Book Book
Rating int
Read bool
WantRead bool
}