updated models to include foreign keys to indexReference
updated models to include foreign keys to indexReference