added purchase model and migration
added purchase views