import { Game } from './game'

export interface GamePrize {
  id: string // uuid
  game_id: string // uuid
  name: string
  weight: number
  stock: number
  max_stock?: number
  threshold?: number // int64 → number
  fallback_prize_id?: string // uuid
  metadata: Record<string, any>
  game?: Game // relasi ke GameResponse
  fallback_prize?: GamePrize // self reference
  created_at: string // ISO datetime
  updated_at: string // ISO datetime
}

export interface GamePrizes {
  data: GamePrize[]
  total_count: number
  page: number
  limit: number
  total_pages: number
}

export interface GamePrizeRequest {
  game_id: string // uuid
  name: string
  weight: number // min 1
  stock: number // min 0
  max_stock?: number // optional
  threshold?: number // optional (int64 → number in TS)
  fallback_prize_id?: string // optional uuid
}

export interface GamePrizeRequest {
  game_id: string // uuid
  name: string
  weight: number // min 1
  stock: number // min 0
  max_stock?: number // optional
  threshold?: number // optional (int64 → number in TS)
  fallback_prize_id?: string // optional uuid
}
