export type AdminRiskPoolListMeta = {
  current_page: number;
  per_page: number;
  total: number;
  last_page: number;
};

export type AdminRiskPoolRow = {
  normalized_number: string;
  total_cap_amount: number;
  locked_amount: number;
  remaining_amount: number;
  sold_out_status: number;
  is_sold_out: boolean;
  usage_ratio: number | null;
  version: number;
};

export type AdminRiskPoolListData = {
  draw_id: number;
  draw_no: string;
  currency_code: string | null;
  items: AdminRiskPoolRow[];
  meta: AdminRiskPoolListMeta;
};

export type AdminRiskPoolDetailLogRow = {
  id: number;
  action_type: string;
  amount: number;
  source_reason: string | null;
  ticket_item_id: number | null;
  ticket_no: string | null;
  play_code: string | null;
  player_id: number | null;
  created_at: string | null;
};

export type AdminRiskPoolShowData = {
  draw_id: number;
  draw_no: string;
  currency_code: string | null;
  pool: AdminRiskPoolRow;
  logs: {
    items: AdminRiskPoolDetailLogRow[];
    meta: AdminRiskPoolListMeta;
  };
};
