> ## Documentation Index
> Fetch the complete documentation index at: https://docs.flextell.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Kullanıcılar

> User modeli — hesap yönetimi, davet, aktif/pasif, 2FA.

Kullanıcı (`User`), Flextell paneline erişen kişidir. Bir kullanıcı birden fazla firmaya farklı rollerle erişebilir.

## Yapı

| Alan                                 | Açıklama                |
| ------------------------------------ | ----------------------- |
| `name`, `email`, `phone`             | Kimlik                  |
| `title`                              | Unvan                   |
| `avatar_url`                         | Profil fotoğrafı        |
| `is_active`                          | Aktif/pasif             |
| `language`                           | Arayüz dili (TR/EN)     |
| `emergency_contact_*`, `blood_group` | Doktor için ek bilgiler |

## Davet akışı

```mermaid theme={null}
sequenceDiagram
    participant A as Super Admin
    participant F as Flextell
    participant U as Yeni Kullanıcı

    A->>F: Kullanıcılar → Davet Et
    A->>F: E-posta + rol seç
    F->>U: Davet e-postası
    U->>F: Linkle parolasını belirler
    F-->>A: Aktif kullanıcı
```

Davet linki tek kullanımlıktır ve süresi vardır; süresi geçen davet panel'den yeniden gönderilir.

## Roller

Her kullanıcı firma içinde bir veya daha fazla role sahiptir. Detay: [Roller](/documentation/system/roles).

## İki adımlı doğrulama (2FA)

`TwoFactorAuthenticationService` üzerinden authenticator app (TOTP), SMS ve yedek kodlar desteklenir. Detay: [Profil](/documentation/profile/overview).

## Audit log

Kullanıcı üzerindeki tüm değişiklikler (Spatie ActivityLog ile) [Aktivite Logları](/documentation/system/activity-log)'na düşer.

## Aktif/pasif yapma

| Durum             | Davranış                                                    |
| ----------------- | ----------------------------------------------------------- |
| `is_active=true`  | Panele girebilir, API kullanabilir                          |
| `is_active=false` | Giriş engellenir; verisi korunur, yeniden aktive edilebilir |

## Sonraki adımlar

<CardGroup cols={2}>
  <Card title="Roller" icon="shield-halved" href="/documentation/system/roles">
    Kullanıcı yetkileri.
  </Card>

  <Card title="Aktivite Logları" icon="clipboard-list" href="/documentation/system/activity-log">
    Audit log.
  </Card>
</CardGroup>
