N-FIN-7: add payment form schema

This commit is contained in:
Markus Thielker 2024-03-10 18:25:11 +01:00
parent 792f97b5be
commit 9a7da676ea
No known key found for this signature in database

View file

@ -0,0 +1,11 @@
import { z } from 'zod';
export const paymentFormSchema = z.object({
id: z.number().positive().optional(),
amount: z.number().positive(),
date: z.date(),
payorId: z.number().positive(),
payeeId: z.number().positive(),
categoryId: z.number().positive().optional(),
note: z.string().max(255).optional(),
});