icechen e033b49ba1
All checks were successful
continuous-integration/drone/push Build is passing
feat: AutoMigrate user_token table
2022-01-14 00:49:01 +08:00

13 lines
173 B
Go

package model
import (
"git.icechen.cn/monorepo/backend/pkg/orm"
)
func init() {
err := orm.DB.AutoMigrate(&UserInfo{}, &UserToken{})
if err != nil {
panic(err)
}
}