diff options
| author | Chris Johnston <christopher_johnston@me.com> | 2024-01-11 21:38:30 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-11 16:38:30 -0500 |
| commit | 45ee9cdba4e6e7c9ac918859b89d2b2ed38d4571 (patch) | |
| tree | fab43518bdb1dce24bb9731b6f41f7f73a193282 /src/lib/schemas.ts | |
| parent | 057f3e9c533704d9f1d695e8df9c4779c983c337 (diff) | |
Assign categories to expenses (#28)
* add expense categories
* set category to Payment for reimbursements
* Insert categories as part of the migration
* Display category groups
---------
Co-authored-by: Sebastien Castiel <sebastien@castiel.me>
Diffstat (limited to 'src/lib/schemas.ts')
| -rw-r--r-- | src/lib/schemas.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/schemas.ts b/src/lib/schemas.ts index 14b253c..be90481 100644 --- a/src/lib/schemas.ts +++ b/src/lib/schemas.ts @@ -45,6 +45,7 @@ export const expenseFormSchema = z title: z .string({ required_error: 'Please enter a title.' }) .min(2, 'Enter at least two characters.'), + category: z.coerce.number().default(0), amount: z .union( [ |
