---
description: DBML to the rescue
---

# DBML Schema

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.



<figure><img src="https://2267089811-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAsHGvYicNpPP1P51BgJs%2Fuploads%2FjwitLP7sQjlb9KvxvhcP%2FScreenshot%202023-08-11%20at%203.31.40%20PM.png?alt=media&#x26;token=4d35eb95-bc48-4200-a9cc-2f87c06edd44" alt=""><figcaption></figcaption></figure>

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:&#x20;

<figure><img src="https://2267089811-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAsHGvYicNpPP1P51BgJs%2Fuploads%2FNc9Yg6lHvM1ty6jaGNhq%2FScreenshot%202023-08-11%20at%203.36.33%20PM.png?alt=media&#x26;token=1ed357e3-1f8a-450d-87b1-8f4f59c4e08d" alt=""><figcaption></figcaption></figure>

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.&#x20;



<figure><img src="https://2267089811-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAsHGvYicNpPP1P51BgJs%2Fuploads%2FUlmvEQTPTHIVK4SC59eR%2FScreenshot%202023-08-11%20at%203.39.20%20PM.png?alt=media&#x26;token=0d97d8fc-8c38-4408-939d-b900bee56968" alt=""><figcaption></figcaption></figure>

**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.&#x20;

Finally, navigate to [https://dbdiagram.io/d](https://dbdiagram.io/d) 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.

