First implementation of fetching collections of book managed by user

This commit is contained in:
2026-04-02 16:23:22 +02:00
parent acdc3972bd
commit a280647575
18 changed files with 377 additions and 41 deletions

View File

@@ -0,0 +1,11 @@
package model
import "gorm.io/gorm"
type Collection struct {
gorm.Model
Name string
User User
UserID uint
Books []Book `gorm:"many2many:collection_books;"`
}