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
parent c5af6c1fa6
commit 4bd501250d
250 changed files with 4656 additions and 185 deletions

View File

@@ -15,7 +15,8 @@ import { CommunicationCreateNestedManyWithoutUserInputObjectSchema as Communicat
import { TwilioSettingsCreateNestedOneWithoutUserInputObjectSchema as TwilioSettingsCreateNestedOneWithoutUserInputObjectSchema } from './TwilioSettingsCreateNestedOneWithoutUserInput.schema';
import { AiSettingsCreateNestedOneWithoutUserInputObjectSchema as AiSettingsCreateNestedOneWithoutUserInputObjectSchema } from './AiSettingsCreateNestedOneWithoutUserInput.schema';
import { OfficeHoursCreateNestedOneWithoutUserInputObjectSchema as OfficeHoursCreateNestedOneWithoutUserInputObjectSchema } from './OfficeHoursCreateNestedOneWithoutUserInput.schema';
import { OfficeContactCreateNestedOneWithoutUserInputObjectSchema as OfficeContactCreateNestedOneWithoutUserInputObjectSchema } from './OfficeContactCreateNestedOneWithoutUserInput.schema'
import { OfficeContactCreateNestedOneWithoutUserInputObjectSchema as OfficeContactCreateNestedOneWithoutUserInputObjectSchema } from './OfficeContactCreateNestedOneWithoutUserInput.schema';
import { ProcedureTimeslotCreateNestedOneWithoutUserInputObjectSchema as ProcedureTimeslotCreateNestedOneWithoutUserInputObjectSchema } from './ProcedureTimeslotCreateNestedOneWithoutUserInput.schema'
const makeSchema = () => z.object({
username: z.string(),
@@ -37,7 +38,8 @@ const makeSchema = () => z.object({
twilioSettings: z.lazy(() => TwilioSettingsCreateNestedOneWithoutUserInputObjectSchema).optional(),
aiSettings: z.lazy(() => AiSettingsCreateNestedOneWithoutUserInputObjectSchema).optional(),
officeHours: z.lazy(() => OfficeHoursCreateNestedOneWithoutUserInputObjectSchema).optional(),
officeContact: z.lazy(() => OfficeContactCreateNestedOneWithoutUserInputObjectSchema).optional()
officeContact: z.lazy(() => OfficeContactCreateNestedOneWithoutUserInputObjectSchema).optional(),
procedureTimeslot: z.lazy(() => ProcedureTimeslotCreateNestedOneWithoutUserInputObjectSchema).optional()
}).strict();
export const UserCreateWithoutCloudFilesInputObjectSchema: z.ZodType<Prisma.UserCreateWithoutCloudFilesInput> = makeSchema() as unknown as z.ZodType<Prisma.UserCreateWithoutCloudFilesInput>;
export const UserCreateWithoutCloudFilesInputObjectZodSchema = makeSchema();