Add z.array() on data property in createMany<model>.schema.ts.
This makes the zod schema conform to the prisma usage docs which requires a Enumerable around the input for createMany:
export type UserCreateManyArgs = {
data: Enumerable<UserCreateManyInput>
skipDuplicates?: boolean
}
Description
Add
z.array()
on data property increateMany<model>.schema.ts
. This makes the zod schema conform to the prisma usage docs which requires a Enumerable around the input for createMany:References
closes #50