2024-12-18 22:27:44 +01:00
|
|
|
import type { DynamicQueryStructure } from "../../types/dynamicQueries";
|
|
|
|
|
2024-12-12 16:34:03 +01:00
|
|
|
export interface TableMeta {
|
|
|
|
tableName: string;
|
|
|
|
columns: Array<{ column: string; type: string }>;
|
|
|
|
relations: Array<{ column: string; relationType: string; referencedTableName: string }>;
|
|
|
|
}
|
2024-12-14 17:02:34 +01:00
|
|
|
|
|
|
|
export interface QueryViewModel {
|
|
|
|
id: number;
|
2024-12-18 22:27:44 +01:00
|
|
|
title: string;
|
|
|
|
query: string | DynamicQueryStructure;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface CreateQueryViewModel {
|
|
|
|
title: string;
|
|
|
|
query: string | DynamicQueryStructure;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface UpdateQueryViewModel {
|
|
|
|
id: number;
|
|
|
|
query: string | DynamicQueryStructure;
|
2024-12-14 17:02:34 +01:00
|
|
|
}
|