You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
generator client {
provider = "prisma-client-dart"
previewFeatures = ["interactiveTransactions"]
}
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}
enum Role {
dev
manager
admin
}
model Client {
id Int @id @default(autoincrement())
createdAt DateTime @default(now())
name String
cnpj String
address String
city String
state String
country String
imageUrl String?
active Boolean @default(true)
projects Project[]
}
model User {
id Int @id @default(autoincrement())
createdAt DateTime @default(now())
email String @unique
name String
imageUrl String?
active Boolean @default(true)
password String
role Role @default(dev)
project UserOnProject[]
}
model Project {
id Int @id @default(autoincrement())
createdAt DateTime @default(now())
title String
description String @default("")
imageUrl String?
active Boolean @default(true)
user UserOnProject[]
clientId Int
client Client @relation(fields: [clientId], references: [id])
}
model UserOnProject {
user User @relation(fields: [idUser], references: [id])
idUser Int
project Project @relation(fields: [idProject], references: [id])
idProject Int
@@id([idUser, idProject])
}
The code generator fails to generate and so the json_serializable fails.
The text was updated successfully, but these errors were encountered:
this should be fixed for now .
but I will keep this issues open as we need to investigation more in why we need to generate a empty input object at all
schema.prisma example
The code generator fails to generate and so the json_serializable fails.
The text was updated successfully, but these errors were encountered: