diff --git a/packages/builder/src/components/backend/Datasources/CreateEditRelationshipCopy.svelte b/packages/builder/src/components/backend/Datasources/CreateEditRelationshipCopy.svelte new file mode 100644 index 0000000000..5ab099e61b --- /dev/null +++ b/packages/builder/src/components/backend/Datasources/CreateEditRelationshipCopy.svelte @@ -0,0 +1,271 @@ + + + + + + Tables + + { + fromColumn = tableOptions.find(opt => opt.value === e.detail).label + }} + /> + {#if isManyToOne && fromTable} + + {/if} + { + toColumn = tableOptions.find(opt => opt.value === e.detail).label + }} + /> + {#if isManyToMany} + + {#if fromTable && toTable && throughTable} + + + {/if} + {:else if isManyToOne && toTable} + + {/if} + + Column names + + + Budibase manages SQL relationships as a new column in the table, please + provide a name for these columns. + + + + + {#if originalFromColumnName != null} + Delete + {/if} + + + +