mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 23:41:08 +02:00
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> |
||
|---|---|---|
| .. | ||
| src | ||
| .env.example | ||
| .gitignore | ||
| docker-compose.yml | ||
| drizzle.config.ts | ||
| package.json | ||
| tsconfig.json | ||