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.
29 lines
624 B
29 lines
624 B
package initialize
|
|
|
|
import (
|
|
"gin-vue-admin/global"
|
|
"gin-vue-admin/model"
|
|
)
|
|
|
|
// 注册数据库表专用
|
|
func DBTables() {
|
|
db := global.GVA_DB
|
|
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{},
|
|
)
|
|
global.GVA_LOG.Debug("register table success")
|
|
}
|