- new table userbook linking users and book - moved rating to users book - updated demo data and tests - updated front to hide routes from non connected users
10 lines
148 B
Go
10 lines
148 B
Go
package model
|
|
|
|
import "gorm.io/gorm"
|
|
|
|
type Book struct {
|
|
gorm.Model
|
|
Title string `json:"title" gorm:"not null"`
|
|
Author string `json:"author"`
|
|
}
|