Proje: OkulUp · Hub: OkulUp — Domain
Randevu Sistemi
Statüsler
pending → confirmed → completed
pending veya confirmed → cancelled
Veri Modeli
Appointment:
- teacher_id, parent_id, student_id (opsiyonel)
- title, description, location, notes
- appointment_date, start_time, end_time
- status, cancelled_by, cancellation_reason
Akışlar
- Parent/Teacher randevu oluşturur →
pending - Teacher/Staff onaylar →
confirmed - Gerçekleşir → teacher
completedyapar - İptal: tüm kullanıcılar
cancelledyapabilir (cancellation_reason ile)
API
GET /api/appointments/options → seçim verileri (teacher listesi vb.)
GET /api/appointments/teacher/:id/availability → öğretmen müsaitlik
GET /api/appointments → liste (scope: upcoming|past|cancelled)
POST /api/appointments → oluştur
GET /api/appointments/:id → detay
PUT /api/appointments/:id → güncelle
POST /api/appointments/:id/cancel → iptal
Yetki
- Görüntüleme: ALL,
appointmentsfeature flag - Oluşturma: admin + manager + teacher + parent
- Onaylama/Tamamlama: STAFF
- İptal: ALL
Related
- permission-system — appointments permission’ları
- mobile-config-feature-flags — appointments feature flag