---
# System prepended metadata

title: Contract

---


```mermaid
erDiagram
    
    EKYC_veya_Kredi ||--o{ CONTRACT  : Contract_Init
    
    CONTRACT ||--o{ ONLINE_DOCUMENT  : online_documents
    CONTRACT ||--o{ OFFLINE_DOCUMENT  : offline_documents
    CONTRACT ||--o{ COURRIER_TASK : courrier_tasks
    
```



## contract Sureci

```mermaid
stateDiagram-v2
    [*] --> draft : start
    draft --> active : call-subprocess(auto) { online-Document, offline-Document, courrier}
    active --> active : upload, online-signed, add-document, cancel-courrier, assign-courrier
    active --> completed : complete-all(auto)
```

## online-Document Sureci

```mermaid
stateDiagram-v2
    [*] --> draft : start
    draft --> active : render-document(auto)
    active --> approved : approve
    active --> rejected : reject
    approved --> approved : approve
  
```


## offline-Document Sureci

```mermaid
stateDiagram-v2
    [*] --> draft : start
    draft --> ready : render-document(auto)
    draft --> ready : no-render(auto)
    ready --> active : upload
    active --> control : submit
    control --> rejected : reject
    control --> approved : approve
  ```

## courrier Sureci
```mermaid
  stateDiagram-v2
    [*] --> draft : start
    draft --> active : render-document(auto)
    active --> active : upload
    active --> control : submit
    active --> canceled : cancel
```

