mirror of
https://github.com/sqlchat/sqlchat.git
synced 2025-07-28 17:53:21 +08:00
feat: implement connection and database types
This commit is contained in:
14
types/database.ts
Normal file
14
types/database.ts
Normal 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;
|
||||
}
|
Reference in New Issue
Block a user