Error : Cannot describe user. It has 0 columns

Hello I have a problem with this command : “bin/cake bake all users”
I have the following error :

Exception: Cannot describe user. It has 0 columns.
In [C:\wamp64\www\ProjetStocolmoff\app\vendor\cakephp\cakephp\src\Database\Schema\Collection.php, line 102]

2022-01-13 13:50:47 error: [Cake\Database\Exception\DatabaseException] Cannot describe user. It has 0 columns. in C:\wamp64\www\ProjetStocolmoff\app\vendor\cakephp\cakephp\src\Database\Schema\Collection.php on line 102
Stack Trace:

  • C:\wamp64\www\ProjetStocolmoff\app\vendor\cakephp\cakephp\src\ORM\Table.php:513
  • C:\wamp64\www\ProjetStocolmoff\app\vendor\cakephp\bake\src\Command\ModelCommand.php:111
  • C:\wamp64\www\ProjetStocolmoff\app\vendor\cakephp\bake\src\Command\ModelCommand.php:94
  • C:\wamp64\www\ProjetStocolmoff\app\vendor\cakephp\cakephp\src\Console\BaseCommand.php:179
  • C:\wamp64\www\ProjetStocolmoff\app\vendor\cakephp\cakephp\src\Console\CommandRunner.php:334
  • C:\wamp64\www\ProjetStocolmoff\app\vendor\cakephp\cakephp\src\Console\CommandRunner.php:172
  • C:\wamp64\www\ProjetStocolmoff\app\bin\cake.php:12

Community, do you have the solution ?

Make sure you can access your database from within your Cake framework
Make sure in it you have a table called users
And it follows the expected Cake structure, like first field is auto-increment id which is the primary index