lila/packages/db
lila b59fac493d feat(api): implement game terms query with double join
- Add double join on translations for source/target languages
- Left join term_glosses for optional source-language glosses
- Filter difficulty on target side only (intentionally asymmetric:
  a word's difficulty can differ between languages, and what matters
  is the difficulty of the word being learned)
- Return neutral field names (sourceText, targetText, sourceGloss)
  instead of quiz semantics; service layer maps to prompt/answer
- Tighten term_glosses unique constraint to (term_id, language_code)
  to prevent the left join from multiplying question rows
- Add TODO for ORDER BY RANDOM() scaling post-MVP
2026-04-10 18:02:03 +02:00
..
drizzle updating schema 2026-04-07 01:03:22 +02:00
src feat(api): implement game terms query with double join 2026-04-10 18:02:03 +02:00
drizzle.config.ts chore(db): add drizzle migration pipeline with empty schema 2026-03-24 11:04:40 +01:00
package.json extraction datafiles with cefr annotations 2026-04-08 13:09:47 +02:00
tsconfig.json formatting 2026-03-31 10:06:06 +02:00
vitest.config.ts chore: configure vitest with project-based setup and coverage 2026-03-20 19:25:00 +01:00