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.

21 lines
443 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. dbModel.ExaFileUploadAndDownload{},
  16. sysModel.SysWorkflow{},
  17. sysModel.SysWorkflowStepInfo{},
  18. )
  19. }