refactor
add categories model
Добавлены связи
add categories controller
change category to resource