add "Added By" for books

This commit is contained in:
2025-10-08 15:34:31 +02:00
parent fc31cc5507
commit c9991118ee
4 changed files with 52 additions and 34 deletions

View File

@@ -4,6 +4,8 @@ import "gorm.io/gorm"
type Book struct {
gorm.Model
Title string `json:"title" gorm:"not null"`
Author string `json:"author"`
Title string `json:"title" gorm:"not null"`
Author string `json:"author"`
AddedBy User
AddedByID uint
}