- 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
11 lines
156 B
Go
11 lines
156 B
Go
package model
|
|
|
|
import "gorm.io/gorm"
|
|
|
|
type User struct {
|
|
gorm.Model
|
|
Name string `gorm:"index;uniqueIndex"`
|
|
Password string
|
|
UserBooks []UserBook
|
|
}
|