- 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>
22 lines
1.9 KiB
TypeScript
22 lines
1.9 KiB
TypeScript
import * as z from 'zod';
|
|
import type { Prisma } from '../../../generated/prisma';
|
|
import { SortOrderSchema } from '../enums/SortOrder.schema';
|
|
import { ProcedureTimeslotCountOrderByAggregateInputObjectSchema as ProcedureTimeslotCountOrderByAggregateInputObjectSchema } from './ProcedureTimeslotCountOrderByAggregateInput.schema';
|
|
import { ProcedureTimeslotAvgOrderByAggregateInputObjectSchema as ProcedureTimeslotAvgOrderByAggregateInputObjectSchema } from './ProcedureTimeslotAvgOrderByAggregateInput.schema';
|
|
import { ProcedureTimeslotMaxOrderByAggregateInputObjectSchema as ProcedureTimeslotMaxOrderByAggregateInputObjectSchema } from './ProcedureTimeslotMaxOrderByAggregateInput.schema';
|
|
import { ProcedureTimeslotMinOrderByAggregateInputObjectSchema as ProcedureTimeslotMinOrderByAggregateInputObjectSchema } from './ProcedureTimeslotMinOrderByAggregateInput.schema';
|
|
import { ProcedureTimeslotSumOrderByAggregateInputObjectSchema as ProcedureTimeslotSumOrderByAggregateInputObjectSchema } from './ProcedureTimeslotSumOrderByAggregateInput.schema'
|
|
|
|
const makeSchema = () => z.object({
|
|
id: SortOrderSchema.optional(),
|
|
userId: SortOrderSchema.optional(),
|
|
data: SortOrderSchema.optional(),
|
|
_count: z.lazy(() => ProcedureTimeslotCountOrderByAggregateInputObjectSchema).optional(),
|
|
_avg: z.lazy(() => ProcedureTimeslotAvgOrderByAggregateInputObjectSchema).optional(),
|
|
_max: z.lazy(() => ProcedureTimeslotMaxOrderByAggregateInputObjectSchema).optional(),
|
|
_min: z.lazy(() => ProcedureTimeslotMinOrderByAggregateInputObjectSchema).optional(),
|
|
_sum: z.lazy(() => ProcedureTimeslotSumOrderByAggregateInputObjectSchema).optional()
|
|
}).strict();
|
|
export const ProcedureTimeslotOrderByWithAggregationInputObjectSchema: z.ZodType<Prisma.ProcedureTimeslotOrderByWithAggregationInput> = makeSchema() as unknown as z.ZodType<Prisma.ProcedureTimeslotOrderByWithAggregationInput>;
|
|
export const ProcedureTimeslotOrderByWithAggregationInputObjectZodSchema = makeSchema();
|