Added start read date

This commit is contained in:
2025-11-20 22:55:26 +01:00
parent 4cbddfb15f
commit 0bfd0dc231
16 changed files with 263 additions and 33 deletions

View File

@@ -1,14 +1,19 @@
package model
import "gorm.io/gorm"
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
UserID uint
BookID uint
Book Book
Rating int
Read bool
WantRead bool
StartReadDate *time.Time
}