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
584 B

  1. package registTable
  2. import (
  3. "gin-vue-admin/init/initlog"
  4. "gin-vue-admin/model/dbModel"
  5. "gin-vue-admin/model/sysModel"
  6. "github.com/jinzhu/gorm"
  7. )
  8. //注册数据库表专用
  9. func RegistTable(db *gorm.DB) {
  10. db.AutoMigrate(sysModel.SysUser{},
  11. sysModel.SysAuthority{},
  12. sysModel.SysMenu{},
  13. sysModel.SysApi{},
  14. sysModel.SysBaseMenu{},
  15. sysModel.JwtBlacklist{},
  16. sysModel.SysWorkflow{},
  17. sysModel.SysWorkflowStepInfo{},
  18. dbModel.ExaFileUploadAndDownload{},
  19. dbModel.ExaFile{},
  20. dbModel.ExaFileChunk{},
  21. dbModel.ExaCustomer{},
  22. )
  23. log.L.Debug("register table success")
  24. }