import { z } from "zod";

export const mikrotikPackageSchema = z.object({
  id: z.nullable(z.coerce.string()).optional(),
  network_id: z.coerce.number().min(1, { message: "Network is required!" }),
  network: z.nullable(z.record(z.coerce.string())).optional(),
  name: z
    .string({
      required_error: "Package name required",
    })
    .min(2, { message: "package must have at least 2 character(s)" }),
});

export type TSmikrotikPackageSchema = z.infer<typeof mikrotikPackageSchema>;
