diff --git a/packages/validation/src/transaction.zod.ts b/packages/validation/src/transaction.zod.ts index afee882c..45ab3fc5 100644 --- a/packages/validation/src/transaction.zod.ts +++ b/packages/validation/src/transaction.zod.ts @@ -7,6 +7,7 @@ export const zCreateTransaction = z.object({ note: z.string().optional(), budgetId: z.string().optional(), walletAccountId: z.string(), + categoryId: z.string().optional(), }) export type CreateTransaction = z.infer @@ -17,6 +18,7 @@ export const zUpdateTransaction = z.object({ note: z.string().optional(), budgetId: z.string().optional(), walletAccountId: z.string().optional(), + categoryId: z.string().optional(), }) export type UpdateTransaction = z.infer