python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Generated types in Prisma do not have optional fields as defined in the schema
Using Prisma v 3.8.1
My User Model is
model User {
id Int @id @default(autoincrement())
createdAt DateTime? @default(now())
email String ...

Subhendu Pratap Singh
Votes: 0
Answers: 1
Prisma: Model with three unique index fields referencing optional fields
I got a question regarding unique indexes with optional values.
I have a schema like this:
model Thread {
id Int @id @default(autoincrement())
createdAt DateTime ...
Johannes Klauß
Votes: 0
Answers: 1
How to populate relation of already populated relation?
I have picked prisma2 as ORM for my new project.
I run into one consideration, how could I load relation of relation?
For example I have such table definitions:
model Brand {
id Int @id @de...
LuckyLuke
Votes: 0
Answers: 1