add purchase table and model