add "Added By" for books
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user