export type AdminPlayerWalletRow = {
  wallet_type: string;
  currency_code: string;
  balance: number;
  frozen_balance: number;
  available_balance: number;
  status: number;
};

export type AdminPlayerRow = {
  id: number;
  site_code: string;
  site_player_id: string;
  username: string | null;
  nickname: string | null;
  default_currency: string;
  status: number;
  last_login_at: string | null;
  created_at: string;
  wallets: AdminPlayerWalletRow[];
};

export type AdminPlayerListData = {
  items: AdminPlayerRow[];
  meta: {
    current_page: number;
    per_page: number;
    total: number;
    last_page: number;
  };
};

export type AdminPlayerCreatePayload = {
  site_code: string;
  site_player_id: string;
  username?: string | null;
  nickname?: string | null;
  default_currency?: string;
  status?: number;
};

export type AdminPlayerUpdatePayload = {
  username?: string;
  nickname?: string | null;
  default_currency?: string;
  status?: number;
};

export type AdminPlayerDeleteResult = {
  deleted: boolean;
};
