For those in a technology stack using JavaScript, and are using the Ottoman ODM, Hackolade also provides the option to export a JavaScript Mongoose schema file for the collection definition via the menu option Tools > Forward-Engineering > Ottoman Schema: