Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
AI Tutor
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Salma Mohammed Hamed
AI Tutor
Commits
9be6da83
Commit
9be6da83
authored
Sep 21, 2025
by
SalmaMohammedHamedMustafa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
better dummy data
parent
77aa9fea
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
7 deletions
+19
-7
apply_test_schema.py
self_hosted_env/voice_agent/apply_test_schema.py
+19
-7
No files found.
self_hosted_env/voice_agent/apply_test_schema.py
View file @
9be6da83
...
@@ -31,10 +31,22 @@ CREATE INDEX IF NOT EXISTS idx_students_grade_language ON students(grade, langua
...
@@ -31,10 +31,22 @@ CREATE INDEX IF NOT EXISTS idx_students_grade_language ON students(grade, langua
-- Insert dummy data for testing
-- Insert dummy data for testing
INSERT INTO students (student_id, student_name, grade, language, nationality) VALUES
INSERT INTO students (student_id, student_name, grade, language, nationality) VALUES
-- Arabic Grade 4: One Egyptian, One Saudi
('student_001', 'Ahmed Ali', 4, TRUE, 'EGYPTIAN'),
('student_001', 'Ahmed Ali', 4, TRUE, 'EGYPTIAN'),
('student_002', 'Sara Hassan', 6, FALSE, 'SAUDI'),
('student_002', 'Khalid Al-Rashid', 4, TRUE, 'SAUDI'),
('student_003', 'Mona Adel', 5, TRUE, 'EGYPTIAN'),
('student_004', 'Omar Youssef', 6, FALSE, 'SAUDI')
-- Arabic Grade 6: One Egyptian, One Saudi
('student_003', 'Fatima Hassan', 6, TRUE, 'EGYPTIAN'),
('student_004', 'Nora Al-Zahrani', 6, TRUE, 'SAUDI'),
-- English Grade 5: One Egyptian, One Saudi
('student_005', 'Mona Adel', 5, FALSE, 'EGYPTIAN'),
('student_006', 'Sara Al-Mutairi', 5, FALSE, 'SAUDI'),
-- English Grade 6: One Egyptian, One Saudi
('student_007', 'Omar Youssef', 6, FALSE, 'EGYPTIAN'),
('student_008', 'Abdullah Al-Harbi', 6, FALSE, 'SAUDI')
ON CONFLICT (student_id) DO NOTHING;
ON CONFLICT (student_id) DO NOTHING;
"""
"""
...
@@ -102,7 +114,7 @@ def setup_database(drop_existing_tables: bool = False):
...
@@ -102,7 +114,7 @@ def setup_database(drop_existing_tables: bool = False):
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
# To run with a clean slate, pass True
# To run with a clean slate, pass True
#
setup_database(drop_existing_tables=True)
setup_database
(
drop_existing_tables
=
True
)
# To run without dropping tables (default)
# To run without dropping tables (default)
setup_database
()
#setup_database()
\ No newline at end of file
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment