Fileid as foreign key

Is it good practice to use fileid from filecache table as foreign id? Or filecache can be recreated and all fileids will be dropped?

cc @rullzer @icewind

not a file system expert but I think the file IDs are persistent.

The “file cache” is more of a “file index”, actually.

Hope that helps.