create model and define relationship

This  pull request is for creating Model and define Its relationship.