We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1663442 commit 863f871Copy full SHA for 863f871
1 file changed
models/article.go
@@ -5,7 +5,7 @@ import "time"
5
type ArticleSummary struct {
6
Title string `json:"title" gorm:"primaryKey"`
7
UpdateAt *time.Time `json:"updateAt" gorm:"autoUpdateTime;"`
8
- Category string `json:"category"`
+ Category string `json:"category" gorm:"type:VARCHAR(100)"`
9
Summary string `json:"summary" gorm:"type:TEXT"`
10
}
11
0 commit comments