prisma-schema-transformer
prisma-schema-transformer copied to clipboard
@@index 's are removed
It seems like the transformer removes @@indexes.
model ads_clicks {
id Int @default(autoincrement()) @id
ad_id Int?
datetime DateTime
@@index([ad_id], name: "IDX_BA7A601F4F34D596")
}
Transform to
model AdsClick {
id Int @id @default(autoincrement())
adId Int? @map("ad_id")
datetime DateTime
@@map("ads_clicks")
}
@ConneXNL
Properly @@index
is not handled by the deserializer. Let me know if you are willing to help adding support to preserve @@index
during transformation. I can help you to get started.