> For the complete documentation index, see [llms.txt](https://helium.gitbook.io/project/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://helium.gitbook.io/project/creating-data.md).

# Creating Data

Learn how to save data to your tables

## Simple Tables

When inserting data into a table, a form will be created for you. Each input represents one column of the table. When you are finished, click the submit button to add this data to your table.

![](https://1448463599-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LIljqIlXT9egnYmHD26%2F-LJnnGTJmdnpwrecwB6e%2F-LJiiWVTDzo1x2cPSX8b%2Fsimple_form.png?alt=media\&token=05b2540d-1cc2-42e7-8ea7-a48491f343d9)

### Plucking Foreign Keys

On tables with foreign keys, the <img src="https://1448463599-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LIljqIlXT9egnYmHD26%2F-LJnnGTJmdnpwrecwB6e%2F-LJijXa2VDaEdRiEwFoO%2Fsearch_icon.png?alt=media&amp;token=778cb4cf-5170-4e1e-8b47-feb6e0183638" alt="" data-size="line"> **Pluck Button** will pull up a modal Data Table for you to pick a row out of. In the next example, the `ceo_id` column references the Customer table.

{% embed url="<https://gfycat.com/RawAgitatedChinesecrocodilelizard>" %}
The Pluck Button in action
{% endembed %}

## Master and Part Tables

Master and Part Tables are handled by Helium as well. If the chosen table has Part Tables, additional form entries will be created for it. In the next example, Master has two parts: Part and Part2.

![A form for a master table and its parts](https://1448463599-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LIljqIlXT9egnYmHD26%2F-LJnnGTJmdnpwrecwB6e%2F-LJnnp2col78PL5ASUtX%2Fforms_part_empty.png?alt=media\&token=e87b2b36-2099-4546-8bba-a58f7aadbbb2)

A master table always has one entry. A part table has zero or more entries and can be added/removed through the interface. The purple button at the bottom of each card adds an additional entry. The gray button to the right of each entry removes it.

![A part table with two entries added](https://1448463599-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LIljqIlXT9egnYmHD26%2F-LJnoTUf7Vf4ote5Z0gL%2F-LJnortcU0XBpnvnPCKE%2Fforms_add_part.png?alt=media\&token=43c6de1a-594e-4cff-98c8-d27f20cf9c18)

### Binding Constraints

Any foreign key in a part table that references its master table's primary key is considered a binding constraint. In this example, Part's `master` column is a foreign key that references Master's `pk` column. Helium disables these foreign key inputs and updates their values whenever the master table's primary key is updated. Here's an example:

{% embed url="<https://gfycat.com/GrayPitifulChicken>" %}
