The project I'm working on is built using Next.js with Prisma and MongoDB integration. Below is the content of my Prisma schema file:
generator client {
provider = "prisma-client-js"
}
datasource db {
provider = "mongodb"
url = env("DATABASE_URL")
}
model Profile {
id String @id @default(auto()) @map("_id") @db.ObjectId
userId String @unique @db.ObjectId
name String
imageUrl String @db.String
email String @db.String
servers Server[]
member Member[]
channels Channel[]
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}
// Additional model definitions...
// Other code snippets are included in here...