Create new additional record on sign up api call using new created user_id

Hello ,

Will be really helpfull ifor me if somebody could help me.

In short , on the api /auth/signup . The user is created , but I need in the some moment when the user is created a to create a new record in second table (providers) with the new user_id included.

And I am not sure how to approach it . Do I need to add in the input parameters the table providers. Or I have to create a var for the the user_id .

In short I see in some moment there return user as self . So on the next step I need to take this user and create a new record in providers using this new created user id .

I have looked in the documentation , but did't find anything ,

Thank you in advance

Kind Regards

Dimitar

4 replies