Use a second database for custom content entities

Hi all,

I’m looking for the way to store my custom content entities in a different database than the Drupal one.

I know that I can use the syntax base_table = "database.tablename" in my entity definition, but with this I only get the main entity table in the second database. If I create a new field using the Manage fields page the table for this field is created in the Drupal default database.

Thanks in advance.

Drupal version: