Spaces:
Configuration error
Configuration error
File size: 2,769 Bytes
e46d575 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 | -- ============================================================
-- MathMind AI β Seed Data
-- Run AFTER 02_rls.sql
-- ============================================================
-- ββ Badge definitions ββββββββββββββββββββββββββββββββββββββ
-- condition_key must match keys in backend/routers/badges.py BADGE_CONDITIONS
insert into public.badges (name, emoji, condition_key, description) values
(
'First Try Champion',
'π',
'first_pass',
'Passed your first mini-test β you''re officially a MathMind champion!'
),
(
'Getting Started',
'π',
'five_sessions',
'Completed 5 learning sessions β the journey has begun!'
),
(
'Math Explorer',
'π',
'ten_sessions',
'Completed 10 sessions β you are truly exploring mathematics!'
),
(
'On Fire',
'π₯',
'streak_5',
'Maintained a 5-day learning streak β you''re on fire!'
),
(
'Perfect Score',
'π―',
'perfect_score',
'Scored 100% on a mini-test β flawless!'
)
on conflict (name) do nothing;
-- ββ Sample math topics (for reference / future topic picker UI) βββββββββββββ
-- This is a reference table only β not used by the app logic directly.
-- Uncomment and extend if you add a topic browser feature.
/*
create table if not exists public.sample_topics (
id uuid primary key default gen_random_uuid(),
grade smallint not null,
topic text not null
);
insert into public.sample_topics (grade, topic) values
-- Grade 6
(6, 'Fractions and mixed numbers'),
(6, 'Ratios and proportions'),
(6, 'Area and perimeter'),
(6, 'Introduction to negative numbers'),
-- Grade 7
(7, 'Linear equations'),
(7, 'Percentages and discounts'),
(7, 'Angles and triangles'),
(7, 'Introduction to probability'),
-- Grade 8
(8, 'Systems of linear equations'),
(8, 'Pythagorean theorem'),
(8, 'Functions and graphs'),
(8, 'Scientific notation'),
-- Grade 9
(9, 'Quadratic equations'),
(9, 'Factoring polynomials'),
(9, 'Introduction to trigonometry'),
(9, 'Inequalities'),
-- Grade 10
(10, 'Trigonometric ratios'),
(10, 'Circle theorems'),
(10, 'Sequences and series'),
(10, 'Probability and statistics'),
-- Grade 11
(11, 'Logarithms and exponentials'),
(11, 'Binomial theorem'),
(11, 'Vectors'),
(11, 'Differentiation introduction'),
-- Grade 12
(12, 'Integration'),
(12, 'Complex numbers'),
(12, 'Matrices'),
(12, 'Permutations and combinations');
*/
|