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.

26 lines
533 B

  1. package initialize
  2. import (
  3. "gin-vue-admin/global"
  4. "gin-vue-admin/model"
  5. )
  6. // 注册数据库表专用
  7. func DBTables() {
  8. db := global.GVA_DB
  9. db.AutoMigrate(model.SysUser{},
  10. model.SysAuthority{},
  11. model.SysApi{},
  12. model.SysBaseMenu{},
  13. model.JwtBlacklist{},
  14. model.SysWorkflow{},
  15. model.SysWorkflowStepInfo{},
  16. model.SysDictionary{},
  17. model.SysDictionaryDetail{},
  18. model.ExaFileUploadAndDownload{},
  19. model.ExaFile{},
  20. model.ExaFileChunk{},
  21. model.ExaCustomer{},
  22. )
  23. global.GVA_LOG.Debug("register table success")
  24. }