mysql – How to recover files downloaded by a user with the help of a foreign key

I have two tables, users and files,


Id, first name, last name, email, password


ID, file name, description, user ID

The identifier of the user in the files is a foreign key that relates to the user identifier

I'm trying to bring up the files of the users in the files tab when it connects