# TOBE 일반 ERD

```mermaid
erDiagram
    tb_pt["tb_pt<br/>(환자 마스터)"] {
        string pt_no PK
    }
    tb_dept["tb_dept<br/>(부서 마스터)"] {
        string dept_cd PK
    }
    tb_emp["tb_emp<br/>(직원 마스터)"] {
        string emp_no PK
    }
    tb_apnt["tb_apnt<br/>(예약 정보)"] {
        string apnt_no PK
        string pt_no FK
        string dept_cd FK
        string dr_emp_no FK
    }
    tb_ckin["tb_ckin<br/>(체크인 정보)"] {
        string ckin_no PK
        string apnt_no FK
        string pt_no FK
    }
    tb_wait_q["tb_wait_q<br/>(대기열)"] {
        string wait_no PK
        string apnt_no FK
        string pt_no FK
    }
    tb_pt_ntf["tb_pt_ntf<br/>(환자 안내 알림)"] {
        string pt_ntf_no PK
        string pt_no FK
        string apnt_no FK
    }

    tb_pt ||--o{ tb_apnt : books
    tb_dept ||--o{ tb_apnt : receives
    tb_emp ||--o{ tb_apnt : attends
    tb_apnt ||--o{ tb_ckin : starts
    tb_apnt ||--o{ tb_wait_q : queues
    tb_pt ||--o{ tb_pt_ntf : notified
```
