Initial test, but meh

This commit is contained in:
Pablu23
2024-05-21 11:56:14 +02:00
parent 0904a1214e
commit 20ad56b155
6 changed files with 63 additions and 36 deletions

View File

@@ -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,