Why do plugins that require data fail to start after installation?

Which hook should I use to install a plugin that requires database data, since “after_code” runs before migrations?

You can access the database using a plugin. What are you specifically trying to do?

Yes you clone in after_code section