mirror of
https://github.com/dbgate/dbgate
synced 2024-11-08 04:35:58 +00:00
28 lines
404 B
TypeScript
28 lines
404 B
TypeScript
import type { TableInfo } from 'dbgate-types';
|
|
|
|
export interface FreeTableModel {
|
|
structure: TableInfo;
|
|
rows: any[];
|
|
}
|
|
|
|
export function createFreeTableModel() {
|
|
return {
|
|
structure: {
|
|
columns: [
|
|
{
|
|
columnName: 'col1',
|
|
},
|
|
],
|
|
foreignKeys: [],
|
|
},
|
|
rows: [
|
|
{
|
|
col1: 'val1',
|
|
},
|
|
{
|
|
col1: 'val2',
|
|
},
|
|
],
|
|
};
|
|
}
|