@@ -776,14 +776,56 @@ EOF
776776#### Step 5: Prisma Setup
777777
778778``` bash
779- # Generate Prisma Client
779+ # ------------------------------
780+ # Prisma Client & Schema
781+ # ------------------------------
782+
783+ # Regenerate Prisma Client after schema changes
780784npm run prisma:generate
781785
782- # Push schema to database
783- npm run db:push
786+ # Pull the current database schema into Prisma (update schema.prisma)
787+ npm run prisma:pull
788+
789+ # Push the Prisma schema to the database (without migration)
790+ npm run prisma:push
784791
785- # Open Prisma Studio (optional )
792+ # Open Prisma Studio (GUI to view/edit database )
786793npm run prisma:studio
794+
795+ # Format Prisma schema file
796+ npm run prisma:format
797+
798+ # Validate Prisma schema for errors
799+ npm run prisma:validate
800+
801+ # ------------------------------
802+ # Database seeding & syncing
803+ # ------------------------------
804+
805+ # Pull data (custom seed script)
806+ npm run db:pull
807+
808+ # Push data (custom seed script)
809+ npm run db:push
810+
811+ # Sync data (custom seed script)
812+ npm run db:sync
813+
814+ # Seed the database with initial data
815+ npm run db:seed
816+
817+ # ------------------------------
818+ # Migrations
819+ # ------------------------------
820+
821+ # Create and apply migrations (development)
822+ npm run migrate:dev
823+
824+ # Apply migrations in production
825+ npm run migrate:deploy
826+
827+ # Drop database and reapply all migrations (destructive)
828+ npm run migrate:reset
787829```
788830
789831#### Step 6: Seed Database (Optional)
0 commit comments