- Added copayment and adjustment fields (Decimal, default 0) to Payment model in schema and directly to DB via ALTER TABLE - Added PATCH /api/payments/:id/copayment and /adjustment routes - Added inline-editable Copayment and Adjustment columns after MH Paid with same click-to-edit format; Copayment in blue, Adjustment in orange Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
17 lines
436 B
TypeScript
17 lines
436 B
TypeScript
import * as z from 'zod';
|
|
export const ProcedureTimeslotFindManyResultSchema = z.object({
|
|
data: z.array(z.object({
|
|
id: z.number().int(),
|
|
userId: z.number().int(),
|
|
data: z.unknown(),
|
|
user: z.unknown()
|
|
})),
|
|
pagination: z.object({
|
|
page: z.number().int().min(1),
|
|
pageSize: z.number().int().min(1),
|
|
total: z.number().int().min(0),
|
|
totalPages: z.number().int().min(0),
|
|
hasNext: z.boolean(),
|
|
hasPrev: z.boolean()
|
|
})
|
|
}); |