export type ApiSuccess<T> = {
  success: boolean;
  data: T;
  message: string;
};

export type AuditLog = {
  id: number;
  actor_user_id: number | null;
  actor_username: string;
  action: string;
  entity_type: string;
  entity_id: number | null;
  entity_label: string;
  ip_address: string;
  user_agent: string;
  before_data: unknown;
  after_data: unknown;
  metadata_data: Record<string, unknown>;
  created_at: string;
};

export type AuditLogListResponse = {
  items: AuditLog[];
  total: number;
  page: number;
  page_size: number;
};

export type ActivityFeedItem = {
  id: number;
  title: string;
  description: string;
  actor: string;
  entity_type: string;
  entity_id: number | null;
  created_at: string;
};
