fix: change gorm type int to bigint to avoid problem in MySQL (close #54)

This commit is contained in:
JustSong
2023-04-19 13:00:44 +08:00
parent b063f1cbcc
commit 28f064eedf
+1 -1
View File
@@ -17,7 +17,7 @@ type Message struct {
Channel string `json:"channel"`
Token string `json:"token" gorm:"-:all"`
HTMLContent string `json:"html_content" gorm:"-:all"`
Timestamp int64 `json:"timestamp" gorm:"type:int64"`
Timestamp int64 `json:"timestamp" gorm:"type:bigint"`
Link string `json:"link" gorm:"unique;index"`
To string `json:"to" gorm:"column:to"` // if specified, will send to this user(s)
Status int `json:"status" gorm:"default:0"` // pending, sent, failed