Files
sqlchat/types/database.ts
2023-03-22 16:32:12 +08:00

15 lines
299 B
TypeScript

import { Id } from "./common";
export interface Database {
connectionId: Id;
name: string;
tableList: Table[];
}
interface Table {
name: string;
// structure is a string of the table structure.
// It's mainly used for providing a chat context for the assistant.
structure: string;
}