mirror of
https://github.com/flipped-aurora/gin-vue-admin.git
synced 2026-09-21 20:35:16 +00:00
update: The code structure is finished, and the project can run successfully
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
package initialize
|
||||
|
||||
import (
|
||||
"gin-vue-admin/global"
|
||||
"gin-vue-admin/model"
|
||||
)
|
||||
|
||||
//注册数据库表专用
|
||||
func DBTables() {
|
||||
db := global.GVA_DB
|
||||
db.AutoMigrate(model.SysUser{},
|
||||
model.SysAuthority{},
|
||||
model.SysMenu{},
|
||||
model.SysApi{},
|
||||
model.SysBaseMenu{},
|
||||
model.JwtBlacklist{},
|
||||
model.SysWorkflow{},
|
||||
model.SysWorkflowStepInfo{},
|
||||
model.ExaFileUploadAndDownload{},
|
||||
model.ExaFile{},
|
||||
model.ExaFileChunk{},
|
||||
model.ExaCustomer{},
|
||||
)
|
||||
global.GVA_LOG.Debug("register table success")
|
||||
}
|
||||
Reference in New Issue
Block a user