Game Prize

This commit is contained in:
efrilm
2025-09-18 01:07:13 +07:00
parent 757d9f524a
commit 7252c05569
11 changed files with 1181 additions and 2 deletions
+35
View File
@@ -0,0 +1,35 @@
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
}