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:
Gitead
2026-05-06 21:14:00 -04:00
co-authored by Claude Sonnet 4.6
parent c5af6c1fa6
commit 4bd501250d
250 changed files with 4656 additions and 185 deletions
@@ -18,7 +18,8 @@ import { CloudFileUncheckedUpdateManyWithoutUserNestedInputObjectSchema as Cloud
import { CommunicationUncheckedUpdateManyWithoutUserNestedInputObjectSchema as CommunicationUncheckedUpdateManyWithoutUserNestedInputObjectSchema } from './CommunicationUncheckedUpdateManyWithoutUserNestedInput.schema';
import { TwilioSettingsUncheckedUpdateOneWithoutUserNestedInputObjectSchema as TwilioSettingsUncheckedUpdateOneWithoutUserNestedInputObjectSchema } from './TwilioSettingsUncheckedUpdateOneWithoutUserNestedInput.schema';
import { OfficeHoursUncheckedUpdateOneWithoutUserNestedInputObjectSchema as OfficeHoursUncheckedUpdateOneWithoutUserNestedInputObjectSchema } from './OfficeHoursUncheckedUpdateOneWithoutUserNestedInput.schema';
import { OfficeContactUncheckedUpdateOneWithoutUserNestedInputObjectSchema as OfficeContactUncheckedUpdateOneWithoutUserNestedInputObjectSchema } from './OfficeContactUncheckedUpdateOneWithoutUserNestedInput.schema'
import { OfficeContactUncheckedUpdateOneWithoutUserNestedInputObjectSchema as OfficeContactUncheckedUpdateOneWithoutUserNestedInputObjectSchema } from './OfficeContactUncheckedUpdateOneWithoutUserNestedInput.schema';
import { ProcedureTimeslotUncheckedUpdateOneWithoutUserNestedInputObjectSchema as ProcedureTimeslotUncheckedUpdateOneWithoutUserNestedInputObjectSchema } from './ProcedureTimeslotUncheckedUpdateOneWithoutUserNestedInput.schema'
const makeSchema = () => z.object({
id: z.union([z.number().int(), z.lazy(() => IntFieldUpdateOperationsInputObjectSchema)]).optional(),
@@ -41,7 +42,8 @@ const makeSchema = () => z.object({
communications: z.lazy(() => CommunicationUncheckedUpdateManyWithoutUserNestedInputObjectSchema).optional(),
twilioSettings: z.lazy(() => TwilioSettingsUncheckedUpdateOneWithoutUserNestedInputObjectSchema).optional(),
officeHours: z.lazy(() => OfficeHoursUncheckedUpdateOneWithoutUserNestedInputObjectSchema).optional(),
officeContact: z.lazy(() => OfficeContactUncheckedUpdateOneWithoutUserNestedInputObjectSchema).optional()
officeContact: z.lazy(() => OfficeContactUncheckedUpdateOneWithoutUserNestedInputObjectSchema).optional(),
procedureTimeslot: z.lazy(() => ProcedureTimeslotUncheckedUpdateOneWithoutUserNestedInputObjectSchema).optional()
}).strict();
export const UserUncheckedUpdateWithoutAiSettingsInputObjectSchema: z.ZodType<Prisma.UserUncheckedUpdateWithoutAiSettingsInput> = makeSchema() as unknown as z.ZodType<Prisma.UserUncheckedUpdateWithoutAiSettingsInput>;
export const UserUncheckedUpdateWithoutAiSettingsInputObjectZodSchema = makeSchema();