Changeset 299af01 for src/schemas
- Timestamp:
- 02/26/25 14:27:26 (6 weeks ago)
- Branches:
- main
- Children:
- 3c5302a
- Parents:
- 057453c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/schemas/customer.ts
r057453c r299af01 32 32 export const customerSchema = z.object({ 33 33 id: z.string().optional(), 34 tenantId: z.string(), 34 35 name: z.string(), 35 36 email: z.string(), … … 45 46 export const tenantSchema = customerSchema 46 47 .omit({ 47 companyId: true,48 tenantId: true, 48 49 status: true, 49 50 }) … … 53 54 54 55 export const newCustomerSchema = z.object({ 56 tenantId: z.string().optional(), 55 57 name: z.string(), 56 58 email: z.string(), … … 63 65 status: customerStatusSchema, 64 66 }); 67 68 export const updateCustomerSchema = newCustomerSchema.omit({ 69 tenantId: true, 70 status: true, 71 });
Note:
See TracChangeset
for help on using the changeset viewer.