export interface AuditLog {
  id: number;
  organization_id: string | null;
  user_id: string | null;
  user_name: string | null;
  user_email: string | null;
  module_name: string;
  action: string;
  entity_name: string | null;
  entity_id: string | null;
  old_value: Record<string, unknown> | null;
  new_value: Record<string, unknown> | null;
  ip_address: string | null;
  user_agent: string | null;
  details: string;
  created_at: string;
}

export interface AuditLogFilters {
  page?: number;
  limit?: number;
  search?: string;
  user?: string;
  module?: string;
  action?: string;
  dateFrom?: string;
  dateTo?: string;
  sort?: string;
}

export interface AuditLogsResponse {
  success: boolean;
  time: string;
  message: string;
  total_audit_logs: number;
  offset: number;
  limit: number;
  audit_logs: AuditLog[];
}
