I try to create a database design to suit my needs.
I would really appreciate any of your recommendation for my following table design:

I have two components: Categories and Content.
Whenever I create a new item for any of those two components, a new route item should be created also, with relations like shown on visual diagram.
Red and Blue highlights are identical with their colors.
Is it good practice to have the following columns in those tables like ci_routes.refid, ci_categories.slug and ci_content.slug ?
==== UPDATED ====
The business logic for my app works like this:
- I create a category item with html form
- On form submit, app will create a new route to return a newly created
ci_routes.id - Category will be created and filled with all info including
ci_categories.rid. - Then it updates yet again the
ci_routeswith the all information where theci_routes.slugis identical toci_categories.slugandci_routes.routewill be based on configured setting something like$path/$category_idwhere$path = 'category'
Whenever I decide to change $path to something like $path = 'node', all my routes should be purged and recreated based on new settings.
Pls correct me If I made some logical mistake somewhere in my logic