import { z } from 'zod';

export const createNotificationSchema = z.object({
  user_id: z.string().uuid().optional(),
  type: z.enum(['order', 'booking', 'ai', 'system', 'billing', 'staff']).optional(),
  title: z.string().min(1, 'Title is required'),
  message: z.string().optional(),
  action_label: z.string().optional(),
  action_href: z.string().optional(),
});

export const markReadSchema = z.object({
  is_read: z.literal(true),
});

export type CreateNotificationInput = z.infer<typeof createNotificationSchema>;
export type MarkReadInput = z.infer<typeof markReadSchema>;
