📮 Customer Service Module (cs_*)
Modul CS mengelola ticket layanan pelanggan dan percakapan terkait, mendukung after-sales dan support.
1. Module Purpose
- Menyimpan ticket issue/pertanyaan dari customer.
- Menyimpan riwayat percakapan antar agent dan customer.
2. Tables & Structure
| Tabel | Deskripsi singkat |
|---|---|
cs_ticket | Ticket CS |
cs_ticket_msg | Pesan/komentar di dalam ticket |
3. Key Fields & Relationships
3.1 cs_ticket
- Fields:
company_id,customer_ref_type,customer_ref_id,subject,status,priority,created_by,assigned_to. created_by,assigned_to→core_user.id.
3.2 cs_ticket_msg
- Fields:
ticket_id,sender_user_id,message,created_at. - FK:
ticket_id→cs_ticket.id,sender_user_id→core_user.id.
4. Business Flows
4.1 Ticket Lifecycle
- Ticket dibuat (
cs_ticket) oleh agent atau channel publik. - Agent balas lewat
cs_ticket_msg. - Status ticket berubah (open → in_progress → resolved/closed).
5. Example Reports (SQL)
Contoh SELECT untuk monitoring ticket CS.