[torrents]
id
item_id
item_type
file
id item_id item_type file
1 2 books file1
2 3 games file2
3 3 movies file3
[books]
id
name
author
[games]
id
name
company
[movies]
name
date
Producer
[torrents]
id
item_id
item_type
file
id item_id item_type file
1 2 books file1
2 3 games file2
3 3 movies file3
[books]
id
name
author
[games]
id
name
company
[movies]
name
date
Producer
ArtosЗачем в таблице torrents поле types?
если вы считаете что структура БД торрентов неверна, рад буду услышать замечания