import { z } from "zod";

export const whatsappTemplatesSchema = z.object({
  id: z.number(),
  clientId: z.number(),
  userType: z.number(),
  templateId: z.string().max(100),
  languageCode: z.string().max(5),
  provider: z.number(),
  description: z.string().max(250).nullable().optional(),
  type: z.number().nullable().optional().default(1),
  createdAt: z.string().datetime(),
  updatedAt: z.string().datetime(),
});

type whatsappTemplatesTypes = z.infer<typeof whatsappTemplatesSchema>;
export default whatsappTemplatesTypes;