Custom doctype inside app goes missing

Hi,

We had created an app on a client site and this app also had a custom doctype created on that. Due to some reason, the site crashed and we had to restore it back using the backups that we had. Though, the site is up and running now, the doctype seems to have gone missing. We are getting this following error when I am trying to open the doctype:

OSError: [Errno 2] No such file or directory: ‘/home/user1/frappe-bench/apps/nhance/nhance/nhance/doctype/proposal_stage’

What could have gone wrong? And, where should we create the doctype and how should it be saved?

Regards
Uma

I believe you have removed the files for the doctype. Can you share your setup? How do you create custom doctypes? Did you create in your local first and push it to a repository?

Actually, the custom doctype was created on the local production and not
pushed to repository at all.

Regards
Uma

Just to clarify, this path doesnt exist already right? What IDE are you using? you might an history viewer where you can revert. But I would really suggest next time that you push it to a repository for backup