added user signup feature
This commit is contained in:
10
internal/model/book.go
Normal file
10
internal/model/book.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package model
|
||||
|
||||
import "gorm.io/gorm"
|
||||
|
||||
type Book struct {
|
||||
gorm.Model
|
||||
Title string `json:"title" gorm:"not null"`
|
||||
Author string `json:"author"`
|
||||
Rating int `json:"rating"`
|
||||
}
|
||||
Reference in New Issue
Block a user