Change parent attribute to parent_id and make parent property method. Add default parent_id on save.