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 { CloudFileCreateNestedManyWithoutUserInputObjectSchema as CloudFileCreat
|
||||
import { CommunicationCreateNestedManyWithoutUserInputObjectSchema as CommunicationCreateNestedManyWithoutUserInputObjectSchema } from './CommunicationCreateNestedManyWithoutUserInput.schema';
|
||||
import { TwilioSettingsCreateNestedOneWithoutUserInputObjectSchema as TwilioSettingsCreateNestedOneWithoutUserInputObjectSchema } from './TwilioSettingsCreateNestedOneWithoutUserInput.schema';
|
||||
import { AiSettingsCreateNestedOneWithoutUserInputObjectSchema as AiSettingsCreateNestedOneWithoutUserInputObjectSchema } from './AiSettingsCreateNestedOneWithoutUserInput.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({
|
||||
communications: z.lazy(() => CommunicationCreateNestedManyWithoutUserInputObjectSchema).optional(),
|
||||
twilioSettings: z.lazy(() => TwilioSettingsCreateNestedOneWithoutUserInputObjectSchema).optional(),
|
||||
aiSettings: z.lazy(() => AiSettingsCreateNestedOneWithoutUserInputObjectSchema).optional(),
|
||||
officeContact: z.lazy(() => OfficeContactCreateNestedOneWithoutUserInputObjectSchema).optional()
|
||||
officeContact: z.lazy(() => OfficeContactCreateNestedOneWithoutUserInputObjectSchema).optional(),
|
||||
procedureTimeslot: z.lazy(() => ProcedureTimeslotCreateNestedOneWithoutUserInputObjectSchema).optional()
|
||||
}).strict();
|
||||
export const UserCreateWithoutOfficeHoursInputObjectSchema: z.ZodType<Prisma.UserCreateWithoutOfficeHoursInput> = makeSchema() as unknown as z.ZodType<Prisma.UserCreateWithoutOfficeHoursInput>;
|
||||
export const UserCreateWithoutOfficeHoursInputObjectZodSchema = makeSchema();
|
||||
|
||||
Reference in New Issue
Block a user