Security
Tenant-scoped progress query
This SQLite-style SELECT uses bound positional parameters; supply tenant/member from a verified server session and validate the lesson identifier. Other drivers use different placeholder syntax. A scoped query is one part of authorization, not a replacement for session or membership checks. Source: https://www.sqlite.org/lang_update.html. Documentation-reviewed illustrative draft; installed declarations and runtime not verified.
Formal Syntax & Structure
nextjs syntaxnextjs
WHERE tenant_id = ? AND member_id = ? AND lesson_id = ?Working Example
Example Snippetnextjs
SELECT lesson_id, percent, revisionFROM progressWHERE tenant_id = ? AND member_id = ? AND lesson_id = ?;