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.

24 lines
515 B

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