import { z } from "zod";

export const notificationPrefSchema = z.object({
  id: z.number(),
  clientId: z.number(),
  propId: z.number(),
  notificationType: z.number(),
  isEnabled: z.number(),
  isSelfBranding: z.number(),
  createdAt: z.string(),
  updatedAt: z.string(),
});

type notificationPrefType = z.infer<typeof notificationPrefSchema>;

export const getNotificationPrefSchema = z.object({
  id: notificationPrefSchema.shape.id,
  notificationType: notificationPrefSchema.shape.notificationType,
});

export default notificationPrefType;