N-FIN-42: add default category selection to form

This commit is contained in:
Markus Thielker 2024-03-17 12:15:28 +01:00
parent 228aa983e0
commit 715ce17e1f
No known key found for this signature in database
4 changed files with 34 additions and 2 deletions

View file

@ -5,4 +5,5 @@ export const entityFormSchema = z.object({
id: z.number().positive().optional(),
name: z.string().min(1).max(32),
type: z.nativeEnum(EntityType),
defaultCategoryId: z.number().positive().optional(),
});