Best way to save user_id in Backend

Hi, I have to store some content in my backend (lets call it posts) which only user should see his own posts. Because of this I have to save keycloak user_id into my mysql table posts and check database of existing user_id. Is there a problem to use this column as string? Or which is best way to do this? How are you doing this?
Thanks and best regards