DBML Schema
DBML to the rescue
Last updated
DBML to the rescue
Last updated
We are now ready to use the plugin that we have installed. The DBML Schema is an element that shows up in your UI Builder toolbox as shown below.
Create a new page within your app and drag the element called "DBML Schema" onto the page. Note: This page should be a temporary page or an "admin" page that is not accessible to users of your app.
Your page should now look something like this:
That's it, you are ready to generate DBML! Run your app and view this page which you can accomplish by clicking "Preview" in the top right corner of your Bubble app.
You should end up with a page like shown below. It will have a button that says "Copy to Clipboard" and the DBML text below it.
Note: If some of your tables look missing or the text looks cutoff, you can adjust the element settings to allow the content to grow.
Click the "Copy to Clipboard" button (or select the text on the page and copy it to your clipboard manually.
Finally, navigate to and paste the contents of your clipboard into the left portion of the screen. Your Data Type diagram will show up on the right side of the screen.