Files
2025-10-20 17:07:41 +03:00

13 lines
296 B
TypeScript

import z from "zod";
// The base currency is always USD, so the ratio is relative to that
export const currencyModel = z.object({
id: z.number(),
currency: z.string(),
code: z.string(),
exchangeRate: z.number(),
ratio: z.number(),
});
export type Currency = z.infer<typeof currencyModel>;