Add language assistant settings and related features: Introduce new routes and controller methods for managing language assistant settings, including retrieval and saving of LLM configurations. Update navigation structure to include language assistant options. Enhance vocab course model to support additional learning attributes such as learning goals and core patterns. Update SQL scripts to reflect new database schema changes for vocab courses. Improve localization for language assistant settings in German and English.
This commit is contained in:
@@ -44,6 +44,11 @@ CREATE TABLE IF NOT EXISTS community.vocab_course_lesson (
|
||||
lesson_type TEXT DEFAULT 'vocab',
|
||||
audio_url TEXT,
|
||||
cultural_notes TEXT,
|
||||
learning_goals JSONB,
|
||||
core_patterns JSONB,
|
||||
grammar_focus JSONB,
|
||||
speaking_prompts JSONB,
|
||||
practical_tasks JSONB,
|
||||
target_minutes INTEGER,
|
||||
target_score_percent INTEGER DEFAULT 80,
|
||||
requires_review BOOLEAN DEFAULT false,
|
||||
@@ -219,7 +224,12 @@ INSERT INTO community.vocab_grammar_exercise_type (name, description) VALUES
|
||||
('sentence_building', 'Satzbau-Übung'),
|
||||
('transformation', 'Satzumformung'),
|
||||
('conjugation', 'Konjugations-Übung'),
|
||||
('declension', 'Deklinations-Übung')
|
||||
('declension', 'Deklinations-Übung'),
|
||||
('dialog_completion', 'Dialogergänzung'),
|
||||
('situational_response', 'Situative Antwort'),
|
||||
('pattern_drill', 'Muster-Drill'),
|
||||
('reading_aloud', 'Lautlese-Übung'),
|
||||
('speaking_from_memory', 'Freies Sprechen')
|
||||
ON CONFLICT (name) DO NOTHING;
|
||||
|
||||
-- ============================================
|
||||
@@ -230,6 +240,16 @@ COMMENT ON COLUMN community.vocab_course_lesson.lesson_type IS
|
||||
'Type: vocab, grammar, conversation, culture, review';
|
||||
COMMENT ON COLUMN community.vocab_course_lesson.target_minutes IS
|
||||
'Zielzeit in Minuten für diese Lektion';
|
||||
COMMENT ON COLUMN community.vocab_course_lesson.learning_goals IS
|
||||
'Lernziele der Lektion als JSON-Array';
|
||||
COMMENT ON COLUMN community.vocab_course_lesson.core_patterns IS
|
||||
'Kernmuster und Beispielsätze als JSON-Array';
|
||||
COMMENT ON COLUMN community.vocab_course_lesson.grammar_focus IS
|
||||
'Grammatik-Impulse als JSON-Array von Objekten';
|
||||
COMMENT ON COLUMN community.vocab_course_lesson.speaking_prompts IS
|
||||
'Sprechaufträge als JSON-Array von Objekten';
|
||||
COMMENT ON COLUMN community.vocab_course_lesson.practical_tasks IS
|
||||
'Praxisaufgaben als JSON-Array von Objekten';
|
||||
COMMENT ON COLUMN community.vocab_course_lesson.target_score_percent IS
|
||||
'Mindestpunktzahl in Prozent zum Abschluss (z.B. 80)';
|
||||
COMMENT ON COLUMN community.vocab_course_lesson.requires_review IS
|
||||
|
||||
Reference in New Issue
Block a user