Skip to content

Commit 863f871

Browse files
committed
chore: fix database init error
1 parent 1663442 commit 863f871

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

models/article.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import "time"
55
type ArticleSummary struct {
66
Title string `json:"title" gorm:"primaryKey"`
77
UpdateAt *time.Time `json:"updateAt" gorm:"autoUpdateTime;"`
8-
Category string `json:"category"`
8+
Category string `json:"category" gorm:"type:VARCHAR(100)"`
99
Summary string `json:"summary" gorm:"type:TEXT"`
1010
}
1111

0 commit comments

Comments
 (0)