Initial test, but meh
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
package database
|
||||
|
||||
type Chapter struct {
|
||||
Id int `gorm:"primary_key;AUTO_INCREMENT"`
|
||||
Id int `gorm:"primary_key;autoIncrement;"`
|
||||
ChapterId int
|
||||
Url string
|
||||
Name string
|
||||
Number string
|
||||
@@ -11,7 +12,7 @@ type Chapter struct {
|
||||
|
||||
func NewChapter(id int, mangaId int, url string, name string, number string, timeStampUnix int64) Chapter {
|
||||
return Chapter{
|
||||
Id: id,
|
||||
ChapterId: id,
|
||||
Url: url,
|
||||
Name: name,
|
||||
Number: number,
|
||||
|
||||
Reference in New Issue
Block a user