Import files from Drive to a table

Hi people,

I have a table including file fields.
I have files stored in Drive in different folders.
I would like to import these files to the said table according to a certain key.
I don’t want to do in manually one by one (I have thousands of those).

Any good idea how to do it?

My dream would be to have a spreadsheet including a link to the Drive file + the key, and import it as is to the table.