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

15 lines
145 B
Go

package model
import (
"gorm.io/gorm"
)
var db *gorm.DB
func init() {
err := db.AutoMigrate(&UserInfo{})
if err != nil {
panic(err)
}
}