managarten/packages/manadeck-database
Till-JS 1530efa936 feat(manadeck): migrate backend from Supabase to PostgreSQL with Drizzle ORM
Phase 3 of ManaDeck database migration:

Database Package (@manacore/manadeck-database):
- Configure package for NodeNext module resolution with .js extensions
- Add build script and proper exports for ESM/CJS compatibility
- Export schema types and Drizzle utilities

Backend Migration:
- Add DatabaseModule with singleton database provider
- Create repository layer with Drizzle ORM:
  - DeckRepository: CRUD operations for decks
  - CardRepository: CRUD operations for cards
  - UserStatsRepository: Stats and leaderboard queries
  - DeckTemplateRepository: Template management
- Update ApiController to use repositories for all database operations
- Update PublicController to use repositories for featured decks, leaderboard, templates
- Add DATABASE_URL environment variable support

The backend now uses PostgreSQL via Drizzle ORM instead of Supabase SDK
for database operations. Supabase is still used for auth (via Mana Core)
and edge functions.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-25 02:39:39 +01:00
..
src feat(manadeck): migrate backend from Supabase to PostgreSQL with Drizzle ORM 2025-11-25 02:39:39 +01:00
.env.example Feat: Login localization, design, märchenzauber feature complete webapp 2025-11-25 02:19:40 +01:00
.gitignore Feat: Login localization, design, märchenzauber feature complete webapp 2025-11-25 02:19:40 +01:00
docker-compose.yml Feat: Login localization, design, märchenzauber feature complete webapp 2025-11-25 02:19:40 +01:00
drizzle.config.ts Feat: Login localization, design, märchenzauber feature complete webapp 2025-11-25 02:19:40 +01:00
package.json feat(manadeck): migrate backend from Supabase to PostgreSQL with Drizzle ORM 2025-11-25 02:39:39 +01:00
tsconfig.json feat(manadeck): migrate backend from Supabase to PostgreSQL with Drizzle ORM 2025-11-25 02:39:39 +01:00