mirror of
https://github.com/dbgate/dbgate
synced 2024-11-15 08:16:28 +00:00
18 lines
398 B
Svelte
18 lines
398 B
Svelte
<script lang="ts">
|
|
import { findForeignKeyForColumn } from 'dbgate-tools';
|
|
|
|
import AppObjectList from './AppObjectList.svelte';
|
|
import * as columnAppObject from './ColumnAppObject.svelte';
|
|
|
|
export let data;
|
|
</script>
|
|
|
|
<AppObjectList
|
|
list={(data.columns || []).map(col => ({
|
|
...data,
|
|
...col,
|
|
foreignKey: findForeignKeyForColumn(data, col),
|
|
}))}
|
|
module={columnAppObject}
|
|
/>
|