datasource db { provider = "mongodb" url = env("DATABASE_URL") } generator client { provider = "prisma-client-js" } model User { id String @id @default(cuid()) @map("_id") firstName String lastName String email String @unique password String createdAt DateTime @default(now()) updatedAt DateTime @updatedAt } model Item { id String @id @default(cuid()) @map("_id") name String price Float quantity Int @default(0) createdAt DateTime @default(now()) updatedAt DateTime @updatedAt } model Cart { id String @id @default(cuid()) @map("_id") userId String itemId String createdAt DateTime @default(now()) updatedAt DateTime @updatedAt @@unique([userId, itemId]) }