Files
ai-app-sql/types.ts
2025-12-09 22:38:08 +08:00

23 lines
467 B
TypeScript

export type DatabaseType = 'MySQL' | 'PostgreSQL' | 'Oracle' | 'SQL Server' | 'SQLite' | 'Hive' | 'Dm';
export interface SqlGenerationRequest {
tableStructure: string;
dictionaryData: string;
requirement: string;
databaseType: DatabaseType;
apiKey?: string;
}
export interface HistoryItem {
id: string;
timestamp: number;
sql: string;
}
export enum LoadingState {
IDLE = 'IDLE',
LOADING = 'LOADING',
SUCCESS = 'SUCCESS',
ERROR = 'ERROR',
}