code: function askForTableName() {
      if (this.force) {
          return;
      }
  
      const validateTableName = dbh.validateTableName;
      const done = this.async();
  
      this.prompt([
          {
              type: 'input',
              name: 'dbhTableName',
              validate: ((input) => {
                  const prodDatabaseType = this.jhipsterAppConfig.prodDatabaseType;
                  return validateTableName(input, prodDatabaseType);
              }),
              message: 'What is the table name for this entity ?',
              default: this.entityTableName
          }
      ]).then((props) => {
          this.tableNameInput = props.dbhTableName;
          done();
      });
  }
docs: Ask the table name for an entity