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:
6
server/api/students/clear.post.ts
Normal file
6
server/api/students/clear.post.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import { prisma } from '~/server/utils/prisma'
|
||||
|
||||
export default defineEventHandler(async (event) => {
|
||||
await prisma.student.deleteMany()
|
||||
return { success: true }
|
||||
})
|
||||
Reference in New Issue
Block a user