这是我的模型:
model ExampleModel {
id String @id @default(auto()) @map("_id") @db.ObjectId
name String @unique
foo ...
}
enum Tags {
TagA
TagB
TagC
}
我想将foo
的类型设置为标记数组(foo
的示例值为['TagA', 'TagC']
.我该怎么做?使用foo Tags[]
将foo
的类型设置为"TagA"[] | undefined