Answer:
Following is given the code for the given question. All the instructions are defined with help of comments. Output is also attached to make the concept clear. I hope it will help you a lot.
Explanation:
Entities and the relationships among entities. The database stores both specify data as well as all the metadata that defines the realtionships between the various packets of data(entities). This could mean programs able to open files, or files that are executable or the last time a file was opened.