feat: initial commit with Nuxt 3 student management system

- Add Nuxt 3 + Prisma + SQLite full-stack setup
- Add student CRUD API with batch import/export
- Add stats dashboard with gender/class distribution
- Add target community settings feature
- Add Docker deployment support (Dockerfile + docker-compose)
- Add README with development and deployment instructions
This commit is contained in:
2026-03-21 02:00:55 +08:00
commit 05c33b1fe8
25 changed files with 15749 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
import { prisma } from '~/server/utils/prisma'
export default defineEventHandler(async (event) => {
const id = Number(event.context.params?.id)
await prisma.student.delete({
where: { id }
})
return { success: true }
})