Generated categories model
many to many relation maintained