# Veritabanı Özeti

## Kimlik

- `users`
- `sessions`
- `user_game_state`

## Ekonomi

- `ledger_accounts`
- `ledger_transactions`
- `ledger_entries`
- `conversion_records`
- `settings`

## Oyun

- `vip_plans`
- `user_boosters`
- `quests`
- `quest_progress`
- `game_events`
- `wheel_segments`
- `wheel_spins`
- `ad_sessions`
- `referrals`

## Yönetim

- `audit_logs`
- `idempotency_responses`

## Kritik unique constraint'ler

- Kullanıcı referral code
- External/Telegram identity
- Ledger idempotency key
- Game event idempotency key
- Wheel spin idempotency key
- Conversion idempotency key
- Referral invitee
- Quest progress `(user, quest, period)`
- Generic idempotency `(scope, key)`
