table structure tab

This commit is contained in:
Jan Prochazka
2021-03-18 11:51:19 +01:00
parent b7663e2e06
commit 0524b4c5b6
11 changed files with 265 additions and 16 deletions

View File

@@ -0,0 +1,17 @@
<script lang="ts">
import FontIcon from '../icons/FontIcon.svelte';
export let constraintType;
export let constraintName;
function getConstraintIcon(type) {
if (type == 'primaryKey') return 'img primary-key';
if (type == 'foreignKey') return 'img foreign-key';
return null;
}
</script>
<span class="nowrap">
<FontIcon icon={getConstraintIcon(constraintType)} />
{constraintName}
</span>