import { z } from 'zod';
import { num } from './common';

export const diceRollSchema = z.object({
  id: z.string(),
  campaignId: z.string().optional(),
  label: z.string().max(120).default(''),
  expression: z.string().min(1),
  total: num,
  breakdown: z.string(),
  createdAt: z.string(),
});

export type DiceRoll = z.infer<typeof diceRollSchema>;
