You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
370 B

package registTable
import (
"github.com/jinzhu/gorm"
"main/model/dbModel"
)
//注册数据库表专用
func RegistTable(db *gorm.DB) {
db.AutoMigrate(dbModel.User{},
dbModel.Authority{},
dbModel.Menu{},
dbModel.Api{},
dbModel.ApiAuthority{},
dbModel.BaseMenu{},
dbModel.FileUploadAndDownload{},
dbModel.Workflow{},
dbModel.WorkflowStepInfo{},
)
}