Is there a way to create an additional database record when user signs up? I know about additionalFields, but it seems to only work with simple fields. What I'm looking for is a little bit different: I am trying to add simple multitenancy to the application, so I want to add "Company Name" field to the sign up form, then create a Tenant record in the database and link user to Tenant.
It would be possible to record company name on user object, then create Tenant after first log in, but it seems hacky... Is there some hook I can call pre/after User creation?