NiceSchool website backend
After you modify prisma/schema.prisma run the following locally to apply schema changes and generate the client:
- Install dependencies (if not done):
npm install- Generate Prisma client:
npx prisma generate- Apply migrations (dev) or push schema to DB:
npx prisma migrate dev --name init
# or when you prefer pushing schema without creating migration files
npx prisma db push- Seed the DB (the project defines a TypeScript seed script):
npx prisma db seedNote: After running prisma generate, TypeScript will understand the new models (e.g. prisma.department) and the IDE/linter errors about missing model properties will disappear.