Model associations and indexes.