How do I create a table autor
referenced and how do I do the relationship in the same model?:
Example:
Tengo una tabla: Categoria
Campos: categoria_id, nombre, categoria_padre
It translates that a category (parent) can have many sub-categories (daughters) making the reference in the field category_father