mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 19:21:10 +02:00
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>
This commit is contained in:
parent
84f9343d25
commit
1530efa936
26 changed files with 3448 additions and 253 deletions
2888
pnpm-lock.yaml
generated
2888
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue