Proje: Okul.com.tr CRM · Hub: Okul.com.tr CRM — Domain
CRM Soru-Cevap Entity
Question Entity
interface Question {
id: number;
name: string; // Soru metni
field_type: string; // Form field tipi
multiple: boolean; // Çoktan seçmeli mi?
school_type_ids: string[]; // Hangi okul tipleri için
school_types: SchoolType[];
answers?: Answer[];
deleted_at: string | null;
}Answer Entity
interface Answer {
id: number;
name: string;
is_correct: boolean;
question_id: number;
deleted_at: string | null;
question?: Question;
}İş Mantığı
Sorular belirli okul tiplerine (school_type_ids) özel olabilir. multiple: true ise çoktan seçmeli, false ise tek seçimli.
is_correct alanı — doğru cevabı işaretler (muhtemelen yetenek sınavları veya çoklu doğru cevap senaryoları için).
Sayfa Yapısı
questions-answers sayfası tek sayfada hem soruları hem de cevapları yönetir:
- Sorular tablosu + filtreleme
- Her sorunun altında cevaplar (dialog ile CRUD)
Filtreler
id,name(text)multiple(select: 1/0)school_type_id(okul tipi)
Related
- okul-entity —
answers, answers.questioninclude - servis-katmani — QuestionService ve AnswerService