export interface DatabaseViolation { table: string; column: string; pattern: string; severity: 'critical' | 'high' | 'medium' | 'low'; description: string; examples: string[]; affectedRows: number; confidence: number; reasoning?: string; } export interface DatabaseScanResult { totalViolations: number; violations: DatabaseViolation[]; tablesScanned: number; rowsAnalyzed: number; scanDuration: number; scannedAt: Date; scanType?: 'database'; wasPartial?: boolean; totalViolationsBeforeTruncation?: number; } export interface MockPatternDetector { name: string; description: string; severity: 'critical' | 'high' | 'medium' | 'low'; test: (value: any) => boolean; getExamples?: (value: any) => string; }