how do I make a data relation between tables

I have a doubt, how do I make a data relation between tables when I have a table of Users and another one of payments, this last one (payments) are Records that are created from a json that I receive from the bank in a webhook, how can I relate which payment is from which user? 
Other
4 replies