Complete the code to create a new migration file using Prisma CLI.
npx prisma migrate [1] --name initUse create to make a new migration file with Prisma.
Complete the code to apply all pending migrations to the database.
npx prisma migrate [1]The deploy command applies all pending migrations to the database.
Fix the error in the migration command to reset the database and apply migrations.
npx prisma migrate [1] --forceThe reset command resets the database and reapplies migrations.
Fill both blanks to write a Prisma schema model with an auto-incrementing ID and a string field.
model User {
id Int @id @default([1]())
name String @[2]
}The @default(autoincrement()) decorator makes the ID auto-increment. The @unique decorator ensures the name is unique.
Fill all three blanks to write a migration script that creates a table with a primary key and a timestamp.
CREATE TABLE [1] ( id SERIAL PRIMARY KEY, created_at [2] DEFAULT [3] );
This SQL creates a users table with an auto-incrementing id and a created_at timestamp defaulting to the current time.