In this lesson, I will create a full crud operation using nextjs 14. For this lesson I'm using prisma as a database ORM(Object-relational Mapping).
prisma/schema.prisma
generator client { provider = "prisma-client-js" } datasource db { provider = "mongodb" url = env("DATABASE_URL") } model User { id String @id @default(auto()) @map("_id") @db.ObjectId name String role String username String @unique createdAt DateTime @default(now()) updatedAt DateTime @updatedAt }
Happy coding!
Fullstack Developer