datasource db { provider = "mysql" url = env("DATABASE_URL") }
model Product { id Int @id @default(autoincrement()) title String description String category String price Float imageURL String clientId Int createdAt DateTime @default(now()) updatedAt DateTime @default(now()) client Client @relation(references: [id], fields: [clientId], onDelete: Cascade)
@@map("products") }
If I write "[]" next to imageURL I get an error: Field "imageURL" in model "Product" can't be a list. The current connector does not support lists of primitive types.Prisma
Recent Announcements
Continue the conversation
Join the Discord to ask follow-up questions and connect with the community
P
Prisma
The official Discord server of Prisma! Find us online at prisma.io