Updated Domain\Model to accommodate foreign keys when attempting to draw automatic references in has many relationships