backend/app/zeus/service/lark/internal/model/init.go

13 lines
173 B
Go
Raw Normal View History

2022-01-11 04:00:39 +08:00
package model
import (
2022-01-11 17:10:38 +08:00
"git.icechen.cn/monorepo/backend/pkg/orm"
2022-01-11 04:00:39 +08:00
)
func init() {
2022-01-14 00:49:01 +08:00
err := orm.DB.AutoMigrate(&UserInfo{}, &UserToken{})
2022-01-11 04:00:39 +08:00
if err != nil {
panic(err)
}
}