**Refactor DB init**
- Replace models.SetDB and global DB with storage.Open(cfg).
**Context adoption**
- Ensure all storage functions accept context.Context.
**Move SQL into local repos**
- Create internal/storage/mysql/<feature>/repo.go + queries.go.
**Embed SQL (optional)**
- Use //go:embed for .sql files per feature.
**Acceptance Criteria**
1. No global DB variables.
2. Storage only exposes constructor + methods.
3. SQL centralized and reusable.
H3ALY
added this to the 🛠 In Progress project 2025-10-23 22:39:51 +01:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Refactor DB init
Context adoption
Move SQL into local repos
Embed SQL (optional)
Acceptance Criteria