No description
Find a file
stirgpea 98598eb6cf feat: add SQLite database schema and documentation (#2)
Adds internal/storage/schema.sql and updates README.md with DB schema and dynamic priority calculation strategy.

Co-authored-by: StirGpea <stir@openclaw.local>
Reviewed-on: #2
Co-authored-by: stirgpea <stjrgpea@wivziv.com>
Co-committed-by: stirgpea <stjrgpea@wivziv.com>
2026-08-21 13:50:38 +02:00
internal/storage feat: add SQLite database schema and documentation (#2) 2026-08-21 13:50:38 +02:00
.gitignore feat: add initial project structure and .gitignore (#1) 2026-08-21 10:28:27 +02:00
README.md feat: add SQLite database schema and documentation (#2) 2026-08-21 13:50:38 +02:00

PieVR

Database Schema & Core Concepts

  • Storage: SQLite (storage/ directory, ignored in .gitignore).
  • Tables:
    • questions: stores core question data (id, type, question_text, payload as JSON, active, last_asked_at, streak, times_asked, times_correct, created_at).
    • tags: tags for granular and cross-cutting topic selection (id, name).
    • question_tags: many-to-many relationship between questions and tags.
  • Priority & Spaced Repetition: No hardcoded calendar intervals. Priorities and scheduling metrics are stored as raw counters (streak, times_asked, last_asked_at) in the database, while complex priority/decay formulas are calculated dynamically on the fly in Go.