set up models and associations for category