Scalar lists but on Planetscale?

After starting to watch the tutorial posted day, I bit the bullet and am going to give planetscale a try! I use 2 scalar lists in my current setup to store an array of tags for posts. These don't work on planetscale. Database experts (or simply not a noob like me!) What is the best alternative to use?
model Example {
id String @id @default(cuid())
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
post String
postTags String[]
}
model Example {
id String @id @default(cuid())
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
post String
postTags String[]
}
Field "postTags" in model "Example" can't be a list. The current connector does not support lists of primitive types.
Field "postTags" in model "Example" can't be a list. The current connector does not support lists of primitive types.
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server