Fixes index creation when having a schema
Update peewee.py
changed to model_class._as_entity()
Merge pull request #304 from giohappy/master

Fixes index creation problems with schema