After updating your models, follow these steps to create and apply migrations:
-
Generate a Migration
Run the following command to create a new migration file:npm run create-migration update-users-schema
-
**Update the Migration File Open the newly created migration file and make the necessary adjustments to reflect your model changes.
-
Run the migration
npm run migrate