generate category model and migration