I want to store a file structure similar to Google Drive. I can create files of several types (doc, spreadsheet, ..). Details of each file are stored in their table.
For example:
File [id, name, file_id]
Doc [file_id, title, a, b, c]
Spreadsheet [file_id, title, d, e]
How to do it right?