Execute a sql query in register function

System Information
  • Strapi Version: 4
  • Operating System:
  • Database: mysql
  • Node Version:
  • NPM Version:
  • Yarn Version:

I need to run sql query before content type generation. So I am using register function for this. Bootstrap function is too late to me. But strapi.db is undefined in register. How can I access to db?