chatbolt-dev / apps /agent-service /libs /shared /src /entities /db-connection.entity.d.ts
MTayyaBH
Refactor code structure for improved readability and maintainability
d714fad
Raw
History Blame Contribute Delete
554 Bytes
import { Agent } from './agent.entity';
export declare enum DbType {
POSTGRES = "postgres",
MYSQL = "mysql",
MSSQL = "mssql"
}
export declare class DbConnection {
id: string;
agent_id: string;
label: string;
db_type: string;
connection_string_encrypted: string;
schema_cache: Record<string, any>;
schema_cached_at: Date;
allowed_tables: {
tables: string[];
columns: Record<string, string[]>;
} | null;
is_active: boolean;
created_at: Date;
updated_at: Date;
agent: Agent;
}