Table names are recorded explicitly in your app’s Database Schema. Here’s one way to get that information, and more:
You can find table ids in exported_table_schema. Check these against the row’s id, and you should spot a pattern.
This correspondence is also undocumented, and subject to change without notice. So I wouldn’t rely on either one for too long. You may want to add your own bookkeeping columns, if you need to.