Proje: OkulUp · Hub: OkulUp — Domain

Randevu Sistemi

Statüsler

pendingconfirmedcompleted pending veya confirmedcancelled

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

  1. Parent/Teacher randevu oluşturur → pending
  2. Teacher/Staff onaylar → confirmed
  3. Gerçekleşir → teacher completed yapar
  4. İptal: tüm kullanıcılar cancelled yapabilir (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, appointments feature flag
  • Oluşturma: admin + manager + teacher + parent
  • Onaylama/Tamamlama: STAFF
  • İptal: ALL