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

13 lines
159 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-11 17:10:38 +08:00
err := orm.DB.AutoMigrate(&UserInfo{})
2022-01-11 04:00:39 +08:00
if err != nil {
panic(err)
}
}