This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { PrismaClient } from ".prisma/client"; | |
/** | |
model Comment { | |
id String @id @default(auto()) @map("_id") @db.ObjectId | |
country String? | |
content CommentContent? | |
contents CommentContent[] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { PrismaClient } from ".prisma/client"; | |
/* | |
model CommentOptionalProp { | |
id String @id @default(auto()) @map("_id") @db.ObjectId | |
country String? | |
content CommentContent? | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { PrismaClient, Prisma } from "@prisma/client" | |
type Operation = | |
| 'findFirst' | |
| 'findFirstOrThrow' | |
| 'findUnique' | |
| 'findUniqueOrThrow' | |
| 'findMany' | |
| 'create' | |
| 'createMany' |
OlderNewer