feat: implement connection and database types

This commit is contained in:
steven
2023-03-22 16:32:12 +08:00
parent 90a6fec65c
commit 5dc3c05a2a
11 changed files with 58 additions and 17 deletions

14
types/database.ts Normal file
View File

@ -0,0 +1,14 @@
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;
}