how to extend clerk's users metadata

Im wondering how to extend clerk users model by adding some data about the user's role.

I know it can be done but I don't know how I can do it in a way to check once the user sign in it check if the user's email is in a table with a role and add it its correspondent role.

Clerk's docs has an example of adding metadata but the example is unclear for me
https://clerk.com/docs/users/user-metadata
Was this page helpful?