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.
35 lines
726 B
35 lines
726 B
package initialize
|
|
|
|
import (
|
|
"gin-vue-admin/global"
|
|
"gin-vue-admin/model"
|
|
"os"
|
|
)
|
|
|
|
// 注册数据库表专用
|
|
func DBTables() {
|
|
db := global.GVA_DB
|
|
err := db.AutoMigrate(
|
|
model.SysUser{},
|
|
model.SysAuthority{},
|
|
model.SysApi{},
|
|
model.SysBaseMenu{},
|
|
model.SysBaseMenuParameter{},
|
|
model.JwtBlacklist{},
|
|
model.SysWorkflow{},
|
|
model.SysWorkflowStepInfo{},
|
|
model.SysDictionary{},
|
|
model.SysDictionaryDetail{},
|
|
model.ExaFileUploadAndDownload{},
|
|
model.ExaFile{},
|
|
model.ExaFileChunk{},
|
|
model.ExaSimpleUploader{},
|
|
model.ExaCustomer{},
|
|
model.SysOperationRecord{},
|
|
)
|
|
if err != nil {
|
|
global.GVA_LOG.Error("register table failed", err)
|
|
os.Exit(0)
|
|
}
|
|
global.GVA_LOG.Debug("register table success")
|
|
}
|