Implementing One-to-Many relationship

Let’s say we have to implement a relationship between a Folder and a File.

One folder can contain many files.

Either we can have the file_id on the folder