Issue with Drizzle-Zod: Due to a type mismatch between the ZodObject and ZodType types.
I have issues with this part of the code "due to a type mismatch between the ZodObject and ZodType types. The ZodObject type is missing a readonly property that is required by the ZodType type":
export type Media = z.infer<typeof updateMediaSchema>;
export type NewMedia = z.infer<typeof insertMediaSchema>;
export type NewMediaParams = z.infer<typeof insertMediaParams>;
export type UpdateMediaParams = z.infer<typeof updateMediaParams>;
export type MediaId = z.infer<typeof mediaIdSchema>["id"];
Type 'ZodObject<{ id: ZodNumber; imageUrl: ZodString; listingId: ZodString; updatedAt: ZodDate; createdAt: ZodDate; imageOrder: ZodNumber; }, UnknownKeysParam, ZodTypeAny, { ...; }, { ...; }>' does not satisfy the constraint 'ZodType<any, any, any>'.
Property 'readonly' is missing in type 'ZodObject<{ id: ZodNumber; imageUrl: ZodString; listingId: ZodString; updatedAt: ZodDate; createdAt: ZodDate; imageOrder: ZodNumber; }, UnknownKeysParam, ZodTypeAny, { ...; }, { ...; }>' but required in type 'ZodType<any, any, any>'. 'readonly' is declared here.
export type Media = z.infer<typeof updateMediaSchema>;
export type NewMedia = z.infer<typeof insertMediaSchema>;
export type NewMediaParams = z.infer<typeof insertMediaParams>;
export type UpdateMediaParams = z.infer<typeof updateMediaParams>;
export type MediaId = z.infer<typeof mediaIdSchema>["id"];
Type 'ZodObject<{ id: ZodNumber; imageUrl: ZodString; listingId: ZodString; updatedAt: ZodDate; createdAt: ZodDate; imageOrder: ZodNumber; }, UnknownKeysParam, ZodTypeAny, { ...; }, { ...; }>' does not satisfy the constraint 'ZodType<any, any, any>'.
Property 'readonly' is missing in type 'ZodObject<{ id: ZodNumber; imageUrl: ZodString; listingId: ZodString; updatedAt: ZodDate; createdAt: ZodDate; imageOrder: ZodNumber; }, UnknownKeysParam, ZodTypeAny, { ...; }, { ...; }>' but required in type 'ZodType<any, any, any>'. 'readonly' is declared here.
