export type LogLevel = 'FATAL' | 'ERROR' | 'WARN' | 'INFO' | 'DEBUG' | 'TRACE';

export interface LogEntry {
  id: number;
  level: LogLevel;
  event: string;
  details: string;
  userId: number;
  duration?: number;
  createdAt: string;
}

export interface LogQuery {
  page: number;
  limit: number;
  level?: LogLevel;
  event?: string;
  from?: string;
  to?: string;
  search?: string;
}

export interface LogPage {
  data: LogEntry[];
  page: number;
  limit: number;
  total: number;
  hasNextPage: boolean;
}
