feat: add Copayment and Adjustment columns to payments table
- 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>
This commit is contained in:
@@ -15,7 +15,8 @@ import { CloudFileUncheckedCreateNestedManyWithoutUserInputObjectSchema as Cloud
|
||||
import { TwilioSettingsUncheckedCreateNestedOneWithoutUserInputObjectSchema as TwilioSettingsUncheckedCreateNestedOneWithoutUserInputObjectSchema } from './TwilioSettingsUncheckedCreateNestedOneWithoutUserInput.schema';
|
||||
import { AiSettingsUncheckedCreateNestedOneWithoutUserInputObjectSchema as AiSettingsUncheckedCreateNestedOneWithoutUserInputObjectSchema } from './AiSettingsUncheckedCreateNestedOneWithoutUserInput.schema';
|
||||
import { OfficeHoursUncheckedCreateNestedOneWithoutUserInputObjectSchema as OfficeHoursUncheckedCreateNestedOneWithoutUserInputObjectSchema } from './OfficeHoursUncheckedCreateNestedOneWithoutUserInput.schema';
|
||||
import { OfficeContactUncheckedCreateNestedOneWithoutUserInputObjectSchema as OfficeContactUncheckedCreateNestedOneWithoutUserInputObjectSchema } from './OfficeContactUncheckedCreateNestedOneWithoutUserInput.schema'
|
||||
import { OfficeContactUncheckedCreateNestedOneWithoutUserInputObjectSchema as OfficeContactUncheckedCreateNestedOneWithoutUserInputObjectSchema } from './OfficeContactUncheckedCreateNestedOneWithoutUserInput.schema';
|
||||
import { ProcedureTimeslotUncheckedCreateNestedOneWithoutUserInputObjectSchema as ProcedureTimeslotUncheckedCreateNestedOneWithoutUserInputObjectSchema } from './ProcedureTimeslotUncheckedCreateNestedOneWithoutUserInput.schema'
|
||||
|
||||
const makeSchema = () => z.object({
|
||||
id: z.number().int().optional(),
|
||||
@@ -38,7 +39,8 @@ const makeSchema = () => z.object({
|
||||
twilioSettings: z.lazy(() => TwilioSettingsUncheckedCreateNestedOneWithoutUserInputObjectSchema).optional(),
|
||||
aiSettings: z.lazy(() => AiSettingsUncheckedCreateNestedOneWithoutUserInputObjectSchema).optional(),
|
||||
officeHours: z.lazy(() => OfficeHoursUncheckedCreateNestedOneWithoutUserInputObjectSchema).optional(),
|
||||
officeContact: z.lazy(() => OfficeContactUncheckedCreateNestedOneWithoutUserInputObjectSchema).optional()
|
||||
officeContact: z.lazy(() => OfficeContactUncheckedCreateNestedOneWithoutUserInputObjectSchema).optional(),
|
||||
procedureTimeslot: z.lazy(() => ProcedureTimeslotUncheckedCreateNestedOneWithoutUserInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const UserUncheckedCreateWithoutCommunicationsInputObjectSchema: z.ZodType<Prisma.UserUncheckedCreateWithoutCommunicationsInput> = makeSchema() as unknown as z.ZodType<Prisma.UserUncheckedCreateWithoutCommunicationsInput>;
|
||||
export const UserUncheckedCreateWithoutCommunicationsInputObjectZodSchema = makeSchema();
|
||||
|
||||
Reference in New Issue
Block a user