duoqi-api/db/seeds/index.ts
Wang Zhuoxuan f6e7be324e feat: initialize duoqi-api project skeleton
Set up Fastify + TypeScript + Drizzle ORM backend with:
- Database schema (7 tables: users, categories, questions, knowledge_cards, user_progress, skill_tree, user_chapter_progress)
- JWT auth middleware + admin token auth
- Route structure for auth, quiz, progress, gamification, payment, and admin
- Service stubs for Phase 1b implementation
- Zod-validated env config, custom error classes
2026-04-08 21:24:15 +08:00

9 lines
205 B
TypeScript

// Seed script — imports content/*.json and inserts into database
// To be implemented in Phase 1b
async function main() {
console.log('Seed script placeholder — implement in Phase 1b');
}
main();