The following is the entity diagram