schema defination moved to model's file; Fixes #4