İletişim ve iş akışı
MongoDB
Conversation (conversations)
| Alan | Anlamı |
|---|---|
| users[] | Katılımcı kopyaları (okunmamış sayısı, lastReadAt dahil) |
| name | Konuşma adı |
| startDate | Başlangıç |
| createdByUserId | Açan |
| adminUserIds | Yönetenler |
| contextType | RETURN, SUPPORT, ORDER, TEAM, PRODUCT |
| contextId | Bağlam kaydı |
| lastMessage | Son mesaj özeti |
| unreadCounts | Okunmamış |
Message (messages)
| Alan | Anlamı |
|---|---|
| conversationId | Konuşma |
| senderUserId | Gönderen |
| message | Metin |
| images, video, voice | Ek |
| type | PROBLEM, REQUEST, SUGGESTION, ANNOUNCEMENT |
| status | Tipe göre durum makinesi (duyuruda yok) |
| quote, forward | Alıntı / iletme |
| editedAt, deletedAt | Düzen / sil |
Sorun: OPEN, IN_PROGRESS, RESOLVED, CLOSED. İstek: PENDING, IN_PROGRESS, COMPLETED, REJECTED. Öneri: PENDING, UNDER_REVIEW, ACCEPTED, REJECTED.
Notification (notifications)
userId, title, message, isRead, data (serbest), zaman damgaları.
Department (departments)
Depo kanban kökü. name, warehouseId, cards[].
Kart: name, color, index, tasks[].
Görev: oluşturan, atananlar, index, color, title, description, dueDate, completedAt, hiddenAt, notes[], history[], images[].
Not: userId, userName, text. Geçmiş: userId, key, value.
UserLog (userLogs)
userId, deviceType, deviceName, code, message, logType, zaman damgaları.