Pull Schema Design from Xform Fields?

I would like to know if there is any way to create a schema design, based on the form fields of a specific form.

I’ve migrated form between different servers and modified the html code for them to work on the different servers, the thing is the schema design appears to have been lost somewhere along the way. I have all the form fields in the designer, but only have a couple of fields in the schema design.

Any help will be appreciated.